Kaydet (Commit) 9625366d authored tarafından Vladimir Glazounov's avatar Vladimir Glazounov

INTEGRATION: CWS os8 (1.64.4.3.48); FILE MERGED

2003/04/09 09:11:53 os 1.64.4.3.48.3: #104245# Default not allowed as DropCapCharStyleName, too
2003/04/07 22:08:44 os 1.64.4.3.48.2: RESYNC: (1.64.4.3-1.66); FILE MERGED
2003/04/03 07:12:18 os 1.64.4.3.48.1: #108583# precompiled headers removed
üst 8a088c64
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: unoobj.cxx,v $ * $RCSfile: unoobj.cxx,v $
* *
* $Revision: 1.67 $ * $Revision: 1.68 $
* *
* last change: $Author: hr $ $Date: 2003-04-04 18:12:51 $ * last change: $Author: vg $ $Date: 2003-04-17 16:12:21 $
* *
* The Contents of this file are made available subject to the terms of * The Contents of this file are made available subject to the terms of
* either of the following licenses * either of the following licenses
...@@ -59,9 +59,6 @@ ...@@ -59,9 +59,6 @@
* *
************************************************************************/ ************************************************************************/
#ifdef PRECOMPILED
#include "core_pch.hxx"
#endif
#pragma hdrstop #pragma hdrstop
...@@ -803,12 +800,11 @@ sal_Bool lcl_setCrsrPropertyValue(const SfxItemPropertyMap* pMap, ...@@ -803,12 +800,11 @@ sal_Bool lcl_setCrsrPropertyValue(const SfxItemPropertyMap* pMap,
SwStyleNameMapper::FillUIName(uStyle, sStyle, GET_POOLID_CHRFMT, sal_True ); SwStyleNameMapper::FillUIName(uStyle, sStyle, GET_POOLID_CHRFMT, sal_True );
SwDoc* pDoc = rPam.GetDoc(); SwDoc* pDoc = rPam.GetDoc();
//default character style mustn't be set as default format //default character style mustn't be set as default format
if(sStyle.EqualsAscii("Standard"))
throw lang::IllegalArgumentException();
SwDocStyleSheet* pStyle = SwDocStyleSheet* pStyle =
(SwDocStyleSheet*)pDoc->GetDocShell()->GetStyleSheetPool()->Find(sStyle, SFX_STYLE_FAMILY_CHAR); (SwDocStyleSheet*)pDoc->GetDocShell()->GetStyleSheetPool()->Find(sStyle, SFX_STYLE_FAMILY_CHAR);
SwFmtDrop* pDrop = 0; SwFmtDrop* pDrop = 0;
if(pStyle) if(pStyle &&
((SwDocStyleSheet*)pStyle)->GetCharFmt() != pDoc->GetDfltCharFmt())
{ {
const SfxPoolItem* pItem; const SfxPoolItem* pItem;
if(SFX_ITEM_SET == rItemSet.GetItemState( RES_PARATR_DROP, sal_True, &pItem ) ) if(SFX_ITEM_SET == rItemSet.GetItemState( RES_PARATR_DROP, sal_True, &pItem ) )
......
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