summaryrefslogtreecommitdiff
path: root/framework/source/classes/fwktabwindow.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'framework/source/classes/fwktabwindow.cxx')
-rw-r--r--framework/source/classes/fwktabwindow.cxx41
1 files changed, 9 insertions, 32 deletions
diff --git a/framework/source/classes/fwktabwindow.cxx b/framework/source/classes/fwktabwindow.cxx
index 71c26ecb681c..d737a2d77308 100644
--- a/framework/source/classes/fwktabwindow.cxx
+++ b/framework/source/classes/fwktabwindow.cxx
@@ -33,7 +33,7 @@
#include <classes/fwktabwindow.hxx>
#include "framework.hrc"
-#include <classes/fwkresid.hxx>
+#include <classes/fwlresid.hxx>
#include <com/sun/star/awt/PosSize.hpp>
#include <com/sun/star/awt/XContainerWindowEventHandler.hpp>
@@ -205,28 +205,13 @@ void FwkTabPage::Resize()
}
}
-// -----------------------------------------------------------------------
-
-void FwkTabPage::Reset()
-{
- CallMethod( BACK_METHOD );
- ActivatePage();
-}
-
-// -----------------------------------------------------------------------
-
-void FwkTabPage::Save()
-{
- CallMethod( OK_METHOD );
-}
-
// class FwkTabWindow ---------------------------------------------
FwkTabWindow::FwkTabWindow( Window* pParent ) :
- Window( pParent, FwkResId( WIN_TABWINDOW ) ),
+ Window( pParent, FwlResId( WIN_TABWINDOW ) ),
- m_aTabCtrl ( this, FwkResId( TC_TABCONTROL ) )
+ m_aTabCtrl ( this, FwlResId( TC_TABCONTROL ) )
{
uno::Reference < lang::XMultiServiceFactory > xFactory( ::comphelper::getProcessServiceFactory() );
m_xWinProvider = uno::Reference < awt::XContainerWindowProvider >(
@@ -365,20 +350,19 @@ FwkTabPage* FwkTabWindow::AddTabPage( sal_Int32 nIndex, const uno::Sequence< bea
{
beans::NamedValue aValue = rProperties[i];
::rtl::OUString sName = aValue.Name;
- uno::Any aAny = aValue.Value;
if ( sName.equalsAscii("Title") )
- aAny >>= sTitle;
+ aValue.Value >>= sTitle;
else if ( sName.equalsAscii("ToolTip") )
- aAny >>= sToolTip;
+ aValue.Value >>= sToolTip;
else if ( sName.equalsAscii("PageURL") )
- aAny >>= sPageURL;
+ aValue.Value >>= sPageURL;
else if ( sName.equalsAscii("EventHdl") )
- aAny >>= xEventHdl;
+ aValue.Value >>= xEventHdl;
else if ( sName.equalsAscii("Image") )
- aAny >>= xImage;
+ aValue.Value >>= xImage;
else if ( sName.equalsAscii("Disabled") )
- aAny >>= bDisabled;
+ aValue.Value >>= bDisabled;
}
TabEntry* pEntry = new TabEntry( nIndex, sPageURL, xEventHdl );
@@ -417,13 +401,6 @@ void FwkTabWindow::RemovePage( sal_Int32 nIndex )
}
// -----------------------------------------------------------------------
-
-sal_Int32 FwkTabWindow::GetActivePageId() const
-{
- return m_aTabCtrl.GetCurPageId();
-}
-
-// -----------------------------------------------------------------------
void FwkTabWindow::Resize()
{
Size aPageSize = GetSizePixel();