summaryrefslogtreecommitdiff
path: root/sw/source/ui/chrdlg/numpara.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-05-08 14:53:29 +0200
committerNoel Grandin <noel@peralex.com>2014-05-08 14:55:12 +0200
commitbf30c8b16d9ac9304a49020ec2d4f744d90abe26 (patch)
tree0296cec9ca0729874ed1a1963af9f1311366c326 /sw/source/ui/chrdlg/numpara.cxx
parentd15540c431587368d749b53074af25cf865e7a5f (diff)
use new VCL IsValueChangedFromSaved method
follow to commit ff1a7a59434f5f793d4044aad615bcf78148e963 "RFC: add IsValueChangedFromSaved to VCL button and listbox" Change-Id: If2e6d9e7c18590dc4abbc90362d7897ca2557dd6
Diffstat (limited to 'sw/source/ui/chrdlg/numpara.cxx')
-rw-r--r--sw/source/ui/chrdlg/numpara.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/sw/source/ui/chrdlg/numpara.cxx b/sw/source/ui/chrdlg/numpara.cxx
index 90b49decb0e3..ab8bdac22bb5 100644
--- a/sw/source/ui/chrdlg/numpara.cxx
+++ b/sw/source/ui/chrdlg/numpara.cxx
@@ -105,7 +105,7 @@ const sal_uInt16* SwParagraphNumTabPage::GetRanges()
bool SwParagraphNumTabPage::FillItemSet( SfxItemSet& rSet )
{
- if( m_pOutlineLvLB->GetSelectEntryPos() != m_pOutlineLvLB->GetSavedValue())
+ if( m_pOutlineLvLB->IsValueChangedFromSaved())
{
const sal_uInt16 aOutlineLv = m_pOutlineLvLB->GetSelectEntryPos();
const SfxUInt16Item* pOldOutlineLv = (const SfxUInt16Item*)GetOldItem( rSet, SID_ATTR_PARA_OUTLINE_LEVEL);
@@ -116,7 +116,7 @@ bool SwParagraphNumTabPage::FillItemSet( SfxItemSet& rSet )
bModified = true;
}
- if( m_pNumberStyleLB->GetSelectEntryPos() != m_pNumberStyleLB->GetSavedValue())
+ if( m_pNumberStyleLB->IsValueChangedFromSaved())
{
OUString aStyle;
if(m_pNumberStyleLB->GetSelectEntryPos())
@@ -131,9 +131,9 @@ bool SwParagraphNumTabPage::FillItemSet( SfxItemSet& rSet )
bModified = true;
}
}
- if(m_pNewStartCB->GetState() != m_pNewStartCB->GetSavedValue() ||
- m_pNewStartNumberCB->GetState() != m_pNewStartNumberCB->GetSavedValue()||
- m_pNewStartNF->GetText() != m_pNewStartNF->GetSavedValue())
+ if(m_pNewStartCB->IsValueChangedFromSaved() ||
+ m_pNewStartNumberCB->IsValueChangedFromSaved()||
+ m_pNewStartNF->IsValueChangedFromSaved())
{
bModified = true;
bool bNewStartChecked = TRISTATE_TRUE == m_pNewStartCB->GetState();
@@ -143,9 +143,9 @@ bool SwParagraphNumTabPage::FillItemSet( SfxItemSet& rSet )
bNumberNewStartChecked && bNewStartChecked ? (sal_uInt16)m_pNewStartNF->GetValue() : USHRT_MAX));
}
- if(m_pCountParaCB->GetSavedValue() != m_pCountParaCB->GetState() ||
- m_pRestartParaCountCB->GetSavedValue() != m_pRestartParaCountCB->GetState() ||
- m_pRestartNF->GetSavedValue() != m_pRestartNF->GetText() )
+ if(m_pCountParaCB->IsValueChangedFromSaved()||
+ m_pRestartParaCountCB->IsValueChangedFromSaved() ||
+ m_pRestartNF->IsValueChangedFromSaved() )
{
SwFmtLineNumber aFmt;
aFmt.SetStartValue( static_cast< sal_uLong >(m_pRestartParaCountCB->GetState() == TRISTATE_TRUE ?