summaryrefslogtreecommitdiff
path: root/sw/source/uibase
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2022-02-28 08:21:02 +0100
committerMiklos Vajna <vmiklos@collabora.com>2022-02-28 09:40:00 +0100
commit48f18fb66300cbdafd5b03b683e72aecaa0a2e94 (patch)
tree31a8ceb0bcfa0925c9237a828e47d223a1e192ea /sw/source/uibase
parent87369ad7b82da6904e889614c88617e610d4506b (diff)
sw: prefix members of SwNumFormatBase, SwOutlineContent, SwPostItContent ...
... and SwRegionContent See tdf#94879 for motivation. Change-Id: Ib7d6f1eb5b96e4cebcc2f17727e876670869cd14 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130662 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Jenkins
Diffstat (limited to 'sw/source/uibase')
-rw-r--r--sw/source/uibase/inc/content.hxx26
-rw-r--r--sw/source/uibase/inc/numfmtlb.hxx28
-rw-r--r--sw/source/uibase/utlui/content.cxx2
-rw-r--r--sw/source/uibase/utlui/numfmtlb.cxx70
4 files changed, 63 insertions, 63 deletions
diff --git a/sw/source/uibase/inc/content.hxx b/sw/source/uibase/inc/content.hxx
index 2a7c9d64adab..dd18d71637ca 100644
--- a/sw/source/uibase/inc/content.hxx
+++ b/sw/source/uibase/inc/content.hxx
@@ -37,9 +37,9 @@ class SwTextFootnote;
class SwOutlineContent final : public SwContent
{
- SwOutlineNodes::size_type nOutlinePos;
- sal_uInt8 nOutlineLevel;
- bool bIsMoveable;
+ SwOutlineNodes::size_type m_nOutlinePos;
+ sal_uInt8 m_nOutlineLevel;
+ bool m_bIsMoveable;
public:
SwOutlineContent( const SwContentType* pCnt,
const OUString& rName,
@@ -48,17 +48,17 @@ class SwOutlineContent final : public SwContent
bool bMove,
tools::Long nYPos) :
SwContent(pCnt, rName, nYPos),
- nOutlinePos(nArrPos), nOutlineLevel(nLevel), bIsMoveable(bMove) {}
+ m_nOutlinePos(nArrPos), m_nOutlineLevel(nLevel), m_bIsMoveable(bMove) {}
- SwOutlineNodes::size_type GetOutlinePos() const {return nOutlinePos;}
- sal_uInt8 GetOutlineLevel() const {return nOutlineLevel;}
- bool IsMoveable() const {return bIsMoveable;};
+ SwOutlineNodes::size_type GetOutlinePos() const {return m_nOutlinePos;}
+ sal_uInt8 GetOutlineLevel() const {return m_nOutlineLevel;}
+ bool IsMoveable() const {return m_bIsMoveable;};
};
class SwRegionContent final : public SwContent
{
- sal_uInt8 nRegionLevel;
+ sal_uInt8 m_nRegionLevel;
public:
SwRegionContent( const SwContentType* pCnt,
@@ -66,8 +66,8 @@ class SwRegionContent final : public SwContent
sal_uInt8 nLevel,
tools::Long nYPos) :
SwContent(pCnt, rName, nYPos),
- nRegionLevel(nLevel){}
- sal_uInt8 GetRegionLevel() const {return nRegionLevel;}
+ m_nRegionLevel(nLevel){}
+ sal_uInt8 GetRegionLevel() const {return m_nRegionLevel;}
};
class SwURLFieldContent final : public SwContent
@@ -122,17 +122,17 @@ public:
class SwPostItContent final : public SwContent
{
- const SwFormatField* pField;
+ const SwFormatField* m_pField;
public:
SwPostItContent( const SwContentType* pCnt,
const OUString& rName,
const SwFormatField* pFormatField,
tools::Long nYPos )
: SwContent(pCnt, rName, nYPos)
- , pField(pFormatField)
+ , m_pField(pFormatField)
{}
- const SwFormatField* GetPostIt() const { return pField; }
+ const SwFormatField* GetPostIt() const { return m_pField; }
virtual bool IsProtect() const override;
};
diff --git a/sw/source/uibase/inc/numfmtlb.hxx b/sw/source/uibase/inc/numfmtlb.hxx
index a56d5fb8fe3e..0bbca0a5debd 100644
--- a/sw/source/uibase/inc/numfmtlb.hxx
+++ b/sw/source/uibase/inc/numfmtlb.hxx
@@ -28,26 +28,26 @@ class SwView;
class SW_DLLPUBLIC SwNumFormatBase
{
protected:
- sal_Int32 nStdEntry;
- sal_uInt32 nDefFormat;
- SvNumFormatType nCurrFormatType;
- LanguageType eCurLanguage;
- bool bOneArea;
+ sal_Int32 m_nStdEntry;
+ sal_uInt32 m_nDefFormat;
+ SvNumFormatType m_nCurrFormatType;
+ LanguageType m_eCurLanguage;
+ bool m_bOneArea;
bool mbCurrFormatTypeNeedsInit;
- bool bShowLanguageControl; //determine whether the language control has
+ bool m_bShowLanguageControl; //determine whether the language control has
//to be shown in the number format dialog
- bool bUseAutomaticLanguage;//determine whether language is automatically assigned
+ bool m_bUseAutomaticLanguage;//determine whether language is automatically assigned
public:
SwNumFormatBase();
- void SetAutomaticLanguage(bool bSet) { bUseAutomaticLanguage = bSet; }
- bool IsAutomaticLanguage()const { return bUseAutomaticLanguage; }
- SvNumFormatType GetFormatType() const { return nCurrFormatType; }
- LanguageType GetCurLanguage() const { return eCurLanguage;}
- void SetLanguage(LanguageType eSet) { eCurLanguage = eSet; }
- void SetShowLanguageControl(bool bSet) { bShowLanguageControl = bSet; }
+ void SetAutomaticLanguage(bool bSet) { m_bUseAutomaticLanguage = bSet; }
+ bool IsAutomaticLanguage()const { return m_bUseAutomaticLanguage; }
+ SvNumFormatType GetFormatType() const { return m_nCurrFormatType; }
+ LanguageType GetCurLanguage() const { return m_eCurLanguage;}
+ void SetLanguage(LanguageType eSet) { m_eCurLanguage = eSet; }
+ void SetShowLanguageControl(bool bSet) { m_bShowLanguageControl = bSet; }
SAL_DLLPRIVATE static double GetDefValue(const SvNumFormatType nFormatType);
- void SetOneArea(bool bOnlyOne) { bOneArea = bOnlyOne; }
+ void SetOneArea(bool bOnlyOne) { m_bOneArea = bOnlyOne; }
void SetFormatType(const SvNumFormatType nFormatType);
void SetDefFormat(const sal_uInt32 nDefFormat);
diff --git a/sw/source/uibase/utlui/content.cxx b/sw/source/uibase/utlui/content.cxx
index 89b641a7e1ae..963ab9efe9db 100644
--- a/sw/source/uibase/utlui/content.cxx
+++ b/sw/source/uibase/utlui/content.cxx
@@ -208,7 +208,7 @@ bool SwTextFieldContent::IsProtect() const
bool SwPostItContent::IsProtect() const
{
- return pField->IsProtect();
+ return m_pField->IsProtect();
}
bool SwURLFieldContent::IsProtect() const
diff --git a/sw/source/uibase/utlui/numfmtlb.cxx b/sw/source/uibase/utlui/numfmtlb.cxx
index 76f329aad80e..ee668f4d11a9 100644
--- a/sw/source/uibase/utlui/numfmtlb.cxx
+++ b/sw/source/uibase/utlui/numfmtlb.cxx
@@ -116,13 +116,13 @@ double SwNumFormatBase::GetDefValue(const SvNumFormatType nFormatType)
}
SwNumFormatBase::SwNumFormatBase()
- : nStdEntry(0)
- , nDefFormat(0)
- , nCurrFormatType(SvNumFormatType::ALL)
- , bOneArea(false)
+ : m_nStdEntry(0)
+ , m_nDefFormat(0)
+ , m_nCurrFormatType(SvNumFormatType::ALL)
+ , m_bOneArea(false)
, mbCurrFormatTypeNeedsInit(true)
- , bShowLanguageControl(false)
- , bUseAutomaticLanguage(true)
+ , m_bShowLanguageControl(false)
+ , m_bUseAutomaticLanguage(true)
{
}
@@ -143,12 +143,12 @@ void SwNumFormatBase::Init()
SwView *pView = GetActiveView();
if (pView)
- eCurLanguage = pView->GetWrtShell().GetCurLang();
+ m_eCurLanguage = pView->GetWrtShell().GetCurLang();
else
- eCurLanguage = SvtSysLocale().GetLanguageTag().getLanguageType();
+ m_eCurLanguage = SvtSysLocale().GetLanguageTag().getLanguageType();
SetFormatType(SvNumFormatType::NUMBER);
- SetDefFormat(nDefFormat);
+ SetDefFormat(m_nDefFormat);
}
void NumFormatListBox::Init()
@@ -168,7 +168,7 @@ void SwNumFormatTreeView::Init()
void SwNumFormatBase::SetFormatType(const SvNumFormatType nFormatType)
{
if (!mbCurrFormatTypeNeedsInit &&
- (nCurrFormatType & nFormatType)) // there are mixed formats, like for example DateTime
+ (m_nCurrFormatType & nFormatType)) // there are mixed formats, like for example DateTime
return;
SwView *pView = GetActiveView();
@@ -252,20 +252,20 @@ void SwNumFormatBase::SetFormatType(const SvNumFormatType nFormatType)
OUString sValue;
const sal_uInt32 nSysNumFormat = pFormatter->GetFormatIndex(
- NF_NUMBER_SYSTEM, eCurLanguage );
+ NF_NUMBER_SYSTEM, m_eCurLanguage );
const sal_uInt32 nSysShortDateFormat = pFormatter->GetFormatIndex(
- NF_DATE_SYSTEM_SHORT, eCurLanguage );
+ NF_DATE_SYSTEM_SHORT, m_eCurLanguage );
const sal_uInt32 nSysLongDateFormat = pFormatter->GetFormatIndex(
- NF_DATE_SYSTEM_LONG, eCurLanguage );
+ NF_DATE_SYSTEM_LONG, m_eCurLanguage );
for( tools::Long nIndex = eOffsetStart; nIndex <= eOffsetEnd; ++nIndex )
{
const sal_uInt32 nFormat = pFormatter->GetFormatIndex(
- static_cast<NfIndexTableOffset>(nIndex), eCurLanguage );
+ static_cast<NfIndexTableOffset>(nIndex), m_eCurLanguage );
pFormat = pFormatter->GetEntry( nFormat );
if( nFormat == pFormatter->GetFormatIndex( NF_NUMBER_STANDARD,
- eCurLanguage )
+ m_eCurLanguage )
|| const_cast<SvNumberformat*>(pFormat)->GetOutputString( fVal, sValue, &pCol )
|| nFormatType == SvNumFormatType::UNDEFINED )
{
@@ -283,17 +283,17 @@ void SwNumFormatBase::SetFormatType(const SvNumFormatType nFormatType)
append(OUString::number(nFormat), sValue);
if( nFormat == pFormatter->GetStandardFormat(
- nFormatType, eCurLanguage ) )
- nStdEntry = i;
+ nFormatType, m_eCurLanguage ) )
+ m_nStdEntry = i;
++i;
}
}
append_text(SwResId(STR_DEFINE_NUMBERFORMAT));
- set_active(nStdEntry);
+ set_active(m_nStdEntry);
- nCurrFormatType = nFormatType;
+ m_nCurrFormatType = nFormatType;
mbCurrFormatTypeNeedsInit = false;
}
@@ -302,7 +302,7 @@ void SwNumFormatBase::SetDefFormat(const sal_uInt32 nDefaultFormat)
{
if (nDefaultFormat == NUMBERFORMAT_ENTRY_NOT_FOUND)
{
- nDefFormat = nDefaultFormat;
+ m_nDefFormat = nDefaultFormat;
return;
}
@@ -317,15 +317,15 @@ void SwNumFormatBase::SetDefFormat(const sal_uInt32 nDefaultFormat)
SetFormatType(nType);
- sal_uInt32 nFormat = pFormatter->GetFormatForLanguageIfBuiltIn(nDefaultFormat, eCurLanguage);
+ sal_uInt32 nFormat = pFormatter->GetFormatForLanguageIfBuiltIn(nDefaultFormat, m_eCurLanguage);
for (sal_Int32 i = 0, nCount = get_count(); i < nCount; ++i)
{
if (nFormat == get_id(i).toUInt32())
{
set_active(i);
- nStdEntry = i;
- nDefFormat = GetFormat();
+ m_nStdEntry = i;
+ m_nDefFormat = GetFormat();
return;
}
}
@@ -347,7 +347,7 @@ void SwNumFormatBase::SetDefFormat(const sal_uInt32 nDefaultFormat)
while (get_id(nPos).toUInt32() == NUMBERFORMAT_ENTRY_NOT_FOUND)
nPos++;
- if ( lcl_isSystemFormat(nDefaultFormat, pFormatter, eCurLanguage) )
+ if ( lcl_isSystemFormat(nDefaultFormat, pFormatter, m_eCurLanguage) )
{
sValue += SwResId(RID_STR_SYSTEM);
}
@@ -355,7 +355,7 @@ void SwNumFormatBase::SetDefFormat(const sal_uInt32 nDefaultFormat)
insert_text(nPos, sValue); // Insert as first numeric entry
set_id(nPos, OUString::number(nDefaultFormat));
set_active(nPos);
- nDefFormat = GetFormat();
+ m_nDefFormat = GetFormat();
}
sal_uInt32 NumFormatListBox::GetFormat() const
@@ -388,19 +388,19 @@ void SwNumFormatBase::CallSelectHdl()
SID_ATTR_NUMBERFORMAT_ADD_AUTO,
SID_ATTR_NUMBERFORMAT_ADD_AUTO> aCoreSet( rSh.GetAttrPool() );
- double fValue = SwNumFormatBase::GetDefValue(nCurrFormatType);
+ double fValue = SwNumFormatBase::GetDefValue(m_nCurrFormatType);
- sal_uInt32 nFormat = pFormatter->GetStandardFormat( nCurrFormatType, eCurLanguage);
+ sal_uInt32 nFormat = pFormatter->GetStandardFormat( m_nCurrFormatType, m_eCurLanguage);
aCoreSet.Put( SfxUInt32Item( SID_ATTR_NUMBERFORMAT_VALUE, nFormat ));
aCoreSet.Put( SvxNumberInfoItem( pFormatter, fValue,
SID_ATTR_NUMBERFORMAT_INFO ) );
- if( (SvNumFormatType::DATE | SvNumFormatType::TIME) & nCurrFormatType )
- aCoreSet.Put(SfxBoolItem(SID_ATTR_NUMBERFORMAT_ONE_AREA, bOneArea));
+ if( (SvNumFormatType::DATE | SvNumFormatType::TIME) & m_nCurrFormatType )
+ aCoreSet.Put(SfxBoolItem(SID_ATTR_NUMBERFORMAT_ONE_AREA, m_bOneArea));
- aCoreSet.Put(SfxBoolItem(SID_ATTR_NUMBERFORMAT_NOLANGUAGE, !bShowLanguageControl));
- aCoreSet.Put(SfxBoolItem(SID_ATTR_NUMBERFORMAT_ADD_AUTO, bUseAutomaticLanguage));
+ aCoreSet.Put(SfxBoolItem(SID_ATTR_NUMBERFORMAT_NOLANGUAGE, !m_bShowLanguageControl));
+ aCoreSet.Put(SfxBoolItem(SID_ATTR_NUMBERFORMAT_ADD_AUTO, m_bUseAutomaticLanguage));
// force deselect to break mouse lock on selected entry
set_active(-1);
@@ -427,14 +427,14 @@ void SwNumFormatBase::CallSelectHdl()
// oj #105473# change order of calls
const SvNumberformat* pFormat = pFormatter->GetEntry(nNumberFormat);
if( pFormat )
- eCurLanguage = pFormat->GetLanguage();
+ m_eCurLanguage = pFormat->GetLanguage();
// SetDefFormat uses eCurLanguage to look for if this format already in the list
SetDefFormat(nNumberFormat);
}
- if( bShowLanguageControl && SfxItemState::SET == pOutSet->GetItemState(
+ if( m_bShowLanguageControl && SfxItemState::SET == pOutSet->GetItemState(
SID_ATTR_NUMBERFORMAT_ADD_AUTO, false, &pItem ))
{
- bUseAutomaticLanguage = static_cast<const SfxBoolItem*>(pItem)->GetValue();
+ m_bUseAutomaticLanguage = static_cast<const SfxBoolItem*>(pItem)->GetValue();
}
}
else
@@ -455,7 +455,7 @@ IMPL_LINK_NOARG(SwNumFormatTreeView, SelectHdl, weld::TreeView&, void)
void SwNumFormatBase::clear()
{
mbCurrFormatTypeNeedsInit = true;
- nCurrFormatType = SvNumFormatType::ALL;
+ m_nCurrFormatType = SvNumFormatType::ALL;
}
void NumFormatListBox::clear()