Kaydet (Commit) 803b43ef authored tarafından Miklos Vajna's avatar Miklos Vajna

sw: prefix members of SwCalendarWrapper, SwDoc and SwFntAccess

Change-Id: Ia233670c8cc01442aa91588fd7aa5d65443af077
Reviewed-on: https://gerrit.libreoffice.org/69033Reviewed-by: 's avatarMiklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
üst 768fe396
...@@ -320,7 +320,7 @@ private: ...@@ -320,7 +320,7 @@ private:
// Thus, certain adjustment needed during formatting for these kind of anchored objects. // Thus, certain adjustment needed during formatting for these kind of anchored objects.
bool mbContainsAtPageObjWithContentAnchor : 1; bool mbContainsAtPageObjWithContentAnchor : 1;
static SwAutoCompleteWord *mpACmpltWords; //< List of all words for AutoComplete static SwAutoCompleteWord *s_pAutoCompleteWords; //< List of all words for AutoComplete
// private methods // private methods
SwFlyFrameFormat* MakeFlySection_( const SwPosition& rAnchPos, SwFlyFrameFormat* MakeFlySection_( const SwPosition& rAnchPos,
...@@ -1516,7 +1516,7 @@ public: ...@@ -1516,7 +1516,7 @@ public:
SwExtTextInput* GetExtTextInput() const; SwExtTextInput* GetExtTextInput() const;
// Interface for access to AutoComplete-List. // Interface for access to AutoComplete-List.
static SwAutoCompleteWord& GetAutoCompleteWords() { return *mpACmpltWords; } static SwAutoCompleteWord& GetAutoCompleteWords() { return *s_pAutoCompleteWords; }
bool ContainsMSVBasic() const { return mbContains_MSVBasic; } bool ContainsMSVBasic() const { return mbContains_MSVBasic; }
void SetContainsMSVBasic( bool bFlag ) { mbContains_MSVBasic = bFlag; } void SetContainsMSVBasic( bool bFlag ) { mbContains_MSVBasic = bFlag; }
......
...@@ -31,11 +31,11 @@ template <typename> class SingletonRef; ...@@ -31,11 +31,11 @@ template <typename> class SingletonRef;
class SwCalendarWrapper : public CalendarWrapper class SwCalendarWrapper : public CalendarWrapper
{ {
LanguageType nLang; LanguageType m_nLang;
public: public:
SwCalendarWrapper( const css::uno::Reference< css::uno::XComponentContext > & rxContext = ::comphelper::getProcessComponentContext() ) SwCalendarWrapper( const css::uno::Reference< css::uno::XComponentContext > & rxContext = ::comphelper::getProcessComponentContext() )
: CalendarWrapper( rxContext ), nLang( LANGUAGE_SYSTEM ) : CalendarWrapper( rxContext ), m_nLang( LANGUAGE_SYSTEM )
{} {}
void LoadDefaultCalendar( LanguageType nLang ); void LoadDefaultCalendar( LanguageType nLang );
......
...@@ -432,7 +432,7 @@ SfxItemInfo aSlotTab[] = ...@@ -432,7 +432,7 @@ SfxItemInfo aSlotTab[] =
std::vector<SvGlobalName> *pGlobalOLEExcludeList = nullptr; std::vector<SvGlobalName> *pGlobalOLEExcludeList = nullptr;
SwAutoCompleteWord* SwDoc::mpACmpltWords = nullptr; SwAutoCompleteWord* SwDoc::s_pAutoCompleteWords = nullptr;
SwCheckIt* pCheckIt = nullptr; SwCheckIt* pCheckIt = nullptr;
static CharClass* pAppCharClass = nullptr; static CharClass* pAppCharClass = nullptr;
...@@ -653,12 +653,12 @@ void InitCore() ...@@ -653,12 +653,12 @@ void InitCore()
if (!utl::ConfigManager::IsFuzzing()) if (!utl::ConfigManager::IsFuzzing())
{ {
const SvxSwAutoFormatFlags& rAFlags = SvxAutoCorrCfg::Get().GetAutoCorrect()->GetSwFlags(); const SvxSwAutoFormatFlags& rAFlags = SvxAutoCorrCfg::Get().GetAutoCorrect()->GetSwFlags();
SwDoc::mpACmpltWords = new SwAutoCompleteWord( rAFlags.nAutoCmpltListLen, SwDoc::s_pAutoCompleteWords = new SwAutoCompleteWord( rAFlags.nAutoCmpltListLen,
rAFlags.nAutoCmpltWordLen ); rAFlags.nAutoCmpltWordLen );
} }
else else
{ {
SwDoc::mpACmpltWords = new SwAutoCompleteWord( 0, 0 ); SwDoc::s_pAutoCompleteWords = new SwAutoCompleteWord( 0, 0 );
} }
} }
...@@ -687,7 +687,7 @@ void FinitCore() ...@@ -687,7 +687,7 @@ void FinitCore()
if ( aAttrTab[0]->GetRefCount() ) if ( aAttrTab[0]->GetRefCount() )
SfxItemPool::ReleaseDefaults( &aAttrTab ); SfxItemPool::ReleaseDefaults( &aAttrTab );
#endif #endif
delete SwDoc::mpACmpltWords; delete SwDoc::s_pAutoCompleteWords;
delete SwStyleNameMapper::s_pTextUINameArray; delete SwStyleNameMapper::s_pTextUINameArray;
delete SwStyleNameMapper::s_pListsUINameArray; delete SwStyleNameMapper::s_pListsUINameArray;
...@@ -750,10 +750,10 @@ CharClass& GetAppCharClass() ...@@ -750,10 +750,10 @@ CharClass& GetAppCharClass()
void SwCalendarWrapper::LoadDefaultCalendar( LanguageType eLang ) void SwCalendarWrapper::LoadDefaultCalendar( LanguageType eLang )
{ {
if( eLang != nLang ) if( eLang != m_nLang )
{ {
nLang = eLang; m_nLang = eLang;
loadDefaultCalendar( LanguageTag::convertToLocale( nLang )); loadDefaultCalendar( LanguageTag::convertToLocale( m_nLang ));
} }
} }
......
...@@ -148,7 +148,7 @@ SwFntObj *SwFntCache::Next( SwFntObj *pFntObj) ...@@ -148,7 +148,7 @@ SwFntObj *SwFntCache::Next( SwFntObj *pFntObj)
class SwFntAccess : public SwCacheAccess class SwFntAccess : public SwCacheAccess
{ {
SwViewShell const *pShell; SwViewShell const *m_pShell;
protected: protected:
virtual SwCacheObj *NewObj( ) override; virtual SwCacheObj *NewObj( ) override;
......
...@@ -2263,7 +2263,7 @@ SwFntAccess::SwFntAccess( const void* & rnFontCacheId, ...@@ -2263,7 +2263,7 @@ SwFntAccess::SwFntAccess( const void* & rnFontCacheId,
sal_uInt16 &rIndex, const void *pOwn, SwViewShell const *pSh, sal_uInt16 &rIndex, const void *pOwn, SwViewShell const *pSh,
bool bCheck ) : bool bCheck ) :
SwCacheAccess( *pFntCache, rnFontCacheId, rIndex ), SwCacheAccess( *pFntCache, rnFontCacheId, rIndex ),
pShell( pSh ) m_pShell( pSh )
{ {
// the used ctor of SwCacheAccess searches for rnFontCacheId+rIndex in the cache // the used ctor of SwCacheAccess searches for rnFontCacheId+rIndex in the cache
if ( IsAvail() ) if ( IsAvail() )
...@@ -2366,7 +2366,7 @@ SwFntAccess::SwFntAccess( const void* & rnFontCacheId, ...@@ -2366,7 +2366,7 @@ SwFntAccess::SwFntAccess( const void* & rnFontCacheId,
SwCacheObj *SwFntAccess::NewObj( ) SwCacheObj *SwFntAccess::NewObj( )
{ {
// a new Font, a new "MagicNumber". // a new Font, a new "MagicNumber".
return new SwFntObj( *static_cast<SwSubFont const *>(m_pOwner), ++mnFontCacheIdCounter, pShell ); return new SwFntObj( *static_cast<SwSubFont const *>(m_pOwner), ++mnFontCacheIdCounter, m_pShell );
} }
TextFrameIndex SwFont::GetTextBreak(SwDrawTextInfo const & rInf, long nTextWidth) TextFrameIndex SwFont::GetTextBreak(SwDrawTextInfo const & rInf, long nTextWidth)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment