summaryrefslogtreecommitdiff
path: root/sw/source/core/swg
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2020-12-14 09:15:19 +0100
committerMiklos Vajna <vmiklos@collabora.com>2020-12-14 09:51:22 +0100
commit9a2a4bc5ed340ba187c8e27db5c8477c990c93af (patch)
treee7d7803499c031f39467cbba1a3b1f28386f696d /sw/source/core/swg
parent298663c36bdb64cf05bc80abb7d212ed1091b6a9 (diff)
sw: prefix members of SwXMLBlockListContext, SwXMLTextBlockBodyContext, ...
... SwXMLTextBlockDocumentContext and SwXMLTextBlockExport See tdf#94879 for motivation. Change-Id: I18eeb2ef5905a1117d5915d403278cfa66dfcc20 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107671 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Jenkins
Diffstat (limited to 'sw/source/core/swg')
-rw-r--r--sw/source/core/swg/SwXMLBlockExport.cxx4
-rw-r--r--sw/source/core/swg/SwXMLBlockImport.cxx35
2 files changed, 18 insertions, 21 deletions
diff --git a/sw/source/core/swg/SwXMLBlockExport.cxx b/sw/source/core/swg/SwXMLBlockExport.cxx
index 19ba63eaeac7..c195c255476a 100644
--- a/sw/source/core/swg/SwXMLBlockExport.cxx
+++ b/sw/source/core/swg/SwXMLBlockExport.cxx
@@ -83,7 +83,7 @@ SwXMLTextBlockExport::SwXMLTextBlockExport(
const OUString &rFileName,
uno::Reference< xml::sax::XDocumentHandler> const &rHandler)
: SvXMLExport( rContext, "", rFileName, util::MeasureUnit::CM, rHandler ),
- rBlockList(rBlocks)
+ m_rBlockList(rBlocks)
{
GetNamespaceMap_().Add( GetXMLToken ( XML_NP_BLOCK_LIST ),
GetXMLToken ( XML_N_BLOCK_LIST ),
@@ -113,7 +113,7 @@ void SwXMLTextBlockExport::exportDoc(const OUString &rText)
GetNamespaceMap_().GetNameByKey ( XML_NAMESPACE_OFFICE ) );
AddAttribute( XML_NAMESPACE_BLOCKLIST,
XML_LIST_NAME,
- rBlockList.GetName());
+ m_rBlockList.GetName());
{
SvXMLElementExport aDocument (*this, XML_NAMESPACE_OFFICE, XML_DOCUMENT, true, true);
{
diff --git a/sw/source/core/swg/SwXMLBlockImport.cxx b/sw/source/core/swg/SwXMLBlockImport.cxx
index c0358b246773..8c94f68cb4c1 100644
--- a/sw/source/core/swg/SwXMLBlockImport.cxx
+++ b/sw/source/core/swg/SwXMLBlockImport.cxx
@@ -48,7 +48,7 @@ namespace {
class SwXMLBlockListContext : public SvXMLImportContext
{
private:
- SwXMLBlockListImport & rLocalRef;
+ SwXMLBlockListImport& m_rLocalRef;
public:
SwXMLBlockListContext( SwXMLBlockListImport& rImport,
@@ -68,7 +68,7 @@ public:
class SwXMLTextBlockDocumentContext : public SvXMLImportContext
{
private:
- SwXMLTextBlockImport & rLocalRef;
+ SwXMLTextBlockImport& m_rLocalRef;
public:
SwXMLTextBlockDocumentContext( SwXMLTextBlockImport& rImport );
@@ -80,7 +80,7 @@ public:
class SwXMLTextBlockBodyContext : public SvXMLImportContext
{
private:
- SwXMLTextBlockImport & rLocalRef;
+ SwXMLTextBlockImport& m_rLocalRef;
public:
SwXMLTextBlockBodyContext( SwXMLTextBlockImport& rImport );
@@ -170,10 +170,9 @@ sal_Int32 SwXMLBlockListTokenHandler::getTokenDirect( const char *pTag, sal_Int3
}
SwXMLBlockListContext::SwXMLBlockListContext(
- SwXMLBlockListImport& rImport,
- const uno::Reference< xml::sax::XFastAttributeList > & xAttrList ) :
- SvXMLImportContext( rImport ),
- rLocalRef( rImport )
+ SwXMLBlockListImport& rImport, const uno::Reference<xml::sax::XFastAttributeList>& xAttrList)
+ : SvXMLImportContext(rImport)
+ , m_rLocalRef(rImport)
{
if( xAttrList.is() && xAttrList->hasAttribute( SwXMLBlockListToken::LIST_NAME ) )
rImport.getBlockList().SetName( xAttrList->getValue( SwXMLBlockListToken::LIST_NAME ) );
@@ -184,7 +183,7 @@ SwXMLBlockListContext::createFastChildContext( sal_Int32 Element,
const uno::Reference< xml::sax::XFastAttributeList > & xAttrList )
{
if ( Element == SwXMLBlockListToken::BLOCK )
- return new SwXMLBlockContext( rLocalRef, xAttrList );
+ return new SwXMLBlockContext(m_rLocalRef, xAttrList);
return nullptr;
}
@@ -216,10 +215,9 @@ SwXMLBlockContext::SwXMLBlockContext(
rImport.getBlockList().AddName( aShort, aLong, aPackageName, bTextOnly);
}
-SwXMLTextBlockDocumentContext::SwXMLTextBlockDocumentContext(
- SwXMLTextBlockImport& rImport ) :
- SvXMLImportContext( rImport ),
- rLocalRef(rImport)
+SwXMLTextBlockDocumentContext::SwXMLTextBlockDocumentContext(SwXMLTextBlockImport& rImport)
+ : SvXMLImportContext(rImport)
+ , m_rLocalRef(rImport)
{
}
@@ -228,7 +226,7 @@ SwXMLTextBlockDocumentContext::createFastChildContext( sal_Int32 Element,
const uno::Reference< xml::sax::XFastAttributeList > & /*xAttrList*/ )
{
if ( Element == SwXMLTextBlockToken::OFFICE_BODY )
- return new SwXMLTextBlockBodyContext( rLocalRef );
+ return new SwXMLTextBlockBodyContext(m_rLocalRef);
return nullptr;
}
@@ -248,10 +246,9 @@ SwXMLTextBlockTextContext::createFastChildContext( sal_Int32 Element,
return nullptr;
}
-SwXMLTextBlockBodyContext::SwXMLTextBlockBodyContext(
- SwXMLTextBlockImport& rImport ) :
- SvXMLImportContext( rImport ),
- rLocalRef(rImport)
+SwXMLTextBlockBodyContext::SwXMLTextBlockBodyContext(SwXMLTextBlockImport& rImport)
+ : SvXMLImportContext(rImport)
+ , m_rLocalRef(rImport)
{
}
@@ -260,9 +257,9 @@ SwXMLTextBlockBodyContext::createFastChildContext( sal_Int32 Element,
const uno::Reference< xml::sax::XFastAttributeList > & /*xAttrList*/ )
{
if( Element == SwXMLTextBlockToken::OFFICE_TEXT )
- return new SwXMLTextBlockTextContext( rLocalRef );
+ return new SwXMLTextBlockTextContext(m_rLocalRef);
else if( Element == SwXMLTextBlockToken::TEXT_P )
- return new SwXMLTextBlockParContext( rLocalRef );
+ return new SwXMLTextBlockParContext(m_rLocalRef);
return nullptr;
}