summaryrefslogtreecommitdiffstats
path: root/include/sfx2/itemwrapper.hxx
diff options
context:
space:
mode:
authorAlexander Wilms <f.alexander.wilms@gmail.com>2014-02-25 19:06:16 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-03-01 09:51:32 -0600
commit8792ec7b2129650777b7b4bfacaa7c13d923279b (patch)
treef181e37b61533b460397cc68625fd21f46bb6393 /include/sfx2/itemwrapper.hxx
parentimport date cells from OOXML (diff)
downloadcore-8792ec7b2129650777b7b4bfacaa7c13d923279b.tar.gz
core-8792ec7b2129650777b7b4bfacaa7c13d923279b.zip
Remove visual noise from include
Conflicts: include/framework/preventduplicateinteraction.hxx include/sfx2/sfxbasecontroller.hxx include/sfx2/sfxbasemodel.hxx include/toolkit/awt/vclxtabpagemodel.hxx include/vcl/field.hxx include/vcl/settings.hxx Change-Id: Ibccf9f88c68267a3d7e656012b51eaf644c418c2 Reviewed-on: https://gerrit.libreoffice.org/8272 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include/sfx2/itemwrapper.hxx')
-rw-r--r--include/sfx2/itemwrapper.hxx28
1 files changed, 14 insertions, 14 deletions
diff --git a/include/sfx2/itemwrapper.hxx b/include/sfx2/itemwrapper.hxx
index d8ffedb3a5e8..21424acf6467 100644
--- a/include/sfx2/itemwrapper.hxx
+++ b/include/sfx2/itemwrapper.hxx
@@ -27,13 +27,13 @@
#include <svl/intitem.hxx>
#include <svl/itemset.hxx>
-// ============================================================================
+
namespace sfx {
-// ============================================================================
+
// Helpers
-// ============================================================================
+
class SFX2_DLLPUBLIC ItemWrapperHelper
{
@@ -55,9 +55,9 @@ public:
static void RemoveDefaultItem( SfxItemSet& rDestSet, const SfxItemSet& rOldSet, sal_uInt16 nSlot );
};
-// ============================================================================
+
// Item wrappers
-// ============================================================================
+
/** Base class wrapping a single item.
@@ -120,7 +120,7 @@ private:
sal_uInt16 mnSlot; /// The SID of this item wrapper.
};
-// ============================================================================
+
/** An item wrapper usable for most types of items.
@@ -147,7 +147,7 @@ public:
{ rItem.SetValue( static_cast< InternalValueT >( aValue ) ); }
};
-// ----------------------------------------------------------------------------
+
typedef ValueItemWrapper< SfxBoolItem, sal_Bool > BoolItemWrapper;
typedef ValueItemWrapper< SfxInt16Item, sal_Int16 > Int16ItemWrapper;
@@ -156,7 +156,7 @@ typedef ValueItemWrapper< SfxInt32Item, sal_Int32 > Int32ItemWrapper;
typedef ValueItemWrapper< SfxUInt32Item, sal_uInt32 > UInt32ItemWrapper;
typedef ValueItemWrapper< SfxStringItem, const OUString& > StringItemWrapper;
-// ============================================================================
+
/** An item wrapper that uses the item itself as value. */
template< typename ItemT >
@@ -174,16 +174,16 @@ public:
{ rItem = rValue; }
};
-// ============================================================================
-// ============================================================================
+
+
// *** Implementation of template functions ***
-// ============================================================================
-// ============================================================================
+
+
// Item wrappers
-// ============================================================================
+
template< typename ItemT, typename ValueT >
const ItemT* SingleItemWrapper< ItemT, ValueT >::GetUniqueItem( const SfxItemSet& rItemSet ) const
@@ -197,7 +197,7 @@ const ItemT& SingleItemWrapper< ItemT, ValueT >::GetDefaultItem( const SfxItemSe
return static_cast< const ItemT& >( ItemWrapperHelper::GetDefaultItem( rItemSet, mnSlot ) );
}
-// ============================================================================
+
} // namespace sfx