diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-08-15 11:19:06 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-09-28 08:48:35 +0100 |
commit | 0296b3a6948bec92687ab7960bd7ae4c8454e702 (patch) | |
tree | 6c8cddad1c6ee580ddb57d7076ed66ce9d663da6 /vcl/inc/vcl/builder.hxx | |
parent | 7d8169706b754d7617cf4a1065dc40e698fa0702 (diff) |
ditch over complex property buckets
A fairly small fixed number of properties are needed, so simplify
Change-Id: Iedce02264816666dbac53d7ad3cfb64be8e1c8bb
Diffstat (limited to 'vcl/inc/vcl/builder.hxx')
-rw-r--r-- | vcl/inc/vcl/builder.hxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/vcl/inc/vcl/builder.hxx b/vcl/inc/vcl/builder.hxx index c9d0ee063279..f5a100604eb3 100644 --- a/vcl/inc/vcl/builder.hxx +++ b/vcl/inc/vcl/builder.hxx @@ -48,10 +48,12 @@ private: { rtl::OString m_sID; Window *m_pWindow; + sal_Int32 m_nPosition; bool m_bOwned; WinAndId(const rtl::OString &rId, Window *pWindow) : m_sID(rId) , m_pWindow(pWindow) + , m_nPosition(-1) , m_bOwned(true) { } @@ -126,7 +128,7 @@ public: ~VclBuilder(); Window *get_widget_root(); Window *get_by_name(rtl::OString sID); - rtl::OString get_by_window(const Window *pWindow); + rtl::OString get_by_window(const Window *pWindow) const; //for the purposes of retrofitting this to the existing code //look up sID, clone its properties into replacement and //splice replacement into the tree instead of it, without @@ -151,6 +153,9 @@ private: void handleAdjustment(const rtl::OString &rID, stringmap &rProperties); void handleTabChild(Window *pParent, xmlreader::XmlReader &reader); + sal_Int32 get_window_packing_position(const Window *pWindow) const; + void set_window_packing_position(const Window *pWindow, sal_Int32 nPosition); + //Helpers to retrofit all the existing code the the builder static void swapGuts(Window &rOrig, Window &rReplacement); static sal_uInt16 getPositionWithinParent(Window &rWindow); |