diff options
author | Szymon Kłos <eszkadev@gmail.com> | 2016-09-28 16:08:53 +0200 |
---|---|---|
committer | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2016-09-29 07:07:58 +0000 |
commit | 558faa307d87510c2d9d12b23c12f261c424f835 (patch) | |
tree | d2f264bb7a95d9af3c426a3a598536ca16ce7339 /sw/uiconfig/swriter | |
parent | 2bebc1fc2e76f73d953ca1e1f64803fd4c42a62c (diff) |
Page margin popup converted to use outside sidebar
Change-Id: I3c4cc20fc8f2818677a77f848a1566bb56ceb7c6
Reviewed-on: https://gerrit.libreoffice.org/29363
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'sw/uiconfig/swriter')
-rw-r--r-- | sw/uiconfig/swriter/ui/notebookbar.ui | 55 | ||||
-rw-r--r-- | sw/uiconfig/swriter/ui/pagemargincontrol.ui | 442 | ||||
-rw-r--r-- | sw/uiconfig/swriter/ui/sidebarpage.ui | 7 |
3 files changed, 470 insertions, 34 deletions
diff --git a/sw/uiconfig/swriter/ui/notebookbar.ui b/sw/uiconfig/swriter/ui/notebookbar.ui index 5209a50ad0c5..faeff25335ce 100644 --- a/sw/uiconfig/swriter/ui/notebookbar.ui +++ b/sw/uiconfig/swriter/ui/notebookbar.ui @@ -39,11 +39,6 @@ <property name="can_focus">False</property> <property name="pixbuf">cmd/lc_fontwork.png</property> </object> - <object class="GtkImage" id="FormatColumnsImg"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="pixbuf">cmd/lc_formatcolumns.png</property> - </object> <object class="GtkImage" id="GalleryImg"> <property name="visible">True</property> <property name="can_focus">False</property> @@ -2806,18 +2801,18 @@ </packing> </child> <child> - <object class="sfxlo-BigToolBox" id="columnbox"> + <object class="sfxlo-BigToolBox" id="sizebox"> <property name="visible">True</property> <property name="can_focus">False</property> <property name="valign">center</property> <property name="show_arrow">False</property> <child> - <object class="GtkMenuToolButton" id="Columns"> + <object class="GtkMenuToolButton" id="Size"> <property name="use_action_appearance">False</property> <property name="visible">True</property> <property name="can_focus">False</property> <property name="is_important">True</property> - <property name="action_name">.uno:PageColumnType</property> + <property name="action_name">.uno:AttributePageSize</property> <property name="use_underline">True</property> </object> <packing> @@ -2833,18 +2828,18 @@ </packing> </child> <child> - <object class="sfxlo-BigToolBox" id="sizebox"> + <object class="sfxlo-BigToolBox" id="columnbox"> <property name="visible">True</property> <property name="can_focus">False</property> <property name="valign">center</property> <property name="show_arrow">False</property> <child> - <object class="GtkMenuToolButton" id="Size"> + <object class="GtkMenuToolButton" id="Columns"> <property name="use_action_appearance">False</property> <property name="visible">True</property> <property name="can_focus">False</property> <property name="is_important">True</property> - <property name="action_name">.uno:AttributePageSize</property> + <property name="action_name">.uno:PageColumnType</property> <property name="use_underline">True</property> </object> <packing> @@ -2883,31 +2878,29 @@ <packing> <property name="expand">False</property> <property name="fill">True</property> - <property name="position">4</property> - </packing> - </child> - <child> - <object class="GtkSeparator" id="separator21"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="orientation">vertical</property> - </object> - <packing> - <property name="expand">False</property> - <property name="fill">True</property> <property name="position">5</property> </packing> </child> <child> - <object class="vcllo-SmallButton" id="FormatColumns"> + <object class="sfxlo-BigToolBox" id="marginbox"> <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="receives_default">True</property> - <property name="action_name">.uno:FormatColumns</property> - <property name="image">FormatColumnsImg</property> - <property name="relief">none</property> - <property name="image_position">top</property> - <property name="always_show_image">True</property> + <property name="can_focus">False</property> + <property name="valign">center</property> + <property name="show_arrow">False</property> + <child> + <object class="GtkMenuToolButton" id="Margin"> + <property name="use_action_appearance">False</property> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="is_important">True</property> + <property name="action_name">.uno:PageMargin</property> + <property name="use_underline">True</property> + </object> + <packing> + <property name="expand">False</property> + <property name="homogeneous">True</property> + </packing> + </child> </object> <packing> <property name="expand">False</property> diff --git a/sw/uiconfig/swriter/ui/pagemargincontrol.ui b/sw/uiconfig/swriter/ui/pagemargincontrol.ui new file mode 100644 index 000000000000..921d1cebb2bc --- /dev/null +++ b/sw/uiconfig/swriter/ui/pagemargincontrol.ui @@ -0,0 +1,442 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- Generated with glade 3.18.3 --> +<interface> + <requires lib="gtk+" version="3.10"/> + <object class="GtkAdjustment" id="adjustment1"> + <property name="upper">9999</property> + <property name="step_increment">0.10000000000000001</property> + <property name="page_increment">10</property> + </object> + <object class="GtkImage" id="lastImg"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="pixbuf">sw/res/sidebar/pageproppanel/format_L_copy_24x24.png</property> + </object> + <object class="GtkImage" id="lastLImg"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="pixbuf">sw/res/sidebar/pageproppanel/formatcopy_24x24.png</property> + </object> + <object class="GtkImage" id="mirrore"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="pixbuf">sw/res/sidebar/pageproppanel/format_L_mirror_24x24.png</property> + </object> + <object class="GtkImage" id="mirroredLImg"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="pixbuf">sw/res/sidebar/pageproppanel/formatmirror_24x24.png</property> + </object> + <object class="GtkImage" id="narrowImg"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="pixbuf">sw/res/sidebar/pageproppanel/format_L_narrow_24x24.png</property> + </object> + <object class="GtkImage" id="narrowLImg"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="pixbuf">sw/res/sidebar/pageproppanel/formatnarrow_24x24.png</property> + </object> + <object class="GtkImage" id="normalImg"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="pixbuf">sw/res/sidebar/pageproppanel/format_L_nomal_24x24.png</property> + </object> + <object class="GtkImage" id="normalLImg"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="pixbuf">sw/res/sidebar/pageproppanel/formatnormal_24x24.png</property> + </object> + <object class="GtkImage" id="wideImg"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="pixbuf">sw/res/sidebar/pageproppanel/format_L_wide_24x24.png</property> + </object> + <object class="GtkImage" id="wideLImg"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="pixbuf">sw/res/sidebar/pageproppanel/formatwide_24x24.png</property> + </object> + <object class="GtkWindow" id="PageMarginControl"> + <property name="can_focus">False</property> + <property name="hexpand">True</property> + <property name="vexpand">True</property> + <property name="border_width">4</property> + <property name="resizable">False</property> + <property name="destroy_with_parent">True</property> + <property name="type_hint">popup-menu</property> + <property name="skip_pager_hint">True</property> + <property name="deletable">False</property> + <child> + <object class="GtkBox" id="box"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="margin_right">6</property> + <property name="hexpand">True</property> + <property name="vexpand">True</property> + <property name="orientation">vertical</property> + <property name="spacing">6</property> + <child> + <object class="GtkButton" id="narrow"> + <property name="label" translatable="yes">Narrow</property> + <property name="can_focus">True</property> + <property name="receives_default">True</property> + <property name="image">narrowImg</property> + <property name="relief">none</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="normal"> + <property name="label" translatable="yes">Normal</property> + <property name="can_focus">True</property> + <property name="receives_default">True</property> + <property name="image">normalImg</property> + <property name="relief">none</property> + <property name="xalign">0</property> + <property name="always_show_image">True</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">1</property> + </packing> + </child> + <child> + <object class="GtkButton" id="wide"> + <property name="label" translatable="yes">Wide</property> + <property name="can_focus">True</property> + <property name="receives_default">True</property> + <property name="image">wideImg</property> + <property name="relief">none</property> + <property name="xalign">0</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">2</property> + </packing> + </child> + <child> + <object class="GtkButton" id="mirrored"> + <property name="label" translatable="yes">Mirrored</property> + <property name="can_focus">True</property> + <property name="receives_default">True</property> + <property name="image">mirrore</property> + <property name="relief">none</property> + <property name="xalign">0</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="last"> + <property name="label" translatable="yes">Last Custom Value</property> + <property name="can_focus">True</property> + <property name="receives_default">True</property> + <property name="image">lastImg</property> + <property name="relief">none</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="narrowL"> + <property name="label" translatable="yes">Narrow</property> + <property name="can_focus">True</property> + <property name="receives_default">True</property> + <property name="image">narrowLImg</property> + <property name="relief">none</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="normalL"> + <property name="label" translatable="yes">Normal</property> + <property name="can_focus">True</property> + <property name="receives_default">True</property> + <property name="image">normalLImg</property> + <property name="relief">none</property> + <property name="xalign">0</property> + <property name="always_show_image">True</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="wideL"> + <property name="label" translatable="yes">Wide</property> + <property name="can_focus">True</property> + <property name="receives_default">True</property> + <property name="image">wideLImg</property> + <property name="relief">none</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="mirroredL"> + <property name="label" translatable="yes">Mirrored</property> + <property name="can_focus">True</property> + <property name="receives_default">True</property> + <property name="image">mirroredLImg</property> + <property name="relief">none</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="lastL"> + <property name="label" translatable="yes">Last Custom Value</property> + <property name="can_focus">True</property> + <property name="receives_default">True</property> + <property name="image">lastLImg</property> + <property name="relief">none</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> + <child> + <object class="GtkFrame" id="frame1"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="label_xalign">0</property> + <property name="shadow_type">none</property> + <child> + <object class="GtkAlignment" id="alignment1"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="left_padding">12</property> + <child> + <object class="GtkGrid" id="grid1"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="row_spacing">6</property> + <property name="column_spacing">6</property> + <child> + <object class="GtkLabel" id="label4"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="label" translatable="yes">_Top</property> + <property name="use_underline">True</property> + <property name="xalign">0</property> + </object> + <packing> + <property name="left_attach">0</property> + <property name="top_attach">2</property> + </packing> + </child> + <child> + <object class="GtkLabel" id="label5"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="label" translatable="yes">_Bottom</property> + <property name="use_underline">True</property> + <property name="xalign">0</property> + </object> + <packing> + <property name="left_attach">0</property> + <property name="top_attach">3</property> + </packing> + </child> + <child> + <object class="GtkBox" id="box1"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <child> + <object class="GtkLabel" id="leftLabel"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="label" translatable="yes">_Left</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="GtkLabel" id="innerLabel"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="label" translatable="yes">I_nner</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> + </object> + <packing> + <property name="left_attach">0</property> + <property name="top_attach">0</property> + </packing> + </child> + <child> + <object class="GtkBox" id="box2"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <child> + <object class="GtkLabel" id="rightLabel"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="label" translatable="yes">_Right</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="GtkLabel" id="outerLabel"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="label" translatable="yes">O_uter</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> + </object> + <packing> + <property name="left_attach">0</property> + <property name="top_attach">1</property> + </packing> + </child> + <child> + <object class="GtkSpinButton" id="left:0cm"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="hexpand">True</property> + <property name="text" translatable="yes">0,00</property> + <property name="adjustment">adjustment1</property> + <property name="digits">2</property> + </object> + <packing> + <property name="left_attach">1</property> + <property name="top_attach">0</property> + </packing> + </child> + <child> + <object class="GtkSpinButton" id="right:0cm"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="hexpand">True</property> + <property name="text" translatable="yes">0,00</property> + <property name="adjustment">adjustment1</property> + <property name="digits">2</property> + </object> + <packing> + <property name="left_attach">1</property> + <property name="top_attach">1</property> + </packing> + </child> + <child> + <object class="GtkSpinButton" id="top:0cm"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="hexpand">True</property> + <property name="text" translatable="yes">0,00</property> + <property name="adjustment">adjustment1</property> + <property name="digits">2</property> + </object> + <packing> + <property name="left_attach">1</property> + <property name="top_attach">2</property> + </packing> + </child> + <child> + <object class="GtkSpinButton" id="bottom:0cm"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="hexpand">True</property> + <property name="text" translatable="yes">0,00</property> + <property name="adjustment">adjustment1</property> + <property name="digits">2</property> + </object> + <packing> + <property name="left_attach">1</property> + <property name="top_attach">3</property> + </packing> + </child> + </object> + </child> + </object> + </child> + <child type="label"> + <object class="GtkLabel" id="label1"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="label" translatable="yes">Custom</property> + </object> + </child> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">10</property> + </packing> + </child> + <child> + <object class="GtkBox" id="container"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="orientation">vertical</property> + <child> + <placeholder/> + </child> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">11</property> + </packing> + </child> + </object> + </child> + </object> +</interface> diff --git a/sw/uiconfig/swriter/ui/sidebarpage.ui b/sw/uiconfig/swriter/ui/sidebarpage.ui index a9f889309ef2..fd8ca7d8d823 100644 --- a/sw/uiconfig/swriter/ui/sidebarpage.ui +++ b/sw/uiconfig/swriter/ui/sidebarpage.ui @@ -2,6 +2,7 @@ <!-- Generated with glade 3.18.3 --> <interface> <requires lib="gtk+" version="3.0"/> + <requires lib="LibreOffice" version="1.0"/> <object class="GtkGrid" id="PagePropertyPanel"> <property name="visible">True</property> <property name="can_focus">False</property> @@ -54,7 +55,7 @@ <property name="can_focus">False</property> <property name="has_tooltip">True</property> <property name="tooltip_text" translatable="yes">Size</property> - <property name="action_name">.uno:Size</property> + <property name="action_name">.uno:AttributePageSize</property> <property name="label">toolbutton3</property> <property name="use_underline">True</property> </object> @@ -82,7 +83,7 @@ <property name="can_focus">False</property> <property name="has_tooltip">True</property> <property name="tooltip_text" translatable="yes">Columns</property> - <property name="action_name">.uno:Column</property> + <property name="action_name">.uno:PageColumnType</property> <property name="label">toolbutton4</property> <property name="use_underline">True</property> </object> @@ -109,7 +110,7 @@ <property name="can_focus">False</property> <property name="has_tooltip">True</property> <property name="tooltip_text" translatable="yes">Margin</property> - <property name="action_name">.uno:Margin</property> + <property name="action_name">.uno:PageMargin</property> <property name="label">toolbutton2</property> <property name="use_underline">True</property> </object> |