[Libreoffice-commits] core.git: Branch 'feature/aboutconfig' - cui/source

Efe Gürkan YALAMAN efeyalaman at gmail.com
Thu Jun 27 07:05:08 PDT 2013


 cui/source/options/optaboutconfig.cxx |    8 +++++++-
 cui/source/options/treeopt.src        |    1 +
 2 files changed, 8 insertions(+), 1 deletion(-)

New commits:
commit 49678807b3730c3971297932af9ca4a7a4ebdb79
Author: Efe Gürkan YALAMAN <efeyalaman at gmail.com>
Date:   Thu Jun 27 17:02:01 2013 +0300

    Empty tab page created and added on options dialog
    
    Buttons cause crash on empty tab page.
    
    Change-Id: I34bfb412c4d9dda9fdf71b6803be67939c00ff59

diff --git a/cui/source/options/optaboutconfig.cxx b/cui/source/options/optaboutconfig.cxx
index 55870f9..22aff88 100644
--- a/cui/source/options/optaboutconfig.cxx
+++ b/cui/source/options/optaboutconfig.cxx
@@ -13,10 +13,16 @@
 using namespace svx;
 
 CuiAboutConfigTabPage::CuiAboutConfigTabPage( Window* pParent, const SfxItemSet& rItemSet )
-    :SfxTabPage( pParent, "AboutConfig", "cui/ui/optaboutconfigdialog.ui", rItemSet)
+    :SfxTabPage( pParent, "AboutConfig", "cui/ui/aboutconfigdialog.ui", rItemSet)
 {
 //    get(m_pEditBtn, "");
 
+    m_pPrefCtrl = get<SvxSimpleTableContainer>("preferences");
+
+    Size aControlSize(200,200);
+    m_pPrefCtrl->set_width_request(aControlSize.Width());
+    m_pPrefCtrl->set_height_request(aControlSize.Height());
+
     WinBits nBits = WB_SCROLL | WB_SORT;
     pPrefBox = new svx::OptHeaderTabListBox( *m_pPrefCtrl, nBits );
 }
diff --git a/cui/source/options/treeopt.src b/cui/source/options/treeopt.src
index af8e332..871c787 100644
--- a/cui/source/options/treeopt.src
+++ b/cui/source/options/treeopt.src
@@ -101,6 +101,7 @@ Resource RID_OFADLG_OPTIONS_TREE_PAGES
             < "Accessibility" ; RID_SVXPAGE_ACCESSIBILITYCONFIG ; > ;
             < "Advanced" ; RID_SVXPAGE_OPTIONS_JAVA ; > ;
             < "Online Update" ; RID_SVXPAGE_ONLINEUPDATE ; > ;
+            < "About Config" ; RID_SVXPAGE_ABOUT_CONFIG ; > ;
         };
     };
     StringArray SID_LANGUAGE_OPTIONS


More information about the Libreoffice-commits mailing list