summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vcl/inc/vcl/splitwin.hxx1
-rw-r--r--vcl/source/window/splitwin.cxx13
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;