diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-07-29 19:51:04 +0100 |
---|---|---|
committer | Fridrich Strba <fridrich@documentfoundation.org> | 2013-07-30 12:14:09 +0000 |
commit | fd424dd6fcf367da671b6d31a64465cb0751a026 (patch) | |
tree | 7ef651cf898df36efe50c5f991a321d7b6276fb3 | |
parent | 124daa15861775c582164677377f9f7cbba54dc0 (diff) |
Related: fdo#67395 adjust height of font name tabpage, etc.
+ put the language label beside the language listbox
which reduces height by a line
+ use standard spacing between frames in position tabpage
+ use standard spacing horizonally between elements
(cherry picked from commit 1d33fc35f787061c9440ba44dfd53de405bd430a)
Related: fdo#67395 drop 'Preview' frame title
it's clear that it's a preview, move that string into its Accessible name for
those that can't see the preview
(cherry picked from commit 1193dc782f4479a81f3d283c99df2f5c7e022682)
Related: fdo#67395 drop 'Font' frame title
+ promote the family, style, size to frame titles and drop
the surrounding 'Font' one
+ bottom align the previews again
+ drop empty spacing labels in favour of 6pixel spacing
(cherry picked from commit 63ced8e54f1786e5814f082c9fb87c89e5c850a9)
Related: fdo#67395 add border to preview to cut up whitespace
(cherry picked from commit 167416c3ed3ed52249559ff3548c0fc06d0d0eef)
Change-Id: I1191db7aaf0922978bf6dd8da17ec4f133944b94
684f451542f5300cc206c9ade7f3b130b1c3c876
2c0b78163894c5283162c37bd71fa1bbc3c341c7
c66bf59294f7c9fb4059574765734749a40b043f
Reviewed-on: https://gerrit.libreoffice.org/5200
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
-rw-r--r-- | cui/uiconfig/ui/charnamepage.ui | 402 | ||||
-rw-r--r-- | cui/uiconfig/ui/effectspage.ui | 32 | ||||
-rw-r--r-- | cui/uiconfig/ui/positionpage.ui | 45 | ||||
-rw-r--r-- | cui/uiconfig/ui/twolinespage.ui | 100 | ||||
-rw-r--r-- | include/svx/fntctrl.hxx | 2 | ||||
-rw-r--r-- | svx/source/dialog/fntctrl.cxx | 12 |
6 files changed, 259 insertions, 334 deletions
diff --git a/cui/uiconfig/ui/charnamepage.ui b/cui/uiconfig/ui/charnamepage.ui index 89bc97407dd1..d89402daa8ad 100644 --- a/cui/uiconfig/ui/charnamepage.ui +++ b/cui/uiconfig/ui/charnamepage.ui @@ -1,6 +1,7 @@ <?xml version="1.0" encoding="UTF-8"?> <interface> <!-- interface-requires gtk+ 3.0 --> + <!-- interface-requires LibreOffice 1.0 --> <object class="GtkBox" id="CharNamePage"> <property name="visible">True</property> <property name="can_focus">False</property> @@ -8,200 +9,203 @@ <property name="orientation">vertical</property> <property name="spacing">12</property> <child> - <object class="GtkFrame" id="simple"> + <object class="GtkGrid" id="simple"> <property name="can_focus">False</property> <property name="no_show_all">True</property> - <property name="label_xalign">0</property> - <property name="shadow_type">none</property> + <property name="hexpand">True</property> + <property name="vexpand">True</property> + <property name="row_spacing">6</property> + <property name="column_spacing">12</property> <child> - <object class="GtkAlignment" id="alignment5"> + <object class="GtkLabel" id="westfontinfo-nocjk"> <property name="visible">True</property> <property name="can_focus">False</property> - <property name="top_padding">6</property> - <property name="left_padding">12</property> + <property name="margin_top">6</property> + <property name="xalign">0</property> + </object> + <packing> + <property name="left_attach">0</property> + <property name="top_attach">2</property> + <property name="width">3</property> + <property name="height">1</property> + </packing> + </child> + <child> + <object class="GtkBox" id="box1"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="halign">start</property> + <property name="spacing">12</property> + <child> + <object class="GtkLabel" id="westlangft-nocjk"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="halign">start</property> + <property name="hexpand">True</property> + <property name="xalign">0</property> + <property name="label" translatable="yes">Language</property> + <property name="use_underline">True</property> + <property name="mnemonic_widget">westlanglb-nocjk</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">0</property> + </packing> + </child> <child> - <object class="GtkGrid" id="grid4"> + <object class="svxcorelo-SvxLanguageBox" id="westlanglb-nocjk"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="halign">start</property> + <property name="hexpand">True</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> + <property name="width">3</property> + <property name="height">1</property> + </packing> + </child> + <child> + <object class="GtkFrame" id="frame1"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="hexpand">True</property> + <property name="vexpand">True</property> + <property name="label_xalign">0</property> + <property name="shadow_type">none</property> + <child> + <object class="GtkAlignment" id="alignment6"> <property name="visible">True</property> <property name="can_focus">False</property> <property name="hexpand">True</property> <property name="vexpand">True</property> - <property name="row_spacing">6</property> - <property name="column_spacing">6</property> - <child> - <object class="GtkLabel" id="westfontnameft-nocjk"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="hexpand">True</property> - <property name="xalign">0</property> - <property name="label" translatable="yes">Family </property> - <property name="use_underline">True</property> - <property name="mnemonic_widget">westfontnamelb-nocjk</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="GtkLabel" id="weststyleft-nocjk"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="hexpand">True</property> - <property name="xalign">0</property> - <property name="label" translatable="yes">Style</property> - <property name="use_underline">True</property> - <property name="mnemonic_widget">weststylelb-nocjk</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> - <child> - <object class="GtkLabel" id="westsizeft-nocjk"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="hexpand">True</property> - <property name="xalign">0</property> - <property name="label" translatable="yes">Size</property> - <property name="use_underline">True</property> - <property name="mnemonic_widget">westsizelb-nocjk</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="GtkLabel" id="westlangft-nocjk"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="halign">start</property> - <property name="hexpand">True</property> - <property name="xalign">0</property> - <property name="label" translatable="yes">Language</property> - <property name="use_underline">True</property> - <property name="mnemonic_widget">westlanglb-nocjk</property> - </object> - <packing> - <property name="left_attach">0</property> - <property name="top_attach">3</property> - <property name="width">3</property> - <property name="height">1</property> - </packing> - </child> - <child> - <object class="svxcorelo-SvxLanguageBox" id="westlanglb-nocjk"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="hexpand">True</property> - <property name="halign">start</property> - </object> - <packing> - <property name="left_attach">0</property> - <property name="top_attach">4</property> - <property name="width">3</property> - <property name="height">1</property> - </packing> - </child> + <property name="top_padding">6</property> <child> <object class="svtlo-FontNameBox" id="westfontnamelb-nocjk"> <property name="visible">True</property> <property name="can_focus">True</property> + <property name="hexpand">True</property> + <property name="vexpand">True</property> <property name="dropdown">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> - </packing> </child> + </object> + </child> + <child type="label"> + <object class="GtkLabel" id="westfontnameft-nocjk"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="label" translatable="yes">Family</property> + <attributes> + <attribute name="weight" value="bold"/> + </attributes> + </object> + </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="GtkFrame" id="frame2"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="hexpand">True</property> + <property name="vexpand">True</property> + <property name="label_xalign">0</property> + <property name="shadow_type">none</property> + <child> + <object class="GtkAlignment" id="alignment7"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="hexpand">True</property> + <property name="vexpand">True</property> + <property name="top_padding">6</property> <child> <object class="svtlo-FontStyleBox" id="weststylelb-nocjk"> <property name="visible">True</property> <property name="can_focus">True</property> + <property name="hexpand">True</property> + <property name="vexpand">True</property> <property name="dropdown">False</property> </object> - <packing> - <property name="left_attach">1</property> - <property name="top_attach">1</property> - <property name="width">1</property> - <property name="height">1</property> - </packing> </child> + </object> + </child> + <child type="label"> + <object class="GtkLabel" id="weststyleft-nocjk"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="label" translatable="yes">Style</property> + <attributes> + <attribute name="weight" value="bold"/> + </attributes> + </object> + </child> + </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> + <child> + <object class="GtkFrame" id="frame3"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="hexpand">True</property> + <property name="vexpand">True</property> + <property name="label_xalign">0</property> + <property name="shadow_type">none</property> + <child> + <object class="GtkAlignment" id="alignment8"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="hexpand">True</property> + <property name="vexpand">True</property> + <property name="top_padding">6</property> <child> <object class="svtlo-FontSizeBox" id="westsizelb-nocjk"> <property name="height_request">150</property> <property name="visible">True</property> <property name="can_focus">True</property> + <property name="hexpand">True</property> + <property name="vexpand">True</property> <property name="dropdown">False</property> </object> - <packing> - <property name="left_attach">2</property> - <property name="top_attach">1</property> - <property name="width">1</property> - <property name="height">1</property> - </packing> - </child> - <child> - <object class="GtkLabel" id="label1"> - <property name="height_request">6</property> - <property name="visible">True</property> - <property name="can_focus">False</property> - </object> - <packing> - <property name="left_attach">0</property> - <property name="top_attach">2</property> - <property name="width">3</property> - <property name="height">1</property> - </packing> - </child> - <child> - <object class="GtkLabel" id="label2"> - <property name="height_request">6</property> - <property name="visible">True</property> - <property name="can_focus">False</property> - </object> - <packing> - <property name="left_attach">0</property> - <property name="top_attach">5</property> - <property name="width">3</property> - <property name="height">1</property> - </packing> - </child> - <child> - <object class="GtkLabel" id="westfontinfo-nocjk"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="xalign">0</property> - </object> - <packing> - <property name="left_attach">0</property> - <property name="top_attach">6</property> - <property name="width">3</property> - <property name="height">1</property> - </packing> </child> </object> </child> + <child type="label"> + <object class="GtkLabel" id="westsizeft-nocjk"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="label" translatable="yes">Size</property> + <attributes> + <attribute name="weight" value="bold"/> + </attributes> + </object> + </child> </object> - </child> - <child type="label"> - <object class="GtkLabel" id="label21"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="label" translatable="yes">Font</property> - <attributes> - <attribute name="weight" value="bold"/> - </attributes> - </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> </object> <packing> @@ -351,27 +355,15 @@ </packing> </child> <child> - <object class="GtkLabel" id="label3"> - <property name="height_request">6</property> - <property name="visible">True</property> - <property name="can_focus">False</property> - </object> - <packing> - <property name="left_attach">0</property> - <property name="top_attach">2</property> - <property name="width">4</property> - <property name="height">1</property> - </packing> - </child> - <child> <object class="GtkLabel" id="westfontinfo-cjk"> <property name="visible">True</property> <property name="can_focus">False</property> + <property name="margin_top">6</property> <property name="xalign">0</property> </object> <packing> <property name="left_attach">0</property> - <property name="top_attach">3</property> + <property name="top_attach">2</property> <property name="width">4</property> <property name="height">1</property> </packing> @@ -538,19 +530,6 @@ </packing> </child> <child> - <object class="GtkLabel" id="label7"> - <property name="height_request">6</property> - <property name="visible">True</property> - <property name="can_focus">False</property> - </object> - <packing> - <property name="left_attach">0</property> - <property name="top_attach">2</property> - <property name="width">4</property> - <property name="height">1</property> - </packing> - </child> - <child> <object class="GtkLabel" id="eastfontinfo"> <property name="visible">True</property> <property name="can_focus">False</property> @@ -558,7 +537,7 @@ </object> <packing> <property name="left_attach">0</property> - <property name="top_attach">3</property> + <property name="top_attach">2</property> <property name="width">4</property> <property name="height">1</property> </packing> @@ -725,27 +704,15 @@ </packing> </child> <child> - <object class="GtkLabel" id="label8"> - <property name="height_request">6</property> - <property name="visible">True</property> - <property name="can_focus">False</property> - </object> - <packing> - <property name="left_attach">0</property> - <property name="top_attach">2</property> - <property name="width">4</property> - <property name="height">1</property> - </packing> - </child> - <child> <object class="GtkLabel" id="ctlfontinfo"> <property name="visible">True</property> <property name="can_focus">False</property> + <property name="margin_top">6</property> <property name="xalign">0</property> </object> <packing> <property name="left_attach">0</property> - <property name="top_attach">3</property> + <property name="top_attach">2</property> <property name="width">4</property> <property name="height">1</property> </packing> @@ -772,38 +739,25 @@ </packing> </child> <child> - <object class="GtkFrame" id="frame4"> + <object class="GtkAlignment" id="alignment4"> <property name="visible">True</property> <property name="can_focus">False</property> - <property name="label_xalign">0</property> - <property name="shadow_type">none</property> + <property name="valign">end</property> + <property name="top_padding">6</property> + <property name="left_padding">12</property> + <property name="right_padding">12</property> <child> - <object class="GtkAlignment" id="alignment4"> + <object class="svxlo-SvxFontPrevWindow" id="preview:border"> + <property name="height_request">100</property> <property name="visible">True</property> <property name="can_focus">False</property> - <property name="top_padding">6</property> - <property name="left_padding">12</property> - <child> - <object class="svxlo-SvxFontPrevWindow" id="preview"> - <property name="height_request">100</property> - <property name="visible">True</property> - <property name="can_focus">False</property> + <child internal-child="accessible"> + <object class="AtkObject" id="preview:border-atkobject"> + <property name="AtkObject::accessible-name" translatable="yes">Preview</property> </object> </child> </object> </child> - <child type="label"> - <object class="GtkLabel" id="label19"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="label" translatable="yes">Preview</property> - <property name="use_underline">True</property> - <property name="mnemonic_widget">preview</property> - <attributes> - <attribute name="weight" value="bold"/> - </attributes> - </object> - </child> </object> <packing> <property name="expand">False</property> diff --git a/cui/uiconfig/ui/effectspage.ui b/cui/uiconfig/ui/effectspage.ui index 42dbbe1dd48b..592984fdaa9c 100644 --- a/cui/uiconfig/ui/effectspage.ui +++ b/cui/uiconfig/ui/effectspage.ui @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="UTF-8"?> <interface> - <!-- interface-requires gtk+ 3.0 --> <!-- interface-requires LibreOffice 1.0 --> + <!-- interface-requires gtk+ 3.0 --> <object class="GtkListStore" id="liststore1"> <columns> <!-- column-name gchararray1 --> @@ -638,36 +638,24 @@ </packing> </child> <child> - <object class="GtkFrame" id="frame12"> + <object class="GtkAlignment" id="alignment12"> <property name="visible">True</property> <property name="can_focus">False</property> - <property name="label_xalign">0</property> - <property name="shadow_type">none</property> + <property name="top_padding">6</property> + <property name="left_padding">12</property> + <property name="right_padding">12</property> <child> - <object class="GtkAlignment" id="alignment12"> + <object class="svxlo-SvxFontPrevWindow" id="preview:border"> + <property name="height_request">100</property> <property name="visible">True</property> <property name="can_focus">False</property> - <property name="top_padding">6</property> - <property name="left_padding">12</property> - <child> - <object class="svxlo-SvxFontPrevWindow" id="preview"> - <property name="height_request">100</property> - <property name="visible">True</property> - <property name="can_focus">False</property> + <child internal-child="accessible"> + <object class="AtkObject" id="preview:border-atkobject"> + <property name="AtkObject::accessible-name" translatable="yes">Preview</property> </object> </child> </object> </child> - <child type="label"> - <object class="GtkLabel" id="label50"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="label" translatable="yes">Preview</property> - <attributes> - <attribute name="weight" value="bold"/> - </attributes> - </object> - </child> </object> <packing> <property name="expand">False</property> diff --git a/cui/uiconfig/ui/positionpage.ui b/cui/uiconfig/ui/positionpage.ui index 7416e3d92e46..20927c8f7890 100644 --- a/cui/uiconfig/ui/positionpage.ui +++ b/cui/uiconfig/ui/positionpage.ui @@ -1,5 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <interface> + <!-- interface-requires LibreOffice 1.0 --> <!-- interface-requires gtk+ 3.0 --> <object class="GtkAdjustment" id="adjustment1"> <property name="lower">1</property> @@ -42,7 +43,7 @@ <property name="can_focus">False</property> <property name="border_width">6</property> <property name="orientation">vertical</property> - <property name="spacing">6</property> + <property name="spacing">12</property> <child> <object class="GtkFrame" id="frame5"> <property name="visible">True</property> @@ -255,7 +256,7 @@ <object class="GtkBox" id="rotationcontainer"> <property name="visible">True</property> <property name="can_focus">False</property> - <property name="spacing">6</property> + <property name="spacing">12</property> <child> <object class="GtkRadioButton" id="0deg"> <property name="label" translatable="yes">0 degrees</property> @@ -330,12 +331,11 @@ <object class="GtkBox" id="box7"> <property name="visible">True</property> <property name="can_focus">False</property> - <property name="spacing">2</property> + <property name="spacing">12</property> <child> <object class="GtkLabel" id="label24"> <property name="visible">True</property> <property name="can_focus">False</property> - <property name="margin_right">12</property> <property name="label" translatable="yes">Scale width</property> </object> <packing> @@ -430,7 +430,7 @@ <object class="GtkBox" id="box4"> <property name="visible">True</property> <property name="can_focus">False</property> - <property name="spacing">6</property> + <property name="spacing">12</property> <child> <object class="GtkComboBox" id="kerninglb"> <property name="visible">True</property> @@ -507,38 +507,27 @@ </packing> </child> <child> - <object class="GtkFrame" id="frame13"> + <object class="GtkAlignment" id="alignment13"> <property name="visible">True</property> <property name="can_focus">False</property> - <property name="label_xalign">0</property> - <property name="shadow_type">none</property> + <property name="valign">end</property> + <property name="top_padding">6</property> + <property name="left_padding">12</property> + <property name="right_padding">12</property> <child> - <object class="GtkAlignment" id="alignment13"> + <object class="svxlo-SvxFontPrevWindow" id="preview:border"> + <property name="height_request">100</property> <property name="visible">True</property> <property name="can_focus">False</property> - <property name="top_padding">6</property> - <property name="left_padding">12</property> - <child> - <object class="svxlo-SvxFontPrevWindow" id="preview"> - <property name="height_request">100</property> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="hexpand">True</property> - <property name="vexpand">True</property> + <property name="hexpand">True</property> + <property name="vexpand">True</property> + <child internal-child="accessible"> + <object class="AtkObject" id="preview:border-atkobject"> + <property name="AtkObject::accessible-name" translatable="yes">Preview</property> </object> </child> </object> </child> - <child type="label"> - <object class="GtkLabel" id="label51"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="label" translatable="yes">Preview</property> - <attributes> - <attribute name="weight" value="bold"/> - </attributes> - </object> - </child> </object> <packing> <property name="expand">False</property> diff --git a/cui/uiconfig/ui/twolinespage.ui b/cui/uiconfig/ui/twolinespage.ui index 4a4637928c5b..c6e6855f5d45 100644 --- a/cui/uiconfig/ui/twolinespage.ui +++ b/cui/uiconfig/ui/twolinespage.ui @@ -1,6 +1,41 @@ <?xml version="1.0" encoding="UTF-8"?> <interface> <!-- interface-requires gtk+ 3.0 --> + <!-- interface-requires LibreOffice 1.0 --> + <object class="GtkListStore" id="liststore2"> + <columns> + <!-- column-name gchararray1 --> + <column type="gchararray"/> + <!-- column-name gint1 --> + <column type="gint"/> + </columns> + <data> + <row> + <col id="0" translatable="yes">(None)</col> + <col id="1">0</col> + </row> + <row> + <col id="0" translatable="yes">)</col> + <col id="1">1</col> + </row> + <row> + <col id="0" translatable="yes">]</col> + <col id="1">2</col> + </row> + <row> + <col id="0" translatable="yes">></col> + <col id="1">3</col> + </row> + <row> + <col id="0" translatable="yes">}</col> + <col id="1">4</col> + </row> + <row> + <col id="0" translatable="yes">Other Characters...</col> + <col id="1">5</col> + </row> + </data> + </object> <object class="GtkBox" id="TwoLinesPage"> <property name="visible">True</property> <property name="can_focus">False</property> @@ -148,36 +183,25 @@ </packing> </child> <child> - <object class="GtkFrame" id="frame14"> + <object class="GtkAlignment" id="alignment14"> <property name="visible">True</property> <property name="can_focus">False</property> - <property name="label_xalign">0</property> - <property name="shadow_type">none</property> + <property name="valign">end</property> + <property name="top_padding">6</property> + <property name="left_padding">12</property> + <property name="right_padding">12</property> <child> - <object class="GtkAlignment" id="alignment14"> + <object class="svxlo-SvxFontPrevWindow" id="preview:border"> + <property name="height_request">100</property> <property name="visible">True</property> <property name="can_focus">False</property> - <property name="top_padding">6</property> - <property name="left_padding">12</property> - <child> - <object class="svxlo-SvxFontPrevWindow" id="preview"> - <property name="height_request">100</property> - <property name="visible">True</property> - <property name="can_focus">False</property> + <child internal-child="accessible"> + <object class="AtkObject" id="preview:border-atkobject"> + <property name="AtkObject::accessible-name" translatable="yes">Preview</property> </object> </child> </object> </child> - <child type="label"> - <object class="GtkLabel" id="label52"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="label" translatable="yes">Preview</property> - <attributes> - <attribute name="weight" value="bold"/> - </attributes> - </object> - </child> </object> <packing> <property name="expand">False</property> @@ -221,38 +245,4 @@ </row> </data> </object> - <object class="GtkListStore" id="liststore2"> - <columns> - <!-- column-name gchararray1 --> - <column type="gchararray"/> - <!-- column-name gint1 --> - <column type="gint"/> - </columns> - <data> - <row> - <col id="0" translatable="yes">(None)</col> - <col id="1">0</col> - </row> - <row> - <col id="0" translatable="yes">)</col> - <col id="1">1</col> - </row> - <row> - <col id="0" translatable="yes">]</col> - <col id="1">2</col> - </row> - <row> - <col id="0" translatable="yes">></col> - <col id="1">3</col> - </row> - <row> - <col id="0" translatable="yes">}</col> - <col id="1">4</col> - </row> - <row> - <col id="0" translatable="yes">Other Characters...</col> - <col id="1">5</col> - </row> - </data> - </object> </interface> diff --git a/include/svx/fntctrl.hxx b/include/svx/fntctrl.hxx index cd8449117d76..93edc0d04b13 100644 --- a/include/svx/fntctrl.hxx +++ b/include/svx/fntctrl.hxx @@ -49,7 +49,7 @@ private: public: SvxFontPrevWindow( Window* pParent, const ResId& rId ); - SvxFontPrevWindow(Window* pParent); + SvxFontPrevWindow(Window* pParent, WinBits nStyle); virtual ~SvxFontPrevWindow(); virtual void StateChanged( StateChangedType nStateChange ); diff --git a/svx/source/dialog/fntctrl.cxx b/svx/source/dialog/fntctrl.cxx index d9867c2f9e8f..5cd5abe4d114 100644 --- a/svx/source/dialog/fntctrl.cxx +++ b/svx/source/dialog/fntctrl.cxx @@ -506,15 +506,19 @@ SvxFontPrevWindow::SvxFontPrevWindow( Window* pParent, const ResId& rId ) : Init(); } -SvxFontPrevWindow::SvxFontPrevWindow(Window* pParent) : - Window(pParent) +SvxFontPrevWindow::SvxFontPrevWindow(Window* pParent, WinBits nStyle) + : Window(pParent, nStyle) { Init(); } -extern "C" SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeSvxFontPrevWindow(Window *pParent, VclBuilder::stringmap &) +extern "C" SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeSvxFontPrevWindow(Window *pParent, VclBuilder::stringmap &rMap) { - SvxFontPrevWindow *pWindow = new SvxFontPrevWindow(pParent); + WinBits nWinStyle = 0; + OString sBorder = VclBuilder::extractCustomProperty(rMap); + if (!sBorder.isEmpty()) + nWinStyle |= WB_BORDER; + SvxFontPrevWindow *pWindow = new SvxFontPrevWindow(pParent, nWinStyle); return pWindow; } |