diff options
author | Kurt Zenker <kz@openoffice.org> | 2005-03-01 14:28:27 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2005-03-01 14:28:27 +0000 |
commit | c76698ef626fa18a0d3ad222af66819cfaefbc5f (patch) | |
tree | 85f8d336f61bd1293b572d1ffc74b57e601d1848 /sw/source/ui/misc/num.cxx | |
parent | 0b83e56613ca921a8f2d02b7da7176e6e7248356 (diff) |
INTEGRATION: CWS os52 (1.10.258); FILE MERGED
2005/02/01 11:13:27 os 1.10.258.1: #i41387# outline dialog: store current numbering level at runtime
Diffstat (limited to 'sw/source/ui/misc/num.cxx')
-rw-r--r-- | sw/source/ui/misc/num.cxx | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/sw/source/ui/misc/num.cxx b/sw/source/ui/misc/num.cxx index 74c8055b25bd..a1552876f000 100644 --- a/sw/source/ui/misc/num.cxx +++ b/sw/source/ui/misc/num.cxx @@ -2,9 +2,9 @@ * * $RCSfile: num.cxx,v $ * - * $Revision: 1.10 $ + * $Revision: 1.11 $ * - * last change: $Author: rt $ $Date: 2004-08-23 09:07:16 $ + * last change: $Author: kz $ $Date: 2005-03-01 15:28:27 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -489,10 +489,7 @@ void SwNumPositionTabPage::ActivatePage(const SfxItemSet& rSet) --------------------------------------------------*/ int SwNumPositionTabPage::DeactivatePage(SfxItemSet *pSet) { - if(pOutlineDlg) - pOutlineDlg->SetActNumLevel(nActNumLvl); -// else -// ((SwNumBulletTabDialog*)GetTabDialog())->SetActNumLevel(nActNumLvl); + SwOutlineTabDialog::SetActNumLevel(nActNumLvl); if(pSet) FillItemSet(*pSet); return TRUE; @@ -529,9 +526,7 @@ void SwNumPositionTabPage::Reset( const SfxItemSet& rSet ) else if(SFX_ITEM_SET == rSet.GetItemState(FN_PARAM_ACT_NUMBER, FALSE, &pItem)) pSaveNum = ((SwUINumRuleItem*)pItem)->GetNumRule(); - nActNumLvl = - pOutlineDlg ? pOutlineDlg->GetActNumLevel() : 0; -// ((SwNumBulletTabDialog*)GetTabDialog())->GetActNumLevel(); + nActNumLvl = SwOutlineTabDialog::GetActNumLevel(); USHORT nMask = 1; aLevelLB.SetUpdateMode(FALSE); aLevelLB.SetNoSelection(); |