summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2008-03-05 16:26:54 +0000
committerKurt Zenker <kz@openoffice.org>2008-03-05 16:26:54 +0000
commit2efa086d481e260c662e7fea8acf0b354300b20b (patch)
treea113820257ea71db9f6c3989c20669f2caa525ec /sw/source
parent2e1be03c59cf3d1c7caf6bd212071562ddb6be38 (diff)
INTEGRATION: CWS swnewlistlevelattrs_DEV300 (1.25.84); FILE MERGED
2008/02/13 11:13:26 od 1.25.84.2: #i85348# adjustment due to adjusted constructor of class <SwNumRule> 2008/02/06 13:03:43 od 1.25.84.1: #i85348# minor correction due to missing cvs commit
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/ui/shells/txtattr.cxx23
1 files changed, 13 insertions, 10 deletions
diff --git a/sw/source/ui/shells/txtattr.cxx b/sw/source/ui/shells/txtattr.cxx
index c05d6f21803a..277b8831fb1c 100644
--- a/sw/source/ui/shells/txtattr.cxx
+++ b/sw/source/ui/shells/txtattr.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: txtattr.cxx,v $
*
- * $Revision: 1.25 $
+ * $Revision: 1.26 $
*
- * last change: $Author: rt $ $Date: 2007-11-06 16:27:15 $
+ * last change: $Author: kz $ $Date: 2008-03-05 17:26:54 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -164,7 +164,7 @@ void SwTextShell::ExecCharAttr(SfxRequest &rReq)
SfxItemSet aSet( GetPool(), RES_CHRATR_BEGIN, RES_CHRATR_END-1 );
if (STATE_TOGGLE == eState)
- rSh.GetAttr( aSet );
+ rSh.GetCurAttr( aSet );
switch ( nWhich )
{
@@ -310,7 +310,7 @@ void SwTextShell::ExecCharAttrArgs(SfxRequest &rReq)
case FN_SHRINK_FONT_SIZE:
{
SvxScriptSetItem aSetItem( SID_ATTR_CHAR_FONTHEIGHT, rPool );
- rWrtSh.GetAttr( aSetItem.GetItemSet() );
+ rWrtSh.GetCurAttr( aSetItem.GetItemSet() );
SfxItemSet aAttrSet( rPool, aSetItem.GetItemSet().GetRanges() );
const SfxPoolItem* pI;
@@ -503,7 +503,7 @@ SET_LINESPACE:
*/
SfxItemSet aAdjustSet( GetPool(),
RES_PARATR_ADJUST, RES_PARATR_ADJUST );
- GetShell().GetAttr(aAdjustSet);
+ GetShell().GetCurAttr(aAdjustSet);
BOOL bChgAdjust = FALSE;
SfxItemState eAdjustState = aAdjustSet.GetItemState(RES_PARATR_ADJUST, FALSE);
if(eAdjustState >= SFX_ITEM_DEFAULT)
@@ -547,7 +547,10 @@ SET_LINESPACE:
aRule.SetLevel(i, aFmt, aRule.Get(i) != 0);
}
- SwNumRule aSetRule( pCurRule->GetName());
+ // --> OD 2008-02-11 #newlistlevelattrs#
+ SwNumRule aSetRule( pCurRule->GetName(),
+ pCurRule->Get( 0 ).GetPositionAndSpaceMode() );
+ // <--
aSetRule.SetSvxRule( aRule, GetShell().GetDoc());
aSetRule.SetAutoRule( TRUE );
GetShell().SetCurNumRule( aSetRule );
@@ -591,7 +594,7 @@ void SwTextShell::ExecParaAttrArgs(SfxRequest &rReq)
{
String sCharStyleName = ((const SfxStringItem*)pItem)->GetValue();
SfxItemSet aSet(GetPool(), RES_PARATR_DROP, RES_PARATR_DROP, 0L);
- rSh.GetAttr(aSet);
+ rSh.GetCurAttr(aSet);
SwFmtDrop aDropItem((const SwFmtDrop&)aSet.Get(RES_PARATR_DROP));
SwCharFmt* pFmt = 0;
if(sCharStyleName.Len())
@@ -612,7 +615,7 @@ void SwTextShell::ExecParaAttrArgs(SfxRequest &rReq)
{
SfxItemSet aSet(GetPool(), RES_PARATR_DROP, RES_PARATR_DROP,
HINT_END, HINT_END, 0);
- rSh.GetAttr(aSet);
+ rSh.GetCurAttr(aSet);
SwAbstractDialogFactory* pFact = SwAbstractDialogFactory::Create();
DBG_ASSERT(pFact, "SwAbstractDialogFactory fail!");
@@ -671,7 +674,7 @@ void SwTextShell::GetAttrState(SfxItemSet &rSet)
SwWrtShell &rSh = GetShell();
SfxItemPool& rPool = GetPool();
SfxItemSet aCoreSet(rPool, aTxtFmtCollSetRange);
- rSh.GetAttr(aCoreSet); // *alle* Textattribute von der Core erfragen
+ rSh.GetCurAttr(aCoreSet); // *alle* Textattribute von der Core erfragen
SfxWhichIter aIter(rSet);
USHORT nSlot = aIter.FirstWhich();
@@ -869,7 +872,7 @@ void SwTextShell::GetAttrState(SfxItemSet &rSet)
case RES_TXTATR_INETFMT:
{
SfxItemSet aSet(GetPool(), RES_TXTATR_INETFMT, RES_TXTATR_INETFMT);
- rSh.GetAttr(aSet);
+ rSh.GetCurAttr(aSet);
#if OSL_DEBUG_LEVEL > 1
const SfxPoolItem& rItem = aSet.Get(RES_TXTATR_INETFMT, TRUE);
rSet.Put(rItem);