xref: /AOO41X/main/toolkit/source/controls/tabpagemodel.cxx (revision cdf0e10c4e3984b49a9502b011690b615761d4a3)
1*cdf0e10cSrcweir /*************************************************************************
2*cdf0e10cSrcweir  *
3*cdf0e10cSrcweir  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4*cdf0e10cSrcweir  *
5*cdf0e10cSrcweir  * Copyright 2000, 2010 Oracle and/or its affiliates.
6*cdf0e10cSrcweir  *
7*cdf0e10cSrcweir  * OpenOffice.org - a multi-platform office productivity suite
8*cdf0e10cSrcweir  *
9*cdf0e10cSrcweir  * This file is part of OpenOffice.org.
10*cdf0e10cSrcweir  *
11*cdf0e10cSrcweir  * OpenOffice.org is free software: you can redistribute it and/or modify
12*cdf0e10cSrcweir  * it under the terms of the GNU Lesser General Public License version 3
13*cdf0e10cSrcweir  * only, as published by the Free Software Foundation.
14*cdf0e10cSrcweir  *
15*cdf0e10cSrcweir  * OpenOffice.org is distributed in the hope that it will be useful,
16*cdf0e10cSrcweir  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17*cdf0e10cSrcweir  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18*cdf0e10cSrcweir  * GNU Lesser General Public License version 3 for more details
19*cdf0e10cSrcweir  * (a copy is included in the LICENSE file that accompanied this code).
20*cdf0e10cSrcweir  *
21*cdf0e10cSrcweir  * You should have received a copy of the GNU Lesser General Public License
22*cdf0e10cSrcweir  * version 3 along with OpenOffice.org.  If not, see
23*cdf0e10cSrcweir  * <http://www.openoffice.org/license.html>
24*cdf0e10cSrcweir  * for a copy of the LGPLv3 License.
25*cdf0e10cSrcweir  *
26*cdf0e10cSrcweir  ************************************************************************/
27*cdf0e10cSrcweir 
28*cdf0e10cSrcweir // MARKER(update_precomp.py): autogen include statement, do not remove
29*cdf0e10cSrcweir #include "precompiled_toolkit.hxx"
30*cdf0e10cSrcweir 
31*cdf0e10cSrcweir #include <vcl/svapp.hxx>
32*cdf0e10cSrcweir #include <vcl/window.hxx>
33*cdf0e10cSrcweir #include <vcl/wall.hxx>
34*cdf0e10cSrcweir #include <vos/mutex.hxx>
35*cdf0e10cSrcweir #include <toolkit/controls/tabpagemodel.hxx>
36*cdf0e10cSrcweir #include <toolkit/helper/property.hxx>
37*cdf0e10cSrcweir #include <toolkit/helper/unopropertyarrayhelper.hxx>
38*cdf0e10cSrcweir #include <toolkit/controls/stdtabcontroller.hxx>
39*cdf0e10cSrcweir #include <com/sun/star/awt/PosSize.hpp>
40*cdf0e10cSrcweir #include <com/sun/star/awt/WindowAttribute.hpp>
41*cdf0e10cSrcweir #include <com/sun/star/awt/UnoControlDialogModelProvider.hpp>
42*cdf0e10cSrcweir #include <com/sun/star/resource/XStringResourceResolver.hpp>
43*cdf0e10cSrcweir #include <com/sun/star/graphic/XGraphicProvider.hpp>
44*cdf0e10cSrcweir #include <tools/list.hxx>
45*cdf0e10cSrcweir #include <cppuhelper/typeprovider.hxx>
46*cdf0e10cSrcweir #include <tools/debug.hxx>
47*cdf0e10cSrcweir #include <tools/diagnose_ex.h>
48*cdf0e10cSrcweir #include <comphelper/sequence.hxx>
49*cdf0e10cSrcweir #include <vcl/svapp.hxx>
50*cdf0e10cSrcweir #include <vcl/outdev.hxx>
51*cdf0e10cSrcweir 
52*cdf0e10cSrcweir #include <toolkit/helper/vclunohelper.hxx>
53*cdf0e10cSrcweir #include <unotools/ucbstreamhelper.hxx>
54*cdf0e10cSrcweir #include <vcl/graph.hxx>
55*cdf0e10cSrcweir #include <vcl/image.hxx>
56*cdf0e10cSrcweir #include <toolkit/controls/geometrycontrolmodel.hxx>
57*cdf0e10cSrcweir 
58*cdf0e10cSrcweir #include <map>
59*cdf0e10cSrcweir #include <algorithm>
60*cdf0e10cSrcweir #include <functional>
61*cdf0e10cSrcweir #include "tools/urlobj.hxx"
62*cdf0e10cSrcweir #include "osl/file.hxx"
63*cdf0e10cSrcweir 
64*cdf0e10cSrcweir #include <com/sun/star/beans/XPropertySet.hpp>
65*cdf0e10cSrcweir 
66*cdf0e10cSrcweir using namespace ::com::sun::star;
67*cdf0e10cSrcweir using namespace ::com::sun::star::uno;
68*cdf0e10cSrcweir using namespace ::com::sun::star::awt;
69*cdf0e10cSrcweir using namespace ::com::sun::star::lang;
70*cdf0e10cSrcweir using namespace ::com::sun::star::container;
71*cdf0e10cSrcweir using namespace ::com::sun::star::beans;
72*cdf0e10cSrcweir using namespace ::com::sun::star::util;
73*cdf0e10cSrcweir 
74*cdf0e10cSrcweir ////HELPER
75*cdf0e10cSrcweir ::rtl::OUString getPhysicalLocation( const ::com::sun::star::uno::Any& rbase, const ::com::sun::star::uno::Any& rUrl );
76*cdf0e10cSrcweir 
77*cdf0e10cSrcweir //	----------------------------------------------------
78*cdf0e10cSrcweir //	class UnoControlTabPageModel
79*cdf0e10cSrcweir //	----------------------------------------------------
80*cdf0e10cSrcweir UnoControlTabPageModel::UnoControlTabPageModel( Reference< XMultiServiceFactory > const & i_factory )
81*cdf0e10cSrcweir     :ControlModelContainerBase( i_factory )
82*cdf0e10cSrcweir {
83*cdf0e10cSrcweir 	ImplRegisterProperty( BASEPROPERTY_DEFAULTCONTROL );
84*cdf0e10cSrcweir     ImplRegisterProperty( BASEPROPERTY_TITLE );
85*cdf0e10cSrcweir     ImplRegisterProperty( BASEPROPERTY_HELPTEXT );
86*cdf0e10cSrcweir 	ImplRegisterProperty( BASEPROPERTY_HELPURL );
87*cdf0e10cSrcweir     ImplRegisterProperty( BASEPROPERTY_IMAGEURL );
88*cdf0e10cSrcweir     ImplRegisterProperty( BASEPROPERTY_ENABLED );
89*cdf0e10cSrcweir }
90*cdf0e10cSrcweir 
91*cdf0e10cSrcweir ::rtl::OUString UnoControlTabPageModel::getServiceName( ) throw(RuntimeException)
92*cdf0e10cSrcweir {
93*cdf0e10cSrcweir 	return ::rtl::OUString::createFromAscii( szServiceName_UnoControlTabPageModel );
94*cdf0e10cSrcweir }
95*cdf0e10cSrcweir 
96*cdf0e10cSrcweir Any UnoControlTabPageModel::ImplGetDefaultValue( sal_uInt16 nPropId ) const
97*cdf0e10cSrcweir {
98*cdf0e10cSrcweir     Any aAny;
99*cdf0e10cSrcweir 
100*cdf0e10cSrcweir     switch ( nPropId )
101*cdf0e10cSrcweir     {
102*cdf0e10cSrcweir         case BASEPROPERTY_DEFAULTCONTROL:
103*cdf0e10cSrcweir 		    aAny <<= ::rtl::OUString::createFromAscii( szServiceName_UnoControlTabPage );
104*cdf0e10cSrcweir             break;
105*cdf0e10cSrcweir         default:
106*cdf0e10cSrcweir             aAny = UnoControlModel::ImplGetDefaultValue( nPropId );
107*cdf0e10cSrcweir     }
108*cdf0e10cSrcweir 
109*cdf0e10cSrcweir     return aAny;
110*cdf0e10cSrcweir }
111*cdf0e10cSrcweir 
112*cdf0e10cSrcweir ::cppu::IPropertyArrayHelper& UnoControlTabPageModel::getInfoHelper()
113*cdf0e10cSrcweir {
114*cdf0e10cSrcweir 	static UnoPropertyArrayHelper* pHelper = NULL;
115*cdf0e10cSrcweir 	if ( !pHelper )
116*cdf0e10cSrcweir 	{
117*cdf0e10cSrcweir 		Sequence<sal_Int32> aIDs = ImplGetPropertyIds();
118*cdf0e10cSrcweir 		pHelper = new UnoPropertyArrayHelper( aIDs );
119*cdf0e10cSrcweir 	}
120*cdf0e10cSrcweir 	return *pHelper;
121*cdf0e10cSrcweir }
122*cdf0e10cSrcweir // beans::XMultiPropertySet
123*cdf0e10cSrcweir uno::Reference< beans::XPropertySetInfo > UnoControlTabPageModel::getPropertySetInfo(  ) throw(uno::RuntimeException)
124*cdf0e10cSrcweir {
125*cdf0e10cSrcweir 	static uno::Reference< beans::XPropertySetInfo > xInfo( createPropertySetInfo( getInfoHelper() ) );
126*cdf0e10cSrcweir 	return xInfo;
127*cdf0e10cSrcweir }
128*cdf0e10cSrcweir ////----- XInitialization -------------------------------------------------------------------
129*cdf0e10cSrcweir void SAL_CALL UnoControlTabPageModel::initialize (const Sequence<Any>& rArguments)
130*cdf0e10cSrcweir 			throw (com::sun::star::uno::Exception, com::sun::star::uno::RuntimeException)
131*cdf0e10cSrcweir {
132*cdf0e10cSrcweir 	sal_Int16 nPageId = -1;
133*cdf0e10cSrcweir 	if ( rArguments.getLength() == 1 )
134*cdf0e10cSrcweir     {
135*cdf0e10cSrcweir          if ( !( rArguments[ 0 ] >>= nPageId ))
136*cdf0e10cSrcweir              throw lang::IllegalArgumentException();
137*cdf0e10cSrcweir         m_nTabPageId = nPageId;
138*cdf0e10cSrcweir     }
139*cdf0e10cSrcweir     else if ( rArguments.getLength() == 2 )
140*cdf0e10cSrcweir     {
141*cdf0e10cSrcweir         if ( !( rArguments[ 0 ] >>= nPageId ))
142*cdf0e10cSrcweir              throw lang::IllegalArgumentException();
143*cdf0e10cSrcweir         m_nTabPageId = nPageId;
144*cdf0e10cSrcweir         ::rtl::OUString sURL;
145*cdf0e10cSrcweir         if ( !( rArguments[ 1 ] >>= sURL ))
146*cdf0e10cSrcweir             throw lang::IllegalArgumentException();
147*cdf0e10cSrcweir         Reference<container::XNameContainer > xDialogModel = awt::UnoControlDialogModelProvider::create( maContext.getUNOContext(),sURL);
148*cdf0e10cSrcweir         if ( xDialogModel.is() )
149*cdf0e10cSrcweir         {
150*cdf0e10cSrcweir             Sequence< ::rtl::OUString> aNames = xDialogModel->getElementNames();
151*cdf0e10cSrcweir             const ::rtl::OUString* pIter = aNames.getConstArray();
152*cdf0e10cSrcweir             const ::rtl::OUString* pEnd = pIter + aNames.getLength();
153*cdf0e10cSrcweir             for(;pIter != pEnd;++pIter)
154*cdf0e10cSrcweir             {
155*cdf0e10cSrcweir                 try
156*cdf0e10cSrcweir                 {
157*cdf0e10cSrcweir                     Any aElement(xDialogModel->getByName(*pIter));
158*cdf0e10cSrcweir                     xDialogModel->removeByName(*pIter);
159*cdf0e10cSrcweir                     insertByName(*pIter,aElement);
160*cdf0e10cSrcweir                 }
161*cdf0e10cSrcweir                 catch(const Exception& ex)
162*cdf0e10cSrcweir                 {
163*cdf0e10cSrcweir                     (void)ex;
164*cdf0e10cSrcweir                 }
165*cdf0e10cSrcweir             }
166*cdf0e10cSrcweir             Reference<XPropertySet> xDialogProp(xDialogModel,UNO_QUERY);
167*cdf0e10cSrcweir             if ( xDialogProp.is() )
168*cdf0e10cSrcweir             {
169*cdf0e10cSrcweir                 static const ::rtl::OUString s_sResourceResolver(RTL_CONSTASCII_USTRINGPARAM("ResourceResolver"));
170*cdf0e10cSrcweir                 Reference<XPropertySet> xThis(*this,UNO_QUERY);
171*cdf0e10cSrcweir                 xThis->setPropertyValue(s_sResourceResolver,xDialogProp->getPropertyValue(s_sResourceResolver));
172*cdf0e10cSrcweir                 xThis->setPropertyValue(GetPropertyName(BASEPROPERTY_TITLE),xDialogProp->getPropertyValue(GetPropertyName(BASEPROPERTY_TITLE)));
173*cdf0e10cSrcweir                 xThis->setPropertyValue(GetPropertyName(BASEPROPERTY_IMAGEURL),xDialogProp->getPropertyValue(GetPropertyName(BASEPROPERTY_IMAGEURL)));
174*cdf0e10cSrcweir                 xThis->setPropertyValue(GetPropertyName(BASEPROPERTY_HELPTEXT),xDialogProp->getPropertyValue(GetPropertyName(BASEPROPERTY_HELPTEXT)));
175*cdf0e10cSrcweir                 xThis->setPropertyValue(GetPropertyName(BASEPROPERTY_ENABLED),xDialogProp->getPropertyValue(GetPropertyName(BASEPROPERTY_ENABLED)));
176*cdf0e10cSrcweir                 xThis->setPropertyValue(GetPropertyName(BASEPROPERTY_HELPURL),xDialogProp->getPropertyValue(GetPropertyName(BASEPROPERTY_HELPURL)));
177*cdf0e10cSrcweir             }
178*cdf0e10cSrcweir         }
179*cdf0e10cSrcweir     }
180*cdf0e10cSrcweir 	else
181*cdf0e10cSrcweir 		m_nTabPageId = -1;
182*cdf0e10cSrcweir }
183*cdf0e10cSrcweir //===== Service ===============================================================
184*cdf0e10cSrcweir ::rtl::OUString UnoControlTabPageModel_getImplementationName (void) throw(RuntimeException)
185*cdf0e10cSrcweir {
186*cdf0e10cSrcweir 	return rtl::OUString::createFromAscii("com.sun.star.awt.tab.UnoControlTabPageModel");
187*cdf0e10cSrcweir }
188*cdf0e10cSrcweir 
189*cdf0e10cSrcweir Sequence<rtl::OUString> SAL_CALL UnoControlTabPageModel_getSupportedServiceNames (void)
190*cdf0e10cSrcweir      throw (RuntimeException)
191*cdf0e10cSrcweir {
192*cdf0e10cSrcweir  	static const ::rtl::OUString sServiceName(
193*cdf0e10cSrcweir          ::rtl::OUString::createFromAscii("com.sun.star.awt.tab.UnoControlTabPageModel"));
194*cdf0e10cSrcweir  	return Sequence<rtl::OUString>(&sServiceName, 1);
195*cdf0e10cSrcweir }
196*cdf0e10cSrcweir //=============================================================================
197*cdf0e10cSrcweir // = class UnoControlTabPage
198*cdf0e10cSrcweir // ============================================================================
199*cdf0e10cSrcweir 
200*cdf0e10cSrcweir UnoControlTabPage::UnoControlTabPage( const Reference< XMultiServiceFactory >& i_factory )
201*cdf0e10cSrcweir     :UnoControlTabPage_Base( i_factory )
202*cdf0e10cSrcweir     ,m_bWindowListener(false)
203*cdf0e10cSrcweir {
204*cdf0e10cSrcweir 	maComponentInfos.nWidth = 280;
205*cdf0e10cSrcweir 	maComponentInfos.nHeight = 400;
206*cdf0e10cSrcweir }
207*cdf0e10cSrcweir UnoControlTabPage::~UnoControlTabPage()
208*cdf0e10cSrcweir {
209*cdf0e10cSrcweir }
210*cdf0e10cSrcweir 
211*cdf0e10cSrcweir ::rtl::OUString UnoControlTabPage::GetComponentServiceName()
212*cdf0e10cSrcweir {
213*cdf0e10cSrcweir     return ::rtl::OUString::createFromAscii( "TabPageModel" );
214*cdf0e10cSrcweir }
215*cdf0e10cSrcweir 
216*cdf0e10cSrcweir void UnoControlTabPage::dispose() throw(RuntimeException)
217*cdf0e10cSrcweir {
218*cdf0e10cSrcweir 	vos::OGuard aSolarGuard( Application::GetSolarMutex() );
219*cdf0e10cSrcweir 
220*cdf0e10cSrcweir 	EventObject aEvt;
221*cdf0e10cSrcweir 	aEvt.Source = static_cast< ::cppu::OWeakObject* >( this );
222*cdf0e10cSrcweir     ControlContainerBase::dispose();
223*cdf0e10cSrcweir }
224*cdf0e10cSrcweir 
225*cdf0e10cSrcweir void SAL_CALL UnoControlTabPage::disposing(    const EventObject& Source )throw(RuntimeException)
226*cdf0e10cSrcweir {
227*cdf0e10cSrcweir  	ControlContainerBase::disposing( Source );
228*cdf0e10cSrcweir }
229*cdf0e10cSrcweir 
230*cdf0e10cSrcweir void UnoControlTabPage::createPeer( const Reference< XToolkit > & rxToolkit, const Reference< XWindowPeer >  & rParentPeer ) throw(RuntimeException)
231*cdf0e10cSrcweir {
232*cdf0e10cSrcweir 	vos::OGuard aSolarGuard( Application::GetSolarMutex() );
233*cdf0e10cSrcweir     ImplUpdateResourceResolver();
234*cdf0e10cSrcweir 
235*cdf0e10cSrcweir 	UnoControlContainer::createPeer( rxToolkit, rParentPeer );
236*cdf0e10cSrcweir 
237*cdf0e10cSrcweir 	Reference < tab::XTabPage > xTabPage( getPeer(), UNO_QUERY );
238*cdf0e10cSrcweir     if ( xTabPage.is() )
239*cdf0e10cSrcweir     {
240*cdf0e10cSrcweir         if ( !m_bWindowListener )
241*cdf0e10cSrcweir         {
242*cdf0e10cSrcweir             Reference< XWindowListener > xWL( static_cast< cppu::OWeakObject*>( this ), UNO_QUERY );
243*cdf0e10cSrcweir             addWindowListener( xWL );
244*cdf0e10cSrcweir             m_bWindowListener = true;
245*cdf0e10cSrcweir         }
246*cdf0e10cSrcweir     }
247*cdf0e10cSrcweir }
248*cdf0e10cSrcweir 
249*cdf0e10cSrcweir static ::Size ImplMapPixelToAppFont( OutputDevice* pOutDev, const ::Size& aSize )
250*cdf0e10cSrcweir {
251*cdf0e10cSrcweir     ::Size aTmp = pOutDev->PixelToLogic( aSize, MAP_APPFONT );
252*cdf0e10cSrcweir     return aTmp;
253*cdf0e10cSrcweir }
254*cdf0e10cSrcweir // ::com::sun::star::awt::XWindowListener
255*cdf0e10cSrcweir void SAL_CALL UnoControlTabPage::windowResized( const ::com::sun::star::awt::WindowEvent& e )
256*cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException)
257*cdf0e10cSrcweir {
258*cdf0e10cSrcweir     OutputDevice*pOutDev = Application::GetDefaultDevice();
259*cdf0e10cSrcweir 	DBG_ASSERT( pOutDev, "Missing Default Device!" );
260*cdf0e10cSrcweir 	if ( pOutDev && !mbSizeModified )
261*cdf0e10cSrcweir 	{
262*cdf0e10cSrcweir         // Currentley we are simply using MAP_APPFONT
263*cdf0e10cSrcweir 		::Size aAppFontSize( e.Width, e.Height );
264*cdf0e10cSrcweir 
265*cdf0e10cSrcweir         Reference< XControl > xDialogControl( *this, UNO_QUERY_THROW );
266*cdf0e10cSrcweir         Reference< XDevice > xDialogDevice( xDialogControl->getPeer(), UNO_QUERY );
267*cdf0e10cSrcweir         OSL_ENSURE( xDialogDevice.is(), "UnoDialogControl::windowResized: no peer, but a windowResized event?" );
268*cdf0e10cSrcweir         if ( xDialogDevice.is() )
269*cdf0e10cSrcweir         {
270*cdf0e10cSrcweir             DeviceInfo aDeviceInfo( xDialogDevice->getInfo() );
271*cdf0e10cSrcweir             aAppFontSize.Width() -= aDeviceInfo.LeftInset + aDeviceInfo.RightInset;
272*cdf0e10cSrcweir             aAppFontSize.Height() -= aDeviceInfo.TopInset + aDeviceInfo.BottomInset;
273*cdf0e10cSrcweir         }
274*cdf0e10cSrcweir 
275*cdf0e10cSrcweir         aAppFontSize = ImplMapPixelToAppFont( pOutDev, aAppFontSize );
276*cdf0e10cSrcweir 
277*cdf0e10cSrcweir         // Remember that changes have been done by listener. No need to
278*cdf0e10cSrcweir         // update the position because of property change event.
279*cdf0e10cSrcweir         mbSizeModified = true;
280*cdf0e10cSrcweir         Sequence< rtl::OUString > aProps( 2 );
281*cdf0e10cSrcweir         Sequence< Any > aValues( 2 );
282*cdf0e10cSrcweir         // Properties in a sequence must be sorted!
283*cdf0e10cSrcweir         aProps[0] = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Height" ));
284*cdf0e10cSrcweir         aProps[1] = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Width"  ));
285*cdf0e10cSrcweir         aValues[0] <<= aAppFontSize.Height();
286*cdf0e10cSrcweir         aValues[1] <<= aAppFontSize.Width();
287*cdf0e10cSrcweir 
288*cdf0e10cSrcweir 	    ImplSetPropertyValues( aProps, aValues, true );
289*cdf0e10cSrcweir         mbSizeModified = false;
290*cdf0e10cSrcweir 	}
291*cdf0e10cSrcweir }
292*cdf0e10cSrcweir 
293*cdf0e10cSrcweir void SAL_CALL UnoControlTabPage::windowMoved( const ::com::sun::star::awt::WindowEvent& e )
294*cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException)
295*cdf0e10cSrcweir {
296*cdf0e10cSrcweir 	OutputDevice*pOutDev = Application::GetDefaultDevice();
297*cdf0e10cSrcweir 	DBG_ASSERT( pOutDev, "Missing Default Device!" );
298*cdf0e10cSrcweir 	if ( pOutDev && !mbPosModified )
299*cdf0e10cSrcweir 	{
300*cdf0e10cSrcweir         // Currentley we are simply using MAP_APPFONT
301*cdf0e10cSrcweir         Any    aAny;
302*cdf0e10cSrcweir 		::Size aTmp( e.X, e.Y );
303*cdf0e10cSrcweir         aTmp = ImplMapPixelToAppFont( pOutDev, aTmp );
304*cdf0e10cSrcweir 
305*cdf0e10cSrcweir         // Remember that changes have been done by listener. No need to
306*cdf0e10cSrcweir         // update the position because of property change event.
307*cdf0e10cSrcweir         mbPosModified = true;
308*cdf0e10cSrcweir         Sequence< rtl::OUString > aProps( 2 );
309*cdf0e10cSrcweir         Sequence< Any > aValues( 2 );
310*cdf0e10cSrcweir         aProps[0] = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "PositionX"  ));
311*cdf0e10cSrcweir         aProps[1] = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "PositionY" ));
312*cdf0e10cSrcweir         aValues[0] <<= aTmp.Width();
313*cdf0e10cSrcweir         aValues[1] <<= aTmp.Height();
314*cdf0e10cSrcweir 
315*cdf0e10cSrcweir 	    ImplSetPropertyValues( aProps, aValues, true );
316*cdf0e10cSrcweir         mbPosModified = false;
317*cdf0e10cSrcweir 	}
318*cdf0e10cSrcweir }
319*cdf0e10cSrcweir 
320*cdf0e10cSrcweir void SAL_CALL UnoControlTabPage::windowShown( const ::com::sun::star::lang::EventObject& e )
321*cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException)
322*cdf0e10cSrcweir {
323*cdf0e10cSrcweir     (void)e;
324*cdf0e10cSrcweir }
325*cdf0e10cSrcweir 
326*cdf0e10cSrcweir void SAL_CALL UnoControlTabPage::windowHidden( const ::com::sun::star::lang::EventObject& e )
327*cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException)
328*cdf0e10cSrcweir {
329*cdf0e10cSrcweir     (void)e;
330*cdf0e10cSrcweir }
331