1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * This file is part of OpenOffice.org.
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org. If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
26 ************************************************************************/
28 // MARKER(update_precomp.py): autogen include statement, do not remove
29 #include "precompiled_extensions.hxx"
30 #include "pcrunodialogs.hxx"
31 #include "formstrings.hxx"
32 #include "pcrstrings.hxx"
33 #include "taborder.hxx"
34 #include "pcrcommon.hxx"
36 extern "C" void SAL_CALL
createRegistryInfo_OTabOrderDialog()
38 ::pcr::OAutoRegistration
< ::pcr::OTabOrderDialog
> aAutoRegistration
;
41 //........................................................................
44 //........................................................................
46 using namespace ::com::sun::star::uno
;
47 using namespace ::com::sun::star::lang
;
48 using namespace ::com::sun::star::beans
;
50 //====================================================================
52 //====================================================================
53 //---------------------------------------------------------------------
54 OTabOrderDialog::OTabOrderDialog( const Reference
< XComponentContext
>& _rxContext
)
55 :OGenericUnoDialog( _rxContext
)
57 registerProperty( PROPERTY_CONTROLCONTEXT
, OWN_PROPERTY_ID_CONTROLCONTEXT
,
58 PropertyAttribute::BOUND
| PropertyAttribute::TRANSIENT
,
59 &m_xControlContext
, ::getCppuType( &m_xControlContext
) );
61 registerProperty( PROPERTY_TABBINGMODEL
, OWN_PROPERTY_ID_TABBINGMODEL
,
62 PropertyAttribute::BOUND
| PropertyAttribute::TRANSIENT
,
63 &m_xTabbingModel
, ::getCppuType( &m_xTabbingModel
) );
66 //---------------------------------------------------------------------
67 OTabOrderDialog::~OTabOrderDialog()
71 ::osl::MutexGuard
aGuard( m_aMutex
);
77 //---------------------------------------------------------------------
78 Sequence
<sal_Int8
> SAL_CALL
OTabOrderDialog::getImplementationId( ) throw(RuntimeException
)
80 static ::cppu::OImplementationId aId
;
81 return aId
.getImplementationId();
84 //---------------------------------------------------------------------
85 Reference
< XInterface
> SAL_CALL
OTabOrderDialog::Create( const Reference
< XComponentContext
>& _rxContext
)
87 return *( new OTabOrderDialog( _rxContext
) );
90 //---------------------------------------------------------------------
91 ::rtl::OUString SAL_CALL
OTabOrderDialog::getImplementationName() throw(RuntimeException
)
93 return getImplementationName_static();
96 //---------------------------------------------------------------------
97 ::rtl::OUString
OTabOrderDialog::getImplementationName_static() throw(RuntimeException
)
99 return ::rtl::OUString::createFromAscii( "org.openoffice.comp.form.ui.OTabOrderDialog" );
102 //---------------------------------------------------------------------
103 ::comphelper::StringSequence SAL_CALL
OTabOrderDialog::getSupportedServiceNames() throw(RuntimeException
)
105 return getSupportedServiceNames_static();
108 //---------------------------------------------------------------------
109 ::comphelper::StringSequence
OTabOrderDialog::getSupportedServiceNames_static() throw(RuntimeException
)
111 ::comphelper::StringSequence
aSupported(1);
112 aSupported
.getArray()[0] = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.form.ui.TabOrderDialog" ) );
116 //---------------------------------------------------------------------
117 Reference
<XPropertySetInfo
> SAL_CALL
OTabOrderDialog::getPropertySetInfo() throw(RuntimeException
)
119 Reference
<XPropertySetInfo
> xInfo( createPropertySetInfo( getInfoHelper() ) );
123 //---------------------------------------------------------------------
124 ::cppu::IPropertyArrayHelper
& OTabOrderDialog::getInfoHelper()
126 return *const_cast< OTabOrderDialog
* >( this )->getArrayHelper();
129 //--------------------------------------------------------------------------
130 ::cppu::IPropertyArrayHelper
* OTabOrderDialog::createArrayHelper( ) const
132 Sequence
< Property
> aProps
;
133 describeProperties( aProps
);
134 return new ::cppu::OPropertyArrayHelper( aProps
);
137 //--------------------------------------------------------------------------
138 Dialog
* OTabOrderDialog::createDialog( Window
* _pParent
)
140 return new TabOrderDialog( _pParent
, m_xTabbingModel
, m_xControlContext
, m_aContext
.getLegacyServiceFactory() );
143 //........................................................................
145 //........................................................................