summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2017-09-05 00:27:35 +0300
committerTor Lillqvist <tml@collabora.com>2017-09-05 01:13:52 +0300
commit564ec47db30e888faa88bd9bc5ef4c09a501944d (patch)
treec26618377cc9ade3733056bc7794fa3fe1135655 /sc
parent6c68f38bc28bb55a4f0d53b8f38957516d3935d1 (diff)
Prefix one more member of ScDocument: xPoolHelper
Change-Id: Id1a216e909d5c0a6bafa80d1e40613fb38ceb1ef
Diffstat (limited to 'sc')
-rw-r--r--sc/inc/document.hxx3
-rw-r--r--sc/source/core/data/documen2.cxx16
-rw-r--r--sc/source/core/data/documen3.cxx8
-rw-r--r--sc/source/core/data/documen4.cxx4
-rw-r--r--sc/source/core/data/documen6.cxx4
-rw-r--r--sc/source/core/data/documen8.cxx6
-rw-r--r--sc/source/core/data/documen9.cxx10
-rw-r--r--sc/source/core/data/document.cxx28
-rw-r--r--sc/source/core/data/document10.cxx2
-rw-r--r--sc/source/core/data/fillinfo.cxx4
10 files changed, 42 insertions, 43 deletions
diff --git a/sc/inc/document.hxx b/sc/inc/document.hxx
index 6e91927719a4..b28361101dd2 100644
--- a/sc/inc/document.hxx
+++ b/sc/inc/document.hxx
@@ -308,8 +308,7 @@ public:
};
private:
-
- rtl::Reference<ScPoolHelper> xPoolHelper;
+ rtl::Reference<ScPoolHelper> mxPoolHelper;
std::shared_ptr<svl::SharedStringPool> mpCellStringPool;
std::shared_ptr<sc::FormulaGroupContext> mpFormulaGroupCxt;
diff --git a/sc/source/core/data/documen2.cxx b/sc/source/core/data/documen2.cxx
index 79ffe638ceb8..91245e509938 100644
--- a/sc/source/core/data/documen2.cxx
+++ b/sc/source/core/data/documen2.cxx
@@ -228,7 +228,7 @@ ScDocument::ScDocument( ScDocumentMode eMode, SfxObjectShell* pDocShell ) :
if ( eMode == SCDOCMODE_DOCUMENT )
{
- xPoolHelper = new ScPoolHelper( this );
+ mxPoolHelper = new ScPoolHelper( this );
pBASM = new ScBroadcastAreaSlotMachine( this );
pChartListenerCollection = new ScChartListenerCollection( this );
@@ -443,12 +443,12 @@ ScDocument::~ScDocument()
delete pDPCollection;
delete mpAnonymousDBData;
- // delete the EditEngine before destroying the xPoolHelper
+ // delete the EditEngine before destroying the mxPoolHelper
delete pCacheFieldEditEngine;
- if ( xPoolHelper.is() && !bIsClip && !bIsUndo)
- xPoolHelper->SourceDocumentGone();
- xPoolHelper.clear();
+ if ( mxPoolHelper.is() && !bIsClip && !bIsUndo)
+ mxPoolHelper->SourceDocumentGone();
+ mxPoolHelper.clear();
delete pScriptTypeData;
delete pRecursionHelper;
@@ -500,17 +500,17 @@ void ScDocument::InitClipPtrs( ScDocument* pSourceDoc )
SvNumberFormatter* ScDocument::GetFormatTable() const
{
- return xPoolHelper->GetFormTable();
+ return mxPoolHelper->GetFormTable();
}
SfxItemPool* ScDocument::GetEditPool() const
{
- return xPoolHelper->GetEditPool();
+ return mxPoolHelper->GetEditPool();
}
SfxItemPool* ScDocument::GetEnginePool() const
{
- return xPoolHelper->GetEnginePool();
+ return mxPoolHelper->GetEnginePool();
}
ScFieldEditEngine& ScDocument::GetEditEngine()
diff --git a/sc/source/core/data/documen3.cxx b/sc/source/core/data/documen3.cxx
index 6bd695c00018..df46daa52e5d 100644
--- a/sc/source/core/data/documen3.cxx
+++ b/sc/source/core/data/documen3.cxx
@@ -1894,7 +1894,7 @@ void ScDocument::SetDocOptions( const ScDocOptions& rOpt )
assert(pDocOptions && "No DocOptions! :-(");
*pDocOptions = rOpt;
- xPoolHelper->SetFormTableOpt(rOpt);
+ mxPoolHelper->SetFormTableOpt(rOpt);
}
const ScViewOptions& ScDocument::GetViewOptions() const
@@ -1921,9 +1921,9 @@ void ScDocument::SetLanguage( LanguageType eLatin, LanguageType eCjk, LanguageTy
eLanguage = eLatin;
eCjkLanguage = eCjk;
eCtlLanguage = eCtl;
- if ( xPoolHelper.is() )
+ if ( mxPoolHelper.is() )
{
- ScDocumentPool* pPool = xPoolHelper->GetDocPool();
+ ScDocumentPool* pPool = mxPoolHelper->GetDocPool();
pPool->SetPoolDefaultItem( SvxLanguageItem( eLanguage, ATTR_FONT_LANGUAGE ) );
pPool->SetPoolDefaultItem( SvxLanguageItem( eCjkLanguage, ATTR_CJK_FONT_LANGUAGE ) );
pPool->SetPoolDefaultItem( SvxLanguageItem( eCtlLanguage, ATTR_CTL_FONT_LANGUAGE ) );
@@ -2048,7 +2048,7 @@ void ScDocument::RemoveMerge( SCCOL nCol, SCROW nRow, SCTAB nTab )
RemoveFlagsTab( nCol, nRow, nEndCol, nEndRow, nTab, ScMF::Hor | ScMF::Ver );
const ScMergeAttr* pDefAttr = static_cast<const ScMergeAttr*>(
- &xPoolHelper->GetDocPool()->GetDefaultItem( ATTR_MERGE ));
+ &mxPoolHelper->GetDocPool()->GetDefaultItem( ATTR_MERGE ));
ApplyAttr( nCol, nRow, nTab, *pDefAttr );
}
diff --git a/sc/source/core/data/documen4.cxx b/sc/source/core/data/documen4.cxx
index 2941198f426d..b4c448133f6e 100644
--- a/sc/source/core/data/documen4.cxx
+++ b/sc/source/core/data/documen4.cxx
@@ -784,7 +784,7 @@ const SfxPoolItem* ScDocument::GetEffItem(
OUString aStyle = pForm->GetCellStyle(aCell, aPos);
if (!aStyle.isEmpty())
{
- SfxStyleSheetBase* pStyleSheet = xPoolHelper->GetStylePool()->Find(
+ SfxStyleSheetBase* pStyleSheet = mxPoolHelper->GetStylePool()->Find(
aStyle, SfxStyleFamily::Para );
if ( pStyleSheet && pStyleSheet->GetItemSet().GetItemState(
nWhich, true, &pItem ) == SfxItemState::SET )
@@ -830,7 +830,7 @@ const SfxItemSet* ScDocument::GetCondResult(
if (!aStyle.isEmpty())
{
SfxStyleSheetBase* pStyleSheet =
- xPoolHelper->GetStylePool()->Find(aStyle, SfxStyleFamily::Para);
+ mxPoolHelper->GetStylePool()->Find(aStyle, SfxStyleFamily::Para);
if (pStyleSheet)
return &pStyleSheet->GetItemSet();
diff --git a/sc/source/core/data/documen6.cxx b/sc/source/core/data/documen6.cxx
index 03dee37a6aac..cfc45c4c43da 100644
--- a/sc/source/core/data/documen6.cxx
+++ b/sc/source/core/data/documen6.cxx
@@ -117,7 +117,7 @@ SvtScriptType ScDocument::GetCellScriptType( const ScAddress& rPos, sal_uLong nN
return nStored; // use stored value
Color* pColor;
- OUString aStr = ScCellFormat::GetString(*this, rPos, nNumberFormat, &pColor, *xPoolHelper->GetFormTable());
+ OUString aStr = ScCellFormat::GetString(*this, rPos, nNumberFormat, &pColor, *mxPoolHelper->GetFormTable());
SvtScriptType nRet = GetStringScriptType( aStr );
@@ -143,7 +143,7 @@ SvtScriptType ScDocument::GetScriptType( SCCOL nCol, SCROW nRow, SCTAB nTab )
if ( !static_cast<const ScCondFormatItem&>(pPattern->GetItem(ATTR_CONDITIONAL)).GetCondFormatData().empty() )
pCondSet = GetCondResult( nCol, nRow, nTab );
- sal_uLong nFormat = pPattern->GetNumberFormat( xPoolHelper->GetFormTable(), pCondSet );
+ sal_uLong nFormat = pPattern->GetNumberFormat( mxPoolHelper->GetFormTable(), pCondSet );
return GetCellScriptType(aPos, nFormat);
}
diff --git a/sc/source/core/data/documen8.cxx b/sc/source/core/data/documen8.cxx
index dcf506dcc109..32680121a07d 100644
--- a/sc/source/core/data/documen8.cxx
+++ b/sc/source/core/data/documen8.cxx
@@ -120,7 +120,7 @@ SfxPrinter* ScDocument::GetPrinter(bool bCreateIfNotExist)
if ( !pPrinter && bCreateIfNotExist )
{
auto pSet =
- o3tl::make_unique<SfxItemSet>( *xPoolHelper->GetDocPool(),
+ o3tl::make_unique<SfxItemSet>( *mxPoolHelper->GetDocPool(),
svl::Items<SID_PRINTER_NOTFOUND_WARN, SID_PRINTER_NOTFOUND_WARN,
SID_PRINTER_CHANGESTODOC, SID_PRINTER_CHANGESTODOC,
SID_PRINT_SELECTEDSHEET, SID_PRINT_SELECTEDSHEET,
@@ -298,7 +298,7 @@ void ScDocument::CopyStdStylesFrom( const ScDocument* pSrcDoc )
{
// number format exchange list has to be handled here, too
NumFmtMergeHandler aNumFmtMergeHdl(this, pSrcDoc);
- xPoolHelper->GetStylePool()->CopyStdStylesFrom( pSrcDoc->xPoolHelper->GetStylePool() );
+ mxPoolHelper->GetStylePool()->CopyStdStylesFrom( pSrcDoc->mxPoolHelper->GetStylePool() );
}
void ScDocument::InvalidateTextWidth( const OUString& rStyleName )
@@ -366,7 +366,7 @@ sal_uInt8 ScDocument::GetEditTextDirection(SCTAB nTab) const
EEHorizontalTextDirection eRet = EE_HTEXTDIR_DEFAULT;
OUString aStyleName = GetPageStyle( nTab );
- SfxStyleSheetBase* pStyle = xPoolHelper->GetStylePool()->Find( aStyleName, SfxStyleFamily::Page );
+ SfxStyleSheetBase* pStyle = mxPoolHelper->GetStylePool()->Find( aStyleName, SfxStyleFamily::Page );
if ( pStyle )
{
SfxItemSet& rStyleSet = pStyle->GetItemSet();
diff --git a/sc/source/core/data/documen9.cxx b/sc/source/core/data/documen9.cxx
index b62441e8037b..7ba12255a32e 100644
--- a/sc/source/core/data/documen9.cxx
+++ b/sc/source/core/data/documen9.cxx
@@ -127,9 +127,9 @@ void ScDocument::InitDrawLayer( SfxObjectShell* pDocShell )
// in SfxItemSets using the Calc SfxItemPool. This is e.g. needed when
// the PageStyle using SvxBrushItem is visualized and will be potentially
// used more intense in the future
- if (xPoolHelper.is() && !IsClipOrUndo()) //Using IsClipOrUndo as a proxy for SharePooledResources called
+ if (mxPoolHelper.is() && !IsClipOrUndo()) //Using IsClipOrUndo as a proxy for SharePooledResources called
{
- ScDocumentPool* pLocalPool = xPoolHelper->GetDocPool();
+ ScDocumentPool* pLocalPool = mxPoolHelper->GetDocPool();
if (pLocalPool)
{
@@ -237,9 +237,9 @@ void ScDocument::DeleteDrawLayer()
{
// remove DrawingLayer's SfxItemPool from Calc's SfxItemPool where
// it is registered as secondary pool
- if (xPoolHelper.is() && !IsClipOrUndo()) //Using IsClipOrUndo as a proxy for SharePooledResources called
+ if (mxPoolHelper.is() && !IsClipOrUndo()) //Using IsClipOrUndo as a proxy for SharePooledResources called
{
- ScDocumentPool* pLocalPool = xPoolHelper->GetDocPool();
+ ScDocumentPool* pLocalPool = mxPoolHelper->GetDocPool();
if(pLocalPool && pLocalPool->GetSecondaryPool())
{
@@ -566,7 +566,7 @@ void ScDocument::UpdateFontCharSet()
sal_uInt32 nCount,i;
SvxFontItem* pItem;
- ScDocumentPool* pPool = xPoolHelper->GetDocPool();
+ ScDocumentPool* pPool = mxPoolHelper->GetDocPool();
nCount = pPool->GetItemCount2(ATTR_FONT);
for (i=0; i<nCount; i++)
{
diff --git a/sc/source/core/data/document.cxx b/sc/source/core/data/document.cxx
index 572374180f33..239a766629f4 100644
--- a/sc/source/core/data/document.cxx
+++ b/sc/source/core/data/document.cxx
@@ -2532,8 +2532,8 @@ ScColumnsRange ScDocument::GetColumnsRange( SCTAB nTab, SCCOL nColBegin, SCCOL n
void ScDocument::MergeNumberFormatter(const ScDocument* pSrcDoc)
{
- SvNumberFormatter* pThisFormatter = xPoolHelper->GetFormTable();
- SvNumberFormatter* pOtherFormatter = pSrcDoc->xPoolHelper->GetFormTable();
+ SvNumberFormatter* pThisFormatter = mxPoolHelper->GetFormTable();
+ SvNumberFormatter* pOtherFormatter = pSrcDoc->mxPoolHelper->GetFormTable();
if (pOtherFormatter && pOtherFormatter != pThisFormatter)
{
SvNumberFormatterIndexTable* pExchangeList =
@@ -2562,8 +2562,8 @@ bool ScDocument::IsClipboardSource() const
return false;
ScDocument* pClipDoc = ScModule::GetClipDoc();
- return pClipDoc && pClipDoc->bIsClip && pClipDoc->xPoolHelper.is() && xPoolHelper.is() &&
- xPoolHelper->GetDocPool() == pClipDoc->xPoolHelper->GetDocPool();
+ return pClipDoc && pClipDoc->bIsClip && pClipDoc->mxPoolHelper.is() && mxPoolHelper.is() &&
+ mxPoolHelper->GetDocPool() == pClipDoc->mxPoolHelper->GetDocPool();
}
void ScDocument::StartListeningFromClip( SCCOL nCol1, SCROW nRow1,
@@ -4696,7 +4696,7 @@ const SfxPoolItem* ScDocument::GetAttr( SCCOL nCol, SCROW nRow, SCTAB nTab, sal_
OSL_FAIL( "Attribut Null" );
}
}
- return &xPoolHelper->GetDocPool()->GetDefaultItem( nWhich );
+ return &mxPoolHelper->GetDocPool()->GetDefaultItem( nWhich );
}
const SfxPoolItem* ScDocument::GetAttr( const ScAddress& rPos, sal_uInt16 nWhich ) const
@@ -4928,7 +4928,7 @@ bool ScDocument::IsStyleSheetUsed( const ScStyleSheet& rStyle ) const
{
if ( bStyleSheetUsageInvalid || rStyle.GetUsage() == ScStyleSheet::UNKNOWN )
{
- SfxStyleSheetIterator aIter( xPoolHelper->GetStylePool(),
+ SfxStyleSheetIterator aIter( mxPoolHelper->GetStylePool(),
SfxStyleFamily::Para );
for ( const SfxStyleSheetBase* pStyle = aIter.First(); pStyle;
pStyle = aIter.Next() )
@@ -5112,7 +5112,7 @@ bool ScDocument::HasAttrib( SCCOL nCol1, SCROW nRow1, SCTAB nTab1,
// Is attribute used in document?
// (as in fillinfo)
- ScDocumentPool* pPool = xPoolHelper->GetDocPool();
+ ScDocumentPool* pPool = mxPoolHelper->GetDocPool();
bool bAnyItem = false;
sal_uInt32 nRotCount = pPool->GetItemCount2( ATTR_ROTATE_VALUE );
@@ -5819,7 +5819,7 @@ void ScDocument::ApplySelectionPattern( const ScPatternAttr& rAttr, const ScMark
}
else
{
- SfxItemPoolCache aCache( xPoolHelper->GetDocPool(), pSet );
+ SfxItemPoolCache aCache( mxPoolHelper->GetDocPool(), pSet );
SCTAB nMax = static_cast<SCTAB>(maTabs.size());
ScMarkData::const_iterator itr = rMark.begin(), itrEnd = rMark.end();
for (; itr != itrEnd && *itr < nMax; ++itr)
@@ -5973,17 +5973,17 @@ void ScDocument::DeleteSelectionTab(
ScPatternAttr* ScDocument::GetDefPattern() const
{
- return const_cast<ScPatternAttr*>(static_cast<const ScPatternAttr*>(&xPoolHelper->GetDocPool()->GetDefaultItem(ATTR_PATTERN)));
+ return const_cast<ScPatternAttr*>(static_cast<const ScPatternAttr*>(&mxPoolHelper->GetDocPool()->GetDefaultItem(ATTR_PATTERN)));
}
ScDocumentPool* ScDocument::GetPool()
{
- return xPoolHelper->GetDocPool();
+ return mxPoolHelper->GetDocPool();
}
ScStyleSheetPool* ScDocument::GetStyleSheetPool() const
{
- return xPoolHelper->GetStylePool();
+ return mxPoolHelper->GetStylePool();
}
SCSIZE ScDocument::GetEmptyLinesInBlock( SCCOL nStartCol, SCROW nStartRow, SCTAB nStartTab,
@@ -6026,7 +6026,7 @@ void ScDocument::GetNextPos( SCCOL& rCol, SCROW& rRow, SCTAB nTab, SCCOL nMovX,
void ScDocument::UpdStlShtPtrsFrmNms()
{
- ScDocumentPool* pPool = xPoolHelper->GetDocPool();
+ ScDocumentPool* pPool = mxPoolHelper->GetDocPool();
sal_uInt32 nCount = pPool->GetItemCount2(ATTR_PATTERN);
for (sal_uInt32 i=0; i<nCount; i++)
@@ -6040,7 +6040,7 @@ void ScDocument::UpdStlShtPtrsFrmNms()
void ScDocument::StylesToNames()
{
- ScDocumentPool* pPool = xPoolHelper->GetDocPool();
+ ScDocumentPool* pPool = mxPoolHelper->GetDocPool();
sal_uInt32 nCount = pPool->GetItemCount2(ATTR_PATTERN);
for (sal_uInt32 i=0; i<nCount; i++)
@@ -6272,7 +6272,7 @@ bool ScDocument::NeedPageResetAfterTab( SCTAB nTab ) const
OUString aNew = maTabs[nTab+1]->GetPageStyle();
if ( aNew != maTabs[nTab]->GetPageStyle() )
{
- SfxStyleSheetBase* pStyle = xPoolHelper->GetStylePool()->Find( aNew, SfxStyleFamily::Page );
+ SfxStyleSheetBase* pStyle = mxPoolHelper->GetStylePool()->Find( aNew, SfxStyleFamily::Page );
if ( pStyle )
{
const SfxItemSet& rSet = pStyle->GetItemSet();
diff --git a/sc/source/core/data/document10.cxx b/sc/source/core/data/document10.cxx
index 78b5a8f7d8e7..e62a47e08c7f 100644
--- a/sc/source/core/data/document10.cxx
+++ b/sc/source/core/data/document10.cxx
@@ -336,7 +336,7 @@ void ScDocument::CompileHybridFormula()
void ScDocument::SharePooledResources( const ScDocument* pSrcDoc )
{
- xPoolHelper = pSrcDoc->xPoolHelper;
+ mxPoolHelper = pSrcDoc->mxPoolHelper;
mpCellStringPool = pSrcDoc->mpCellStringPool;
}
diff --git a/sc/source/core/data/fillinfo.cxx b/sc/source/core/data/fillinfo.cxx
index 1f082b8a6a99..ecbc104a2253 100644
--- a/sc/source/core/data/fillinfo.cxx
+++ b/sc/source/core/data/fillinfo.cxx
@@ -361,8 +361,8 @@ void ScDocument::FillInfo(
bool bLayoutRTL = IsLayoutRTL( nTab );
- ScDocumentPool* pPool = xPoolHelper->GetDocPool();
- ScStyleSheetPool* pStlPool = xPoolHelper->GetStylePool();
+ ScDocumentPool* pPool = mxPoolHelper->GetDocPool();
+ ScStyleSheetPool* pStlPool = mxPoolHelper->GetStylePool();
RowInfo* pRowInfo = rTabInfo.mpRowInfo.get();