summaryrefslogtreecommitdiff
path: root/toolkit
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2008-03-06 11:03:37 +0000
committerKurt Zenker <kz@openoffice.org>2008-03-06 11:03:37 +0000
commit4fec1e0cc1564945454c524076e76629410a0e24 (patch)
treee01a4699d4dbd0d899ece875f641114084e1ffb4 /toolkit
parentd40d69fa1c843b1c4d7183bf0074e73b4328e842 (diff)
INTEGRATION: CWS layout_DEV300 (1.1.2); FILE ADDED
2008/02/08 18:44:46 jcn 1.1.2.1: Initial toolkit import from ee9a2fcc29d7e2f01cc80ef7c13bf7bc7d55ae7e. layout/source/awt -> toolkit/source/awt layout/source/core -> toolkit/source/layout layout/source/wrapper -> toolkit/source/vclcompat layout/inc/layout -> toolkit/inc/layout layout/source/inc -> toolkit/inc/layout layout/workben -> toolkit/workben/layout That's ooo-build trunk r11539 @ ooh680-m5/src680-m245.
Diffstat (limited to 'toolkit')
-rw-r--r--toolkit/workben/layout/editor-normal.xml53
-rw-r--r--toolkit/workben/layout/editor.hxx21
-rw-r--r--toolkit/workben/layout/editor.xml52
-rw-r--r--toolkit/workben/layout/flow-container.xml48
-rw-r--r--toolkit/workben/layout/flow.xml17
-rw-r--r--toolkit/workben/layout/interactable-containers.xml49
-rw-r--r--toolkit/workben/layout/layout-flat.xml14
-rw-r--r--toolkit/workben/layout/layout.xml15
-rw-r--r--toolkit/workben/layout/non-interactable-containers.xml41
-rw-r--r--toolkit/workben/layout/numeric.xml10
-rw-r--r--toolkit/workben/layout/ooo-patch7
-rw-r--r--toolkit/workben/layout/paragraph.xml77
-rw-r--r--toolkit/workben/layout/radio-groups.xml21
-rw-r--r--toolkit/workben/layout/run-s2x6
-rw-r--r--toolkit/workben/layout/scroller.xml32
15 files changed, 463 insertions, 0 deletions
diff --git a/toolkit/workben/layout/editor-normal.xml b/toolkit/workben/layout/editor-normal.xml
new file mode 100644
index 000000000000..7f0dc0b69e74
--- /dev/null
+++ b/toolkit/workben/layout/editor-normal.xml
@@ -0,0 +1,53 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!-- Would be cool to have others Editor layouts (e.g. Glade-like with
+ a window for each function). -->
+
+<dialog xmlns="http://openoffice.org/2007/layout"
+ xmlns:cnt="http://openoffice.org/2007/layout/container"
+ id="dialog" title="Layout Editor" sizeable="true" >
+ <vbox>
+ <hbox>
+ <min-size min-width="120" cnt:expand="false">
+ <vbox>
+ <fixedtext label="Layout:" cnt:expand="false" />
+ <hbox>
+ <listbox id="layout-tree" has_border="true" />
+ <vbox cnt:expand="false">
+ <pushbutton id="layout-up-button" cnt:expand="false" />
+ <pushbutton id="layout-down-button" cnt:expand="false" />
+ <fixedtext cnt:expand="true" />
+ <pushbutton id="layout-remove-button" cnt:expand="false" />
+ </vbox>
+ </hbox>
+ </vbox>
+ </min-size>
+ <min-size min-width="120">
+ <vbox>
+ <fixedtext label="Preview:" cnt:expand="false" />
+ <vbox border="50">
+ <bin id="preview-box" />
+ </vbox>
+ </vbox>
+ </min-size>
+ <min-size min-width="120" cnt:expand="false">
+ <vbox>
+ <fixedtext label="Properties:" cnt:expand="false" />
+ <table id="properties-box" columns="3" />
+ </vbox>
+ </min-size>
+ </hbox>
+ <hfixedline cnt:expand="false" />
+ <vbox cnt:expand="false">
+ <fixedtext label="Create widgets:" cnt:expand="false" />
+ <flow id="create-widget" homogeneous="true" spacing="2" />
+ <fixedtext label="Create containers:" cnt:expand="false" />
+ <flow id="create-container" homogeneous="true" spacing="2" />
+ </vbox>
+ <hbox cnt:expand="false">
+ <vbox><fixedline /><fixedline /><fixedline /><fixedline /></vbox>
+<!-- <pushbutton id="import-button" label="Import..." cnt:expand="false"/>-->
+ <pushbutton id="export-button" label="Export (stdout)" cnt:expand="false"/>
+ </hbox>
+ </vbox>
+</dialog>
diff --git a/toolkit/workben/layout/editor.hxx b/toolkit/workben/layout/editor.hxx
new file mode 100644
index 000000000000..7e94d71b4064
--- /dev/null
+++ b/toolkit/workben/layout/editor.hxx
@@ -0,0 +1,21 @@
+#ifndef EDITOR_HXX
+#define EDITOR_HXX
+
+#include <layout/layout.hxx>
+#include <com/sun/star/lang/XMultiServiceFactory.hpp>
+
+class EditorImpl;
+
+class Editor : public layout::Dialog
+{
+EditorImpl *mpImpl;
+
+public:
+ Editor( com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory > xMSF,
+ rtl::OUString aFile );
+ ~Editor();
+
+ void loadFile( const rtl::OUString &aTestFile );
+};
+
+#endif /*EDITOR_HXX*/
diff --git a/toolkit/workben/layout/editor.xml b/toolkit/workben/layout/editor.xml
new file mode 100644
index 000000000000..4126dea8b289
--- /dev/null
+++ b/toolkit/workben/layout/editor.xml
@@ -0,0 +1,52 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!-- Normal skin -->
+
+<dialog xmlns="http://openoffice.org/2007/layout"
+ xmlns:cnt="http://openoffice.org/2007/layout/container"
+ id="dialog" title="Layout Editor" sizeable="true">
+ <vbox>
+ <hbox>
+ <min-size min-width="120" cnt:expand="false">
+ <vbox>
+ <fixedtext label="Layout:" cnt:expand="false" />
+ <hbox>
+ <listbox id="layout-tree" has_border="true" />
+ <vbox cnt:expand="false">
+ <pushbutton id="layout-up-button" cnt:expand="false" />
+ <pushbutton id="layout-down-button" cnt:expand="false" />
+ <fixedtext cnt:expand="true" />
+ <pushbutton id="layout-remove-button" cnt:expand="false" />
+ </vbox>
+ </hbox>
+ </vbox>
+ </min-size>
+ <min-size min-width="120">
+ <vbox>
+ <fixedtext label="Preview:" cnt:expand="false" />
+ <vbox border="50">
+ <bin id="preview-box" />
+ </vbox>
+ </vbox>
+ </min-size>
+ <min-size min-width="120" cnt:expand="false">
+ <vbox>
+ <fixedtext label="Properties:" cnt:expand="false" />
+ <table id="properties-box" columns="3" />
+ </vbox>
+ </min-size>
+ </hbox>
+ <hfixedline cnt:expand="false" />
+ <vbox cnt:expand="false">
+ <fixedtext label="Create widgets:" cnt:expand="false" />
+ <flow id="create-widget" homogeneous="true" spacing="2" />
+ <fixedtext label="Create containers:" cnt:expand="false" />
+ <flow id="create-container" homogeneous="true" spacing="2" />
+ </vbox>
+ <hbox cnt:expand="false">
+ <vbox><fixedline /><fixedline /><fixedline /><fixedline /></vbox>
+<!-- <pushbutton id="import-button" label="Import..." cnt:expand="false"/>-->
+ <pushbutton id="export-button" label="Export (stdout)" cnt:expand="false"/>
+ </hbox>
+ </vbox>
+</dialog>
diff --git a/toolkit/workben/layout/flow-container.xml b/toolkit/workben/layout/flow-container.xml
new file mode 100644
index 000000000000..3d48b1683216
--- /dev/null
+++ b/toolkit/workben/layout/flow-container.xml
@@ -0,0 +1,48 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<dialog xmlns="http://openoffice.org/2007/layout"
+ xmlns:cnt="http://openoffice.org/2007/layout/container"
+ title="Interactable Containers" optimumsize="true"
+ has_border="true" sizeable="true" moveable="true">
+ <vbox>
+ <table columns="3" cnt:title="Page 1">
+ <pushbutton cnt:x-expand="false" cnt:row-span="2" label="1,1" />
+ <pushbutton cnt:y-expand="false" label="1,2" />
+ <pushbutton cnt:y-expand="false" label="1,3" />
+ <pushbutton cnt:col-span="2" label="2,1" />
+ </table>
+ <flow>
+ <pushbutton label="label" />
+ <pushbutton label="label" />
+ <pushbutton label="label" />
+ <table columns="3" cnt:title="Page 1">
+ <pushbutton cnt:x-expand="false" cnt:row-span="2" label="1,1" />
+ <pushbutton cnt:y-expand="false" label="1,2" />
+ <pushbutton cnt:y-expand="false" label="1,3" />
+ <pushbutton cnt:col-span="2" label="2,1" />
+ </table>
+ <pushbutton label="label" />
+ <pushbutton label="label" />
+ <pushbutton label="label" />
+ <pushbutton label="label" />
+ <pushbutton label="label" />
+ </flow>
+ <hbox cnt:expand="false">
+ <align>
+ <okbutton cnt:hfill="0" cnt:halign="0" />
+ </align>
+ <align>
+ <okbutton cnt:hfill="0" cnt:halign="0.3" />
+ </align>
+ <align>
+ <okbutton cnt:hfill="0" cnt:halign="0.5" />
+ </align>
+ <align>
+ <okbutton cnt:hfill="0" cnt:halign="0.7" />
+ </align>
+ <align>
+ <okbutton cnt:hfill="0" cnt:halign="1" />
+ </align>
+ </hbox>
+ </vbox>
+</dialog>
diff --git a/toolkit/workben/layout/flow.xml b/toolkit/workben/layout/flow.xml
new file mode 100644
index 000000000000..03e879bb13c1
--- /dev/null
+++ b/toolkit/workben/layout/flow.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<dialog xmlns="http://openoffice.org/2007/layout"
+ xmlns:cnt="http://openoffice.org/2007/layout/container"
+ title="Flowing" optimumsize="true" has_border="true" sizeable="true" moveable="true">
+ <vbox spacing="5">
+ <flow>
+ <pushbutton label="Button 1" />
+ <pushbutton label="Button 2" />
+ <pushbutton label="Button 3" />
+ <pushbutton label="Button 4" />
+ <pushbutton label="Button 5" />
+ <pushbutton label="Button 6" />
+ <pushbutton label="Button 7" />
+ </flow>
+ </vbox>
+</dialog>
diff --git a/toolkit/workben/layout/interactable-containers.xml b/toolkit/workben/layout/interactable-containers.xml
new file mode 100644
index 000000000000..fa1bbfc5ed15
--- /dev/null
+++ b/toolkit/workben/layout/interactable-containers.xml
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<dialog xmlns="http://openoffice.org/2007/layout"
+ xmlns:cnt="http://openoffice.org/2007/layout/container"
+ title="Interactable Containers" optimumsize="true"
+ has_border="true" sizeable="true" moveable="true">
+ <hsplitter>
+ <scroller>
+ <vbox>
+ <pushbutton label="Some Label" />
+ <edit has_border="true" text="Some Text" />
+ <listbox has_border="true" string-item-list="Item One:Item Two:Item Three:Item Four:Item Five:Item Six:Item Seven" />
+ <combobox has_border="true" string-item-list="Item One:Item Two:Item Three" />
+ <pushbutton label="Some Label" />
+ <pushbutton label="Some Label" />
+ <pushbutton label="Some Label" />
+ <pushbutton label="Some Label" />
+ <pushbutton label="Some Label" />
+ <pushbutton label="Some Label" />
+ <pushbutton label="Some Label" />
+ <pushbutton label="Some Label" />
+ <pushbutton label="Some Label" />
+ <pushbutton label="Some Label" />
+ <pushbutton label="Some Label" />
+ <pushbutton label="Some Label" />
+ </vbox>
+ </scroller>
+ <vsplitter>
+ <pushbutton label="Corner" />
+ <tabcontrol>
+ <table columns="3" cnt:title="Page 1">
+ <pushbutton cnt:x-expand="false" cnt:row-span="2" label="1,1" />
+ <pushbutton cnt:y-expand="false" label="1,2" />
+ <pushbutton cnt:y-expand="false" label="1,3" />
+ <pushbutton cnt:col-span="2" label="2,1" />
+ </table>
+ <vbox cnt:title="Page 2">
+ <pushbutton label="1" />
+ <pushbutton label="2" />
+ <pushbutton label="3" />
+ <pushbutton label="4" />
+ </vbox>
+ <pushbutton label="Content 3" cnt:title="Page 3" />
+ <pushbutton label="Content 4" cnt:title="Page 4" />
+ <pushbutton label="Content 5" cnt:title="Page 5" />
+ </tabcontrol>
+ </vscroll>
+ </hsplitter>
+</dialog>
diff --git a/toolkit/workben/layout/layout-flat.xml b/toolkit/workben/layout/layout-flat.xml
new file mode 100644
index 000000000000..0d3b969020fb
--- /dev/null
+++ b/toolkit/workben/layout/layout-flat.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<framewindow xmlns="http://openoffice.org/2007/layout"
+ id="window1" title="Test-Dialog" optimumsize="true"
+ has_border="true" sizeable="true" moveable="true"
+ width="800" height="300">
+ <pushbutton label="XML Left" toggle="true" show="true"
+ x="10" y="10" width="400" height="200"/>
+ <pushbutton label="XML Right" toggle="true" show="true"
+ x="420" y="10" width="400" height="200"/>
+ <checkbox label="XML cool ?" enabled="true" show="true"
+ state="1" tristate="true" align="1"
+ x="10" y="210" width="800" height="100"/>
+</framewindow> \ No newline at end of file
diff --git a/toolkit/workben/layout/layout.xml b/toolkit/workben/layout/layout.xml
new file mode 100644
index 000000000000..4d9e71bbc5b9
--- /dev/null
+++ b/toolkit/workben/layout/layout.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<dialog xmlns="http://openoffice.org/2007/layout"
+ xmlns:cnt="http://openoffice.org/2007/layout/container"
+ id="window1" title="Test-Dialog" optimumsize="true"
+ has_border="true" sizeable="true" moveable="true">
+ <hbox border="20" spacing="10" homogeneous="true">
+ <pushbutton label="XML Left"
+ cnt:expand="true" cnt:fill="true" />
+ <pushbutton label="XML Center"
+ cnt:expand="true" cnt:fill="false" />
+ <pushbutton label="XML Right"
+ cnt:expand="false" cnt:fill="false" />
+ </hbox>
+</dialog>
diff --git a/toolkit/workben/layout/non-interactable-containers.xml b/toolkit/workben/layout/non-interactable-containers.xml
new file mode 100644
index 000000000000..29b37b6a7a49
--- /dev/null
+++ b/toolkit/workben/layout/non-interactable-containers.xml
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<dialog xmlns="http://openoffice.org/2007/layout"
+ xmlns:cnt="http://openoffice.org/2007/layout/container"
+ title="Interactable Containers" optimumsize="true"
+ has_border="true" sizeable="true" moveable="true">
+ <vbox spacing="10">
+ <table columns="3" cnt:title="Page 1">
+ <pushbutton cnt:x-expand="false" cnt:row-span="2" label="1,1" />
+ <pushbutton cnt:y-expand="false" label="1,2" />
+ <pushbutton cnt:y-expand="false" label="1,3" />
+ <pushbutton cnt:col-span="2" label="2,1" />
+ </table>
+ <hfixedline/>
+ <flow cnt:expand="false">
+ <pushbutton label="label" />
+ <pushbutton label="label" />
+ <pushbutton label="label" />
+ <table columns="3" cnt:title="Page 1">
+ <pushbutton cnt:x-expand="false" cnt:row-span="2" label="1,1" />
+ <pushbutton cnt:y-expand="false" label="1,2" />
+ <pushbutton cnt:y-expand="false" label="1,3" />
+ <pushbutton cnt:col-span="2" label="2,1" />
+ </table>
+ <pushbutton label="label" />
+ <pushbutton label="label" />
+ <pushbutton label="label" />
+ <pushbutton label="label" />
+ <pushbutton label="label" />
+ </flow>
+ <hfixedline/>
+ <hbox cnt:expand="false">
+<!-- <align>
+ <okbutton cnt:hfill="0.2" cnt:halign="0.2" />
+ </align>
+ <align>
+ <okbutton cnt:hfill="0.8" cnt:halign="0.2" />
+ </align>-->
+ </hbox>
+ </vbox>
+</dialog>
diff --git a/toolkit/workben/layout/numeric.xml b/toolkit/workben/layout/numeric.xml
new file mode 100644
index 000000000000..becab18cdf9b
--- /dev/null
+++ b/toolkit/workben/layout/numeric.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<framewindow xmlns="http://openoffice.org/2007/layout"
+ xmlns:cnt="http://openoffice.org/2007/layout/container"
+ id="window1" title="Test-Dialog" optimumsize="true"
+ has_border="true" sizeable="true" moveable="true">
+ <vbox>
+ <numericfield text="5" spin="true" enforce-format="false" value-min="5.3" value-max="17.8"/>
+ <pushbutton />
+ </vbox>
+</framewindow>
diff --git a/toolkit/workben/layout/ooo-patch b/toolkit/workben/layout/ooo-patch
new file mode 100644
index 000000000000..89fc58db8748
--- /dev/null
+++ b/toolkit/workben/layout/ooo-patch
@@ -0,0 +1,7 @@
+#! /bin/sh
+commit=${1-3249db59} # m5
+
+git diff $commit layout | sed 's@^\([+-]\{3\}\) \(a\|b\)/@\1 @' > layout-dialogs-layout.diff
+git diff $commit config_office scp2 | sed 's@^\([+-]\{3\}\) \(a\|b\)/@\1 @' > layout-dialogs-config_office-scp2.diff
+git diff $commit svx sw | sed 's@^\([+-]\{3\}\) \(a\|b\)/@\1 @' > layout-dialogs-svx-sw.diff
+git diff $commit transex3 | sed 's@^\([+-]\{3\}\) \(a\|b\)/@\1 @' > layout-dialogs-transex3.diff
diff --git a/toolkit/workben/layout/paragraph.xml b/toolkit/workben/layout/paragraph.xml
new file mode 100644
index 000000000000..847e04ec0568
--- /dev/null
+++ b/toolkit/workben/layout/paragraph.xml
@@ -0,0 +1,77 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<dialog xmlns="http://openoffice.org/2007/layout"
+ xmlns:cnt="http://openoffice.org/2007/layout/container"
+ id="dialog" title="Paragraph" optimumsize="true"
+ has_border="true" sizeable="true" moveable="true">
+<vbox>
+ <tabcontrol>
+ <vbox cnt:title="Indents and Spacing">
+ <hbox cnt:expand="false">
+ <fixedtext id="FL_INDENT" label="Indent" cnt:expand="false" />
+ <fixedline />
+ </hbox>
+ <table columns="2" cnt:expand="false">
+ <fixedtext id="FT_LEFTINDENT" label="Before text" />
+ <metricfield id="ED_LEFTINDENT" spin="true" has_border="true"/>
+ <fixedtext id="FT_RIGHTINDENT" label="After text" />
+ <metricfield id="ED_RIGHTINDENT" spin="true" has_border="true"/>
+ <fixedtext id="FT_FLINEINDENT" label="First line" />
+ <metricfield id="ED_FLINEINDENT" spin="true" has_border="true" />
+ <checkbox id="CB_AUTO" label="Automatic" cnt:col-span="2" />
+ </table>
+ <hbox cnt:expand="false">
+ <fixedtext id="FL_DIST" label="Spacing" cnt:expand="false" />
+ <fixedline />
+ </hbox>
+ <table columns="2" cnt:expand="false">
+ <fixedtext id="FT_TOPDIST" label="Above paragraph" />
+ <numericfield id="ED_TOPDIST" spin="true" has_border="true" />
+ <fixedtext id="FT_BOTTOMDIST" label="Below paragraph" />
+ <numericfield id="ED_BOTTOMDIST" spin="true" has_border="true" />
+ </table>
+ <hbox cnt:expand="false">
+ <fixedtext id="FL_LINEDIST" label="Line spacing" cnt:expand="false" />
+ <fixedline />
+ </hbox>
+ <hbox cnt:expand="false">
+ <listbox id="LB_LINEDIST" dropdown="true"
+ string-item-list="Single:1.5 lines:Double:Proportional"
+ cnt:expand="false"/>
+ <fixedtext id="FT_LINEDIST" label="of" cnt:expand="true" />
+ <numericfield id="ED_LINEDISTPERCENT" value="0" />
+ </hbox>
+ <hbox id="FL_REGISTER" cnt:expand="false">
+ <fixedtext label="Register-true" cnt:expand="false" />
+ <fixedline />
+ </hbox>
+ <checkbox id="CB_REGISTER" cnt:expand="false" label="Activate" />
+ </vbox>
+
+ <vbox cnt:title="Alignment">
+ <hbox cnt:expand="false">
+ <fixedtext id="FL_ALIGN" label="Options" cnt:expand="false" />
+ <fixedline />
+ </hbox>
+ <radiobutton id="BTN_LEFTALIGN" label="Left" cnt:expand="false" />
+ <radiobutton id="BTN_RIGHTALIGN" label="Right" cnt:expand="false" />
+ <radiobutton id="BTN_CENTERALIGN" label="Center" cnt:expand="false" />
+ <radiobutton id="BTN_JUSTIFYALIGN" label="Justify" cnt:expand="false" />
+ <hbox cnt:expand="false">
+ <fixedtext id="FL_ALIGN" label="Last line" cnt:expand="false" />
+ <listbox dropdown="true" string-item-list="Left:Centered:Justified"
+ id="LB_LASTLINE" />
+ </hbox>
+ </vbox>
+ </tabcontrol>
+
+ <align cnt:expand="false">
+ <hbox cnt:expand="false" cnt:hfill="0" cnt:halign="1">
+ <pushbutton label="OK" />
+ <pushbutton label="Cancel" />
+ <pushbutton label="Help" />
+ <pushbutton label="Reset" />
+ </hbox>
+ </align>
+</vbox>
+</dialog>
diff --git a/toolkit/workben/layout/radio-groups.xml b/toolkit/workben/layout/radio-groups.xml
new file mode 100644
index 000000000000..43a1372297ee
--- /dev/null
+++ b/toolkit/workben/layout/radio-groups.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<dialog xmlns="http://openoffice.org/2007/layout"
+ xmlns:cnt="http://openoffice.org/2007/layout/container"
+ title="Radio Groups Test"
+ optimumsize="true" has_border="true" sizeable="true" moveable="true">
+ <vbox>
+ <hbox>
+ <radiobutton group="1" label="Group 1"
+ cnt:expand="false" cnt:fill="false" />
+ <radiobutton group="2" label="Group 2"
+ cnt:expand="true" cnt:fill="true" />
+ <radiobutton group="2" label="Group 2"
+ cnt:expand="true" cnt:fill="false" />
+ <radiobutton group="1" label="Group 1 (default)" state="1"
+ cnt:expand="false" cnt:fill="false" />
+ </hbox>
+ <radiobutton group="1" label="Group 1" state="0"
+ cnt:expand="false" cnt:fill="false" />
+ </vbox>
+</dialog>
diff --git a/toolkit/workben/layout/run-s2x b/toolkit/workben/layout/run-s2x
new file mode 100644
index 000000000000..926addf49047
--- /dev/null
+++ b/toolkit/workben/layout/run-s2x
@@ -0,0 +1,6 @@
+#! /bin/sh
+
+SRC=${1-../../svx/source/dialog/zoom.src}
+SRC=${1-../../sw/source/ui/dialog/wordcountdialog.src}
+
+../src2xml/source/src2xml.py --ignore-includes --post-process --output-dir=. $SRC
diff --git a/toolkit/workben/layout/scroller.xml b/toolkit/workben/layout/scroller.xml
new file mode 100644
index 000000000000..44e63d15df5e
--- /dev/null
+++ b/toolkit/workben/layout/scroller.xml
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<dialog xmlns="http://openoffice.org/2007/layout"
+ xmlns:cnt="http://openoffice.org/2007/layout/container"
+ title="Scroll Test" optimumsize="true"
+ has_border="true" sizeable="true" moveable="true">
+ <vbox>
+ <scroller>
+ <vbox>
+ <pushbutton label="Button 1" />
+ <edit has_border="true" text="Edit 1" />
+ <pushbutton label="Button 2" />
+ <pushbutton label="Button 3" />
+ <pushbutton label="Button 4" />
+ <pushbutton label="Button 5" />
+ <pushbutton label="Button 6" />
+ <pushbutton label="Button 7" />
+ <pushbutton label="Button 8" />
+ <pushbutton label="Button 9" />
+ <pushbutton label="Button 10" />
+ <pushbutton label="Button 11" />
+ <pushbutton label="Button 12" />
+ <pushbutton label="Button 13" />
+ <pushbutton label="Button 14" />
+ <pushbutton label="Button 15" />
+ <pushbutton label="Button 16" />
+ <pushbutton label="Button 17" />
+ </vbox>
+ </scroller>
+ <okbutton cnt:expand="false" />
+ </vbox>
+</dialog>