diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2011-07-26 21:57:03 +0200 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2011-07-26 23:39:04 +0200 |
commit | bb4b28f3642e6fd86881c0fd4c030b5872cde7fa (patch) | |
tree | e014855c47536d12e7c90204e2ea8afc2d46dbba /vcl | |
parent | 4385e82288e9008a932f8d3289955ad1cb14b888 (diff) |
callcatcher: bring SplitWindow::GetItemWindow back
Needed by reportdesign/source/ui/report/DesignView.cxx
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/inc/vcl/splitwin.hxx | 1 | ||||
-rw-r--r-- | vcl/source/window/splitwin.cxx | 13 |
2 files changed, 14 insertions, 0 deletions
diff --git a/vcl/inc/vcl/splitwin.hxx b/vcl/inc/vcl/splitwin.hxx index c8845ce6962c..851f75ff4c1e 100644 --- a/vcl/inc/vcl/splitwin.hxx +++ b/vcl/inc/vcl/splitwin.hxx @@ -201,6 +201,7 @@ public: /** Return the current size limits for the specified item. */ long GetItemSize( sal_uInt16 nId, SplitWindowItemBits nBits ) const; + Window* GetItemWindow( sal_uInt16 nId ) const; sal_uInt16 GetSet( sal_uInt16 nId ) const; sal_uInt16 GetItemId( Window* pWindow ) const; sal_uInt16 GetItemId( const Point& rPos ) const; diff --git a/vcl/source/window/splitwin.cxx b/vcl/source/window/splitwin.cxx index 884e18d67df8..1e6ea11ee51b 100644 --- a/vcl/source/window/splitwin.cxx +++ b/vcl/source/window/splitwin.cxx @@ -3346,6 +3346,19 @@ void SplitWindow::SetItemSizeRange (sal_uInt16 nId, const Range aRange) // ----------------------------------------------------------------------- +Window* SplitWindow::GetItemWindow( sal_uInt16 nId ) const +{ + sal_uInt16 nPos; + ImplSplitSet* pSet = ImplFindItem( mpBaseSet, nId, nPos ); + + if ( pSet ) + return pSet->mpItems[nPos].mpWindow; + else + return NULL; +} + +// ----------------------------------------------------------------------- + sal_uInt16 SplitWindow::GetSet( sal_uInt16 nId ) const { sal_uInt16 nPos; |