[Libreoffice-commits] core.git: 6 commits - framework/uiconfig icon-themes/galaxy sfx2/source sfx2/uiconfig vcl/source

Jan Holesovsky kendy at collabora.com
Thu Nov 14 05:26:22 PST 2013


 framework/uiconfig/startmodule/menubar/menubar.xml |   45 
 icon-themes/galaxy/sfx2/res/startcenter-logo.png   |binary
 sfx2/source/dialog/backingwindow.cxx               |  380 +-----
 sfx2/source/dialog/backingwindow.hxx               |   58 
 sfx2/uiconfig/ui/startcenter.ui                    | 1284 +++------------------
 vcl/source/control/button.cxx                      |    2 
 vcl/source/window/window.cxx                       |   10 
 7 files changed, 356 insertions(+), 1423 deletions(-)

New commits:
commit 50cf694b04bb3bc327887aed5a996a96da45e0c6
Author: Jan Holesovsky <kendy at collabora.com>
Date:   Thu Nov 14 14:24:56 2013 +0100

    startcenter: Motif image now works too.
    
    Change-Id: Ieecd2e8ee010b06b64a792e0fcad744c66c5f79e

diff --git a/icon-themes/galaxy/sfx2/res/startcenter-logo.png b/icon-themes/galaxy/sfx2/res/startcenter-logo.png
index f94ad94..fd38134 100644
Binary files a/icon-themes/galaxy/sfx2/res/startcenter-logo.png and b/icon-themes/galaxy/sfx2/res/startcenter-logo.png differ
diff --git a/sfx2/source/dialog/backingwindow.cxx b/sfx2/source/dialog/backingwindow.cxx
index 8dc4663..50db1f7 100644
--- a/sfx2/source/dialog/backingwindow.cxx
+++ b/sfx2/source/dialog/backingwindow.cxx
@@ -235,11 +235,18 @@ void BackingWindow::initControls()
     mpExtensionsButton->SetControlForeground(aButtonsText);
 
     mpAllButtonsBox->SetBackground(aButtonsBackground);
-    mpButtonsBox->SetBackground(aButtonsBackground);
     mpSmallButtonsBox->SetBackground(aButtonsBackground);
     mpHelpBox->SetBackground(aButtonsBackground);
     mpExtensionsBox->SetBackground(aButtonsBackground);
 
+    // motif image under the buttons
+    Wallpaper aWallpaper(get<FixedImage>("motif")->GetImage().GetBitmapEx());
+    aWallpaper.SetStyle(WALLPAPER_BOTTOMRIGHT);
+    aWallpaper.SetColor(aButtonsBackground);
+
+    mpButtonsBox->SetBackground(aWallpaper);
+
+    // thin white rectangle aronud the Help and Extensions buttons
     mpThinBox1->SetBackground(aButtonsText);
     mpThinBox2->SetBackground(aButtonsText);
 
diff --git a/sfx2/uiconfig/ui/startcenter.ui b/sfx2/uiconfig/ui/startcenter.ui
index 92ddaff..8af9ad8 100644
--- a/sfx2/uiconfig/ui/startcenter.ui
+++ b/sfx2/uiconfig/ui/startcenter.ui
@@ -2,6 +2,21 @@
 <interface>
   <!-- interface-requires gtk+ 3.0 -->
   <!-- interface-requires LibreOffice 1.0 -->
+  <object class="GtkImage" id="calc_all_image">
+    <property name="visible">True</property>
+    <property name="can_focus">False</property>
+    <property name="pixbuf">res/ods_32_8.png</property>
+  </object>
+  <object class="GtkImage" id="database_all_image">
+    <property name="visible">True</property>
+    <property name="can_focus">False</property>
+    <property name="pixbuf">res/odb_32_8.png</property>
+  </object>
+  <object class="GtkImage" id="draw_all_image">
+    <property name="visible">True</property>
+    <property name="can_focus">False</property>
+    <property name="pixbuf">res/odg_32_8.png</property>
+  </object>
   <object class="GtkBox" id="StartCenter">
     <property name="can_focus">False</property>
     <child>
@@ -10,7 +25,7 @@
         <property name="can_focus">False</property>
         <property name="hexpand">True</property>
         <property name="vexpand">True</property>
-        <property name="border_width">12</property>
+        <property name="border_width">6</property>
         <child>
           <object class="GtkBox" id="all_buttons_box">
             <property name="visible">True</property>
@@ -206,6 +221,17 @@
                     <property name="position">9</property>
                   </packing>
                 </child>
+                <child>
+                  <object class="GtkImage" id="motif">
+                    <property name="can_focus">False</property>
+                    <property name="pixbuf">sfx2/res/startcenter-logo.png</property>
+                  </object>
+                  <packing>
+                    <property name="expand">False</property>
+                    <property name="fill">True</property>
+                    <property name="position">10</property>
+                  </packing>
+                </child>
               </object>
               <packing>
                 <property name="expand">False</property>
@@ -346,25 +372,9 @@
       </packing>
     </child>
   </object>
-  <object class="GtkImage" id="calc_all_image">
-    <property name="visible">True</property>
-    <property name="can_focus">False</property>
-    <property name="pixbuf">res/ods_32_8.png</property>
-  </object>
-  <object class="GtkImage" id="database_all_image">
-    <property name="visible">True</property>
-    <property name="can_focus">False</property>
-    <property name="pixbuf">res/odb_32_8.png</property>
-  </object>
-  <object class="GtkImage" id="draw_all_image">
-    <property name="visible">True</property>
-    <property name="can_focus">False</property>
-    <property name="pixbuf">res/odg_32_8.png</property>
-  </object>
   <object class="GtkImage" id="impress_all_image">
     <property name="visible">True</property>
     <property name="can_focus">False</property>
-    <property name="tooltip_text" translatable="yes">New Presentation</property>
     <property name="pixbuf">res/odp_32_8.png</property>
   </object>
   <object class="GtkImage" id="math_all_image">
commit a14dc51f9e8fc1fb4adac21722790a0a254ccd60
Author: Jan Holesovsky <kendy at collabora.com>
Date:   Thu Nov 14 13:32:11 2013 +0100

    startcenter: Thin line around the Help and Extensios buttons.
    
    Change-Id: Id9433a32a9787673fbb266d6465f0bd89f919a40

diff --git a/sfx2/source/dialog/backingwindow.cxx b/sfx2/source/dialog/backingwindow.cxx
index 1b50bf3..8dc4663 100644
--- a/sfx2/source/dialog/backingwindow.cxx
+++ b/sfx2/source/dialog/backingwindow.cxx
@@ -90,9 +90,12 @@ BackingWindow::BackingWindow( Window* i_pParent ) :
     get(mpExtensionsButton, "extensions");
 
     get(mpAllButtonsBox, "all_buttons_box");
-    get(mpPictureBox, "picture_box");
     get(mpButtonsBox, "buttons_box");
     get(mpSmallButtonsBox, "small_buttons_box");
+    get(mpThinBox1, "thin_box1");
+    get(mpThinBox2, "thin_box2");
+    get(mpHelpBox, "help_box");
+    get(mpExtensionsBox, "extensions_box");
 
     get(mpAllRecentThumbnails, "all_recent");
 
@@ -232,9 +235,13 @@ void BackingWindow::initControls()
     mpExtensionsButton->SetControlForeground(aButtonsText);
 
     mpAllButtonsBox->SetBackground(aButtonsBackground);
-    mpPictureBox->SetBackground(aButtonsBackground);
     mpButtonsBox->SetBackground(aButtonsBackground);
     mpSmallButtonsBox->SetBackground(aButtonsBackground);
+    mpHelpBox->SetBackground(aButtonsBackground);
+    mpExtensionsBox->SetBackground(aButtonsBackground);
+
+    mpThinBox1->SetBackground(aButtonsText);
+    mpThinBox2->SetBackground(aButtonsText);
 
     Resize();
 }
diff --git a/sfx2/source/dialog/backingwindow.hxx b/sfx2/source/dialog/backingwindow.hxx
index 518aca3..725823f 100644
--- a/sfx2/source/dialog/backingwindow.hxx
+++ b/sfx2/source/dialog/backingwindow.hxx
@@ -70,9 +70,12 @@ class BackingWindow
     PushButton*                     mpExtensionsButton;
 
     VclBox*                         mpAllButtonsBox;
-    VclBox*                         mpPictureBox;
     VclBox*                         mpButtonsBox;
     VclBox*                         mpSmallButtonsBox;
+    VclBox*                         mpThinBox1;
+    VclBox*                         mpThinBox2;
+    VclBox*                         mpHelpBox;
+    VclBox*                         mpExtensionsBox;
 
     RecentDocsView*                 mpAllRecentThumbnails;
 
diff --git a/sfx2/uiconfig/ui/startcenter.ui b/sfx2/uiconfig/ui/startcenter.ui
index 6907417..92ddaff 100644
--- a/sfx2/uiconfig/ui/startcenter.ui
+++ b/sfx2/uiconfig/ui/startcenter.ui
@@ -17,187 +17,24 @@
             <property name="can_focus">False</property>
             <property name="orientation">vertical</property>
             <child>
-              <object class="GtkBox" id="picture_box">
+              <object class="GtkBox" id="buttons_box">
                 <property name="visible">True</property>
                 <property name="can_focus">False</property>
                 <property name="hexpand">True</property>
                 <property name="vexpand">True</property>
                 <property name="orientation">vertical</property>
                 <child>
-                  <object class="GtkBox" id="buttons_box">
+                  <object class="GtkButton" id="open_all">
+                    <property name="label" translatable="yes">_Open</property>
                     <property name="visible">True</property>
-                    <property name="can_focus">False</property>
+                    <property name="can_focus">True</property>
+                    <property name="receives_default">True</property>
                     <property name="margin_left">6</property>
                     <property name="margin_right">6</property>
                     <property name="margin_top">6</property>
-                    <property name="margin_bottom">6</property>
-                    <property name="orientation">vertical</property>
-                    <child>
-                      <object class="GtkButton" id="open_all">
-                        <property name="label" translatable="yes">_Open</property>
-                        <property name="visible">True</property>
-                        <property name="can_focus">True</property>
-                        <property name="receives_default">True</property>
-                        <property name="relief">none</property>
-                        <property name="use_underline">True</property>
-                        <property name="xalign">0</property>
-                      </object>
-                      <packing>
-                        <property name="expand">False</property>
-                        <property name="fill">True</property>
-                        <property name="position">0</property>
-                      </packing>
-                    </child>
-                    <child>
-                      <object class="GtkButton" id="templates_all">
-                        <property name="label" translatable="yes">T_emplates</property>
-                        <property name="visible">True</property>
-                        <property name="can_focus">True</property>
-                        <property name="receives_default">True</property>
-                        <property name="relief">none</property>
-                        <property name="use_underline">True</property>
-                        <property name="xalign">0</property>
-                      </object>
-                      <packing>
-                        <property name="expand">False</property>
-                        <property name="fill">True</property>
-                        <property name="position">1</property>
-                      </packing>
-                    </child>
-                    <child>
-                      <object class="GtkLabel" id="create_label">
-                        <property name="visible">True</property>
-                        <property name="can_focus">False</property>
-                        <property name="margin_left">6</property>
-                        <property name="margin_top">12</property>
-                        <property name="xalign">0</property>
-                        <property name="label" translatable="yes">Create</property>
-                      </object>
-                      <packing>
-                        <property name="expand">False</property>
-                        <property name="fill">True</property>
-                        <property name="position">2</property>
-                      </packing>
-                    </child>
-                    <child>
-                      <object class="GtkSeparator" id="separator1">
-                        <property name="visible">True</property>
-                        <property name="can_focus">False</property>
-                      </object>
-                      <packing>
-                        <property name="expand">False</property>
-                        <property name="fill">True</property>
-                        <property name="position">3</property>
-                      </packing>
-                    </child>
-                    <child>
-                      <object class="GtkButton" id="writer_all">
-                        <property name="label" translatable="yes">New _Document</property>
-                        <property name="visible">True</property>
-                        <property name="can_focus">True</property>
-                        <property name="receives_default">True</property>
-                        <property name="has_tooltip">True</property>
-                        <property name="image">writer_all_image</property>
-                        <property name="relief">none</property>
-                        <property name="use_underline">True</property>
-                        <property name="xalign">0</property>
-                      </object>
-                      <packing>
-                        <property name="expand">False</property>
-                        <property name="fill">True</property>
-                        <property name="position">4</property>
-                      </packing>
-                    </child>
-                    <child>
-                      <object class="GtkButton" id="calc_all">
-                        <property name="label" translatable="yes">New _Spreadsheet</property>
-                        <property name="visible">True</property>
-                        <property name="can_focus">True</property>
-                        <property name="receives_default">True</property>
-                        <property name="has_tooltip">True</property>
-                        <property name="image">calc_all_image</property>
-                        <property name="relief">none</property>
-                        <property name="use_underline">True</property>
-                        <property name="xalign">0</property>
-                      </object>
-                      <packing>
-                        <property name="expand">False</property>
-                        <property name="fill">True</property>
-                        <property name="position">5</property>
-                      </packing>
-                    </child>
-                    <child>
-                      <object class="GtkButton" id="impress_all">
-                        <property name="label" translatable="yes">New _Presentation</property>
-                        <property name="visible">True</property>
-                        <property name="can_focus">True</property>
-                        <property name="receives_default">True</property>
-                        <property name="has_tooltip">True</property>
-                        <property name="image">impress_all_image</property>
-                        <property name="relief">none</property>
-                        <property name="use_underline">True</property>
-                        <property name="xalign">0</property>
-                      </object>
-                      <packing>
-                        <property name="expand">False</property>
-                        <property name="fill">True</property>
-                        <property name="position">6</property>
-                      </packing>
-                    </child>
-                    <child>
-                      <object class="GtkButton" id="draw_all">
-                        <property name="label" translatable="yes">New D_rawing</property>
-                        <property name="visible">True</property>
-                        <property name="can_focus">True</property>
-                        <property name="receives_default">True</property>
-                        <property name="has_tooltip">True</property>
-                        <property name="image">draw_all_image</property>
-                        <property name="relief">none</property>
-                        <property name="use_underline">True</property>
-                        <property name="xalign">0</property>
-                      </object>
-                      <packing>
-                        <property name="expand">False</property>
-                        <property name="fill">True</property>
-                        <property name="position">7</property>
-                      </packing>
-                    </child>
-                    <child>
-                      <object class="GtkButton" id="math_all">
-                        <property name="label" translatable="yes">New For_mula</property>
-                        <property name="visible">True</property>
-                        <property name="can_focus">True</property>
-                        <property name="receives_default">True</property>
-                        <property name="has_tooltip">True</property>
-                        <property name="image">math_all_image</property>
-                        <property name="relief">none</property>
-                        <property name="use_underline">True</property>
-                        <property name="xalign">0</property>
-                      </object>
-                      <packing>
-                        <property name="expand">False</property>
-                        <property name="fill">True</property>
-                        <property name="position">8</property>
-                      </packing>
-                    </child>
-                    <child>
-                      <object class="GtkButton" id="database_all">
-                        <property name="label" translatable="yes">New D_atabase</property>
-                        <property name="visible">True</property>
-                        <property name="can_focus">True</property>
-                        <property name="receives_default">True</property>
-                        <property name="has_tooltip">True</property>
-                        <property name="image">database_all_image</property>
-                        <property name="relief">none</property>
-                        <property name="use_underline">True</property>
-                        <property name="xalign">0</property>
-                      </object>
-                      <packing>
-                        <property name="expand">False</property>
-                        <property name="fill">True</property>
-                        <property name="position">9</property>
-                      </packing>
-                    </child>
+                    <property name="relief">none</property>
+                    <property name="use_underline">True</property>
+                    <property name="xalign">0</property>
                   </object>
                   <packing>
                     <property name="expand">False</property>
@@ -205,6 +42,170 @@
                     <property name="position">0</property>
                   </packing>
                 </child>
+                <child>
+                  <object class="GtkButton" id="templates_all">
+                    <property name="label" translatable="yes">T_emplates</property>
+                    <property name="visible">True</property>
+                    <property name="can_focus">True</property>
+                    <property name="receives_default">True</property>
+                    <property name="margin_left">6</property>
+                    <property name="margin_right">6</property>
+                    <property name="relief">none</property>
+                    <property name="use_underline">True</property>
+                    <property name="xalign">0</property>
+                  </object>
+                  <packing>
+                    <property name="expand">False</property>
+                    <property name="fill">True</property>
+                    <property name="position">1</property>
+                  </packing>
+                </child>
+                <child>
+                  <object class="GtkLabel" id="create_label">
+                    <property name="visible">True</property>
+                    <property name="can_focus">False</property>
+                    <property name="margin_left">12</property>
+                    <property name="margin_top">12</property>
+                    <property name="xalign">0</property>
+                    <property name="label" translatable="yes">Create</property>
+                  </object>
+                  <packing>
+                    <property name="expand">False</property>
+                    <property name="fill">True</property>
+                    <property name="position">2</property>
+                  </packing>
+                </child>
+                <child>
+                  <object class="GtkSeparator" id="separator1">
+                    <property name="visible">True</property>
+                    <property name="can_focus">False</property>
+                  </object>
+                  <packing>
+                    <property name="expand">False</property>
+                    <property name="fill">True</property>
+                    <property name="position">3</property>
+                  </packing>
+                </child>
+                <child>
+                  <object class="GtkButton" id="writer_all">
+                    <property name="label" translatable="yes">New _Document</property>
+                    <property name="visible">True</property>
+                    <property name="can_focus">True</property>
+                    <property name="receives_default">True</property>
+                    <property name="has_tooltip">True</property>
+                    <property name="margin_left">6</property>
+                    <property name="margin_right">6</property>
+                    <property name="image">writer_all_image</property>
+                    <property name="relief">none</property>
+                    <property name="use_underline">True</property>
+                    <property name="xalign">0</property>
+                  </object>
+                  <packing>
+                    <property name="expand">False</property>
+                    <property name="fill">True</property>
+                    <property name="position">4</property>
+                  </packing>
+                </child>
+                <child>
+                  <object class="GtkButton" id="calc_all">
+                    <property name="label" translatable="yes">New _Spreadsheet</property>
+                    <property name="visible">True</property>
+                    <property name="can_focus">True</property>
+                    <property name="receives_default">True</property>
+                    <property name="has_tooltip">True</property>
+                    <property name="margin_left">6</property>
+                    <property name="margin_right">6</property>
+                    <property name="image">calc_all_image</property>
+                    <property name="relief">none</property>
+                    <property name="use_underline">True</property>
+                    <property name="xalign">0</property>
+                  </object>
+                  <packing>
+                    <property name="expand">False</property>
+                    <property name="fill">True</property>
+                    <property name="position">5</property>
+                  </packing>
+                </child>
+                <child>
+                  <object class="GtkButton" id="impress_all">
+                    <property name="label" translatable="yes">New _Presentation</property>
+                    <property name="visible">True</property>
+                    <property name="can_focus">True</property>
+                    <property name="receives_default">True</property>
+                    <property name="has_tooltip">True</property>
+                    <property name="margin_left">6</property>
+                    <property name="margin_right">6</property>
+                    <property name="image">impress_all_image</property>
+                    <property name="relief">none</property>
+                    <property name="use_underline">True</property>
+                    <property name="xalign">0</property>
+                  </object>
+                  <packing>
+                    <property name="expand">False</property>
+                    <property name="fill">True</property>
+                    <property name="position">6</property>
+                  </packing>
+                </child>
+                <child>
+                  <object class="GtkButton" id="draw_all">
+                    <property name="label" translatable="yes">New D_rawing</property>
+                    <property name="visible">True</property>
+                    <property name="can_focus">True</property>
+                    <property name="receives_default">True</property>
+                    <property name="has_tooltip">True</property>
+                    <property name="margin_left">6</property>
+                    <property name="margin_right">6</property>
+                    <property name="image">draw_all_image</property>
+                    <property name="relief">none</property>
+                    <property name="use_underline">True</property>
+                    <property name="xalign">0</property>
+                  </object>
+                  <packing>
+                    <property name="expand">False</property>
+                    <property name="fill">True</property>
+                    <property name="position">7</property>
+                  </packing>
+                </child>
+                <child>
+                  <object class="GtkButton" id="math_all">
+                    <property name="label" translatable="yes">New For_mula</property>
+                    <property name="visible">True</property>
+                    <property name="can_focus">True</property>
+                    <property name="receives_default">True</property>
+                    <property name="has_tooltip">True</property>
+                    <property name="margin_left">6</property>
+                    <property name="margin_right">6</property>
+                    <property name="image">math_all_image</property>
+                    <property name="relief">none</property>
+                    <property name="use_underline">True</property>
+                    <property name="xalign">0</property>
+                  </object>
+                  <packing>
+                    <property name="expand">False</property>
+                    <property name="fill">True</property>
+                    <property name="position">8</property>
+                  </packing>
+                </child>
+                <child>
+                  <object class="GtkButton" id="database_all">
+                    <property name="label" translatable="yes">New D_atabase</property>
+                    <property name="visible">True</property>
+                    <property name="can_focus">True</property>
+                    <property name="receives_default">True</property>
+                    <property name="has_tooltip">True</property>
+                    <property name="margin_left">6</property>
+                    <property name="margin_right">6</property>
+                    <property name="image">database_all_image</property>
+                    <property name="relief">none</property>
+                    <property name="use_underline">True</property>
+                    <property name="xalign">0</property>
+                  </object>
+                  <packing>
+                    <property name="expand">False</property>
+                    <property name="fill">True</property>
+                    <property name="position">9</property>
+                  </packing>
+                </child>
               </object>
               <packing>
                 <property name="expand">False</property>
@@ -220,16 +221,45 @@
                 <property name="margin_right">6</property>
                 <property name="margin_top">6</property>
                 <property name="margin_bottom">6</property>
+                <property name="spacing">6</property>
                 <property name="homogeneous">True</property>
                 <child>
-                  <object class="GtkButton" id="help">
-                    <property name="label" translatable="yes">_Help</property>
+                  <object class="GtkBox" id="thin_box1">
                     <property name="visible">True</property>
-                    <property name="can_focus">True</property>
-                    <property name="receives_default">True</property>
-                    <property name="has_tooltip">True</property>
-                    <property name="relief">none</property>
-                    <property name="use_underline">True</property>
+                    <property name="can_focus">False</property>
+                    <property name="orientation">vertical</property>
+                    <child>
+                      <object class="GtkBox" id="help_box">
+                        <property name="visible">True</property>
+                        <property name="can_focus">False</property>
+                        <property name="margin_left">1</property>
+                        <property name="margin_right">1</property>
+                        <property name="margin_top">1</property>
+                        <property name="margin_bottom">1</property>
+                        <property name="orientation">vertical</property>
+                        <child>
+                          <object class="GtkButton" id="help">
+                            <property name="label" translatable="yes">_Help</property>
+                            <property name="visible">True</property>
+                            <property name="can_focus">True</property>
+                            <property name="receives_default">True</property>
+                            <property name="has_tooltip">True</property>
+                            <property name="relief">none</property>
+                            <property name="use_underline">True</property>
+                          </object>
+                          <packing>
+                            <property name="expand">False</property>
+                            <property name="fill">True</property>
+                            <property name="position">0</property>
+                          </packing>
+                        </child>
+                      </object>
+                      <packing>
+                        <property name="expand">False</property>
+                        <property name="fill">True</property>
+                        <property name="position">0</property>
+                      </packing>
+                    </child>
                   </object>
                   <packing>
                     <property name="expand">False</property>
@@ -238,14 +268,42 @@
                   </packing>
                 </child>
                 <child>
-                  <object class="GtkButton" id="extensions">
-                    <property name="label" translatable="yes">_Extensions</property>
+                  <object class="GtkBox" id="thin_box2">
                     <property name="visible">True</property>
-                    <property name="can_focus">True</property>
-                    <property name="receives_default">True</property>
-                    <property name="has_tooltip">True</property>
-                    <property name="relief">none</property>
-                    <property name="use_underline">True</property>
+                    <property name="can_focus">False</property>
+                    <property name="orientation">vertical</property>
+                    <child>
+                      <object class="GtkBox" id="extensions_box">
+                        <property name="visible">True</property>
+                        <property name="can_focus">False</property>
+                        <property name="margin_left">1</property>
+                        <property name="margin_right">1</property>
+                        <property name="margin_top">1</property>
+                        <property name="margin_bottom">1</property>
+                        <property name="orientation">vertical</property>
+                        <child>
+                          <object class="GtkButton" id="extensions">
+                            <property name="label" translatable="yes">_Extensions</property>
+                            <property name="visible">True</property>
+                            <property name="can_focus">True</property>
+                            <property name="receives_default">True</property>
+                            <property name="has_tooltip">True</property>
+                            <property name="relief">none</property>
+                            <property name="use_underline">True</property>
+                          </object>
+                          <packing>
+                            <property name="expand">False</property>
+                            <property name="fill">True</property>
+                            <property name="position">0</property>
+                          </packing>
+                        </child>
+                      </object>
+                      <packing>
+                        <property name="expand">False</property>
+                        <property name="fill">True</property>
+                        <property name="position">0</property>
+                      </packing>
+                    </child>
                   </object>
                   <packing>
                     <property name="expand">False</property>
commit 82dfdf6e90509ad7907ece3668dbe1254f7d1574
Author: Jan Holesovsky <kendy at collabora.com>
Date:   Thu Nov 14 11:42:14 2013 +0100

    startcenter: Rework completely according to the new design.
    
    Only the background bitmap that will show behind the buttons is missing at the
    moment, will come later.
    
    Change-Id: I60e8f74ab28383ce1e891367ba5d2aff23d787ff

diff --git a/sfx2/source/dialog/backingwindow.cxx b/sfx2/source/dialog/backingwindow.cxx
index fa3408f..1b50bf3 100644
--- a/sfx2/source/dialog/backingwindow.cxx
+++ b/sfx2/source/dialog/backingwindow.cxx
@@ -62,6 +62,9 @@ const int nTemplateItemPadding = 5;
 const int nTemplateItemMaxTextLength = 20;
 const int nTemplateItemThumbnailMaxHeight = 96;
 
+const Color aButtonsBackground(114, 168, 84); // TDF green
+const Color aButtonsText(COL_WHITE);
+
 BackingWindow::BackingWindow( Window* i_pParent ) :
     Window( i_pParent ),
     mxDesktop( Desktop::create(comphelper::getProcessComponentContext()) ),
@@ -69,76 +72,31 @@ BackingWindow::BackingWindow( Window* i_pParent ) :
     mnHideExternalLinks( 0 ),
     mpAccExec( NULL )
 {
-    m_pUIBuilder = new VclBuilder(this, getUIRootDir(),
-      "sfx/ui/startcenter.ui",
-      "StartCenter" );
-
-    get(mpOpenButton,               "open_all");
-    get(mpOpenWriterButton,         "open_writer");
-    get(mpOpenCalcButton,           "open_calc");
-    get(mpOpenImpressButton,        "open_impress");
-    get(mpOpenDrawButton,           "open_draw");
-    get(mpOpenDatabaseButton,       "open_database");
-    get(mpOpenMathButton,           "open_math");
-
-    get(mpTemplateButton,           "templates_all");
-    get(mpTemplateWriterButton,     "templates_writer");
-    get(mpTemplateCalcButton,       "templates_calc");
-    get(mpTemplateImpressButton,    "templates_impress");
-    get(mpTemplateDrawButton,       "templates_draw");
-    get(mpTemplateDatabaseButton,   "templates_database");
-    get(mpTemplateMathButton,       "templates_math");
-
-    get(mpModuleNotebook,   "modules_notebook");
-
-    get(mpWriterButton,     "writer");
-    get(mpCalcButton,       "calc");
-    get(mpImpressButton,    "impress");
-    get(mpDrawButton,       "draw");
-    get(mpDBButton,         "database");
-    get(mpMathButton,       "math");
-
-    get(mpWriterAllButton,  "writer_all");
-    get(mpCalcAllButton,    "calc_all");
+    m_pUIBuilder = new VclBuilder(this, getUIRootDir(), "sfx/ui/startcenter.ui", "StartCenter" );
+
+    get(mpOpenButton, "open_all");
+    get(mpTemplateButton, "templates_all");
+
+    get(mpCreateLabel, "create_label");
+
+    get(mpWriterAllButton, "writer_all");
+    get(mpCalcAllButton, "calc_all");
     get(mpImpressAllButton, "impress_all");
-    get(mpDrawAllButton,    "draw_all");
-    get(mpDBAllButton,      "database_all");
-    get(mpMathAllButton,    "math_all");
-
-    get(mpWriterShowTemplateButton,     "show_writer_template");
-    get(mpCalcShowTemplateButton,       "show_calc_template");
-    get(mpImpressShowTemplateButton,    "show_impress_template");
-    get(mpDrawShowTemplateButton,       "show_draw_template");
-
-    get(mpWriterShowRecentButton,       "show_writer_recent");
-    get(mpCalcShowRecentButton,         "show_calc_recent");
-    get(mpImpressShowRecentButton,      "show_impress_recent");
-    get(mpDrawShowRecentButton,         "show_draw_recent");
-
-    get( mpAllRecentThumbnails,         "all_recent");
-    get( mpWriterRecentThumbnails,      "writer_recent");
-    get( mpCalcRecentThumbnails,        "calc_recent");
-    get( mpImpressRecentThumbnails,     "impress_recent");
-    get( mpDrawRecentThumbnails,        "draw_recent");
-    get( mpDatabaseRecentThumbnails,    "database_recent");
-    get( mpMathRecentThumbnails,        "math_recent");
-
-    get( mpWriterTemplateThumbnails,    "writer_templates");
-    get( mpCalcTemplateThumbnails,      "calc_templates");
-    get( mpImpressTemplateThumbnails,   "impress_templates");
-    get( mpDrawTemplateThumbnails,      "draw_templates");
+    get(mpDrawAllButton, "draw_all");
+    get(mpDBAllButton, "database_all");
+    get(mpMathAllButton, "math_all");
+
+    get(mpHelpButton, "help");
+    get(mpExtensionsButton, "extensions");
+
+    get(mpAllButtonsBox, "all_buttons_box");
+    get(mpPictureBox, "picture_box");
+    get(mpButtonsBox, "buttons_box");
+    get(mpSmallButtonsBox, "small_buttons_box");
+
+    get(mpAllRecentThumbnails, "all_recent");
 
     maDndWindows.push_back(mpAllRecentThumbnails);
-    maDndWindows.push_back(mpWriterRecentThumbnails);
-    maDndWindows.push_back(mpCalcRecentThumbnails);
-    maDndWindows.push_back(mpImpressRecentThumbnails);
-    maDndWindows.push_back(mpDrawRecentThumbnails);
-    maDndWindows.push_back(mpDatabaseRecentThumbnails);
-    maDndWindows.push_back(mpMathRecentThumbnails);
-    maDndWindows.push_back(mpWriterTemplateThumbnails);
-    maDndWindows.push_back(mpCalcTemplateThumbnails);
-    maDndWindows.push_back(mpImpressTemplateThumbnails);
-    maDndWindows.push_back(mpDrawTemplateThumbnails);
 
     try
     {
@@ -176,35 +134,15 @@ BackingWindow::BackingWindow( Window* i_pParent ) :
     Reference<XDesktop2> xDesktop = Desktop::create( comphelper::getProcessComponentContext() );
     mxDesktopDispatchProvider = xDesktop;
 
-    mpOpenButton            ->SetHelpId( ".HelpId:StartCenter:OpenButton" );
-    mpOpenWriterButton      ->SetHelpId( ".HelpId:StartCenter:OpenButton" );
-    mpOpenCalcButton        ->SetHelpId( ".HelpId:StartCenter:OpenButton" );
-    mpOpenImpressButton     ->SetHelpId( ".HelpId:StartCenter:OpenButton" );
-    mpOpenDrawButton        ->SetHelpId( ".HelpId:StartCenter:OpenButton" );
-    mpOpenDatabaseButton    ->SetHelpId( ".HelpId:StartCenter:OpenButton" );
-    mpOpenMathButton        ->SetHelpId( ".HelpId:StartCenter:OpenButton" );
-
-    mpTemplateButton        ->SetHelpId( ".HelpId:StartCenter:TemplateButton" );
-    mpTemplateWriterButton  ->SetHelpId( ".HelpId:StartCenter:TemplateButton" );
-    mpTemplateCalcButton    ->SetHelpId( ".HelpId:StartCenter:TemplateButton" );
-    mpTemplateImpressButton ->SetHelpId( ".HelpId:StartCenter:TemplateButton" );
-    mpTemplateDrawButton    ->SetHelpId( ".HelpId:StartCenter:TemplateButton" );
-    mpTemplateDatabaseButton->SetHelpId( ".HelpId:StartCenter:TemplateButton" );
-    mpTemplateMathButton    ->SetHelpId( ".HelpId:StartCenter:TemplateButton" );
-
-    mpWriterButton      ->SetHelpId( ".HelpId:StartCenter:WriterButton" );
-    mpCalcButton        ->SetHelpId( ".HelpId:StartCenter:CalcButton" );
-    mpImpressButton     ->SetHelpId( ".HelpId:StartCenter:ImpressButton" );
-    mpDrawButton        ->SetHelpId( ".HelpId:StartCenter:DrawButton" );
-    mpDBButton          ->SetHelpId( ".HelpId:StartCenter:DBButton" );
-    mpMathButton        ->SetHelpId( ".HelpId:StartCenter:MathButton" );
-
-    mpWriterAllButton   ->SetHelpId( ".HelpId:StartCenter:WriterButton" );
-    mpCalcAllButton     ->SetHelpId( ".HelpId:StartCenter:CalcButton" );
-    mpImpressAllButton  ->SetHelpId( ".HelpId:StartCenter:ImpressButton" );
-    mpDrawAllButton     ->SetHelpId( ".HelpId:StartCenter:DrawButton" );
-    mpDBAllButton       ->SetHelpId( ".HelpId:StartCenter:DBButton" );
-    mpMathAllButton     ->SetHelpId( ".HelpId:StartCenter:MathButton" );
+    mpOpenButton->SetHelpId( ".HelpId:StartCenter:OpenButton" );
+    mpTemplateButton->SetHelpId( ".HelpId:StartCenter:TemplateButton" );
+
+    mpWriterAllButton->SetHelpId( ".HelpId:StartCenter:WriterButton" );
+    mpCalcAllButton->SetHelpId( ".HelpId:StartCenter:CalcButton" );
+    mpImpressAllButton->SetHelpId( ".HelpId:StartCenter:ImpressButton" );
+    mpDrawAllButton->SetHelpId( ".HelpId:StartCenter:DrawButton" );
+    mpDBAllButton->SetHelpId( ".HelpId:StartCenter:DBButton" );
+    mpMathAllButton->SetHelpId( ".HelpId:StartCenter:MathButton" );
 
     // init background
     SetBackground();
@@ -213,11 +151,6 @@ BackingWindow::BackingWindow( Window* i_pParent ) :
 
 BackingWindow::~BackingWindow()
 {
-    mpWriterTemplateThumbnails  ->setOpenTemplateHdl(Link());
-    mpCalcTemplateThumbnails    ->setOpenTemplateHdl(Link());
-    mpImpressTemplateThumbnails ->setOpenTemplateHdl(Link());
-    mpDrawTemplateThumbnails    ->setOpenTemplateHdl(Link());
-
     // deregister drag&drop helper
     if (mxDropTargetListener.is())
     {
@@ -235,7 +168,6 @@ BackingWindow::~BackingWindow()
         }
         mxDropTargetListener = css::uno::Reference< css::datatransfer::dnd::XDropTargetListener >();
     }
-
 }
 
 void BackingWindow::initControls()
@@ -262,37 +194,32 @@ void BackingWindow::initControls()
             aFileNewAppsAvailable.insert( sURL );
     }
 
-    setupModuleTab( "tab_writer", mpWriterRecentThumbnails, TYPE_WRITER,
-        WRITER_URL, aFileNewAppsAvailable, aModuleOptions,
-        SvtModuleOptions::E_SWRITER );
-    setupModuleTab( "tab_calc", mpCalcRecentThumbnails, TYPE_CALC,
-        DRAW_URL, aFileNewAppsAvailable, aModuleOptions,
-        SvtModuleOptions::E_SDRAW );
-    setupModuleTab( "tab_impress", mpImpressRecentThumbnails, TYPE_IMPRESS,
-        CALC_URL, aFileNewAppsAvailable, aModuleOptions,
-        SvtModuleOptions::E_SCALC );
-    setupModuleTab( "tab_draw", mpDrawRecentThumbnails, TYPE_DRAW,
-        BASE_URL, aFileNewAppsAvailable, aModuleOptions,
-        SvtModuleOptions::E_SDATABASE );
-    setupModuleTab( "tab_database", mpDatabaseRecentThumbnails, TYPE_DATABASE,
-        IMPRESS_WIZARD_URL, aFileNewAppsAvailable, aModuleOptions,
-        SvtModuleOptions::E_SIMPRESS );
-    setupModuleTab( "tab_math", mpMathRecentThumbnails, TYPE_MATH,
-        MATH_URL, aFileNewAppsAvailable, aModuleOptions,
-        SvtModuleOptions::E_SMATH );
-
-    // File types for mpAllRecentThumbnails are added in the above calls
-    // of setupModuleTab. TYPE_OTHER is always added.
+    if (aModuleOptions.IsModuleInstalled(SvtModuleOptions::E_SWRITER))
+        mpAllRecentThumbnails->mnFileTypes |= TYPE_WRITER;
+
+    if (aModuleOptions.IsModuleInstalled(SvtModuleOptions::E_SCALC))
+        mpAllRecentThumbnails->mnFileTypes |= TYPE_CALC;
+
+    if (aModuleOptions.IsModuleInstalled(SvtModuleOptions::E_SIMPRESS))
+        mpAllRecentThumbnails->mnFileTypes |= TYPE_IMPRESS;
+
+    if (aModuleOptions.IsModuleInstalled(SvtModuleOptions::E_SDRAW))
+        mpAllRecentThumbnails->mnFileTypes |= TYPE_DRAW;
+
+    if (aModuleOptions.IsModuleInstalled(SvtModuleOptions::E_SDATABASE))
+        mpAllRecentThumbnails->mnFileTypes |= TYPE_DATABASE;
+
+    if (aModuleOptions.IsModuleInstalled(SvtModuleOptions::E_SMATH))
+        mpAllRecentThumbnails->mnFileTypes |= TYPE_MATH;
+
     mpAllRecentThumbnails->mnFileTypes |= TYPE_OTHER;
     mpAllRecentThumbnails->loadRecentDocs();
     mpAllRecentThumbnails->ShowTooltips( true );
 
-    setupButton( mpWriterButton );
-    setupButton( mpDrawButton );
-    setupButton( mpCalcButton );
-    setupButton( mpDBButton );
-    setupButton( mpImpressButton );
-    setupButton( mpMathButton );
+    setupButton( mpOpenButton );
+    setupButton( mpTemplateButton );
+
+    mpCreateLabel->SetControlForeground(aButtonsText);
 
     setupButton( mpWriterAllButton );
     setupButton( mpDrawAllButton );
@@ -301,88 +228,30 @@ void BackingWindow::initControls()
     setupButton( mpImpressAllButton );
     setupButton( mpMathAllButton );
 
-    setupButton( mpOpenButton );
-    setupButton( mpOpenWriterButton );
-    setupButton( mpOpenCalcButton );
-    setupButton( mpOpenImpressButton );
-    setupButton( mpOpenDrawButton );
-    setupButton( mpOpenDatabaseButton );
-    setupButton( mpOpenMathButton );
+    mpHelpButton->SetControlForeground(aButtonsText);
+    mpExtensionsButton->SetControlForeground(aButtonsText);
 
-    setupButton( mpTemplateButton );
-    setupButton( mpTemplateWriterButton );
-    setupButton( mpTemplateCalcButton );
-    setupButton( mpTemplateImpressButton );
-    setupButton( mpTemplateDrawButton );
-    setupButton( mpTemplateDatabaseButton );
-    setupButton( mpTemplateMathButton );
-
-    setupTemplateView( mpWriterTemplateThumbnails,  FILTER_APP_WRITER,
-                       mpWriterShowRecentButton,    mpWriterShowTemplateButton );
-    setupTemplateView( mpCalcTemplateThumbnails,    FILTER_APP_CALC,
-                       mpCalcShowRecentButton,      mpCalcShowTemplateButton );
-    setupTemplateView( mpImpressTemplateThumbnails, FILTER_APP_IMPRESS,
-                       mpImpressShowRecentButton,   mpImpressShowTemplateButton );
-    setupTemplateView( mpDrawTemplateThumbnails,    FILTER_APP_DRAW,
-                       mpDrawShowRecentButton,      mpDrawShowTemplateButton );
+    mpAllButtonsBox->SetBackground(aButtonsBackground);
+    mpPictureBox->SetBackground(aButtonsBackground);
+    mpButtonsBox->SetBackground(aButtonsBackground);
+    mpSmallButtonsBox->SetBackground(aButtonsBackground);
 
     Resize();
 }
 
-void BackingWindow::setupModuleTab(const OString& rTabName, RecentDocsView* pRecView, int nFileTypes,
-    const OUString &rURL, const std::set<OUString>& rURLS, SvtModuleOptions& rOpt,
-    SvtModuleOptions::EModule eMod)
-{
-    if( !rURL.isEmpty() && (!rOpt.IsModuleInstalled( eMod ) || rURLS.find( rURL ) == rURLS.end()) )
-    {
-        // disable the parts that are not installed
-        mpModuleNotebook->RemovePage( mpModuleNotebook->GetPageId(rTabName) );
-    }
-    else
-    {
-        // if a module is installed, add that filetype to the "All" page
-        mpAllRecentThumbnails-> mnFileTypes |= nFileTypes;
-        pRecView->mnFileTypes |= nFileTypes;
-        pRecView->loadRecentDocs();
-        pRecView->ShowTooltips( true );
-    }
-}
-
 void BackingWindow::setupButton( PushButton* pButton )
 {
-    pButton->SetClickHdl( LINK( this, BackingWindow, ClickHdl ) );
-}
+    // the buttons should have a bit bigger font
+    Font aFont(pButton->GetControlFont());
+    aFont.SetHeight(15);
+    pButton->SetControlFont(aFont);
 
-void BackingWindow::setupTemplateView( TemplateLocalView* pView, FILTER_APPLICATION eFilter,
-                                       PushButton* pRecentButton, PushButton* pTemplateButton )
-{
-    // setup view
-    pView->SetStyle(pView->GetStyle() | WB_VSCROLL);
-    pView->setItemMaxTextLength(nTemplateItemMaxTextLength);
-
-    pView->setItemDimensions(nTemplateItemMaxWidth, nTemplateItemThumbnailMaxHeight,
-                              nTemplateItemMaxHeight-nTemplateItemThumbnailMaxHeight,
-                              nTemplateItemPadding);
-    pView->filterItems(ViewFilter_Application(eFilter));
-    pView->Populate();
-    pView->Hide(); // hidden by default
-    pView->showRootRegion();
-    pView->setOpenTemplateHdl( LINK( this, BackingWindow, OpenTemplateHdl ) );
-
-    if( pView->HasUnfilteredItems(eFilter) )
-    {
-        // setup buttons
-        pRecentButton->SetClickHdl( LINK( this, BackingWindow, RecentTemplateToggleHdl ) );
-        pTemplateButton->SetClickHdl( LINK( this, BackingWindow, RecentTemplateToggleHdl ) );
+    // color that fits the theme
+    pButton->SetControlForeground(aButtonsText);
 
-        pRecentButton->Hide();  // hidden by default
-    }
-    else // no templates, hide toggle button
-    {
-        pTemplateButton->Hide();
-        pRecentButton->Hide();
-    }
+    pButton->SetClickHdl( LINK( this, BackingWindow, ClickHdl ) );
 }
+
 void BackingWindow::Paint( const Rectangle& )
 {
     Resize();
@@ -466,22 +335,19 @@ void BackingWindow::Resize()
 IMPL_LINK( BackingWindow, ClickHdl, Button*, pButton )
 {
     // dispatch the appropriate URL and end the dialog
-    if( pButton == mpWriterButton       || pButton == mpWriterAllButton )
+    if( pButton == mpWriterAllButton )
         dispatchURL( WRITER_URL );
-    else if( pButton == mpCalcButton    || pButton == mpCalcAllButton )
+    else if( pButton == mpCalcAllButton )
         dispatchURL( CALC_URL );
-    else if( pButton == mpImpressButton || pButton == mpImpressAllButton )
+    else if( pButton == mpImpressAllButton )
         dispatchURL( IMPRESS_WIZARD_URL );
-    else if( pButton == mpDrawButton    || pButton == mpDrawAllButton )
+    else if( pButton == mpDrawAllButton )
         dispatchURL( DRAW_URL );
-    else if( pButton == mpDBButton      || pButton == mpDBAllButton )
+    else if( pButton == mpDBAllButton )
         dispatchURL( BASE_URL );
-    else if( pButton == mpMathButton    || pButton == mpMathAllButton )
+    else if( pButton == mpMathAllButton )
         dispatchURL( MATH_URL );
-    else if( pButton == mpOpenButton         ||
-             pButton == mpOpenWriterButton   || pButton == mpOpenCalcButton ||
-             pButton == mpOpenImpressButton  || pButton == mpOpenDrawButton ||
-             pButton == mpOpenDatabaseButton || pButton == mpOpenMathButton )
+    else if( pButton == mpOpenButton )
     {
         Reference< XDispatchProvider > xFrame( mxFrame, UNO_QUERY );
 
@@ -492,10 +358,7 @@ IMPL_LINK( BackingWindow, ClickHdl, Button*, pButton )
 
         dispatchURL( OPEN_URL, OUString(), xFrame, aArgs );
     }
-    else if( pButton == mpTemplateButton            ||
-             pButton == mpTemplateWriterButton      || pButton == mpTemplateCalcButton  ||
-             pButton == mpTemplateImpressButton     || pButton == mpTemplateDrawButton  ||
-             pButton == mpTemplateDatabaseButton    || pButton == mpTemplateMathButton )
+    else if( pButton == mpTemplateButton )
     {
         Reference< XDispatchProvider > xFrame( mxFrame, UNO_QUERY );
 
@@ -509,79 +372,6 @@ IMPL_LINK( BackingWindow, ClickHdl, Button*, pButton )
     return 0;
 }
 
-IMPL_LINK( BackingWindow, RecentTemplateToggleHdl, Button*, pButton )
-{
-    // writer
-    if( pButton == mpWriterShowTemplateButton )
-    {
-        mpWriterRecentThumbnails->Hide();
-        mpWriterShowTemplateButton->Hide();
-        mpWriterTemplateThumbnails->Show();
-        mpWriterShowRecentButton->Show();
-        mpWriterShowRecentButton->GrabFocus();
-    }
-    else if( pButton == mpWriterShowRecentButton )
-    {
-        mpWriterTemplateThumbnails->Hide();
-        mpWriterShowRecentButton->Hide();
-        mpWriterRecentThumbnails->Show();
-        mpWriterShowTemplateButton->Show();
-        mpWriterShowTemplateButton->GrabFocus();
-    }
-    // calc
-    else if( pButton == mpCalcShowTemplateButton )
-    {
-        mpCalcRecentThumbnails->Hide();
-        mpCalcShowTemplateButton->Hide();
-        mpCalcTemplateThumbnails->Show();
-        mpCalcShowRecentButton->Show();
-        mpCalcShowRecentButton->GrabFocus();
-    }
-    else if( pButton == mpCalcShowRecentButton )
-    {
-        mpCalcTemplateThumbnails->Hide();
-        mpCalcShowRecentButton->Hide();
-        mpCalcRecentThumbnails->Show();
-        mpCalcShowTemplateButton->Show();
-        mpCalcShowTemplateButton->GrabFocus();
-    }
-    // impress
-    else if( pButton == mpImpressShowTemplateButton )
-    {
-        mpImpressRecentThumbnails->Hide();
-        mpImpressShowTemplateButton->Hide();
-        mpImpressTemplateThumbnails->Show();
-        mpImpressShowRecentButton->Show();
-        mpImpressShowRecentButton->GrabFocus();
-    }
-    else if( pButton == mpImpressShowRecentButton )
-    {
-        mpImpressTemplateThumbnails->Hide();
-        mpImpressShowRecentButton->Hide();
-        mpImpressRecentThumbnails->Show();
-        mpImpressShowTemplateButton->Show();
-        mpImpressShowTemplateButton->GrabFocus();
-    }
-    // draw
-    else if( pButton == mpDrawShowTemplateButton )
-    {
-        mpDrawRecentThumbnails->Hide();
-        mpDrawShowTemplateButton->Hide();
-        mpDrawTemplateThumbnails->Show();
-        mpDrawShowRecentButton->Show();
-        mpDrawShowRecentButton->GrabFocus();
-    }
-    else if( pButton == mpDrawShowRecentButton )
-    {
-        mpDrawTemplateThumbnails->Hide();
-        mpDrawShowRecentButton->Hide();
-        mpDrawRecentThumbnails->Show();
-        mpDrawShowTemplateButton->Show();
-        mpDrawShowTemplateButton->GrabFocus();
-    }
-    return 0;
-}
-
 IMPL_LINK( BackingWindow, OpenTemplateHdl, ThumbnailViewItem*, pItem)
 {
     uno::Sequence< PropertyValue > aArgs(4);
diff --git a/sfx2/source/dialog/backingwindow.hxx b/sfx2/source/dialog/backingwindow.hxx
index 7cb516a..518aca3 100644
--- a/sfx2/source/dialog/backingwindow.hxx
+++ b/sfx2/source/dialog/backingwindow.hxx
@@ -55,29 +55,9 @@ class BackingWindow
     com::sun::star::uno::Reference< com::sun::star::datatransfer::dnd::XDropTargetListener > mxDropTargetListener;
 
     PushButton*                     mpOpenButton;
-    PushButton*                     mpOpenWriterButton;
-    PushButton*                     mpOpenCalcButton;
-    PushButton*                     mpOpenImpressButton;
-    PushButton*                     mpOpenDrawButton;
-    PushButton*                     mpOpenDatabaseButton;
-    PushButton*                     mpOpenMathButton;
-
     PushButton*                     mpTemplateButton;
-    PushButton*                     mpTemplateWriterButton;
-    PushButton*                     mpTemplateCalcButton;
-    PushButton*                     mpTemplateImpressButton;
-    PushButton*                     mpTemplateDrawButton;
-    PushButton*                     mpTemplateDatabaseButton;
-    PushButton*                     mpTemplateMathButton;
-
-    TabControl*                     mpModuleNotebook;
-
-    PushButton*                     mpWriterButton;
-    PushButton*                     mpCalcButton;
-    PushButton*                     mpImpressButton;
-    PushButton*                     mpDrawButton;
-    PushButton*                     mpDBButton;
-    PushButton*                     mpMathButton;
+
+    FixedText*                      mpCreateLabel;
 
     PushButton*                     mpWriterAllButton;
     PushButton*                     mpCalcAllButton;
@@ -86,28 +66,15 @@ class BackingWindow
     PushButton*                     mpDBAllButton;
     PushButton*                     mpMathAllButton;
 
-    PushButton*                     mpWriterShowTemplateButton;
-    PushButton*                     mpCalcShowTemplateButton;
-    PushButton*                     mpImpressShowTemplateButton;
-    PushButton*                     mpDrawShowTemplateButton;
+    PushButton*                     mpHelpButton;
+    PushButton*                     mpExtensionsButton;
 
-    PushButton*                     mpWriterShowRecentButton;
-    PushButton*                     mpCalcShowRecentButton;
-    PushButton*                     mpImpressShowRecentButton;
-    PushButton*                     mpDrawShowRecentButton;
+    VclBox*                         mpAllButtonsBox;
+    VclBox*                         mpPictureBox;
+    VclBox*                         mpButtonsBox;
+    VclBox*                         mpSmallButtonsBox;
 
     RecentDocsView*                 mpAllRecentThumbnails;
-    RecentDocsView*                 mpWriterRecentThumbnails;
-    RecentDocsView*                 mpCalcRecentThumbnails;
-    RecentDocsView*                 mpImpressRecentThumbnails;
-    RecentDocsView*                 mpDrawRecentThumbnails;
-    RecentDocsView*                 mpDatabaseRecentThumbnails;
-    RecentDocsView*                 mpMathRecentThumbnails;
-
-    TemplateLocalView*              mpWriterTemplateThumbnails;
-    TemplateLocalView*              mpCalcTemplateThumbnails;
-    TemplateLocalView*              mpImpressTemplateThumbnails;
-    TemplateLocalView*              mpDrawTemplateThumbnails;
 
     std::vector<Window*>            maDndWindows;
 
@@ -117,12 +84,7 @@ class BackingWindow
     sal_Int32                       mnHideExternalLinks;
     svt::AcceleratorExecute*        mpAccExec;
 
-    void setupModuleTab( const OString& rTabName, RecentDocsView* pRecView, int nFileTypes,
-        const OUString& rURL, const std::set<OUString>& rURLS, SvtModuleOptions& rOpt,
-        SvtModuleOptions::EModule eMod );
     void setupButton( PushButton* pButton );
-    void setupTemplateView( TemplateLocalView* pView, FILTER_APPLICATION eFilter,
-                            PushButton* pRecentButton, PushButton* pTemplateButton );
 
     void dispatchURL( const OUString& i_rURL,
                       const OUString& i_rTarget = OUString( "_default" ),
@@ -131,7 +93,6 @@ class BackingWindow
                       );
 
     DECL_LINK( ClickHdl, Button* );
-    DECL_LINK( RecentTemplateToggleHdl, Button* );
     DECL_LINK( OpenTemplateHdl, ThumbnailViewItem* );
 
     void initControls();
diff --git a/sfx2/uiconfig/ui/startcenter.ui b/sfx2/uiconfig/ui/startcenter.ui
index fd3acad..6907417 100644
--- a/sfx2/uiconfig/ui/startcenter.ui
+++ b/sfx2/uiconfig/ui/startcenter.ui
@@ -1,1084 +1,283 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <interface>
-  <!-- interface-requires LibreOffice 1.0 -->
-  <!-- interface-requires gtk+ 3.0 -->
-  <object class="GtkImage" id="calc_all_image">
-    <property name="visible">True</property>
-    <property name="can_focus">False</property>
-    <property name="pixbuf">res/ods_16_8.png</property>
-  </object>
-  <object class="GtkImage" id="calc_image">
-    <property name="visible">True</property>
-    <property name="can_focus">False</property>
-    <property name="pixbuf">res/ods_16_8.png</property>
-  </object>
-  <object class="GtkImage" id="database_all_image">
-    <property name="visible">True</property>
-    <property name="can_focus">False</property>
-    <property name="pixbuf">res/odb_16_8.png</property>
-  </object>
-  <object class="GtkImage" id="database_image">
-    <property name="visible">True</property>
-    <property name="can_focus">False</property>
-    <property name="pixbuf">res/odb_16_8.png</property>
-  </object>
-  <object class="GtkImage" id="draw_image">
-    <property name="visible">True</property>
-    <property name="can_focus">False</property>
-    <property name="pixbuf">res/odg_16_8.png</property>
-  </object>
-  <object class="GtkImage" id="draw_all_image">
-    <property name="visible">True</property>
-    <property name="can_focus">False</property>
-    <property name="pixbuf">res/odg_16_8.png</property>
-  </object>
-  <object class="GtkImage" id="open_image5">
-    <property name="visible">True</property>
-    <property name="can_focus">False</property>
-    <property name="pixbuf">cmd/sc_open.png</property>
-  </object>
-  <object class="GtkBox" id="StartCenter">
-    <property name="can_focus">False</property>
-    <child>
-      <object class="GtkGrid" id="grid1">
-        <property name="visible">True</property>
-        <property name="can_focus">False</property>
-        <property name="hexpand">True</property>
-        <property name="vexpand">True</property>
-        <property name="border_width">24</property>
-        <property name="row_spacing">12</property>
-        <property name="column_spacing">12</property>
-        <child>
-          <object class="GtkNotebook" id="modules_notebook">
-            <property name="visible">True</property>
-            <property name="can_focus">True</property>
-            <property name="hexpand">True</property>
-            <property name="vexpand">True</property>
-            <child>
-              <object class="GtkGrid" id="grid2">
-                <property name="visible">True</property>
-                <property name="can_focus">False</property>
-                <property name="border_width">12</property>
-                <property name="row_spacing">6</property>
-                <child>
-                  <object class="sfxlo-RecentDocsView" id="all_recent">
-                    <property name="visible">True</property>
-                    <property name="can_focus">False</property>
-                    <property name="hexpand">True</property>
-                    <property name="vexpand">True</property>
-                  </object>
-                  <packing>
-                    <property name="left_attach">0</property>
-                    <property name="top_attach">1</property>
-                    <property name="width">1</property>
-                    <property name="height">1</property>
-                  </packing>
-                </child>
-                <child>
-                  <object class="GtkGrid" id="grid16">
-                    <property name="visible">True</property>
-                    <property name="can_focus">False</property>
-                    <property name="column_spacing">6</property>
-                    <child>
-                      <object class="GtkButton" id="writer_all">
-                        <property name="label" translatable="yes">Text _Document</property>
-                        <property name="visible">True</property>
-                        <property name="can_focus">True</property>
-                        <property name="receives_default">True</property>
-                        <property name="tooltip_text" translatable="yes">New Document</property>
-                        <property name="image">writer_all_image</property>
-                        <property name="relief">none</property>
-                        <property name="use_underline">True</property>
-                      </object>
-                      <packing>
-                        <property name="left_attach">2</property>
-                        <property name="top_attach">0</property>
-                        <property name="width">1</property>
-                        <property name="height">1</property>
-                      </packing>
-                    </child>
-                    <child>
-                      <object class="GtkButton" id="calc_all">
-                        <property name="label" translatable="yes">_Spreadsheet</property>
-                        <property name="visible">True</property>
-                        <property name="can_focus">True</property>
-                        <property name="receives_default">True</property>
-                        <property name="tooltip_text" translatable="yes">New Spreadsheet</property>
-                        <property name="image">calc_all_image</property>
-                        <property name="relief">none</property>
-                        <property name="use_underline">True</property>
-                      </object>
-                      <packing>
-                        <property name="left_attach">3</property>
-                        <property name="top_attach">0</property>
-                        <property name="width">1</property>
-                        <property name="height">1</property>
-                      </packing>
-                    </child>
-                    <child>
-                      <object class="GtkButton" id="impress_all">
-                        <property name="label" translatable="yes">_Presentation</property>
-                        <property name="visible">True</property>
-                        <property name="can_focus">True</property>
-                        <property name="receives_default">True</property>
-                        <property name="tooltip_text" translatable="yes">New Presentation</property>
-                        <property name="image">impress_all_image</property>
-                        <property name="relief">none</property>
-                        <property name="use_underline">True</property>
-                      </object>
-                      <packing>
-                        <property name="left_attach">4</property>
-                        <property name="top_attach">0</property>
-                        <property name="width">1</property>
-                        <property name="height">1</property>
-                      </packing>
-                    </child>
-                    <child>
-                      <object class="GtkButton" id="draw_all">
-                        <property name="label" translatable="yes">D_rawing</property>
-                        <property name="visible">True</property>
-                        <property name="can_focus">True</property>
-                        <property name="receives_default">True</property>
-                        <property name="tooltip_text" translatable="yes">New Drawing</property>
-                        <property name="image">draw_all_image</property>
-                        <property name="relief">none</property>
-                        <property name="use_underline">True</property>
-                      </object>
-                      <packing>
-                        <property name="left_attach">5</property>
-                        <property name="top_attach">0</property>
-                        <property name="width">1</property>
-                        <property name="height">1</property>
-                      </packing>
-                    </child>
-                    <child>
-                      <object class="GtkButton" id="database_all">
-                        <property name="label" translatable="yes">D_atabase</property>
-                        <property name="visible">True</property>
-                        <property name="can_focus">True</property>
-                        <property name="receives_default">True</property>
-                        <property name="tooltip_text" translatable="yes">New Database</property>
-                        <property name="image">database_all_image</property>
-                        <property name="relief">none</property>
-                        <property name="use_underline">True</property>
-                      </object>
-                      <packing>
-                        <property name="left_attach">6</property>
-                        <property name="top_attach">0</property>
-                        <property name="width">1</property>
-                        <property name="height">1</property>
-                      </packing>
-                    </child>
-                    <child>
-                      <object class="GtkButton" id="math_all">
-                        <property name="label" translatable="yes">F_ormula</property>
-                        <property name="visible">True</property>
-                        <property name="can_focus">True</property>
-                        <property name="receives_default">True</property>
-                        <property name="tooltip_text" translatable="yes">New Formula</property>
-                        <property name="image">math_all_image</property>
-                        <property name="relief">none</property>
-                        <property name="use_underline">True</property>
-                      </object>
-                      <packing>
-                        <property name="left_attach">7</property>
-                        <property name="top_attach">0</property>
-                        <property name="width">1</property>
-                        <property name="height">1</property>
-                      </packing>
-                    </child>
-                    <child>
-                      <object class="GtkButton" id="open_all">
-                        <property name="label" translatable="yes">Ope_n</property>
-                        <property name="visible">True</property>
-                        <property name="can_focus">True</property>
-                        <property name="receives_default">True</property>
-                        <property name="image">open_image</property>
-                        <property name="relief">none</property>
-                        <property name="use_underline">True</property>
-                      </object>
-                      <packing>
-                        <property name="left_attach">0</property>
-                        <property name="top_attach">0</property>
-                        <property name="width">1</property>
-                        <property name="height">1</property>
-                      </packing>
-                    </child>
-                    <child>
-                      <object class="GtkButton" id="templates_all">
-                        <property name="label" translatable="yes">Te_mplates</property>
-                        <property name="visible">True</property>
-                        <property name="can_focus">True</property>
-                        <property name="receives_default">True</property>
-                        <property name="image">templates_image</property>
-                        <property name="relief">none</property>
-                        <property name="use_underline">True</property>
-                      </object>
-                      <packing>
-                        <property name="left_attach">1</property>
-                        <property name="top_attach">0</property>
-                        <property name="width">1</property>
-                        <property name="height">1</property>
-                      </packing>
-                    </child>
-                  </object>
-                  <packing>
-                    <property name="left_attach">0</property>
-                    <property name="top_attach">0</property>
-                    <property name="width">1</property>
-                    <property name="height">1</property>
-                  </packing>
-                </child>
-              </object>
-            </child>
-            <child type="tab">
-              <object class="GtkLabel" id="tab_all">
-                <property name="visible">True</property>
-                <property name="can_focus">False</property>
-                <property name="label" translatable="yes">All Recent</property>
-              </object>
-              <packing>
-                <property name="tab_fill">False</property>
-              </packing>
-            </child>
-            <child>
-              <object class="GtkGrid" id="grid4">
-                <property name="visible">True</property>
-                <property name="can_focus">False</property>
-                <property name="border_width">12</property>
-                <property name="row_spacing">6</property>
-                <child>
-                  <object class="GtkGrid" id="grid5">
-                    <property name="visible">True</property>
-                    <property name="can_focus">False</property>
-                    <property name="column_spacing">6</property>
-                    <child>
-                      <object class="GtkButton" id="writer">
-                        <property name="label" translatable="yes">Text _Document</property>
-                        <property name="visible">True</property>
-                        <property name="can_focus">True</property>
-                        <property name="receives_default">True</property>
-                        <property name="image">writer_image</property>
-                        <property name="relief">none</property>
-                        <property name="use_underline">True</property>
-                      </object>
-                      <packing>
-                        <property name="left_attach">2</property>
-                        <property name="top_attach">0</property>
-                        <property name="width">1</property>
-                        <property name="height">1</property>
-                      </packing>
-                    </child>
-                    <child>
-                      <object class="GtkButton" id="show_writer_recent">
-                        <property name="label" translatable="yes">Show Recent</property>
-                        <property name="visible">True</property>
-                        <property name="can_focus">True</property>
-                        <property name="receives_default">True</property>
-                        <property name="relief">none</property>
-                      </object>
-                      <packing>
-                        <property name="left_attach">4</property>
-                        <property name="top_attach">0</property>
-                        <property name="width">1</property>
-                        <property name="height">1</property>
-                      </packing>
-                    </child>
-                    <child>
-                      <object class="GtkButton" id="show_writer_template">
-                        <property name="label" translatable="yes">Show Templates</property>
-                        <property name="visible">True</property>
-                        <property name="can_focus">True</property>
-                        <property name="receives_default">True</property>
-                        <property name="relief">none</property>
-                      </object>
-                      <packing>
-                        <property name="left_attach">3</property>
-                        <property name="top_attach">0</property>
-                        <property name="width">1</property>
-                        <property name="height">1</property>
-                      </packing>
-                    </child>
-                    <child>
-                      <object class="GtkButton" id="open_writer">
-                        <property name="label" translatable="yes">Ope_n</property>
-                        <property name="visible">True</property>
-                        <property name="can_focus">True</property>
-                        <property name="receives_default">True</property>
-                        <property name="image">open_image10</property>
-                        <property name="relief">none</property>
-                        <property name="use_underline">True</property>
-                      </object>
-                      <packing>
-                        <property name="left_attach">0</property>
-                        <property name="top_attach">0</property>
-                        <property name="width">1</property>
-                        <property name="height">1</property>
-                      </packing>
-                    </child>
-                    <child>
-                      <object class="GtkButton" id="templates_writer">
-                        <property name="label" translatable="yes">Te_mplates</property>
-                        <property name="visible">True</property>
-                        <property name="can_focus">True</property>
-                        <property name="receives_default">True</property>
-                        <property name="image">templates_image1</property>
-                        <property name="relief">none</property>
-                        <property name="use_underline">True</property>
-                      </object>
-                      <packing>
-                        <property name="left_attach">1</property>
-                        <property name="top_attach">0</property>
-                        <property name="width">1</property>
-                        <property name="height">1</property>
-                      </packing>
-                    </child>
-                  </object>
-                  <packing>
-                    <property name="left_attach">0</property>
-                    <property name="top_attach">0</property>
-                    <property name="width">1</property>
-                    <property name="height">1</property>
-                  </packing>
-                </child>
-                <child>
-                  <object class="GtkGrid" id="grid21">
-                    <property name="visible">True</property>
-                    <property name="can_focus">False</property>
-                    <property name="hexpand">True</property>
-                    <property name="vexpand">True</property>
-                    <child>
-                      <object class="sfxlo-RecentDocsView" id="writer_recent">
-                        <property name="visible">True</property>
-                        <property name="can_focus">True</property>
-                        <property name="hexpand">True</property>
-                        <property name="vexpand">True</property>
-                      </object>
-                      <packing>
-                        <property name="left_attach">0</property>
-                        <property name="top_attach">0</property>
-                        <property name="width">1</property>
-                        <property name="height">1</property>
-                      </packing>
-                    </child>
-                    <child>
-                      <object class="sfxlo-TemplateLocalView" id="writer_templates">
-                        <property name="visible">True</property>
-                        <property name="can_focus">True</property>
-                        <property name="hexpand">True</property>
-                        <property name="vexpand">True</property>
-                      </object>
-                      <packing>
-                        <property name="left_attach">0</property>
-                        <property name="top_attach">1</property>
-                        <property name="width">1</property>
-                        <property name="height">1</property>
-                      </packing>
-                    </child>
-                  </object>
-                  <packing>
-                    <property name="left_attach">0</property>
-                    <property name="top_attach">1</property>
-                    <property name="width">1</property>
-                    <property name="height">1</property>
-                  </packing>
-                </child>
-              </object>
-              <packing>
-                <property name="position">1</property>
-              </packing>
-            </child>
-            <child type="tab">
-              <object class="GtkLabel" id="tab_writer">
-                <property name="visible">True</property>
-                <property name="can_focus">False</property>
-                <property name="label" translatable="yes">Documents</property>
-              </object>
-              <packing>
-                <property name="position">1</property>
-                <property name="tab_fill">False</property>
-              </packing>
-            </child>
-            <child>
-              <object class="GtkGrid" id="grid6">
-                <property name="visible">True</property>
-                <property name="can_focus">False</property>
-                <property name="border_width">12</property>
-                <property name="row_spacing">6</property>
-                <child>
-                  <object class="GtkGrid" id="grid7">
-                    <property name="visible">True</property>
-                    <property name="can_focus">False</property>
-                    <property name="column_spacing">6</property>
-                    <child>
-                      <object class="GtkButton" id="calc">
-                        <property name="label" translatable="yes">_Spreadsheet</property>
-                        <property name="visible">True</property>
-                        <property name="can_focus">True</property>
-                        <property name="receives_default">True</property>
-                        <property name="image">calc_image</property>
-                        <property name="relief">none</property>
-                        <property name="use_underline">True</property>
-                      </object>
-                      <packing>
-                        <property name="left_attach">2</property>
-                        <property name="top_attach">0</property>
-                        <property name="width">1</property>
-                        <property name="height">1</property>
-                      </packing>
-                    </child>
-                    <child>
-                      <object class="GtkButton" id="show_calc_template">
-                        <property name="label" translatable="yes">Show Templates</property>
-                        <property name="visible">True</property>
-                        <property name="can_focus">True</property>
-                        <property name="receives_default">True</property>
-                        <property name="relief">none</property>
-                      </object>
-                      <packing>
-                        <property name="left_attach">3</property>
-                        <property name="top_attach">0</property>
-                        <property name="width">1</property>
-                        <property name="height">1</property>
-                      </packing>
-                    </child>
-                    <child>
-                      <object class="GtkButton" id="show_calc_recent">
-                        <property name="label" translatable="yes">Show Recent</property>
-                        <property name="visible">True</property>
-                        <property name="can_focus">True</property>
-                        <property name="receives_default">True</property>
-                        <property name="relief">none</property>
-                      </object>
-                      <packing>
-                        <property name="left_attach">4</property>
-                        <property name="top_attach">0</property>
-                        <property name="width">1</property>
-                        <property name="height">1</property>
-                      </packing>
-                    </child>
-                    <child>
-                      <object class="GtkButton" id="open_calc">
-                        <property name="label" translatable="yes">Ope_n</property>
-                        <property name="visible">True</property>
-                        <property name="can_focus">True</property>
-                        <property name="receives_default">True</property>
-                        <property name="image">open_image9</property>
-                        <property name="relief">none</property>
-                        <property name="use_underline">True</property>
-                      </object>
-                      <packing>
-                        <property name="left_attach">0</property>
-                        <property name="top_attach">0</property>
-                        <property name="width">1</property>
-                        <property name="height">1</property>
-                      </packing>
-                    </child>
-                    <child>
-                      <object class="GtkButton" id="templates_calc">
-                        <property name="label" translatable="yes">Te_mplates</property>
-                        <property name="visible">True</property>
-                        <property name="can_focus">True</property>
-                        <property name="receives_default">True</property>
-                        <property name="image">templates_image2</property>
-                        <property name="relief">none</property>
-                        <property name="use_underline">True</property>
-                      </object>
-                      <packing>
-                        <property name="left_attach">1</property>
-                        <property name="top_attach">0</property>
-                        <property name="width">1</property>
-                        <property name="height">1</property>
-                      </packing>
-                    </child>
-                  </object>
-                  <packing>
-                    <property name="left_attach">0</property>
-                    <property name="top_attach">0</property>
-                    <property name="width">1</property>
-                    <property name="height">1</property>
-                  </packing>
-                </child>
-                <child>
-                  <object class="GtkGrid" id="grid20">
-                    <property name="visible">True</property>
-                    <property name="can_focus">False</property>
-                    <property name="hexpand">True</property>
-                    <property name="vexpand">True</property>
-                    <child>
-                      <object class="sfxlo-RecentDocsView" id="calc_recent">
-                        <property name="visible">True</property>
-                        <property name="can_focus">True</property>
-                        <property name="hexpand">True</property>
-                        <property name="vexpand">True</property>
-                      </object>
-                      <packing>
-                        <property name="left_attach">0</property>
-                        <property name="top_attach">0</property>
-                        <property name="width">1</property>
-                        <property name="height">1</property>
-                      </packing>
-                    </child>
-                    <child>
-                      <object class="sfxlo-TemplateLocalView" id="calc_templates">
-                        <property name="visible">True</property>
-                        <property name="can_focus">True</property>
-                        <property name="hexpand">True</property>
-                        <property name="vexpand">True</property>
-                      </object>
-                      <packing>
-                        <property name="left_attach">0</property>
-                        <property name="top_attach">1</property>
-                        <property name="width">1</property>
-                        <property name="height">1</property>
-                      </packing>
-                    </child>
-                  </object>
-                  <packing>
-                    <property name="left_attach">0</property>
-                    <property name="top_attach">1</property>
-                    <property name="width">1</property>
-                    <property name="height">1</property>
-                  </packing>
-                </child>
-              </object>
-              <packing>
-                <property name="position">2</property>
-              </packing>
-            </child>
-            <child type="tab">
-              <object class="GtkLabel" id="tab_calc">
-                <property name="visible">True</property>
-                <property name="can_focus">False</property>
-                <property name="label" translatable="yes">Spreadsheets</property>
-              </object>
-              <packing>
-                <property name="position">2</property>
-                <property name="tab_fill">False</property>
-              </packing>
-            </child>
+  <!-- interface-requires gtk+ 3.0 -->
+  <!-- interface-requires LibreOffice 1.0 -->
+  <object class="GtkBox" id="StartCenter">
+    <property name="can_focus">False</property>
+    <child>
+      <object class="GtkBox" id="box1">
+        <property name="visible">True</property>
+        <property name="can_focus">False</property>
+        <property name="hexpand">True</property>
+        <property name="vexpand">True</property>
+        <property name="border_width">12</property>
+        <child>
+          <object class="GtkBox" id="all_buttons_box">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="orientation">vertical</property>
             <child>
-              <object class="GtkGrid" id="grid8">
+              <object class="GtkBox" id="picture_box">
                 <property name="visible">True</property>
                 <property name="can_focus">False</property>
-                <property name="border_width">12</property>
-                <property name="row_spacing">6</property>
+                <property name="hexpand">True</property>
+                <property name="vexpand">True</property>
+                <property name="orientation">vertical</property>
                 <child>
-                  <object class="GtkGrid" id="grid9">
+                  <object class="GtkBox" id="buttons_box">
                     <property name="visible">True</property>
                     <property name="can_focus">False</property>
-                    <property name="column_spacing">6</property>
-                    <child>
-                      <object class="GtkButton" id="impress">
-                        <property name="label" translatable="yes">_Presentation</property>
-                        <property name="visible">True</property>
-                        <property name="can_focus">True</property>
-                        <property name="receives_default">True</property>
-                        <property name="image">impress_image</property>
-                        <property name="relief">none</property>
-                        <property name="use_underline">True</property>
-                      </object>
-                      <packing>
-                        <property name="left_attach">2</property>
-                        <property name="top_attach">0</property>
-                        <property name="width">1</property>
-                        <property name="height">1</property>
-                      </packing>
-                    </child>
-                    <child>
-                      <object class="GtkButton" id="show_impress_template">
-                        <property name="label" translatable="yes">Show Templates</property>
-                        <property name="visible">True</property>
-                        <property name="can_focus">True</property>
-                        <property name="receives_default">True</property>
-                        <property name="relief">none</property>
-                      </object>
-                      <packing>
-                        <property name="left_attach">3</property>
-                        <property name="top_attach">0</property>
-                        <property name="width">1</property>
-                        <property name="height">1</property>
-                      </packing>
-                    </child>
-                    <child>
-                      <object class="GtkButton" id="show_impress_recent">
-                        <property name="label" translatable="yes">Show Recent</property>
-                        <property name="visible">True</property>
-                        <property name="can_focus">True</property>
-                        <property name="receives_default">True</property>
-                        <property name="relief">none</property>
-                      </object>
-                      <packing>
-                        <property name="left_attach">4</property>
-                        <property name="top_attach">0</property>
-                        <property name="width">1</property>
-                        <property name="height">1</property>
-                      </packing>
-                    </child>
+                    <property name="margin_left">6</property>
+                    <property name="margin_right">6</property>
+                    <property name="margin_top">6</property>
+                    <property name="margin_bottom">6</property>
+                    <property name="orientation">vertical</property>
                     <child>
-                      <object class="GtkButton" id="open_impress">
-                        <property name="label" translatable="yes">Ope_n</property>
+                      <object class="GtkButton" id="open_all">
+                        <property name="label" translatable="yes">_Open</property>
                         <property name="visible">True</property>
                         <property name="can_focus">True</property>
                         <property name="receives_default">True</property>
-                        <property name="image">open_image8</property>
                         <property name="relief">none</property>
                         <property name="use_underline">True</property>
+                        <property name="xalign">0</property>
                       </object>
                       <packing>
-                        <property name="left_attach">0</property>
-                        <property name="top_attach">0</property>
-                        <property name="width">1</property>
-                        <property name="height">1</property>
+                        <property name="expand">False</property>
+                        <property name="fill">True</property>
+                        <property name="position">0</property>
                       </packing>
                     </child>
                     <child>
-                      <object class="GtkButton" id="templates_impress">
-                        <property name="label" translatable="yes">Te_mplates</property>
+                      <object class="GtkButton" id="templates_all">
+                        <property name="label" translatable="yes">T_emplates</property>
                         <property name="visible">True</property>
                         <property name="can_focus">True</property>
                         <property name="receives_default">True</property>
-                        <property name="image">templates_image3</property>
                         <property name="relief">none</property>
                         <property name="use_underline">True</property>
+                        <property name="xalign">0</property>
                       </object>
                       <packing>
-                        <property name="left_attach">1</property>
-                        <property name="top_attach">0</property>
-                        <property name="width">1</property>
-                        <property name="height">1</property>
+                        <property name="expand">False</property>
+                        <property name="fill">True</property>
+                        <property name="position">1</property>
                       </packing>
                     </child>
-                  </object>
-                  <packing>
-                    <property name="left_attach">0</property>
-                    <property name="top_attach">0</property>
-                    <property name="width">1</property>
-                    <property name="height">1</property>
-                  </packing>
-                </child>
-                <child>
-                  <object class="GtkGrid" id="grid18">
-                    <property name="visible">True</property>
-                    <property name="can_focus">False</property>
-                    <property name="hexpand">True</property>
-                    <property name="vexpand">True</property>
                     <child>
-                      <object class="sfxlo-RecentDocsView" id="impress_recent">
+                      <object class="GtkLabel" id="create_label">
                         <property name="visible">True</property>
-                        <property name="can_focus">True</property>
-                        <property name="hexpand">True</property>
-                        <property name="vexpand">True</property>
+                        <property name="can_focus">False</property>
+                        <property name="margin_left">6</property>
+                        <property name="margin_top">12</property>
+                        <property name="xalign">0</property>
+                        <property name="label" translatable="yes">Create</property>
                       </object>
                       <packing>
-                        <property name="left_attach">0</property>
-                        <property name="top_attach">0</property>
-                        <property name="width">1</property>
-                        <property name="height">1</property>
+                        <property name="expand">False</property>
+                        <property name="fill">True</property>
+                        <property name="position">2</property>
                       </packing>
                     </child>
                     <child>
-                      <object class="sfxlo-TemplateLocalView" id="impress_templates">
+                      <object class="GtkSeparator" id="separator1">
                         <property name="visible">True</property>
-                        <property name="can_focus">True</property>
-                        <property name="hexpand">True</property>
-                        <property name="vexpand">True</property>
+                        <property name="can_focus">False</property>
                       </object>
                       <packing>
-                        <property name="left_attach">0</property>
-                        <property name="top_attach">1</property>
-                        <property name="width">1</property>
-                        <property name="height">1</property>
+                        <property name="expand">False</property>
+                        <property name="fill">True</property>
+                        <property name="position">3</property>
                       </packing>
                     </child>
-                  </object>
-                  <packing>
-                    <property name="left_attach">0</property>
-                    <property name="top_attach">1</property>
-                    <property name="width">1</property>
-                    <property name="height">1</property>
-                  </packing>
-                </child>
-              </object>
-              <packing>
-                <property name="position">3</property>
-              </packing>
-            </child>
-            <child type="tab">
-              <object class="GtkLabel" id="tab_impress">
-                <property name="visible">True</property>
-                <property name="can_focus">False</property>
-                <property name="label" translatable="yes">Presentations</property>
-              </object>

... etc. - the rest is truncated


More information about the Libreoffice-commits mailing list