1*2a97ec55SAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*2a97ec55SAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*2a97ec55SAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*2a97ec55SAndrew Rist  * distributed with this work for additional information
6*2a97ec55SAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*2a97ec55SAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*2a97ec55SAndrew Rist  * "License"); you may not use this file except in compliance
9*2a97ec55SAndrew Rist  * with the License.  You may obtain a copy of the License at
10*2a97ec55SAndrew Rist  *
11*2a97ec55SAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12*2a97ec55SAndrew Rist  *
13*2a97ec55SAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*2a97ec55SAndrew Rist  * software distributed under the License is distributed on an
15*2a97ec55SAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*2a97ec55SAndrew Rist  * KIND, either express or implied.  See the License for the
17*2a97ec55SAndrew Rist  * specific language governing permissions and limitations
18*2a97ec55SAndrew Rist  * under the License.
19*2a97ec55SAndrew Rist  *
20*2a97ec55SAndrew Rist  *************************************************************/
21*2a97ec55SAndrew Rist 
22*2a97ec55SAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir // MARKER(update_precomp.py): autogen include statement, do not remove
25cdf0e10cSrcweir #include "precompiled_extensions.hxx"
26cdf0e10cSrcweir #include "pcrunodialogs.hxx"
27cdf0e10cSrcweir #include "formstrings.hxx"
28cdf0e10cSrcweir #include "pcrstrings.hxx"
29cdf0e10cSrcweir #include "taborder.hxx"
30cdf0e10cSrcweir #include "pcrcommon.hxx"
31cdf0e10cSrcweir 
createRegistryInfo_OTabOrderDialog()32cdf0e10cSrcweir extern "C" void SAL_CALL createRegistryInfo_OTabOrderDialog()
33cdf0e10cSrcweir {
34cdf0e10cSrcweir 	::pcr::OAutoRegistration< ::pcr::OTabOrderDialog > aAutoRegistration;
35cdf0e10cSrcweir }
36cdf0e10cSrcweir 
37cdf0e10cSrcweir //........................................................................
38cdf0e10cSrcweir namespace pcr
39cdf0e10cSrcweir {
40cdf0e10cSrcweir //........................................................................
41cdf0e10cSrcweir 
42cdf0e10cSrcweir     using namespace ::com::sun::star::uno;
43cdf0e10cSrcweir 	using namespace ::com::sun::star::lang;
44cdf0e10cSrcweir 	using namespace ::com::sun::star::beans;
45cdf0e10cSrcweir 
46cdf0e10cSrcweir 	//====================================================================
47cdf0e10cSrcweir 	//= OTabOrderDialog
48cdf0e10cSrcweir 	//====================================================================
49cdf0e10cSrcweir 	//---------------------------------------------------------------------
OTabOrderDialog(const Reference<XComponentContext> & _rxContext)50cdf0e10cSrcweir 	OTabOrderDialog::OTabOrderDialog( const Reference< XComponentContext >& _rxContext )
51cdf0e10cSrcweir 		:OGenericUnoDialog( _rxContext )
52cdf0e10cSrcweir 	{
53cdf0e10cSrcweir 		registerProperty( PROPERTY_CONTROLCONTEXT, OWN_PROPERTY_ID_CONTROLCONTEXT,
54cdf0e10cSrcweir 			PropertyAttribute::BOUND | PropertyAttribute::TRANSIENT,
55cdf0e10cSrcweir 			&m_xControlContext, ::getCppuType( &m_xControlContext ) );
56cdf0e10cSrcweir 
57cdf0e10cSrcweir         registerProperty( PROPERTY_TABBINGMODEL, OWN_PROPERTY_ID_TABBINGMODEL,
58cdf0e10cSrcweir 			PropertyAttribute::BOUND | PropertyAttribute::TRANSIENT,
59cdf0e10cSrcweir 			&m_xTabbingModel, ::getCppuType( &m_xTabbingModel ) );
60cdf0e10cSrcweir 	}
61cdf0e10cSrcweir 
62cdf0e10cSrcweir 	//---------------------------------------------------------------------
~OTabOrderDialog()63cdf0e10cSrcweir 	OTabOrderDialog::~OTabOrderDialog()
64cdf0e10cSrcweir 	{
65cdf0e10cSrcweir 		if ( m_pDialog )
66cdf0e10cSrcweir 		{
67cdf0e10cSrcweir 			::osl::MutexGuard aGuard( m_aMutex );
68cdf0e10cSrcweir 			if ( m_pDialog )
69cdf0e10cSrcweir 				destroyDialog();
70cdf0e10cSrcweir 		}
71cdf0e10cSrcweir 	}
72cdf0e10cSrcweir 
73cdf0e10cSrcweir 	//---------------------------------------------------------------------
getImplementationId()74cdf0e10cSrcweir 	Sequence<sal_Int8> SAL_CALL OTabOrderDialog::getImplementationId(  ) throw(RuntimeException)
75cdf0e10cSrcweir 	{
76cdf0e10cSrcweir 		static ::cppu::OImplementationId aId;
77cdf0e10cSrcweir 		return aId.getImplementationId();
78cdf0e10cSrcweir 	}
79cdf0e10cSrcweir 
80cdf0e10cSrcweir 	//---------------------------------------------------------------------
Create(const Reference<XComponentContext> & _rxContext)81cdf0e10cSrcweir 	Reference< XInterface > SAL_CALL OTabOrderDialog::Create( const Reference< XComponentContext >& _rxContext )
82cdf0e10cSrcweir 	{
83cdf0e10cSrcweir 		return *( new OTabOrderDialog( _rxContext ) );
84cdf0e10cSrcweir 	}
85cdf0e10cSrcweir 
86cdf0e10cSrcweir 	//---------------------------------------------------------------------
getImplementationName()87cdf0e10cSrcweir 	::rtl::OUString SAL_CALL OTabOrderDialog::getImplementationName() throw(RuntimeException)
88cdf0e10cSrcweir 	{
89cdf0e10cSrcweir 		return getImplementationName_static();
90cdf0e10cSrcweir 	}
91cdf0e10cSrcweir 
92cdf0e10cSrcweir 	//---------------------------------------------------------------------
getImplementationName_static()93cdf0e10cSrcweir 	::rtl::OUString OTabOrderDialog::getImplementationName_static() throw(RuntimeException)
94cdf0e10cSrcweir 	{
95cdf0e10cSrcweir 		return ::rtl::OUString::createFromAscii( "org.openoffice.comp.form.ui.OTabOrderDialog" );
96cdf0e10cSrcweir 	}
97cdf0e10cSrcweir 
98cdf0e10cSrcweir 	//---------------------------------------------------------------------
getSupportedServiceNames()99cdf0e10cSrcweir 	::comphelper::StringSequence SAL_CALL OTabOrderDialog::getSupportedServiceNames() throw(RuntimeException)
100cdf0e10cSrcweir 	{
101cdf0e10cSrcweir 		return getSupportedServiceNames_static();
102cdf0e10cSrcweir 	}
103cdf0e10cSrcweir 
104cdf0e10cSrcweir 	//---------------------------------------------------------------------
getSupportedServiceNames_static()105cdf0e10cSrcweir 	::comphelper::StringSequence OTabOrderDialog::getSupportedServiceNames_static() throw(RuntimeException)
106cdf0e10cSrcweir 	{
107cdf0e10cSrcweir 		::comphelper::StringSequence aSupported(1);
108cdf0e10cSrcweir 		aSupported.getArray()[0] = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.form.ui.TabOrderDialog" ) );
109cdf0e10cSrcweir 		return aSupported;
110cdf0e10cSrcweir 	}
111cdf0e10cSrcweir 
112cdf0e10cSrcweir 	//---------------------------------------------------------------------
getPropertySetInfo()113cdf0e10cSrcweir 	Reference<XPropertySetInfo>  SAL_CALL OTabOrderDialog::getPropertySetInfo() throw(RuntimeException)
114cdf0e10cSrcweir 	{
115cdf0e10cSrcweir 		Reference<XPropertySetInfo>  xInfo( createPropertySetInfo( getInfoHelper() ) );
116cdf0e10cSrcweir 		return xInfo;
117cdf0e10cSrcweir 	}
118cdf0e10cSrcweir 
119cdf0e10cSrcweir 	//---------------------------------------------------------------------
getInfoHelper()120cdf0e10cSrcweir 	::cppu::IPropertyArrayHelper& OTabOrderDialog::getInfoHelper()
121cdf0e10cSrcweir 	{
122cdf0e10cSrcweir 		return *const_cast< OTabOrderDialog* >( this )->getArrayHelper();
123cdf0e10cSrcweir 	}
124cdf0e10cSrcweir 
125cdf0e10cSrcweir 	//--------------------------------------------------------------------------
createArrayHelper() const126cdf0e10cSrcweir 	::cppu::IPropertyArrayHelper* OTabOrderDialog::createArrayHelper( ) const
127cdf0e10cSrcweir 	{
128cdf0e10cSrcweir 		Sequence< Property > aProps;
129cdf0e10cSrcweir 		describeProperties( aProps );
130cdf0e10cSrcweir 		return new ::cppu::OPropertyArrayHelper( aProps );
131cdf0e10cSrcweir 	}
132cdf0e10cSrcweir 
133cdf0e10cSrcweir 	//--------------------------------------------------------------------------
createDialog(Window * _pParent)134cdf0e10cSrcweir 	Dialog*	OTabOrderDialog::createDialog( Window* _pParent )
135cdf0e10cSrcweir 	{
136cdf0e10cSrcweir         return new TabOrderDialog( _pParent, m_xTabbingModel, m_xControlContext, m_aContext.getLegacyServiceFactory() );
137cdf0e10cSrcweir 	}
138cdf0e10cSrcweir 
139cdf0e10cSrcweir //........................................................................
140cdf0e10cSrcweir }   // namespace pcr
141cdf0e10cSrcweir //........................................................................
142cdf0e10cSrcweir 
143