summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-07-21 12:08:13 +0200
committerNoel Grandin <noel@peralex.com>2014-07-23 13:26:16 +0200
commit331132b4cb5717ec0177ef89bc90ef1f474dfea7 (patch)
treef506a981c68498970daa3acc45eb75cab8c4e5fb /include
parent7be041309cf339b64827eee064421eaa2d3b9939 (diff)
comments and code formatting in SfxPoolItem
Change-Id: Ibf7b2f5e93748198eccbbbf54fad5f8053270003
Diffstat (limited to 'include')
-rw-r--r--include/svl/itempool.hxx11
-rw-r--r--include/svl/poolitem.hxx22
2 files changed, 16 insertions, 17 deletions
diff --git a/include/svl/itempool.hxx b/include/svl/itempool.hxx
index 6960d5e80c89..77e43a5d9161 100644
--- a/include/svl/itempool.hxx
+++ b/include/svl/itempool.hxx
@@ -119,12 +119,12 @@ public:
virtual SfxMapUnit GetMetric( sal_uInt16 nWhich ) const;
void SetDefaultMetric( SfxMapUnit eNewMetric );
- /** Request string representation of pool items
+ /** Request string representation of pool items.
- This virtual function produces a string representation, of
+ This virtual function produces a string representation
from the respective SfxItemPool subclass' known SfxPoolItems.
- Subclasses, please overwrite this method, and handle
+ Subclasses, please override this method, and handle
SfxPoolItems that don't return useful/complete information on
SfxPoolItem::GetPresentation()
@@ -147,10 +147,9 @@ public:
SfxItemPresentation ePresentation,
SfxMapUnit ePresentationMetric,
OUString& rText,
- const IntlWrapper * pIntlWrapper
- = 0 ) const;
+ const IntlWrapper * pIntlWrapper = 0 ) const;
virtual SfxItemPool* Clone() const;
- const OUString& GetName() const;
+ const OUString& GetName() const;
virtual const SfxPoolItem& Put( const SfxPoolItem&, sal_uInt16 nWhich = 0 );
virtual void Remove( const SfxPoolItem& );
diff --git a/include/svl/poolitem.hxx b/include/svl/poolitem.hxx
index e61e13cb5aad..af8e405de58e 100644
--- a/include/svl/poolitem.hxx
+++ b/include/svl/poolitem.hxx
@@ -170,9 +170,9 @@ private:
inline void SetRefCount( sal_uLong n );
inline void SetKind( sal_uInt16 n );
public:
- inline sal_uLong AddRef( sal_uLong n = 1 ) const;
+ inline sal_uLong AddRef( sal_uLong n = 1 ) const;
private:
- inline sal_uLong ReleaseRef( sal_uLong n = 1 ) const;
+ inline sal_uLong ReleaseRef( sal_uLong n = 1 ) const;
SVL_DLLPRIVATE long Delete_Impl(void*);
protected:
@@ -184,7 +184,7 @@ public:
virtual ~SfxPoolItem();
void SetWhich( sal_uInt16 nId ) { m_nWhich = nId; }
- sal_uInt16 Which() const { return m_nWhich; }
+ sal_uInt16 Which() const { return m_nWhich; }
virtual bool operator==( const SfxPoolItem& ) const = 0;
bool operator!=( const SfxPoolItem& rItem ) const
{ return !(*this == rItem); }
@@ -197,7 +197,7 @@ public:
OUString &rText,
const IntlWrapper * pIntlWrapper = 0 ) const;
- virtual sal_uInt16 GetVersion( sal_uInt16 nFileFormatVersion ) const;
+ virtual sal_uInt16 GetVersion( sal_uInt16 nFileFormatVersion ) const;
virtual bool ScaleMetrics( long lMult, long lDiv );
virtual bool HasMetrics() const;
@@ -208,8 +208,8 @@ public:
virtual SvStream& Store( SvStream &, sal_uInt16 nItemVersion ) const;
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const = 0;
- sal_uLong GetRefCount() const { return m_nRefCount; }
- inline sal_uInt16 GetKind() const { return m_nKind; }
+ sal_uLong GetRefCount() const { return m_nRefCount; }
+ inline sal_uInt16 GetKind() const { return m_nKind; }
/** Read in a Unicode string from a streamed byte string representation.
@@ -254,7 +254,7 @@ public:
const OUString& rString);
private:
- SfxPoolItem& operator=( const SfxPoolItem& ); // n.i.!!
+ SfxPoolItem& operator=( const SfxPoolItem& ); // not implemented!!
};
@@ -333,7 +333,7 @@ public:
OUString &rText,
const IntlWrapper * = 0 ) const SAL_OVERRIDE;
- // von sich selbst eine Kopie erzeugen
+ // create a copy of itself
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const SAL_OVERRIDE;
void SetWhich(sal_uInt16 nWh) { m_nWhich = nWh; }
};
@@ -361,7 +361,7 @@ public:
OUString &rText,
const IntlWrapper * = 0 ) const SAL_OVERRIDE;
- // von sich selbst eine Kopie erzeugen
+ // create a copy of itself
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const SAL_OVERRIDE = 0;
virtual SfxPoolItem* Create(SvStream &, sal_uInt16 nVersion) const SAL_OVERRIDE = 0;
virtual SvStream& Store(SvStream &, sal_uInt16 nVer) const SAL_OVERRIDE;
@@ -373,12 +373,12 @@ public:
};
-// Handle Klasse fuer PoolItems
+// Handle class for PoolItems
class SVL_DLLPUBLIC SfxItemHandle
{
sal_uInt16 *pRef;
- SfxPoolItem *pItem;
+ SfxPoolItem *pItem;
public:
explicit SfxItemHandle( SfxPoolItem& );
SfxItemHandle( const SfxItemHandle& );