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

sw: prefix members of SwCondCollPage

Change-Id: I8e290ab6264dff4d361e1dc0eee6b69a14512d03
üst b255304b
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
#include "swuiccoll.hxx" #include "swuiccoll.hxx"
const sal_uInt16 SwCondCollPage::aPageRg[] = { const sal_uInt16 SwCondCollPage::m_aPageRg[] = {
FN_COND_COLL, FN_COND_COLL, FN_COND_COLL, FN_COND_COLL,
0 0
}; };
...@@ -54,11 +54,11 @@ SwCondCollPage::SwCondCollPage(vcl::Window *pParent, const SfxItemSet &rSet) ...@@ -54,11 +54,11 @@ SwCondCollPage::SwCondCollPage(vcl::Window *pParent, const SfxItemSet &rSet)
: SfxTabPage(pParent, "ConditionPage", : SfxTabPage(pParent, "ConditionPage",
"modules/swriter/ui/conditionpage.ui", &rSet) "modules/swriter/ui/conditionpage.ui", &rSet)
, ,
rSh(::GetActiveView()->GetWrtShell()), m_rSh(::GetActiveView()->GetWrtShell()),
pCmds( SwCondCollItem::GetCmds() ), m_pCmds( SwCondCollItem::GetCmds() ),
pFmt(0), m_pFmt(0),
bNewTemplate(false) m_bNewTemplate(false)
{ {
get(m_pConditionCB, "condstyle"); get(m_pConditionCB, "condstyle");
get(m_pContextFT, "contextft"); get(m_pContextFT, "contextft");
...@@ -174,21 +174,21 @@ bool SwCondCollPage::FillItemSet(SfxItemSet *rSet) ...@@ -174,21 +174,21 @@ bool SwCondCollPage::FillItemSet(SfxItemSet *rSet)
void SwCondCollPage::Reset(const SfxItemSet *) void SwCondCollPage::Reset(const SfxItemSet *)
{ {
if(bNewTemplate) if(m_bNewTemplate)
m_pConditionCB->Enable(); m_pConditionCB->Enable();
if(RES_CONDTXTFMTCOLL == pFmt->Which()) if(RES_CONDTXTFMTCOLL == m_pFmt->Which())
m_pConditionCB->Check(); m_pConditionCB->Check();
OnOffHdl(m_pConditionCB); OnOffHdl(m_pConditionCB);
m_pTbLinks->Clear(); m_pTbLinks->Clear();
SfxStyleSheetBasePool* pPool = rSh.GetView().GetDocShell()->GetStyleSheetPool(); SfxStyleSheetBasePool* pPool = m_rSh.GetView().GetDocShell()->GetStyleSheetPool();
pPool->SetSearchMask(SFX_STYLE_FAMILY_PARA, SFXSTYLEBIT_ALL); pPool->SetSearchMask(SFX_STYLE_FAMILY_PARA, SFXSTYLEBIT_ALL);
m_pStyleLB->Clear(); m_pStyleLB->Clear();
const SfxStyleSheetBase* pBase = pPool->First(); const SfxStyleSheetBase* pBase = pPool->First();
while( pBase ) while( pBase )
{ {
if(!pFmt || pBase->GetName() != pFmt->GetName()) if(!m_pFmt || pBase->GetName() != m_pFmt->GetName())
m_pStyleLB->InsertEntry(pBase->GetName()); m_pStyleLB->InsertEntry(pBase->GetName());
pBase = pPool->Next(); pBase = pPool->Next();
} }
...@@ -199,9 +199,9 @@ void SwCondCollPage::Reset(const SfxItemSet *) ...@@ -199,9 +199,9 @@ void SwCondCollPage::Reset(const SfxItemSet *)
OUString aEntry( m_aStrArr[n] + "\t" ); OUString aEntry( m_aStrArr[n] + "\t" );
const SwCollCondition* pCond = 0; const SwCollCondition* pCond = 0;
if( pFmt && RES_CONDTXTFMTCOLL == pFmt->Which() && if( m_pFmt && RES_CONDTXTFMTCOLL == m_pFmt->Which() &&
0 != ( pCond = static_cast<SwConditionTxtFmtColl*>(pFmt)-> 0 != ( pCond = static_cast<SwConditionTxtFmtColl*>(m_pFmt)->
HasCondition( SwCollCondition( 0, pCmds[n].nCnd, pCmds[n].nSubCond ) ) ) HasCondition( SwCollCondition( 0, m_pCmds[n].nCnd, m_pCmds[n].nSubCond ) ) )
&& pCond->GetTxtFmtColl() ) && pCond->GetTxtFmtColl() )
{ {
aEntry += pCond->GetTxtFmtColl()->GetName(); aEntry += pCond->GetTxtFmtColl()->GetName();
...@@ -265,13 +265,13 @@ IMPL_LINK( SwCondCollPage, SelectHdl, ListBox*, pBox) ...@@ -265,13 +265,13 @@ IMPL_LINK( SwCondCollPage, SelectHdl, ListBox*, pBox)
m_pStyleLB->Clear(); m_pStyleLB->Clear();
const sal_Int32 nSelPos = pBox->GetSelectEntryPos(); const sal_Int32 nSelPos = pBox->GetSelectEntryPos();
const sal_uInt16 nSearchFlags = *static_cast<sal_uInt16*>(m_pFilterLB->GetEntryData(nSelPos)); const sal_uInt16 nSearchFlags = *static_cast<sal_uInt16*>(m_pFilterLB->GetEntryData(nSelPos));
SfxStyleSheetBasePool* pPool = rSh.GetView().GetDocShell()->GetStyleSheetPool(); SfxStyleSheetBasePool* pPool = m_rSh.GetView().GetDocShell()->GetStyleSheetPool();
pPool->SetSearchMask(SFX_STYLE_FAMILY_PARA, nSearchFlags); pPool->SetSearchMask(SFX_STYLE_FAMILY_PARA, nSearchFlags);
const SfxStyleSheetBase* pBase = pPool->First(); const SfxStyleSheetBase* pBase = pPool->First();
while( pBase ) while( pBase )
{ {
if(!pFmt || pBase->GetName() != pFmt->GetName()) if(!m_pFmt || pBase->GetName() != m_pFmt->GetName())
m_pStyleLB->InsertEntry(pBase->GetName()); m_pStyleLB->InsertEntry(pBase->GetName());
pBase = pPool->Next(); pBase = pPool->Next();
} }
...@@ -295,10 +295,10 @@ IMPL_LINK( SwCondCollPage, SelectHdl, ListBox*, pBox) ...@@ -295,10 +295,10 @@ IMPL_LINK( SwCondCollPage, SelectHdl, ListBox*, pBox)
return 0; return 0;
} }
void SwCondCollPage::SetCollection(SwFmt* pNewFormat, bool bNew) void SwCondCollPage::SetCollection(SwFmt* pFormat, bool bNew)
{ {
pFmt = pNewFormat; m_pFmt = pFormat;
bNewTemplate = bNew; m_bNewTemplate = bNew;
} }
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -41,11 +41,11 @@ class SwCondCollPage : public SfxTabPage ...@@ -41,11 +41,11 @@ class SwCondCollPage : public SfxTabPage
std::vector<OUString> m_aStrArr; std::vector<OUString> m_aStrArr;
SwWrtShell &rSh; SwWrtShell &m_rSh;
const CommandStruct*pCmds; const CommandStruct*m_pCmds;
SwFmt* pFmt; SwFmt* m_pFmt;
bool bNewTemplate; bool m_bNewTemplate;
virtual ~SwCondCollPage(); virtual ~SwCondCollPage();
virtual void dispose() SAL_OVERRIDE; virtual void dispose() SAL_OVERRIDE;
...@@ -59,13 +59,13 @@ class SwCondCollPage : public SfxTabPage ...@@ -59,13 +59,13 @@ class SwCondCollPage : public SfxTabPage
using SfxTabPage::ActivatePage; using SfxTabPage::ActivatePage;
using SfxTabPage::DeactivatePage; using SfxTabPage::DeactivatePage;
static const sal_uInt16 aPageRg[]; static const sal_uInt16 m_aPageRg[];
public: public:
SwCondCollPage(vcl::Window *pParent, const SfxItemSet &rSet); SwCondCollPage(vcl::Window *pParent, const SfxItemSet &rSet);
static VclPtr<SfxTabPage> Create(vcl::Window *pParent, const SfxItemSet *rSet); static VclPtr<SfxTabPage> Create(vcl::Window *pParent, const SfxItemSet *rSet);
static const sal_uInt16* GetRanges() { return aPageRg; } static const sal_uInt16* GetRanges() { return m_aPageRg; }
virtual bool FillItemSet( SfxItemSet *rSet) SAL_OVERRIDE; virtual bool FillItemSet( SfxItemSet *rSet) SAL_OVERRIDE;
virtual void Reset (const SfxItemSet *rSet) SAL_OVERRIDE; virtual void Reset (const SfxItemSet *rSet) SAL_OVERRIDE;
......
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