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

sw: prefix members of SwRedlineOptionsTabPage

Change-Id: I7d8d63ef09f6b21278a2e8c7ea4db05612fd9449
üst d608fa64
...@@ -1720,61 +1720,61 @@ SwRedlineOptionsTabPage::SwRedlineOptionsTabPage( vcl::Window* pParent, ...@@ -1720,61 +1720,61 @@ SwRedlineOptionsTabPage::SwRedlineOptionsTabPage( vcl::Window* pParent,
{ {
Size aPreviewSize(getPreviewOptionsSize(this)); Size aPreviewSize(getPreviewOptionsSize(this));
get(pInsertLB,"insert"); get(m_pInsertLB,"insert");
get(pInsertColorLB,"insertcolor"); get(m_pInsertColorLB,"insertcolor");
pInsertColorLB->SetSlotId(SID_AUTHOR_COLOR, true); m_pInsertColorLB->SetSlotId(SID_AUTHOR_COLOR, true);
get(pInsertedPreviewWN,"insertedpreview"); get(m_pInsertedPreviewWN,"insertedpreview");
get(pDeletedLB,"deleted"); get(m_pDeletedLB,"deleted");
get(pDeletedColorLB,"deletedcolor"); get(m_pDeletedColorLB,"deletedcolor");
pDeletedColorLB->SetSlotId(SID_AUTHOR_COLOR, true); m_pDeletedColorLB->SetSlotId(SID_AUTHOR_COLOR, true);
get(pDeletedPreviewWN,"deletedpreview"); get(m_pDeletedPreviewWN,"deletedpreview");
get(pChangedLB,"changed"); get(m_pChangedLB,"changed");
get(pChangedColorLB,"changedcolor"); get(m_pChangedColorLB,"changedcolor");
pChangedColorLB->SetSlotId(SID_AUTHOR_COLOR, true); m_pChangedColorLB->SetSlotId(SID_AUTHOR_COLOR, true);
get(pChangedPreviewWN,"changedpreview"); get(m_pChangedPreviewWN,"changedpreview");
get(pMarkPosLB,"markpos"); get(m_pMarkPosLB,"markpos");
get(pMarkColorLB,"markcolor"); get(m_pMarkColorLB,"markcolor");
get(pMarkPreviewWN,"markpreview"); get(m_pMarkPreviewWN,"markpreview");
pInsertedPreviewWN->set_height_request(aPreviewSize.Height()); m_pInsertedPreviewWN->set_height_request(aPreviewSize.Height());
pDeletedPreviewWN->set_height_request(aPreviewSize.Height()); m_pDeletedPreviewWN->set_height_request(aPreviewSize.Height());
pChangedPreviewWN->set_height_request(aPreviewSize.Height()); m_pChangedPreviewWN->set_height_request(aPreviewSize.Height());
pMarkPreviewWN->set_height_request(aPreviewSize.Height()); m_pMarkPreviewWN->set_height_request(aPreviewSize.Height());
pInsertedPreviewWN->set_width_request(aPreviewSize.Width()); m_pInsertedPreviewWN->set_width_request(aPreviewSize.Width());
pDeletedPreviewWN->set_width_request(aPreviewSize.Width()); m_pDeletedPreviewWN->set_width_request(aPreviewSize.Width());
pChangedPreviewWN->set_width_request(aPreviewSize.Width()); m_pChangedPreviewWN->set_width_request(aPreviewSize.Width());
pMarkPreviewWN->set_width_request(aPreviewSize.Width()); m_pMarkPreviewWN->set_width_request(aPreviewSize.Width());
for (sal_Int32 i = 0; i < pInsertLB->GetEntryCount(); ++i) for (sal_Int32 i = 0; i < m_pInsertLB->GetEntryCount(); ++i)
{ {
const OUString sEntry(pInsertLB->GetEntry(i)); const OUString sEntry(m_pInsertLB->GetEntry(i));
pDeletedLB->InsertEntry(sEntry); m_pDeletedLB->InsertEntry(sEntry);
pChangedLB->InsertEntry(sEntry); m_pChangedLB->InsertEntry(sEntry);
}; };
// remove strikethrough from insert and change and underline + double // remove strikethrough from insert and change and underline + double
// underline from delete // underline from delete
pInsertLB->RemoveEntry(5); m_pInsertLB->RemoveEntry(5);
pChangedLB->RemoveEntry(5); m_pChangedLB->RemoveEntry(5);
pDeletedLB->RemoveEntry(4); m_pDeletedLB->RemoveEntry(4);
pDeletedLB->RemoveEntry(3); m_pDeletedLB->RemoveEntry(3);
Link<ListBox&,void> aLk = LINK(this, SwRedlineOptionsTabPage, AttribHdl); Link<ListBox&,void> aLk = LINK(this, SwRedlineOptionsTabPage, AttribHdl);
pInsertLB->SetSelectHdl( aLk ); m_pInsertLB->SetSelectHdl( aLk );
pDeletedLB->SetSelectHdl( aLk ); m_pDeletedLB->SetSelectHdl( aLk );
pChangedLB->SetSelectHdl( aLk ); m_pChangedLB->SetSelectHdl( aLk );
Link<SvxColorListBox&,void> aLk2 = LINK(this, SwRedlineOptionsTabPage, ColorHdl); Link<SvxColorListBox&,void> aLk2 = LINK(this, SwRedlineOptionsTabPage, ColorHdl);
pInsertColorLB->SetSelectHdl( aLk2 ); m_pInsertColorLB->SetSelectHdl( aLk2 );
pDeletedColorLB->SetSelectHdl( aLk2 ); m_pDeletedColorLB->SetSelectHdl( aLk2 );
pChangedColorLB->SetSelectHdl( aLk2 ); m_pChangedColorLB->SetSelectHdl( aLk2 );
pMarkPosLB->SetSelectHdl(LINK(this, SwRedlineOptionsTabPage, ChangedMaskPrevHdl)); m_pMarkPosLB->SetSelectHdl(LINK(this, SwRedlineOptionsTabPage, ChangedMaskPrevHdl));
pMarkColorLB->SetSelectHdl(LINK(this, SwRedlineOptionsTabPage, ChangedMaskColorPrevHdl)); m_pMarkColorLB->SetSelectHdl(LINK(this, SwRedlineOptionsTabPage, ChangedMaskColorPrevHdl));
} }
SwRedlineOptionsTabPage::~SwRedlineOptionsTabPage() SwRedlineOptionsTabPage::~SwRedlineOptionsTabPage()
...@@ -1784,18 +1784,18 @@ SwRedlineOptionsTabPage::~SwRedlineOptionsTabPage() ...@@ -1784,18 +1784,18 @@ SwRedlineOptionsTabPage::~SwRedlineOptionsTabPage()
void SwRedlineOptionsTabPage::dispose() void SwRedlineOptionsTabPage::dispose()
{ {
pInsertLB.clear(); m_pInsertLB.clear();
pInsertColorLB.clear(); m_pInsertColorLB.clear();
pInsertedPreviewWN.clear(); m_pInsertedPreviewWN.clear();
pDeletedLB.clear(); m_pDeletedLB.clear();
pDeletedColorLB.clear(); m_pDeletedColorLB.clear();
pDeletedPreviewWN.clear(); m_pDeletedPreviewWN.clear();
pChangedLB.clear(); m_pChangedLB.clear();
pChangedColorLB.clear(); m_pChangedColorLB.clear();
pChangedPreviewWN.clear(); m_pChangedPreviewWN.clear();
pMarkPosLB.clear(); m_pMarkPosLB.clear();
pMarkColorLB.clear(); m_pMarkColorLB.clear();
pMarkPreviewWN.clear(); m_pMarkPreviewWN.clear();
SfxTabPage::dispose(); SfxTabPage::dispose();
} }
...@@ -1820,38 +1820,38 @@ bool SwRedlineOptionsTabPage::FillItemSet( SfxItemSet* ) ...@@ -1820,38 +1820,38 @@ bool SwRedlineOptionsTabPage::FillItemSet( SfxItemSet* )
ColorData nOldMarkColor = pOpt->GetMarkAlignColor().GetColor(); ColorData nOldMarkColor = pOpt->GetMarkAlignColor().GetColor();
sal_uInt16 nOldMarkMode = pOpt->GetMarkAlignMode(); sal_uInt16 nOldMarkMode = pOpt->GetMarkAlignMode();
sal_Int32 nPos = pInsertLB->GetSelectEntryPos(); sal_Int32 nPos = m_pInsertLB->GetSelectEntryPos();
if (nPos != LISTBOX_ENTRY_NOTFOUND) if (nPos != LISTBOX_ENTRY_NOTFOUND)
{ {
pAttr = static_cast<CharAttr *>(pInsertLB->GetEntryData(nPos)); pAttr = static_cast<CharAttr *>(m_pInsertLB->GetEntryData(nPos));
aInsertedAttr.nItemId = pAttr->nItemId; aInsertedAttr.nItemId = pAttr->nItemId;
aInsertedAttr.nAttr = pAttr->nAttr; aInsertedAttr.nAttr = pAttr->nAttr;
aInsertedAttr.nColor = pInsertColorLB->GetSelectEntryColor().GetColor(); aInsertedAttr.nColor = m_pInsertColorLB->GetSelectEntryColor().GetColor();
pOpt->SetInsertAuthorAttr(aInsertedAttr); pOpt->SetInsertAuthorAttr(aInsertedAttr);
} }
nPos = pDeletedLB->GetSelectEntryPos(); nPos = m_pDeletedLB->GetSelectEntryPos();
if (nPos != LISTBOX_ENTRY_NOTFOUND) if (nPos != LISTBOX_ENTRY_NOTFOUND)
{ {
pAttr = static_cast<CharAttr *>(pDeletedLB->GetEntryData(nPos)); pAttr = static_cast<CharAttr *>(m_pDeletedLB->GetEntryData(nPos));
aDeletedAttr.nItemId = pAttr->nItemId; aDeletedAttr.nItemId = pAttr->nItemId;
aDeletedAttr.nAttr = pAttr->nAttr; aDeletedAttr.nAttr = pAttr->nAttr;
aDeletedAttr.nColor = pDeletedColorLB->GetSelectEntryColor().GetColor(); aDeletedAttr.nColor = m_pDeletedColorLB->GetSelectEntryColor().GetColor();
pOpt->SetDeletedAuthorAttr(aDeletedAttr); pOpt->SetDeletedAuthorAttr(aDeletedAttr);
} }
nPos = pChangedLB->GetSelectEntryPos(); nPos = m_pChangedLB->GetSelectEntryPos();
if (nPos != LISTBOX_ENTRY_NOTFOUND) if (nPos != LISTBOX_ENTRY_NOTFOUND)
{ {
pAttr = static_cast<CharAttr *>(pChangedLB->GetEntryData(nPos)); pAttr = static_cast<CharAttr *>(m_pChangedLB->GetEntryData(nPos));
aChangedAttr.nItemId = pAttr->nItemId; aChangedAttr.nItemId = pAttr->nItemId;
aChangedAttr.nAttr = pAttr->nAttr; aChangedAttr.nAttr = pAttr->nAttr;
aChangedAttr.nColor = pChangedColorLB->GetSelectEntryColor().GetColor(); aChangedAttr.nColor = m_pChangedColorLB->GetSelectEntryColor().GetColor();
pOpt->SetFormatAuthorAttr(aChangedAttr); pOpt->SetFormatAuthorAttr(aChangedAttr);
} }
nPos = 0; nPos = 0;
switch (pMarkPosLB->GetSelectEntryPos()) switch (m_pMarkPosLB->GetSelectEntryPos())
{ {
case 0: nPos = text::HoriOrientation::NONE; break; case 0: nPos = text::HoriOrientation::NONE; break;
case 1: nPos = text::HoriOrientation::LEFT; break; case 1: nPos = text::HoriOrientation::LEFT; break;
...@@ -1861,7 +1861,7 @@ bool SwRedlineOptionsTabPage::FillItemSet( SfxItemSet* ) ...@@ -1861,7 +1861,7 @@ bool SwRedlineOptionsTabPage::FillItemSet( SfxItemSet* )
} }
pOpt->SetMarkAlignMode(nPos); pOpt->SetMarkAlignMode(nPos);
pOpt->SetMarkAlignColor(pMarkColorLB->GetSelectEntryColor()); pOpt->SetMarkAlignColor(m_pMarkColorLB->GetSelectEntryColor());
if (!(aInsertedAttr == aOldInsertAttr) || if (!(aInsertedAttr == aOldInsertAttr) ||
!(aDeletedAttr == aOldDeletedAttr) || !(aDeletedAttr == aOldDeletedAttr) ||
...@@ -1891,28 +1891,28 @@ void SwRedlineOptionsTabPage::Reset( const SfxItemSet* ) ...@@ -1891,28 +1891,28 @@ void SwRedlineOptionsTabPage::Reset( const SfxItemSet* )
const AuthorCharAttr &rChangedAttr = pOpt->GetFormatAuthorAttr(); const AuthorCharAttr &rChangedAttr = pOpt->GetFormatAuthorAttr();
// initialise preview // initialise preview
InitFontStyle(*pInsertedPreviewWN); InitFontStyle(*m_pInsertedPreviewWN);
InitFontStyle(*pDeletedPreviewWN); InitFontStyle(*m_pDeletedPreviewWN);
InitFontStyle(*pChangedPreviewWN); InitFontStyle(*m_pChangedPreviewWN);
ColorData nColor = rInsertAttr.nColor; ColorData nColor = rInsertAttr.nColor;
pInsertColorLB->SelectEntry(Color(nColor)); m_pInsertColorLB->SelectEntry(Color(nColor));
nColor = rDeletedAttr.nColor; nColor = rDeletedAttr.nColor;
pDeletedColorLB->SelectEntry(Color(nColor)); m_pDeletedColorLB->SelectEntry(Color(nColor));
nColor = rChangedAttr.nColor; nColor = rChangedAttr.nColor;
pChangedColorLB->SelectEntry(Color(nColor)); m_pChangedColorLB->SelectEntry(Color(nColor));
pMarkColorLB->SelectEntry(pOpt->GetMarkAlignColor()); m_pMarkColorLB->SelectEntry(pOpt->GetMarkAlignColor());
pInsertLB->SelectEntryPos(0); m_pInsertLB->SelectEntryPos(0);
pDeletedLB->SelectEntryPos(0); m_pDeletedLB->SelectEntryPos(0);
pChangedLB->SelectEntryPos(0); m_pChangedLB->SelectEntryPos(0);
lcl_FillRedlineAttrListBox(*pInsertLB, rInsertAttr, aInsertAttrMap, SAL_N_ELEMENTS(aInsertAttrMap)); lcl_FillRedlineAttrListBox(*m_pInsertLB, rInsertAttr, aInsertAttrMap, SAL_N_ELEMENTS(aInsertAttrMap));
lcl_FillRedlineAttrListBox(*pDeletedLB, rDeletedAttr, aDeletedAttrMap, SAL_N_ELEMENTS(aDeletedAttrMap)); lcl_FillRedlineAttrListBox(*m_pDeletedLB, rDeletedAttr, aDeletedAttrMap, SAL_N_ELEMENTS(aDeletedAttrMap));
lcl_FillRedlineAttrListBox(*pChangedLB, rChangedAttr, aChangedAttrMap, SAL_N_ELEMENTS(aChangedAttrMap)); lcl_FillRedlineAttrListBox(*m_pChangedLB, rChangedAttr, aChangedAttrMap, SAL_N_ELEMENTS(aChangedAttrMap));
sal_Int32 nPos = 0; sal_Int32 nPos = 0;
switch (pOpt->GetMarkAlignMode()) switch (pOpt->GetMarkAlignMode())
...@@ -1923,15 +1923,15 @@ void SwRedlineOptionsTabPage::Reset( const SfxItemSet* ) ...@@ -1923,15 +1923,15 @@ void SwRedlineOptionsTabPage::Reset( const SfxItemSet* )
case text::HoriOrientation::OUTSIDE: nPos = 3; break; case text::HoriOrientation::OUTSIDE: nPos = 3; break;
case text::HoriOrientation::INSIDE: nPos = 4; break; case text::HoriOrientation::INSIDE: nPos = 4; break;
} }
pMarkPosLB->SelectEntryPos(nPos); m_pMarkPosLB->SelectEntryPos(nPos);
// show settings in preview // show settings in preview
AttribHdl(*pInsertLB); AttribHdl(*m_pInsertLB);
ColorHdl(*pInsertColorLB); ColorHdl(*m_pInsertColorLB);
AttribHdl(*pDeletedLB); AttribHdl(*m_pDeletedLB);
ColorHdl(*pInsertColorLB); ColorHdl(*m_pInsertColorLB);
AttribHdl(*pChangedLB); AttribHdl(*m_pChangedLB);
ColorHdl(*pChangedColorLB); ColorHdl(*m_pChangedColorLB);
ChangedMaskPrev(); ChangedMaskPrev();
} }
...@@ -1941,20 +1941,20 @@ IMPL_LINK( SwRedlineOptionsTabPage, AttribHdl, ListBox&, rLB, void ) ...@@ -1941,20 +1941,20 @@ IMPL_LINK( SwRedlineOptionsTabPage, AttribHdl, ListBox&, rLB, void )
SvxFontPrevWindow *pPrev = nullptr; SvxFontPrevWindow *pPrev = nullptr;
SvxColorListBox *pColorLB; SvxColorListBox *pColorLB;
if (&rLB == pInsertLB) if (&rLB == m_pInsertLB)
{ {
pColorLB = pInsertColorLB; pColorLB = m_pInsertColorLB;
pPrev = pInsertedPreviewWN; pPrev = m_pInsertedPreviewWN;
} }
else if (&rLB == pDeletedLB) else if (&rLB == m_pDeletedLB)
{ {
pColorLB = pDeletedColorLB; pColorLB = m_pDeletedColorLB;
pPrev = pDeletedPreviewWN; pPrev = m_pDeletedPreviewWN;
} }
else else
{ {
pColorLB = pChangedColorLB; pColorLB = m_pChangedColorLB;
pPrev = pChangedPreviewWN; pPrev = m_pChangedPreviewWN;
} }
SvxFont& rFont = pPrev->GetFont(); SvxFont& rFont = pPrev->GetFont();
...@@ -2045,20 +2045,20 @@ IMPL_LINK( SwRedlineOptionsTabPage, ColorHdl, SvxColorListBox&, rListBox, void ) ...@@ -2045,20 +2045,20 @@ IMPL_LINK( SwRedlineOptionsTabPage, ColorHdl, SvxColorListBox&, rListBox, void )
SvxFontPrevWindow *pPrev = nullptr; SvxFontPrevWindow *pPrev = nullptr;
ListBox* pLB; ListBox* pLB;
if (pColorLB == pInsertColorLB) if (pColorLB == m_pInsertColorLB)
{ {
pLB = pInsertLB; pLB = m_pInsertLB;
pPrev = pInsertedPreviewWN; pPrev = m_pInsertedPreviewWN;
} }
else if (pColorLB == pDeletedColorLB) else if (pColorLB == m_pDeletedColorLB)
{ {
pLB = pDeletedLB; pLB = m_pDeletedLB;
pPrev = pDeletedPreviewWN; pPrev = m_pDeletedPreviewWN;
} }
else else
{ {
pLB = pChangedLB; pLB = m_pChangedLB;
pPrev = pChangedPreviewWN; pPrev = m_pChangedPreviewWN;
} }
SvxFont& rFont = pPrev->GetFont(); SvxFont& rFont = pPrev->GetFont();
...@@ -2106,10 +2106,10 @@ IMPL_LINK( SwRedlineOptionsTabPage, ColorHdl, SvxColorListBox&, rListBox, void ) ...@@ -2106,10 +2106,10 @@ IMPL_LINK( SwRedlineOptionsTabPage, ColorHdl, SvxColorListBox&, rListBox, void )
void SwRedlineOptionsTabPage::ChangedMaskPrev() void SwRedlineOptionsTabPage::ChangedMaskPrev()
{ {
pMarkPreviewWN->SetMarkPos(pMarkPosLB->GetSelectEntryPos()); m_pMarkPreviewWN->SetMarkPos(m_pMarkPosLB->GetSelectEntryPos());
pMarkPreviewWN->SetColor(pMarkColorLB->GetSelectEntryColor().GetColor()); m_pMarkPreviewWN->SetColor(m_pMarkColorLB->GetSelectEntryColor().GetColor());
pMarkPreviewWN->Invalidate(); m_pMarkPreviewWN->Invalidate();
} }
IMPL_LINK_NOARG(SwRedlineOptionsTabPage, ChangedMaskPrevHdl, ListBox&, void) IMPL_LINK_NOARG(SwRedlineOptionsTabPage, ChangedMaskPrevHdl, ListBox&, void)
......
...@@ -311,21 +311,21 @@ public: ...@@ -311,21 +311,21 @@ public:
// redlining options // redlining options
class SwRedlineOptionsTabPage : public SfxTabPage class SwRedlineOptionsTabPage : public SfxTabPage
{ {
VclPtr<ListBox> pInsertLB; VclPtr<ListBox> m_pInsertLB;
VclPtr<SvxColorListBox> pInsertColorLB; VclPtr<SvxColorListBox> m_pInsertColorLB;
VclPtr<SvxFontPrevWindow> pInsertedPreviewWN; VclPtr<SvxFontPrevWindow> m_pInsertedPreviewWN;
VclPtr<ListBox> pDeletedLB; VclPtr<ListBox> m_pDeletedLB;
VclPtr<SvxColorListBox> pDeletedColorLB; VclPtr<SvxColorListBox> m_pDeletedColorLB;
VclPtr<SvxFontPrevWindow> pDeletedPreviewWN; VclPtr<SvxFontPrevWindow> m_pDeletedPreviewWN;
VclPtr<ListBox> pChangedLB; VclPtr<ListBox> m_pChangedLB;
VclPtr<SvxColorListBox> pChangedColorLB; VclPtr<SvxColorListBox> m_pChangedColorLB;
VclPtr<SvxFontPrevWindow> pChangedPreviewWN; VclPtr<SvxFontPrevWindow> m_pChangedPreviewWN;
VclPtr<ListBox> pMarkPosLB; VclPtr<ListBox> m_pMarkPosLB;
VclPtr<SvxColorListBox> pMarkColorLB; VclPtr<SvxColorListBox> m_pMarkColorLB;
VclPtr<SwMarkPreview> pMarkPreviewWN; VclPtr<SwMarkPreview> m_pMarkPreviewWN;
DECL_LINK(AttribHdl, ListBox&, void); DECL_LINK(AttribHdl, ListBox&, void);
void ChangedMaskPrev(); void ChangedMaskPrev();
......
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