diff options
author | Dieter Loeschky <dl@openoffice.org> | 2000-11-16 12:55:39 +0000 |
---|---|---|
committer | Dieter Loeschky <dl@openoffice.org> | 2000-11-16 12:55:39 +0000 |
commit | 5dc708093d1ee179099abdcbf0c6f649b1c4deeb (patch) | |
tree | e8cc6e66fd051fe26329e3c7762aefc16c954029 /sd/source/ui/func/bulmaper.cxx | |
parent | 55e367c872b7bcd0f02d9f80daa240e591ab3056 (diff) |
Items for CJK and CTL
Diffstat (limited to 'sd/source/ui/func/bulmaper.cxx')
-rw-r--r-- | sd/source/ui/func/bulmaper.cxx | 42 |
1 files changed, 34 insertions, 8 deletions
diff --git a/sd/source/ui/func/bulmaper.cxx b/sd/source/ui/func/bulmaper.cxx index be32e5aa92c8..9e1a1e2b145b 100644 --- a/sd/source/ui/func/bulmaper.cxx +++ b/sd/source/ui/func/bulmaper.cxx @@ -2,9 +2,9 @@ * * $RCSfile: bulmaper.cxx,v $ * - * $Revision: 1.1.1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: hr $ $Date: 2000-09-18 16:48:34 $ + * last change: $Author: dl $ $Date: 2000-11-16 13:55:39 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -184,28 +184,54 @@ void SdBulletMapper::MapFontsInNumRule( SvxNumRule& aNumRule, const SfxItemSet& { // wenn Aufzaehlung statt Bullet gewaehlt wurde, wird der Bullet-Font // dem Vorlagen-Font angeglichen + + // to be implemented if module supports CJK + long nFontID = ITEMID_FONT; + long nFontHeightID = ITEMID_FONTHEIGHT; + long nWeightID = ITEMID_WEIGHT; + long nPostureID = ITEMID_POSTURE; + + if( 0 ) + { + nFontID = EE_CHAR_FONTINFO_CJK; + nFontHeightID = EE_CHAR_FONTHEIGHT_CJK; + nWeightID = EE_CHAR_WEIGHT_CJK; + nPostureID = EE_CHAR_ITALIC_CJK; + } + else if( 0 ) + { + nFontID = EE_CHAR_FONTINFO_CTL; + nFontHeightID = EE_CHAR_FONTHEIGHT_CTL; + nWeightID = EE_CHAR_WEIGHT_CTL; + nPostureID = EE_CHAR_ITALIC_CTL; + } + Font aMyFont; - const SvxFontItem& rFItem = (SvxFontItem&)rSet.Get(GetWhich(SID_ATTR_CHAR_FONT)); + const SvxFontItem& rFItem = + (SvxFontItem&)rSet.Get(GetWhich( nFontID )); aMyFont.SetFamily(rFItem.GetFamily()); aMyFont.SetName(rFItem.GetFamilyName()); aMyFont.SetCharSet(rFItem.GetCharSet()); aMyFont.SetPitch(rFItem.GetPitch()); - const SvxFontHeightItem& rFHItem = (SvxFontHeightItem&)rSet.Get(GetWhich(SID_ATTR_CHAR_FONTHEIGHT)); + const SvxFontHeightItem& rFHItem = + (SvxFontHeightItem&)rSet.Get(GetWhich( nFontHeightID )); aMyFont.SetSize(Size(0, rFHItem.GetHeight())); - const SvxWeightItem& rWItem = (SvxWeightItem&)rSet.Get(GetWhich(SID_ATTR_CHAR_WEIGHT)); + const SvxWeightItem& rWItem = + (SvxWeightItem&)rSet.Get(GetWhich( nWeightID )); aMyFont.SetWeight(rWItem.GetWeight()); + const SvxPostureItem& rPItem = + (SvxPostureItem&)rSet.Get(GetWhich( nPostureID )); + aMyFont.SetItalic(rPItem.GetPosture()); + const SvxUnderlineItem& rUItem = (SvxUnderlineItem&)rSet.Get(GetWhich(SID_ATTR_CHAR_UNDERLINE)); aMyFont.SetUnderline(rUItem.GetUnderline()); const SvxCrossedOutItem& rCOItem = (SvxCrossedOutItem&)rSet.Get(GetWhich(SID_ATTR_CHAR_STRIKEOUT)); aMyFont.SetStrikeout(rCOItem.GetStrikeout()); - const SvxPostureItem& rPItem = (SvxPostureItem&)rSet.Get(GetWhich(SID_ATTR_CHAR_POSTURE)); - aMyFont.SetItalic(rPItem.GetPosture()); - const SvxContourItem& rCItem = (SvxContourItem&)rSet.Get(GetWhich(SID_ATTR_CHAR_CONTOUR)); aMyFont.SetOutline(rCItem.GetValue()); |