summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2015-03-31 14:04:47 +0200
committerMichael Stahl <mstahl@redhat.com>2015-03-31 20:08:52 +0200
commit17757784c02a28ca2c3f70c64ae29f2c61c58249 (patch)
tree6cf5d627deff22fd63140f55d66188af9544297a /sw
parentd1e63af0fb5c9aa344baae0c34d069385b8f0736 (diff)
sw: prefix members of SwDrawModel
Change-Id: Ica69a3c94e674c12619ec0f5c849b8e82dff6090
Diffstat (limited to 'sw')
-rw-r--r--sw/inc/drawdoc.hxx8
-rw-r--r--sw/source/core/draw/drawdoc.cxx23
2 files changed, 17 insertions, 14 deletions
diff --git a/sw/inc/drawdoc.hxx b/sw/inc/drawdoc.hxx
index 6afd3fd042fe..0e4ea36e5417 100644
--- a/sw/inc/drawdoc.hxx
+++ b/sw/inc/drawdoc.hxx
@@ -26,13 +26,15 @@ class SwDocShell;
class SwDrawModel : public FmFormModel
{
- SwDoc* pDoc;
+private:
+ SwDoc* m_pDoc;
+
public:
SwDrawModel( SwDoc* pDoc );
virtual ~SwDrawModel();
- const SwDoc& GetDoc() const { return *pDoc; }
- SwDoc& GetDoc() { return *pDoc; }
+ const SwDoc& GetDoc() const { return *m_pDoc; }
+ SwDoc& GetDoc() { return *m_pDoc; }
virtual SdrPage* AllocPage(bool bMasterPage) SAL_OVERRIDE;
diff --git a/sw/source/core/draw/drawdoc.cxx b/sw/source/core/draw/drawdoc.cxx
index 149408b30275..0c7cc1b697a0 100644
--- a/sw/source/core/draw/drawdoc.cxx
+++ b/sw/source/core/draw/drawdoc.cxx
@@ -49,20 +49,20 @@ const OUString GetPalettePath()
return aPathOpt.GetPalettePath();
}
-SwDrawModel::SwDrawModel( SwDoc* pD ) :
- FmFormModel( ::GetPalettePath(), &pD->GetAttrPool(),
- pD->GetDocShell(), true ),
- pDoc( pD )
+SwDrawModel::SwDrawModel(SwDoc *const pDoc)
+ : FmFormModel( ::GetPalettePath(), &pDoc->GetAttrPool(),
+ pDoc->GetDocShell(), true )
+ , m_pDoc( pDoc )
{
SetScaleUnit( MAP_TWIP );
SetSwapGraphics( true );
// use common InitDrawModelAndDocShell which will set the associations as needed,
// including SvxColorTableItem with WhichID SID_COLOR_TABLE
- InitDrawModelAndDocShell(pDoc ? pDoc->GetDocShell() : 0, this);
+ InitDrawModelAndDocShell(m_pDoc ? m_pDoc->GetDocShell() : 0, this);
// copy all the default values to the SdrModel
- SfxItemPool* pSdrPool = pD->GetAttrPool().GetSecondaryPool();
+ SfxItemPool* pSdrPool = pDoc->GetAttrPool().GetSecondaryPool();
if( pSdrPool )
{
const sal_uInt16 aWhichRanges[] =
@@ -72,7 +72,7 @@ SwDrawModel::SwDrawModel( SwDoc* pD ) :
0
};
- SfxItemPool& rDocPool = pD->GetAttrPool();
+ SfxItemPool& rDocPool = pDoc->GetAttrPool();
sal_uInt16 nEdtWhich, nSlotId;
const SfxPoolItem* pItem;
for( const sal_uInt16* pRangeArr = aWhichRanges;
@@ -92,9 +92,10 @@ SwDrawModel::SwDrawModel( SwDoc* pD ) :
}
}
- SetForbiddenCharsTable( pD->GetDocumentSettingManager().getForbiddenCharacterTable() );
+ SetForbiddenCharsTable( pDoc->GetDocumentSettingManager().getForbiddenCharacterTable() );
// Implementation for asian compression
- SetCharCompressType( static_cast<sal_uInt16>(pD->GetDocumentSettingManager().getCharacterCompressionType() ));
+ SetCharCompressType( static_cast<sal_uInt16>(
+ pDoc->GetDocumentSettingManager().getCharacterCompressionType()));
}
// Destructor
@@ -122,13 +123,13 @@ SdrPage* SwDrawModel::AllocPage(bool bMasterPage)
uno::Reference<embed::XStorage> SwDrawModel::GetDocumentStorage() const
{
- return pDoc->GetDocStorage();
+ return m_pDoc->GetDocStorage();
}
SdrLayerID SwDrawModel::GetControlExportLayerId( const SdrObject & ) const
{
//for versions < 5.0, there was only Hell and Heaven
- return (SdrLayerID)pDoc->getIDocumentDrawModelAccess().GetHeavenId();
+ return static_cast<SdrLayerID>(m_pDoc->getIDocumentDrawModelAccess().GetHeavenId());
}
uno::Reference< uno::XInterface > SwDrawModel::createUnoModel()