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

sw: prefix members of SwSectionFootnoteEndTabPage

Change-Id: I785b50d6f09db79d3184a19c01e71ef26c11b1d1
üst 412d3a8f
...@@ -1817,39 +1817,39 @@ SwSectionFootnoteEndTabPage::SwSectionFootnoteEndTabPage( vcl::Window *pParent, ...@@ -1817,39 +1817,39 @@ SwSectionFootnoteEndTabPage::SwSectionFootnoteEndTabPage( vcl::Window *pParent,
: SfxTabPage( pParent, "FootnotesEndnotesTabPage", "modules/swriter/ui/footnotesendnotestabpage.ui", &rAttrSet ) : SfxTabPage( pParent, "FootnotesEndnotesTabPage", "modules/swriter/ui/footnotesendnotestabpage.ui", &rAttrSet )
{ {
get(pFootnoteNtAtTextEndCB,"ftnntattextend"); get(m_pFootnoteNtAtTextEndCB,"ftnntattextend");
get(pFootnoteNtNumCB,"ftnntnum"); get(m_pFootnoteNtNumCB,"ftnntnum");
get(pFootnoteOffsetLbl,"ftnoffset_label"); get(m_pFootnoteOffsetLbl,"ftnoffset_label");
get(pFootnoteOffsetField,"ftnoffset"); get(m_pFootnoteOffsetField,"ftnoffset");
get(pFootnoteNtNumFormatCB,"ftnntnumfmt"); get(m_pFootnoteNtNumFormatCB,"ftnntnumfmt");
get(pFootnotePrefixFT,"ftnprefix_label"); get(m_pFootnotePrefixFT,"ftnprefix_label");
get(pFootnotePrefixED,"ftnprefix"); get(m_pFootnotePrefixED,"ftnprefix");
get(pFootnoteNumViewBox,"ftnnumviewbox"); get(m_pFootnoteNumViewBox,"ftnnumviewbox");
get(pFootnoteSuffixFT,"ftnsuffix_label"); get(m_pFootnoteSuffixFT,"ftnsuffix_label");
get(pFootnoteSuffixED,"ftnsuffix"); get(m_pFootnoteSuffixED,"ftnsuffix");
get(pEndNtAtTextEndCB,"endntattextend"); get(m_pEndNtAtTextEndCB,"endntattextend");
get(pEndNtNumCB,"endntnum"); get(m_pEndNtNumCB,"endntnum");
get(pEndOffsetLbl,"endoffset_label"); get(m_pEndOffsetLbl,"endoffset_label");
get(pEndOffsetField,"endoffset"); get(m_pEndOffsetField,"endoffset");
get(pEndNtNumFormatCB,"endntnumfmt"); get(m_pEndNtNumFormatCB,"endntnumfmt");
get(pEndPrefixFT,"endprefix_label"); get(m_pEndPrefixFT,"endprefix_label");
get(pEndPrefixED,"endprefix"); get(m_pEndPrefixED,"endprefix");
get(pEndNumViewBox,"endnumviewbox"); get(m_pEndNumViewBox,"endnumviewbox");
get(pEndSuffixFT,"endsuffix_label"); get(m_pEndSuffixFT,"endsuffix_label");
get(pEndSuffixED,"endsuffix"); get(m_pEndSuffixED,"endsuffix");
Link<Button*,void> aLk( LINK( this, SwSectionFootnoteEndTabPage, FootEndHdl)); Link<Button*,void> aLk( LINK( this, SwSectionFootnoteEndTabPage, FootEndHdl));
pFootnoteNtAtTextEndCB->SetClickHdl( aLk ); m_pFootnoteNtAtTextEndCB->SetClickHdl( aLk );
pFootnoteNtNumCB->SetClickHdl( aLk ); m_pFootnoteNtNumCB->SetClickHdl( aLk );
pEndNtAtTextEndCB->SetClickHdl( aLk ); m_pEndNtAtTextEndCB->SetClickHdl( aLk );
pEndNtNumCB->SetClickHdl( aLk ); m_pEndNtNumCB->SetClickHdl( aLk );
pFootnoteNtNumFormatCB->SetClickHdl( aLk ); m_pFootnoteNtNumFormatCB->SetClickHdl( aLk );
pEndNtNumFormatCB->SetClickHdl( aLk ); m_pEndNtNumFormatCB->SetClickHdl( aLk );
} }
SwSectionFootnoteEndTabPage::~SwSectionFootnoteEndTabPage() SwSectionFootnoteEndTabPage::~SwSectionFootnoteEndTabPage()
...@@ -1859,34 +1859,34 @@ SwSectionFootnoteEndTabPage::~SwSectionFootnoteEndTabPage() ...@@ -1859,34 +1859,34 @@ SwSectionFootnoteEndTabPage::~SwSectionFootnoteEndTabPage()
void SwSectionFootnoteEndTabPage::dispose() void SwSectionFootnoteEndTabPage::dispose()
{ {
pFootnoteNtAtTextEndCB.clear(); m_pFootnoteNtAtTextEndCB.clear();
pFootnoteNtNumCB.clear(); m_pFootnoteNtNumCB.clear();
pFootnoteOffsetLbl.clear(); m_pFootnoteOffsetLbl.clear();
pFootnoteOffsetField.clear(); m_pFootnoteOffsetField.clear();
pFootnoteNtNumFormatCB.clear(); m_pFootnoteNtNumFormatCB.clear();
pFootnotePrefixFT.clear(); m_pFootnotePrefixFT.clear();
pFootnotePrefixED.clear(); m_pFootnotePrefixED.clear();
pFootnoteNumViewBox.clear(); m_pFootnoteNumViewBox.clear();
pFootnoteSuffixFT.clear(); m_pFootnoteSuffixFT.clear();
pFootnoteSuffixED.clear(); m_pFootnoteSuffixED.clear();
pEndNtAtTextEndCB.clear(); m_pEndNtAtTextEndCB.clear();
pEndNtNumCB.clear(); m_pEndNtNumCB.clear();
pEndOffsetLbl.clear(); m_pEndOffsetLbl.clear();
pEndOffsetField.clear(); m_pEndOffsetField.clear();
pEndNtNumFormatCB.clear(); m_pEndNtNumFormatCB.clear();
pEndPrefixFT.clear(); m_pEndPrefixFT.clear();
pEndPrefixED.clear(); m_pEndPrefixED.clear();
pEndNumViewBox.clear(); m_pEndNumViewBox.clear();
pEndSuffixFT.clear(); m_pEndSuffixFT.clear();
pEndSuffixED.clear(); m_pEndSuffixED.clear();
SfxTabPage::dispose(); SfxTabPage::dispose();
} }
bool SwSectionFootnoteEndTabPage::FillItemSet( SfxItemSet* rSet ) bool SwSectionFootnoteEndTabPage::FillItemSet( SfxItemSet* rSet )
{ {
SwFormatFootnoteAtTextEnd aFootnote( pFootnoteNtAtTextEndCB->IsChecked() SwFormatFootnoteAtTextEnd aFootnote( m_pFootnoteNtAtTextEndCB->IsChecked()
? ( pFootnoteNtNumCB->IsChecked() ? ( m_pFootnoteNtNumCB->IsChecked()
? ( pFootnoteNtNumFormatCB->IsChecked() ? ( m_pFootnoteNtNumFormatCB->IsChecked()
? FTNEND_ATTXTEND_OWNNUMANDFMT ? FTNEND_ATTXTEND_OWNNUMANDFMT
: FTNEND_ATTXTEND_OWNNUMSEQ ) : FTNEND_ATTXTEND_OWNNUMSEQ )
: FTNEND_ATTXTEND ) : FTNEND_ATTXTEND )
...@@ -1895,19 +1895,19 @@ bool SwSectionFootnoteEndTabPage::FillItemSet( SfxItemSet* rSet ) ...@@ -1895,19 +1895,19 @@ bool SwSectionFootnoteEndTabPage::FillItemSet( SfxItemSet* rSet )
switch( aFootnote.GetValue() ) switch( aFootnote.GetValue() )
{ {
case FTNEND_ATTXTEND_OWNNUMANDFMT: case FTNEND_ATTXTEND_OWNNUMANDFMT:
aFootnote.SetNumType( pFootnoteNumViewBox->GetSelectedNumberingType() ); aFootnote.SetNumType( m_pFootnoteNumViewBox->GetSelectedNumberingType() );
aFootnote.SetPrefix( pFootnotePrefixED->GetText().replaceAll("\\t", "\t") ); // fdo#65666 aFootnote.SetPrefix( m_pFootnotePrefixED->GetText().replaceAll("\\t", "\t") ); // fdo#65666
aFootnote.SetSuffix( pFootnoteSuffixED->GetText().replaceAll("\\t", "\t") ); aFootnote.SetSuffix( m_pFootnoteSuffixED->GetText().replaceAll("\\t", "\t") );
// no break; // no break;
case FTNEND_ATTXTEND_OWNNUMSEQ: case FTNEND_ATTXTEND_OWNNUMSEQ:
aFootnote.SetOffset( static_cast< sal_uInt16 >( pFootnoteOffsetField->GetValue()-1 ) ); aFootnote.SetOffset( static_cast< sal_uInt16 >( m_pFootnoteOffsetField->GetValue()-1 ) );
// no break; // no break;
} }
SwFormatEndAtTextEnd aEnd( pEndNtAtTextEndCB->IsChecked() SwFormatEndAtTextEnd aEnd( m_pEndNtAtTextEndCB->IsChecked()
? ( pEndNtNumCB->IsChecked() ? ( m_pEndNtNumCB->IsChecked()
? ( pEndNtNumFormatCB->IsChecked() ? ( m_pEndNtNumFormatCB->IsChecked()
? FTNEND_ATTXTEND_OWNNUMANDFMT ? FTNEND_ATTXTEND_OWNNUMANDFMT
: FTNEND_ATTXTEND_OWNNUMSEQ ) : FTNEND_ATTXTEND_OWNNUMSEQ )
: FTNEND_ATTXTEND ) : FTNEND_ATTXTEND )
...@@ -1916,13 +1916,13 @@ bool SwSectionFootnoteEndTabPage::FillItemSet( SfxItemSet* rSet ) ...@@ -1916,13 +1916,13 @@ bool SwSectionFootnoteEndTabPage::FillItemSet( SfxItemSet* rSet )
switch( aEnd.GetValue() ) switch( aEnd.GetValue() )
{ {
case FTNEND_ATTXTEND_OWNNUMANDFMT: case FTNEND_ATTXTEND_OWNNUMANDFMT:
aEnd.SetNumType( pEndNumViewBox->GetSelectedNumberingType() ); aEnd.SetNumType( m_pEndNumViewBox->GetSelectedNumberingType() );
aEnd.SetPrefix( pEndPrefixED->GetText().replaceAll("\\t", "\t") ); aEnd.SetPrefix( m_pEndPrefixED->GetText().replaceAll("\\t", "\t") );
aEnd.SetSuffix( pEndSuffixED->GetText().replaceAll("\\t", "\t") ); aEnd.SetSuffix( m_pEndSuffixED->GetText().replaceAll("\\t", "\t") );
// no break; // no break;
case FTNEND_ATTXTEND_OWNNUMSEQ: case FTNEND_ATTXTEND_OWNNUMSEQ:
aEnd.SetOffset( static_cast< sal_uInt16 >( pEndOffsetField->GetValue()-1 ) ); aEnd.SetOffset( static_cast< sal_uInt16 >( m_pEndOffsetField->GetValue()-1 ) );
// no break; // no break;
} }
...@@ -1944,29 +1944,29 @@ void SwSectionFootnoteEndTabPage::ResetState( bool bFootnote, ...@@ -1944,29 +1944,29 @@ void SwSectionFootnoteEndTabPage::ResetState( bool bFootnote,
if( bFootnote ) if( bFootnote )
{ {
pNtAtTextEndCB = pFootnoteNtAtTextEndCB; pNtAtTextEndCB = m_pFootnoteNtAtTextEndCB;
pNtNumCB = pFootnoteNtNumCB; pNtNumCB = m_pFootnoteNtNumCB;
pNtNumFormatCB = pFootnoteNtNumFormatCB; pNtNumFormatCB = m_pFootnoteNtNumFormatCB;
pPrefixFT = pFootnotePrefixFT; pPrefixFT = m_pFootnotePrefixFT;
pPrefixED = pFootnotePrefixED; pPrefixED = m_pFootnotePrefixED;
pSuffixFT = pFootnoteSuffixFT; pSuffixFT = m_pFootnoteSuffixFT;
pSuffixED = pFootnoteSuffixED; pSuffixED = m_pFootnoteSuffixED;
pNumViewBox = pFootnoteNumViewBox; pNumViewBox = m_pFootnoteNumViewBox;
pOffsetText = pFootnoteOffsetLbl; pOffsetText = m_pFootnoteOffsetLbl;
pOffsetField = pFootnoteOffsetField; pOffsetField = m_pFootnoteOffsetField;
} }
else else
{ {
pNtAtTextEndCB = pEndNtAtTextEndCB; pNtAtTextEndCB = m_pEndNtAtTextEndCB;
pNtNumCB = pEndNtNumCB; pNtNumCB = m_pEndNtNumCB;
pNtNumFormatCB = pEndNtNumFormatCB; pNtNumFormatCB = m_pEndNtNumFormatCB;
pPrefixFT = pEndPrefixFT; pPrefixFT = m_pEndPrefixFT;
pPrefixED = pEndPrefixED; pPrefixED = m_pEndPrefixED;
pSuffixFT = pEndSuffixFT; pSuffixFT = m_pEndSuffixFT;
pSuffixED = pEndSuffixED; pSuffixED = m_pEndSuffixED;
pNumViewBox = pEndNumViewBox; pNumViewBox = m_pEndNumViewBox;
pOffsetText = pEndOffsetLbl; pOffsetText = m_pEndOffsetLbl;
pOffsetField = pEndOffsetField; pOffsetField = m_pEndOffsetField;
} }
const sal_uInt16 eState = rAttr.GetValue(); const sal_uInt16 eState = rAttr.GetValue();
...@@ -2028,8 +2028,8 @@ VclPtr<SfxTabPage> SwSectionFootnoteEndTabPage::Create( vcl::Window* pParent, ...@@ -2028,8 +2028,8 @@ VclPtr<SfxTabPage> SwSectionFootnoteEndTabPage::Create( vcl::Window* pParent,
IMPL_LINK_TYPED( SwSectionFootnoteEndTabPage, FootEndHdl, Button *, pBox, void ) IMPL_LINK_TYPED( SwSectionFootnoteEndTabPage, FootEndHdl, Button *, pBox, void )
{ {
bool bFoot = pFootnoteNtAtTextEndCB == pBox || pFootnoteNtNumCB == pBox || bool bFoot = m_pFootnoteNtAtTextEndCB == pBox || m_pFootnoteNtNumCB == pBox ||
pFootnoteNtNumFormatCB == pBox ; m_pFootnoteNtNumFormatCB == pBox ;
CheckBox *pNumBox, *pNumFormatBox, *pEndBox; CheckBox *pNumBox, *pNumFormatBox, *pEndBox;
SwNumberingTypeListBox* pNumViewBox; SwNumberingTypeListBox* pNumViewBox;
...@@ -2040,29 +2040,29 @@ IMPL_LINK_TYPED( SwSectionFootnoteEndTabPage, FootEndHdl, Button *, pBox, void ) ...@@ -2040,29 +2040,29 @@ IMPL_LINK_TYPED( SwSectionFootnoteEndTabPage, FootEndHdl, Button *, pBox, void )
if( bFoot ) if( bFoot )
{ {
pEndBox = pFootnoteNtAtTextEndCB; pEndBox = m_pFootnoteNtAtTextEndCB;
pNumBox = pFootnoteNtNumCB; pNumBox = m_pFootnoteNtNumCB;
pNumFormatBox = pFootnoteNtNumFormatCB; pNumFormatBox = m_pFootnoteNtNumFormatCB;
pNumViewBox = pFootnoteNumViewBox; pNumViewBox = m_pFootnoteNumViewBox;
pOffsetText = pFootnoteOffsetLbl; pOffsetText = m_pFootnoteOffsetLbl;
pOffsetField = pFootnoteOffsetField; pOffsetField = m_pFootnoteOffsetField;
pPrefixFT = pFootnotePrefixFT; pPrefixFT = m_pFootnotePrefixFT;
pSuffixFT = pFootnoteSuffixFT; pSuffixFT = m_pFootnoteSuffixFT;
pPrefixED = pFootnotePrefixED; pPrefixED = m_pFootnotePrefixED;
pSuffixED = pFootnoteSuffixED; pSuffixED = m_pFootnoteSuffixED;
} }
else else
{ {
pEndBox = pEndNtAtTextEndCB; pEndBox = m_pEndNtAtTextEndCB;
pNumBox = pEndNtNumCB; pNumBox = m_pEndNtNumCB;
pNumFormatBox = pEndNtNumFormatCB; pNumFormatBox = m_pEndNtNumFormatCB;
pNumViewBox = pEndNumViewBox; pNumViewBox = m_pEndNumViewBox;
pOffsetText = pEndOffsetLbl; pOffsetText = m_pEndOffsetLbl;
pOffsetField = pEndOffsetField; pOffsetField = m_pEndOffsetField;
pPrefixFT = pEndPrefixFT; pPrefixFT = m_pEndPrefixFT;
pSuffixFT = pEndSuffixFT; pSuffixFT = m_pEndSuffixFT;
pPrefixED = pEndPrefixED; pPrefixED = m_pEndPrefixED;
pSuffixED = pEndSuffixED; pSuffixED = m_pEndSuffixED;
} }
bool bEnableAtEnd = TRISTATE_TRUE == pEndBox->GetState(); bool bEnableAtEnd = TRISTATE_TRUE == pEndBox->GetState();
......
...@@ -196,31 +196,31 @@ public: ...@@ -196,31 +196,31 @@ public:
class SwSectionFootnoteEndTabPage : public SfxTabPage class SwSectionFootnoteEndTabPage : public SfxTabPage
{ {
VclPtr<CheckBox> pFootnoteNtAtTextEndCB; VclPtr<CheckBox> m_pFootnoteNtAtTextEndCB;
VclPtr<CheckBox> pFootnoteNtNumCB; VclPtr<CheckBox> m_pFootnoteNtNumCB;
VclPtr<FixedText> pFootnoteOffsetLbl; VclPtr<FixedText> m_pFootnoteOffsetLbl;
VclPtr<NumericField> pFootnoteOffsetField; VclPtr<NumericField> m_pFootnoteOffsetField;
VclPtr<CheckBox> pFootnoteNtNumFormatCB; VclPtr<CheckBox> m_pFootnoteNtNumFormatCB;
VclPtr<FixedText> pFootnotePrefixFT; VclPtr<FixedText> m_pFootnotePrefixFT;
VclPtr<Edit> pFootnotePrefixED; VclPtr<Edit> m_pFootnotePrefixED;
VclPtr<SwNumberingTypeListBox> pFootnoteNumViewBox; VclPtr<SwNumberingTypeListBox> m_pFootnoteNumViewBox;
VclPtr<FixedText> pFootnoteSuffixFT; VclPtr<FixedText> m_pFootnoteSuffixFT;
VclPtr<Edit> pFootnoteSuffixED; VclPtr<Edit> m_pFootnoteSuffixED;
VclPtr<CheckBox> pEndNtAtTextEndCB; VclPtr<CheckBox> m_pEndNtAtTextEndCB;
VclPtr<CheckBox> pEndNtNumCB; VclPtr<CheckBox> m_pEndNtNumCB;
VclPtr<FixedText> pEndOffsetLbl; VclPtr<FixedText> m_pEndOffsetLbl;
VclPtr<NumericField> pEndOffsetField; VclPtr<NumericField> m_pEndOffsetField;
VclPtr<CheckBox> pEndNtNumFormatCB; VclPtr<CheckBox> m_pEndNtNumFormatCB;
VclPtr<FixedText> pEndPrefixFT; VclPtr<FixedText> m_pEndPrefixFT;
VclPtr<Edit> pEndPrefixED; VclPtr<Edit> m_pEndPrefixED;
VclPtr<SwNumberingTypeListBox> pEndNumViewBox; VclPtr<SwNumberingTypeListBox> m_pEndNumViewBox;
VclPtr<FixedText> pEndSuffixFT; VclPtr<FixedText> m_pEndSuffixFT;
VclPtr<Edit> pEndSuffixED; VclPtr<Edit> m_pEndSuffixED;
DECL_LINK_TYPED( FootEndHdl, Button*, void ); DECL_LINK_TYPED( FootEndHdl, Button*, void );
void ResetState( bool bFootnote, const SwFormatFootnoteEndAtTextEnd& ); void ResetState( bool bFootnote, const SwFormatFootnoteEndAtTextEnd& );
......
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