[Libreoffice-commits] .: cui/source sw/source

Cédric Bosdonnat cbosdo at kemper.freedesktop.org
Mon Oct 17 03:44:42 PDT 2011


 cui/source/options/treeopt.cxx |    7 +------
 sw/source/ui/app/appopt.cxx    |   18 ------------------
 2 files changed, 1 insertion(+), 24 deletions(-)

New commits:
commit 6a15a2898b7f822ddfba23553dd127e25af15fff
Author: Cédric Bosdonnat <cedric.bosdonnat at free.fr>
Date:   Mon Oct 17 12:08:37 2011 +0200

    Styles cleanup: forgot to remove some bits

diff --git a/cui/source/options/treeopt.cxx b/cui/source/options/treeopt.cxx
index 57b8976..89855ac 100644
--- a/cui/source/options/treeopt.cxx
+++ b/cui/source/options/treeopt.cxx
@@ -415,9 +415,6 @@ static OptionsMapping_Impl const OptionsMap_Impl[] =
     { "Writer",             "View",                 RID_SW_TP_CONTENT_OPT },
     { "Writer",             "FormattingAids",       RID_SW_TP_OPTSHDWCRSR },
     { "Writer",             "Grid",                 RID_SVXPAGE_GRID },
-    { "Writer",             "BasicFontsWestern",    RID_SW_TP_STD_FONT },
-    { "Writer",             "BasicFontsAsian",      RID_SW_TP_STD_FONT_CJK },
-    { "Writer",             "BasicFontsCTL",        RID_SW_TP_STD_FONT_CTL },
     { "Writer",             "Print",                RID_SW_TP_OPTPRINT_PAGE },
     { "Writer",             "Table",                RID_SW_TP_OPTTABLE_PAGE },
     { "Writer",             "Changes",              RID_SW_TP_REDLINE_OPT },
@@ -1933,9 +1930,7 @@ void OfaTreeOptionsDialog::Initialize( const Reference< XFrame >& _xFrame )
                     nPageId = (sal_uInt16)rTextArray.GetValue(i);
                     if ( lcl_isOptionHidden( nPageId, aOptionsDlgOpt ) )
                         continue;
-                    if ( ( RID_SW_TP_STD_FONT_CJK != nPageId || aLanguageOptions.IsCJKFontEnabled() ) &&
-                         ( RID_SW_TP_STD_FONT_CTL != nPageId || aLanguageOptions.IsCTLFontEnabled() ) &&
-                         ( RID_SW_TP_MAILCONFIG != nPageId || MailMergeCfg_Impl().IsEmailSupported() ) )
+                    if ( RID_SW_TP_MAILCONFIG != nPageId || MailMergeCfg_Impl().IsEmailSupported() )
                         AddTabPage( nPageId, rTextArray.GetString(i), nGroup );
                 }
 #ifdef DBG_UTIL
diff --git a/sw/source/ui/app/appopt.cxx b/sw/source/ui/app/appopt.cxx
index 689e875..9f1b722 100644
--- a/sw/source/ui/app/appopt.cxx
+++ b/sw/source/ui/app/appopt.cxx
@@ -465,24 +465,6 @@ SfxTabPage* SwModule::CreateTabPage( sal_uInt16 nId, Window* pParent, const SfxI
             pRet = SvxGridTabPage::Create(pParent, rSet);
         break;
 
-        case RID_SW_TP_STD_FONT:
-        case RID_SW_TP_STD_FONT_CJK:
-        case RID_SW_TP_STD_FONT_CTL:
-        {
-            SwAbstractDialogFactory* pFact = SwAbstractDialogFactory::Create();
-            if ( pFact )
-            {
-                ::CreateTabPage fnCreatePage = pFact->GetTabPageCreatorFunc( nId );
-                if ( fnCreatePage )
-                    pRet = (*fnCreatePage)( pParent, rSet );
-            }
-            if(RID_SW_TP_STD_FONT != nId)
-            {
-                aSet.Put (SfxUInt16Item(SID_FONTMODE_TYPE, RID_SW_TP_STD_FONT_CJK == nId ? FONT_GROUP_CJK : FONT_GROUP_CTL));
-                pRet->PageCreated(aSet);
-            }
-        }
-        break;
         case RID_SW_TP_HTML_OPTPRINT_PAGE:
         case RID_SW_TP_OPTPRINT_PAGE:
         {


More information about the Libreoffice-commits mailing list