summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2017-08-15 08:18:29 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2017-08-15 09:21:08 +0200
commitec630a00212c90d5a6e57264dd3fb9c3f31a1f53 (patch)
tree5e36a6164fe885fb75dd5a8bc95a140bbbc4bcf9 /sw
parent7172a7e4a64a67d43d16c2fbdbe9015fb5bf5a0c (diff)
sw: prefix members of SwOLENode
Change-Id: I2b79ae40afad8c392f219f1798ce44b41649e5b9 Reviewed-on: https://gerrit.libreoffice.org/41163 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'sw')
-rw-r--r--sw/inc/ndole.hxx24
-rw-r--r--sw/source/core/ole/ndole.cxx72
2 files changed, 48 insertions, 48 deletions
diff --git a/sw/inc/ndole.hxx b/sw/inc/ndole.hxx
index bdab642ebb70..99a92287b635 100644
--- a/sw/inc/ndole.hxx
+++ b/sw/inc/ndole.hxx
@@ -82,9 +82,9 @@ public:
class SW_DLLPUBLIC SwOLENode: public SwNoTextNode
{
friend class SwNodes;
- mutable SwOLEObj aOLEObj;
- OUString sChartTableName; ///< with chart objects: name of referenced table.
- bool bOLESizeInvalid; /**< Should be considered at SwDoc::PrtOLENotify
+ mutable SwOLEObj maOLEObj;
+ OUString msChartTableName; ///< with chart objects: name of referenced table.
+ bool mbOLESizeInvalid; /**< Should be considered at SwDoc::PrtOLENotify
(e.g. copied). Is not persistent. */
SwEmbedObjectLink* mpObjectLink;
@@ -106,8 +106,8 @@ class SW_DLLPUBLIC SwOLENode: public SwNoTextNode
using SwNoTextNode::GetGraphic;
public:
- const SwOLEObj& GetOLEObj() const { return aOLEObj; }
- SwOLEObj& GetOLEObj() { return aOLEObj; }
+ const SwOLEObj& GetOLEObj() const { return maOLEObj; }
+ SwOLEObj& GetOLEObj() { return maOLEObj; }
virtual ~SwOLENode() override;
virtual SwContentNode *SplitContentNode( const SwPosition & ) override;
@@ -127,15 +127,15 @@ public:
bool IsInGlobalDocSection() const;
bool IsOLEObjectDeleted() const;
- bool IsOLESizeInvalid() const { return bOLESizeInvalid; }
- void SetOLESizeInvalid( bool b ){ bOLESizeInvalid = b; }
+ bool IsOLESizeInvalid() const { return mbOLESizeInvalid; }
+ void SetOLESizeInvalid( bool b ){ mbOLESizeInvalid = b; }
- sal_Int64 GetAspect() const { return aOLEObj.GetObject().GetViewAspect(); }
- void SetAspect( sal_Int64 nAspect) { aOLEObj.GetObject().SetViewAspect( nAspect ); }
+ sal_Int64 GetAspect() const { return maOLEObj.GetObject().GetViewAspect(); }
+ void SetAspect( sal_Int64 nAspect) { maOLEObj.GetObject().SetViewAspect( nAspect ); }
/** Remove OLE-object from "memory".
inline void Unload() { aOLEObj.Unload(); } */
- OUString GetDescription() const { return aOLEObj.GetDescription(); }
+ OUString GetDescription() const { return maOLEObj.GetDescription(); }
bool UpdateLinkURL_Impl();
void BreakFileLink_Impl();
@@ -146,8 +146,8 @@ public:
// #i99665#
bool IsChart() const;
- const OUString& GetChartTableName() const { return sChartTableName; }
- void SetChartTableName( const OUString& rNm ) { sChartTableName = rNm; }
+ const OUString& GetChartTableName() const { return msChartTableName; }
+ void SetChartTableName( const OUString& rNm ) { msChartTableName = rNm; }
};
/// Inline methods from Node.hxx
diff --git a/sw/source/core/ole/ndole.cxx b/sw/source/core/ole/ndole.cxx
index 0bb33a83a6fe..0ee087f3f776 100644
--- a/sw/source/core/ole/ndole.cxx
+++ b/sw/source/core/ole/ndole.cxx
@@ -210,11 +210,11 @@ SwOLENode::SwOLENode( const SwNodeIndex &rWhere,
SwGrfFormatColl *pGrfColl,
SwAttrSet const * pAutoAttr ) :
SwNoTextNode( rWhere, SwNodeType::Ole, pGrfColl, pAutoAttr ),
- aOLEObj( xObj ),
- bOLESizeInvalid( false ),
+ maOLEObj( xObj ),
+ mbOLESizeInvalid( false ),
mpObjectLink( nullptr )
{
- aOLEObj.SetNode( this );
+ maOLEObj.SetNode( this );
}
SwOLENode::SwOLENode( const SwNodeIndex &rWhere,
@@ -223,11 +223,11 @@ SwOLENode::SwOLENode( const SwNodeIndex &rWhere,
SwGrfFormatColl *pGrfColl,
SwAttrSet const * pAutoAttr ) :
SwNoTextNode( rWhere, SwNodeType::Ole, pGrfColl, pAutoAttr ),
- aOLEObj( rString, nAspect ),
- bOLESizeInvalid( false ),
+ maOLEObj( rString, nAspect ),
+ mbOLESizeInvalid( false ),
mpObjectLink( nullptr )
{
- aOLEObj.SetNode( this );
+ maOLEObj.SetNode( this );
}
SwOLENode::~SwOLENode()
@@ -237,8 +237,8 @@ SwOLENode::~SwOLENode()
const Graphic* SwOLENode::GetGraphic()
{
- if ( aOLEObj.GetOleRef().is() )
- return aOLEObj.xOLERef.GetGraphic();
+ if ( maOLEObj.GetOleRef().is() )
+ return maOLEObj.xOLERef.GetGraphic();
return nullptr;
}
@@ -254,8 +254,8 @@ SwContentNode *SwOLENode::SplitContentNode( const SwPosition & )
*/
bool SwOLENode::RestorePersistentData()
{
- OSL_ENSURE( aOLEObj.GetOleRef().is(), "No object to restore!" );
- if ( aOLEObj.xOLERef.is() )
+ OSL_ENSURE( maOLEObj.GetOleRef().is(), "No object to restore!" );
+ if ( maOLEObj.xOLERef.is() )
{
// If a SvPersist instance already exists, we use it
SfxObjectShell* p = GetDoc()->GetPersist();
@@ -268,13 +268,13 @@ bool SwOLENode::RestorePersistentData()
p->DoInitNew();
}
- uno::Reference < container::XChild > xChild( aOLEObj.xOLERef.GetObject(), uno::UNO_QUERY );
+ uno::Reference < container::XChild > xChild( maOLEObj.xOLERef.GetObject(), uno::UNO_QUERY );
if ( xChild.is() )
xChild->setParent( p->GetModel() );
- OSL_ENSURE( !aOLEObj.aName.isEmpty(), "No object name!" );
+ OSL_ENSURE( !maOLEObj.aName.isEmpty(), "No object name!" );
OUString aObjName;
- if ( !p->GetEmbeddedObjectContainer().InsertEmbeddedObject( aOLEObj.xOLERef.GetObject(), aObjName ) )
+ if ( !p->GetEmbeddedObjectContainer().InsertEmbeddedObject( maOLEObj.xOLERef.GetObject(), aObjName ) )
{
if ( xChild.is() )
xChild->setParent( nullptr );
@@ -282,8 +282,8 @@ bool SwOLENode::RestorePersistentData()
}
else
{
- aOLEObj.aName = aObjName;
- aOLEObj.xOLERef.AssignToContainer( &p->GetEmbeddedObjectContainer(), aObjName );
+ maOLEObj.aName = aObjName;
+ maOLEObj.xOLERef.AssignToContainer( &p->GetEmbeddedObjectContainer(), aObjName );
CheckFileLink_Impl();
}
}
@@ -296,9 +296,9 @@ bool SwOLENode::RestorePersistentData()
*/
bool SwOLENode::SavePersistentData()
{
- if( aOLEObj.xOLERef.is() )
+ if( maOLEObj.xOLERef.is() )
{
- comphelper::EmbeddedObjectContainer* pCnt = aOLEObj.xOLERef.GetContainer();
+ comphelper::EmbeddedObjectContainer* pCnt = maOLEObj.xOLERef.GetContainer();
#if OSL_DEBUG_LEVEL > 0
SfxObjectShell* p = GetDoc()->GetPersist();
@@ -310,9 +310,9 @@ bool SwOLENode::SavePersistentData()
}
#endif
- if ( pCnt && pCnt->HasEmbeddedObject( aOLEObj.aName ) )
+ if ( pCnt && pCnt->HasEmbeddedObject( maOLEObj.aName ) )
{
- uno::Reference < container::XChild > xChild( aOLEObj.xOLERef.GetObject(), uno::UNO_QUERY );
+ uno::Reference < container::XChild > xChild( maOLEObj.xOLERef.GetObject(), uno::UNO_QUERY );
if ( xChild.is() )
xChild->setParent( nullptr );
@@ -334,7 +334,7 @@ bool SwOLENode::SavePersistentData()
*/
bool bKeepObjectToTempStorage = true;
uno::Reference < embed::XEmbeddedObject > xIP = GetOLEObj().GetOleRef();
- if (IsChart() && !sChartTableName.isEmpty()
+ if (IsChart() && !msChartTableName.isEmpty()
&& svt::EmbeddedObjectRef::TryRunningState(xIP))
{
uno::Reference< chart2::XChartDocument > xChart( xIP->getComponent(), UNO_QUERY );
@@ -344,15 +344,15 @@ bool SwOLENode::SavePersistentData()
}
}
- pCnt->RemoveEmbeddedObject( aOLEObj.aName, bKeepObjectToTempStorage );
+ pCnt->RemoveEmbeddedObject( maOLEObj.aName, bKeepObjectToTempStorage );
// TODO/LATER: aOLEObj.aName has no meaning here, since the undo container contains the object
// by different name, in future it might makes sense that the name is transported here.
- aOLEObj.xOLERef.AssignToContainer( nullptr, aOLEObj.aName );
+ maOLEObj.xOLERef.AssignToContainer( nullptr, maOLEObj.aName );
try
{
// "unload" object
- aOLEObj.xOLERef->changeState( embed::EmbedStates::LOADED );
+ maOLEObj.xOLERef->changeState( embed::EmbedStates::LOADED );
}
catch (const uno::Exception&)
{
@@ -411,7 +411,7 @@ SwOLENode * SwNodes::MakeOLENode( const SwNodeIndex & rWhere,
Size SwOLENode::GetTwipSize() const
{
MapMode aMapMode( MapUnit::MapTwip );
- return const_cast<SwOLENode*>(this)->aOLEObj.GetObject().GetSize( &aMapMode );
+ return const_cast<SwOLENode*>(this)->maOLEObj.GetObject().GetSize( &aMapMode );
}
SwContentNode* SwOLENode::MakeCopy( SwDoc* pDoc, const SwNodeIndex& rIdx ) const
@@ -434,7 +434,7 @@ SwContentNode* SwOLENode::MakeCopy( SwDoc* pDoc, const SwNodeIndex& rIdx ) const
pPersistShell->GetEmbeddedObjectContainer().CopyAndGetEmbeddedObject(
pSrc->GetEmbeddedObjectContainer(),
- pSrc->GetEmbeddedObjectContainer().GetEmbeddedObject( aOLEObj.aName ),
+ pSrc->GetEmbeddedObjectContainer().GetEmbeddedObject( maOLEObj.aName ),
aNewName,
pSrc->getDocumentBaseURL(),
pPersistShell->getDocumentBaseURL());
@@ -491,12 +491,12 @@ bool SwOLENode::IsInGlobalDocSection() const
bool SwOLENode::IsOLEObjectDeleted() const
{
- if( aOLEObj.xOLERef.is() )
+ if( maOLEObj.xOLERef.is() )
{
SfxObjectShell* p = GetDoc()->GetPersist();
if( p ) // Must be there
{
- return !p->GetEmbeddedObjectContainer().HasEmbeddedObject( aOLEObj.aName );
+ return !p->GetEmbeddedObjectContainer().HasEmbeddedObject( maOLEObj.aName );
}
}
return false;
@@ -504,8 +504,8 @@ bool SwOLENode::IsOLEObjectDeleted() const
void SwOLENode::GetNewReplacement()
{
- if ( aOLEObj.xOLERef.is() )
- aOLEObj.xOLERef.UpdateReplacement();
+ if ( maOLEObj.xOLERef.is() )
+ maOLEObj.xOLERef.UpdateReplacement();
}
bool SwOLENode::UpdateLinkURL_Impl()
@@ -518,10 +518,10 @@ bool SwOLENode::UpdateLinkURL_Impl()
sfx2::LinkManager::GetDisplayNames( mpObjectLink, nullptr, &aNewLinkURL );
if ( !aNewLinkURL.equalsIgnoreAsciiCase( maLinkURL ) )
{
- if ( !aOLEObj.xOLERef.is() )
- aOLEObj.GetOleRef();
+ if ( !maOLEObj.xOLERef.is() )
+ maOLEObj.GetOleRef();
- uno::Reference< embed::XEmbeddedObject > xObj = aOLEObj.xOLERef.GetObject();
+ uno::Reference< embed::XEmbeddedObject > xObj = maOLEObj.xOLERef.GetObject();
uno::Reference< embed::XCommonEmbedPersist > xPersObj( xObj, uno::UNO_QUERY );
OSL_ENSURE( xPersObj.is(), "The object must exist!" );
if ( xPersObj.is() )
@@ -570,8 +570,8 @@ void SwOLENode::BreakFileLink_Impl()
{
try
{
- uno::Reference< embed::XLinkageSupport > xLinkSupport( aOLEObj.GetOleRef(), uno::UNO_QUERY_THROW );
- xLinkSupport->breakLink( xStorage, aOLEObj.GetCurrentPersistName() );
+ uno::Reference< embed::XLinkageSupport > xLinkSupport( maOLEObj.GetOleRef(), uno::UNO_QUERY_THROW );
+ xLinkSupport->breakLink( xStorage, maOLEObj.GetCurrentPersistName() );
DisconnectFileLink_Impl();
maLinkURL.clear();
}
@@ -593,11 +593,11 @@ void SwOLENode::DisconnectFileLink_Impl()
void SwOLENode::CheckFileLink_Impl()
{
- if ( aOLEObj.xOLERef.GetObject().is() && !mpObjectLink )
+ if ( maOLEObj.xOLERef.GetObject().is() && !mpObjectLink )
{
try
{
- uno::Reference< embed::XLinkageSupport > xLinkSupport( aOLEObj.xOLERef.GetObject(), uno::UNO_QUERY_THROW );
+ uno::Reference< embed::XLinkageSupport > xLinkSupport( maOLEObj.xOLERef.GetObject(), uno::UNO_QUERY_THROW );
if ( xLinkSupport->isLink() )
{
const OUString aLinkURL = xLinkSupport->getLinkURL();