summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-09-18 16:14:49 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-09-28 08:48:48 +0100
commit4d173556cfa07620c1ea7bd1ee044df02267879b (patch)
tree9d838af587c725fc00e1c1022577e6cb88f00ded /vcl
parentd23a61c697a81174a74fcbd78b43bd4482562af3 (diff)
convert hard-coded layout of two-lines tabpage to .ui
Change-Id: I87da59af50420993303111dae0ec4456ae15cc20
Diffstat (limited to 'vcl')
-rw-r--r--vcl/inc/vcl/tabpage.hxx2
-rw-r--r--vcl/source/window/tabpage.cxx7
2 files changed, 9 insertions, 0 deletions
diff --git a/vcl/inc/vcl/tabpage.hxx b/vcl/inc/vcl/tabpage.hxx
index 088ef0472c08..417b17dc9faf 100644
--- a/vcl/inc/vcl/tabpage.hxx
+++ b/vcl/inc/vcl/tabpage.hxx
@@ -51,6 +51,8 @@ private:
public:
TabPage( Window* pParent, WinBits nStyle = 0 );
+ TabPage(Window *pParent, const rtl::OString& rID, const rtl::OUString& rUIXMLDescription);
+
TabPage( Window* pParent, const ResId& rResId );
virtual void Paint( const Rectangle& rRect );
diff --git a/vcl/source/window/tabpage.cxx b/vcl/source/window/tabpage.cxx
index 9daace2db461..85ee67db9f40 100644
--- a/vcl/source/window/tabpage.cxx
+++ b/vcl/source/window/tabpage.cxx
@@ -113,6 +113,13 @@ TabPage::TabPage( Window* pParent, const ResId& rResId ) :
Show();
}
+TabPage::TabPage(Window *pParent, const rtl::OString& rID, const rtl::OUString& rUIXMLDescription)
+ : Window(WINDOW_TABPAGE)
+{
+ ImplInit(pParent, 0);
+ m_pUIBuilder = new VclBuilder(this, getUIRootDir(), rUIXMLDescription, rID);
+}
+
// -----------------------------------------------------------------------
void TabPage::StateChanged( StateChangedType nType )