diff options
author | Oliver Specht <os@openoffice.org> | 2002-06-11 07:39:16 +0000 |
---|---|---|
committer | Oliver Specht <os@openoffice.org> | 2002-06-11 07:39:16 +0000 |
commit | 4cc1143b9f6544dcbd5cac8d2c2c904f2faf5066 (patch) | |
tree | 8625e9ea3ba44daaf8962ba3af99ce7a023216e5 /sw | |
parent | 0a2f15ee11f18125762bc9cee39d64d15209b691 (diff) |
#99515# tab page Basic Fonts(CTL) added
Diffstat (limited to 'sw')
-rw-r--r-- | sw/inc/charatr.hxx | 6 | ||||
-rw-r--r-- | sw/source/ui/app/appopt.cxx | 10 | ||||
-rw-r--r-- | sw/source/ui/config/fontcfg.cxx | 33 | ||||
-rw-r--r-- | sw/source/ui/config/optdlg.hrc | 5 | ||||
-rw-r--r-- | sw/source/ui/config/optdlg.src | 9 | ||||
-rw-r--r-- | sw/source/ui/config/optpage.cxx | 82 | ||||
-rw-r--r-- | sw/source/ui/inc/fontcfg.hxx | 46 | ||||
-rw-r--r-- | sw/source/ui/inc/optpage.hxx | 14 |
8 files changed, 133 insertions, 72 deletions
diff --git a/sw/inc/charatr.hxx b/sw/inc/charatr.hxx index 14a228ce42b0..27b359e199c8 100644 --- a/sw/inc/charatr.hxx +++ b/sw/inc/charatr.hxx @@ -2,9 +2,9 @@ * * $RCSfile: charatr.hxx,v $ * - * $Revision: 1.7 $ + * $Revision: 1.8 $ * - * last change: $Author: os $ $Date: 2001-05-15 09:56:28 $ + * last change: $Author: os $ $Date: 2002-06-11 08:36:54 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -176,6 +176,8 @@ inline const SvxFontItem &SwFmt::GetFont(BOOL bInP) const { return aSet.GetFont(bInP); } inline const SvxFontItem &SwFmt::GetCJKFont(BOOL bInP) const { return aSet.GetCJKFont(bInP); } +inline const SvxFontItem &SwFmt::GetCTLFont(BOOL bInP) const + { return aSet.GetCTLFont(bInP); } inline const SvxColorItem &SwFmt::GetColor(BOOL bInP) const { return aSet.GetColor(bInP); } inline const SvxCharSetColorItem &SwFmt::GetCharSetColor(BOOL bInP) const diff --git a/sw/source/ui/app/appopt.cxx b/sw/source/ui/app/appopt.cxx index 99afc3fdd0eb..2bc7153c80fa 100644 --- a/sw/source/ui/app/appopt.cxx +++ b/sw/source/ui/app/appopt.cxx @@ -2,9 +2,9 @@ * * $RCSfile: appopt.cxx,v $ * - * $Revision: 1.17 $ + * $Revision: 1.18 $ * - * last change: $Author: os $ $Date: 2002-04-25 13:57:38 $ + * last change: $Author: os $ $Date: 2002-06-11 08:39:16 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -600,9 +600,11 @@ SfxTabPage* SwModule::CreateTabPage( USHORT nId, Window* pParent, const SfxItem break; case RID_SW_TP_STD_FONT: case RID_SW_TP_STD_FONT_CJK: + case RID_SW_TP_STD_FONT_CTL: pRet = SwStdFontTabPage::Create(pParent, rSet); - if(RID_SW_TP_STD_FONT_CJK == nId) - ((SwStdFontTabPage*)pRet)->SetCJKMode(); + if(RID_SW_TP_STD_FONT != nId) + ((SwStdFontTabPage*)pRet)->SetFontMode( + RID_SW_TP_STD_FONT_CJK == nId ? FONT_GROUP_CJK : FONT_GROUP_CTL); break; case RID_SW_TP_HTML_OPTPRINT_PAGE: case RID_SW_TP_OPTPRINT_PAGE: diff --git a/sw/source/ui/config/fontcfg.cxx b/sw/source/ui/config/fontcfg.cxx index 1804a21e62d4..8b2eb3b82fbf 100644 --- a/sw/source/ui/config/fontcfg.cxx +++ b/sw/source/ui/config/fontcfg.cxx @@ -2,9 +2,9 @@ * * $RCSfile: fontcfg.cxx,v $ * - * $Revision: 1.10 $ + * $Revision: 1.11 $ * - * last change: $Author: jp $ $Date: 2001-09-27 17:18:57 $ + * last change: $Author: os $ $Date: 2002-06-11 08:38:12 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -110,8 +110,13 @@ Sequence<OUString> SwStdFontConfig::GetPropertyNames() "DefaultFontCJK/List", // 7 "DefaultFontCJK/Caption", // 8 "DefaultFontCJK/Index", // 9 + "DefaultFontCTL/Standard", // 10 + "DefaultFontCTL/Heading", // 11 + "DefaultFontCTL/List", // 12 + "DefaultFontCTL/Caption", // 13 + "DefaultFontCTL/Index", // 14 }; - const int nCount = 10; + const int nCount = 15; Sequence<OUString> aNames(nCount); OUString* pNames = aNames.getArray(); for(int i = 0; i < nCount; i++) @@ -178,6 +183,7 @@ BOOL SwStdFontConfig::IsFontDefault(USHORT nFontType) const LanguageType eLang = GetAppLanguage(); String sDefFont(GetDefaultFor(FONT_STANDARD, eLang)); String sDefFontCJK(GetDefaultFor(FONT_STANDARD_CJK, eLang)); + String sDefFontCTL(GetDefaultFor(FONT_STANDARD_CTL, eLang)); switch( nFontType ) { case FONT_STANDARD: @@ -186,8 +192,12 @@ BOOL SwStdFontConfig::IsFontDefault(USHORT nFontType) const case FONT_STANDARD_CJK: bSame = sDefaultFonts[nFontType] == sDefFontCJK; break; + case FONT_STANDARD_CTL: + bSame = sDefaultFonts[nFontType] == sDefFontCTL; + break; case FONT_OUTLINE : case FONT_OUTLINE_CJK : + case FONT_OUTLINE_CTL : bSame = sDefaultFonts[nFontType] == GetDefaultFor(nFontType, eLang); break; @@ -205,6 +215,14 @@ BOOL SwStdFontConfig::IsFontDefault(USHORT nFontType) const bSame = b1 && sDefaultFonts[nFontType] == sDefFontCJK; } break; + case FONT_LIST_CTL : + case FONT_CAPTION_CTL : + case FONT_INDEX_CTL : + { + BOOL b1 = sDefaultFonts[FONT_STANDARD_CJK] == sDefFontCTL; + bSame = b1 && sDefaultFonts[nFontType] == sDefFontCTL; + } + break; } return bSame; } @@ -224,12 +242,21 @@ String SwStdFontConfig::GetDefaultFor(USHORT nFontType, LanguageType eLang) case FONT_OUTLINE_CJK : nFontId = DEFAULTFONT_CJK_HEADING; break; + case FONT_OUTLINE_CTL : + nFontId = DEFAULTFONT_CTL_HEADING; + break; case FONT_STANDARD_CJK: case FONT_LIST_CJK : case FONT_CAPTION_CJK : case FONT_INDEX_CJK : nFontId = DEFAULTFONT_CJK_TEXT; break; + case FONT_STANDARD_CTL: + case FONT_LIST_CTL : + case FONT_CAPTION_CTL : + case FONT_INDEX_CTL : + nFontId = DEFAULTFONT_CTL_TEXT; + break; // case FONT_STANDARD: // case FONT_LIST : // case FONT_CAPTION : diff --git a/sw/source/ui/config/optdlg.hrc b/sw/source/ui/config/optdlg.hrc index 2ea494a09738..726525fd982b 100644 --- a/sw/source/ui/config/optdlg.hrc +++ b/sw/source/ui/config/optdlg.hrc @@ -2,9 +2,9 @@ * * $RCSfile: optdlg.hrc,v $ * - * $Revision: 1.9 $ + * $Revision: 1.10 $ * - * last change: $Author: os $ $Date: 2002-04-25 13:57:39 $ + * last change: $Author: os $ $Date: 2002-06-11 08:38:12 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -169,6 +169,7 @@ #define CB_DOCONLY 102 #define ST_SCRIPT_WESTERN 103 #define ST_SCRIPT_ASIAN 104 +#define ST_SCRIPT_CTL 105 //Tabpage Tabelle #define CB_HEADER 101 diff --git a/sw/source/ui/config/optdlg.src b/sw/source/ui/config/optdlg.src index bda4d33248d9..9e3b5351c5ad 100644 --- a/sw/source/ui/config/optdlg.src +++ b/sw/source/ui/config/optdlg.src @@ -2,9 +2,9 @@ * * $RCSfile: optdlg.src,v $ * - * $Revision: 1.72 $ + * $Revision: 1.73 $ * - * last change: $Author: os $ $Date: 2002-05-31 07:49:15 $ + * last change: $Author: os $ $Date: 2002-06-11 08:38:12 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -1669,6 +1669,11 @@ TabPage TP_STD_FONT Text[ catalan ] = "Asian"; Text[ thai ] = "แบบเอเชีย"; }; + String ST_SCRIPT_CTL + { + Text = "CTL" ; + Text [ English ] = "CTL" ; + }; String ST_SCRIPT_WESTERN { Text = "Westlich" ; diff --git a/sw/source/ui/config/optpage.cxx b/sw/source/ui/config/optpage.cxx index 044ed69cc9dd..dae341c7a658 100644 --- a/sw/source/ui/config/optpage.cxx +++ b/sw/source/ui/config/optpage.cxx @@ -2,9 +2,9 @@ * * $RCSfile: optpage.cxx,v $ * - * $Revision: 1.25 $ + * $Revision: 1.26 $ * - * last change: $Author: os $ $Date: 2002-04-25 13:57:39 $ + * last change: $Author: os $ $Date: 2002-06-11 08:38:12 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -647,6 +647,7 @@ SwStdFontTabPage::SwStdFontTabPage( Window* pParent, aStandardPB (this, SW_RES(PB_STANDARD)), sScriptWestern(ResId(ST_SCRIPT_WESTERN)), sScriptAsian(ResId(ST_SCRIPT_ASIAN)), + sScriptComplex(ResId(ST_SCRIPT_CTL)), pPrt(0), pFontConfig(0), pWrtShell(0), @@ -657,7 +658,7 @@ SwStdFontTabPage::SwStdFontTabPage( Window* pParent, bSetIdxDefault(TRUE), bIdxDefault(FALSE), bDeletePrinter(FALSE), - bCJKMode(FALSE), + nFontGroup(FONT_GROUP_DEFAULT), eLanguage( GetAppLanguage() ) { FreeResource(); @@ -734,18 +735,19 @@ BOOL SwStdFontTabPage::FillItemSet( SfxItemSet& rSet ) if(bNotDocOnly) { - pFontConfig->SetFontStandard(sStandard, bCJKMode); - pFontConfig->SetFontOutline(sTitle, bCJKMode); - pFontConfig->SetFontList(sList, bCJKMode); - pFontConfig->SetFontCaption(sLabel, bCJKMode); - pFontConfig->SetFontIndex(sIdx, bCJKMode); + pFontConfig->SetFontStandard(sStandard, nFontGroup); + pFontConfig->SetFontOutline(sTitle, nFontGroup); + pFontConfig->SetFontList(sList, nFontGroup); + pFontConfig->SetFontCaption(sLabel, nFontGroup); + pFontConfig->SetFontIndex(sIdx, nFontGroup); } if(pWrtShell) { pWrtShell->StartAllAction(); SfxPrinter* pPrt = pWrtShell->GetPrt(); BOOL bMod = FALSE; - USHORT nFontWhich = bCJKMode ? RES_CHRATR_CJK_FONT : RES_CHRATR_FONT; + USHORT nFontWhich = nFontGroup == FONT_GROUP_DEFAULT ? RES_CHRATR_FONT : + FONT_GROUP_CJK == nFontGroup ? RES_CHRATR_CJK_FONT : RES_CHRATR_CTL_FONT; if(sStandard != sShellStd) { BOOL bDelete = FALSE; @@ -801,12 +803,21 @@ BOOL SwStdFontTabPage::FillItemSet( SfxItemSet& rSet ) void SwStdFontTabPage::Reset( const SfxItemSet& rSet ) { const SfxPoolItem* pLang; - if( SFX_ITEM_SET == rSet.GetItemState( - bCJKMode ? SID_ATTR_CHAR_CJK_LANGUAGE : SID_ATTR_LANGUAGE, FALSE, &pLang)) + USHORT nLangSlot = nFontGroup == FONT_GROUP_DEFAULT ? SID_ATTR_LANGUAGE : + FONT_GROUP_CJK == nFontGroup ? SID_ATTR_CHAR_CJK_LANGUAGE : SID_ATTR_CHAR_CTL_LANGUAGE; + + + if( SFX_ITEM_SET == rSet.GetItemState(nLangSlot, FALSE, &pLang)) eLanguage = ((const SvxLanguageItem*)pLang)->GetValue(); String sTmp(aStdChrFL.GetText()); - sTmp.SearchAndReplaceAscii("%1", bCJKMode ? sScriptAsian : sScriptWestern); + String sToReplace = sScriptWestern; + if(FONT_GROUP_CJK == nFontGroup ) + sToReplace = sScriptAsian; + else if(FONT_GROUP_CTL == nFontGroup ) + sToReplace = sScriptComplex; + + sTmp.SearchAndReplaceAscii("%1", sToReplace); aStdChrFL.SetText(sTmp); const SfxPoolItem* pItem; @@ -850,37 +861,43 @@ void SwStdFontTabPage::Reset( const SfxItemSet& rSet ) if(!pWrtShell) { - sStdBackup = pFontConfig->GetFontStandard(bCJKMode); - sOutBackup = pFontConfig->GetFontOutline(bCJKMode); - sListBackup= pFontConfig->GetFontList(bCJKMode); - sCapBackup = pFontConfig->GetFontCaption(bCJKMode); - sIdxBackup = pFontConfig->GetFontIndex(bCJKMode); + sStdBackup = pFontConfig->GetFontStandard(nFontGroup); + sOutBackup = pFontConfig->GetFontOutline(nFontGroup); + sListBackup= pFontConfig->GetFontList(nFontGroup); + sCapBackup = pFontConfig->GetFontCaption(nFontGroup); + sIdxBackup = pFontConfig->GetFontIndex(nFontGroup); aDocOnlyCB.Enable(FALSE); } else { SwTxtFmtColl *pColl = pWrtShell->GetTxtCollFromPool(RES_POOLCOLL_STANDARD); - const SvxFontItem& rFont = bCJKMode ? pColl->GetCJKFont() : pColl->GetFont(); + const SvxFontItem& rFont = !nFontGroup ? pColl->GetFont() : + FONT_GROUP_CJK == nFontGroup ? pColl->GetCJKFont() : pColl->GetCTLFont(); sShellStd = sStdBackup = rFont.GetFamilyName(); pColl = pWrtShell->GetTxtCollFromPool(RES_POOLCOLL_HEADLINE_BASE); - const SvxFontItem& rFontHL = bCJKMode ? pColl->GetCJKFont() : pColl->GetFont(); + const SvxFontItem& rFontHL = !nFontGroup ? pColl->GetFont() : + FONT_GROUP_CJK == nFontGroup ? pColl->GetCJKFont() : pColl->GetCTLFont(); sShellTitle = sOutBackup = rFontHL.GetFamilyName(); - USHORT nFontWhich = bCJKMode ? RES_CHRATR_CJK_FONT : RES_CHRATR_FONT; + USHORT nFontWhich = nFontGroup == FONT_GROUP_DEFAULT ? RES_CHRATR_FONT : + FONT_GROUP_CJK == nFontGroup ? RES_CHRATR_CJK_FONT : RES_CHRATR_CTL_FONT; pColl = pWrtShell->GetTxtCollFromPool(RES_POOLCOLL_NUMBUL_BASE); - const SvxFontItem& rFontLS = bCJKMode ? pColl->GetCJKFont() : pColl->GetFont(); + const SvxFontItem& rFontLS = !nFontGroup ? pColl->GetFont() : + FONT_GROUP_CJK == nFontGroup ? pColl->GetCJKFont() : pColl->GetCTLFont(); bListDefault = SFX_ITEM_DEFAULT == pColl->GetAttrSet().GetItemState(nFontWhich, FALSE); sShellList = sListBackup = rFontLS.GetFamilyName(); pColl = pWrtShell->GetTxtCollFromPool(RES_POOLCOLL_LABEL); bLabelDefault = SFX_ITEM_DEFAULT == pColl->GetAttrSet().GetItemState(nFontWhich, FALSE); - const SvxFontItem& rFontCP = bCJKMode ? pColl->GetCJKFont() : pColl->GetFont(); + const SvxFontItem& rFontCP = !nFontGroup ? pColl->GetFont() : + FONT_GROUP_CJK == nFontGroup ? pColl->GetCJKFont() : pColl->GetCTLFont(); sShellLabel = sCapBackup = rFontCP.GetFamilyName(); pColl = pWrtShell->GetTxtCollFromPool(RES_POOLCOLL_REGISTER_BASE); bIdxDefault = SFX_ITEM_DEFAULT == pColl->GetAttrSet().GetItemState(nFontWhich, FALSE); - const SvxFontItem& rFontIDX = bCJKMode ? pColl->GetCJKFont() : pColl->GetFont(); + const SvxFontItem& rFontIDX = !nFontGroup ? pColl->GetFont() : + FONT_GROUP_CJK == nFontGroup ? pColl->GetCJKFont() : pColl->GetCTLFont(); sShellIndex = sIdxBackup = rFontIDX.GetFamilyName(); } aStandardBox.SetText(sStdBackup ); @@ -903,19 +920,12 @@ void SwStdFontTabPage::Reset( const SfxItemSet& rSet ) IMPL_LINK( SwStdFontTabPage, StandardHdl, PushButton *, EMPTYARG ) { - static USHORT aIdArr[5][2] = { - { FONT_STANDARD, FONT_STANDARD_CJK }, - { FONT_OUTLINE, FONT_OUTLINE_CJK }, - { FONT_LIST, FONT_LIST_CJK }, - { FONT_CAPTION, FONT_CAPTION_CJK }, - { FONT_INDEX, FONT_INDEX_CJK } - }; - USHORT nOff = bCJKMode ? 1 : 0; - aStandardBox.SetText(SwStdFontConfig::GetDefaultFor(aIdArr[0][nOff], eLanguage)); - aTitleBox .SetText(SwStdFontConfig::GetDefaultFor(aIdArr[1][nOff], eLanguage)); - aListBox .SetText(SwStdFontConfig::GetDefaultFor(aIdArr[2][nOff], eLanguage)); - aLabelBox .SetText(SwStdFontConfig::GetDefaultFor(aIdArr[3][nOff], eLanguage)); - aIdxBox .SetText(SwStdFontConfig::GetDefaultFor(aIdArr[4][nOff], eLanguage)); + sal_uInt8 nFontOffset = nFontGroup * FONT_PER_GROUP; + aStandardBox.SetText(SwStdFontConfig::GetDefaultFor(FONT_STANDARD + nFontOffset, eLanguage)); + aTitleBox .SetText(SwStdFontConfig::GetDefaultFor(FONT_OUTLINE + nFontOffset, eLanguage)); + aListBox .SetText(SwStdFontConfig::GetDefaultFor(FONT_LIST + nFontOffset, eLanguage)); + aLabelBox .SetText(SwStdFontConfig::GetDefaultFor(FONT_CAPTION + nFontOffset, eLanguage)); + aIdxBox .SetText(SwStdFontConfig::GetDefaultFor(FONT_INDEX + nFontOffset, eLanguage)); aStandardBox.SaveValue(); aTitleBox .SaveValue(); diff --git a/sw/source/ui/inc/fontcfg.hxx b/sw/source/ui/inc/fontcfg.hxx index ca6c520bdd77..bcd625df1215 100644 --- a/sw/source/ui/inc/fontcfg.hxx +++ b/sw/source/ui/inc/fontcfg.hxx @@ -2,9 +2,9 @@ * * $RCSfile: fontcfg.hxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: os $ $Date: 2001-08-15 09:50:39 $ + * last change: $Author: os $ $Date: 2002-06-11 08:38:52 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -81,8 +81,18 @@ #define FONT_LIST_CJK 7 #define FONT_CAPTION_CJK 8 #define FONT_INDEX_CJK 9 -#define DEF_FONT_COUNT 10 +#define FONT_STANDARD_CTL 10 +#define FONT_OUTLINE_CTL 11 +#define FONT_LIST_CTL 12 +#define FONT_CAPTION_CTL 13 +#define FONT_INDEX_CTL 14 +#define DEF_FONT_COUNT 15 +#define FONT_PER_GROUP 5 + +#define FONT_GROUP_DEFAULT 0 +#define FONT_GROUP_CJK 1 +#define FONT_GROUP_CTL 2 class SwStdFontConfig : public utl::ConfigItem { @@ -104,26 +114,26 @@ public: virtual void Commit(); - const String& GetFontStandard(sal_Bool bCJK) const {return sDefaultFonts[bCJK ? FONT_STANDARD_CJK : FONT_STANDARD];} - const String& GetFontOutline(sal_Bool bCJK) const {return sDefaultFonts[bCJK ? FONT_OUTLINE_CJK : FONT_OUTLINE];} - const String& GetFontList (sal_Bool bCJK) const {return sDefaultFonts[bCJK ? FONT_LIST_CJK : FONT_LIST];} - const String& GetFontCaption(sal_Bool bCJK) const {return sDefaultFonts[bCJK ? FONT_CAPTION_CJK : FONT_CAPTION];} - const String& GetFontIndex (sal_Bool bCJK) const {return sDefaultFonts[bCJK ? FONT_INDEX_CJK : FONT_INDEX];} + const String& GetFontStandard(sal_uInt8 nFontGroup) const {return sDefaultFonts[FONT_STANDARD + FONT_PER_GROUP * nFontGroup];} + const String& GetFontOutline(sal_uInt8 nFontGroup) const {return sDefaultFonts[FONT_OUTLINE + FONT_PER_GROUP * nFontGroup];} + const String& GetFontList (sal_uInt8 nFontGroup) const {return sDefaultFonts[FONT_LIST + FONT_PER_GROUP * nFontGroup];} + const String& GetFontCaption(sal_uInt8 nFontGroup) const {return sDefaultFonts[FONT_CAPTION + FONT_PER_GROUP * nFontGroup];} + const String& GetFontIndex (sal_uInt8 nFontGroup) const {return sDefaultFonts[FONT_INDEX + FONT_PER_GROUP * nFontGroup];} const String& GetFontFor(USHORT nFontType) const {return sDefaultFonts[nFontType];} BOOL IsFontDefault(USHORT nFontType) const; - void SetFontStandard(const String& rSet, sal_Bool bCJK) - {ChangeString(bCJK ? FONT_STANDARD_CJK : FONT_STANDARD, rSet);} + void SetFontStandard(const String& rSet, sal_uInt8 nFontGroup) + {ChangeString(FONT_STANDARD + FONT_PER_GROUP * nFontGroup, rSet);} - void SetFontOutline(const String& rSet, sal_Bool bCJK) - { ChangeString(bCJK ? FONT_OUTLINE_CJK : FONT_OUTLINE, rSet);} - void SetFontList (const String& rSet, sal_Bool bCJK) - { ChangeString(bCJK ? FONT_LIST_CJK : FONT_LIST, rSet);} - void SetFontCaption(const String& rSet, sal_Bool bCJK) - { ChangeString(bCJK ? FONT_CAPTION_CJK : FONT_CAPTION, rSet);} - void SetFontIndex (const String& rSet, sal_Bool bCJK) - { ChangeString(bCJK ? FONT_INDEX_CJK : FONT_INDEX, rSet);} + void SetFontOutline(const String& rSet, sal_uInt8 nFontGroup) + { ChangeString(FONT_OUTLINE + FONT_PER_GROUP * nFontGroup, rSet);} + void SetFontList (const String& rSet, sal_uInt8 nFontGroup) + { ChangeString(FONT_LIST + FONT_PER_GROUP * nFontGroup, rSet);} + void SetFontCaption(const String& rSet, sal_uInt8 nFontGroup) + { ChangeString(FONT_CAPTION + FONT_PER_GROUP * nFontGroup, rSet);} + void SetFontIndex (const String& rSet, sal_uInt8 nFontGroup) + { ChangeString(FONT_INDEX + FONT_PER_GROUP * nFontGroup, rSet);} static String GetDefaultFor(USHORT nFontType, LanguageType eLang); }; diff --git a/sw/source/ui/inc/optpage.hxx b/sw/source/ui/inc/optpage.hxx index c633056f0455..3299267a6271 100644 --- a/sw/source/ui/inc/optpage.hxx +++ b/sw/source/ui/inc/optpage.hxx @@ -2,9 +2,9 @@ * * $RCSfile: optpage.hxx,v $ * - * $Revision: 1.11 $ + * $Revision: 1.12 $ * - * last change: $Author: os $ $Date: 2002-04-25 13:51:50 $ + * last change: $Author: os $ $Date: 2002-06-11 08:38:52 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -92,7 +92,9 @@ #ifndef _SVX_FNTCTRL_HXX //autogen #include <svx/fntctrl.hxx> #endif - +#ifndef _FONTCFG_HXX +#include <fontcfg.hxx> +#endif class SvStringsDtor; class SfxPrinter; class SwStdFontConfig; @@ -246,10 +248,12 @@ class SwStdFontTabPage : public SfxTabPage BOOL bIdxDefault :1; BOOL bSetIdxDefault :1; BOOL bDeletePrinter :1; - BOOL bCJKMode : 1; + + sal_uInt8 nFontGroup; //fontcfg.hxx: FONT_GROUP_[STANDARD|CJK|CTL] String sScriptWestern; String sScriptAsian; + String sScriptComplex; DECL_LINK( StandardHdl, PushButton * ); DECL_LINK( ModifyHdl, ComboBox * ); @@ -265,7 +269,7 @@ public: virtual BOOL FillItemSet( SfxItemSet& rSet ); virtual void Reset( const SfxItemSet& rSet ); - void SetCJKMode() {bCJKMode = TRUE;} + void SetFontMode(sal_uInt8 nGroup) {nFontGroup = nGroup;} }; /*-----------------18.01.97 12.10------------------- |