23#include <com/sun/star/form/XFormController.hpp>
24#include <com/sun/star/form/runtime/FormController.hpp>
25#include <com/sun/star/lang/XMultiServiceFactory.hpp>
26#include <com/sun/star/lang/XServiceInfo.hpp>
37 using ::com::sun::star::uno::Reference;
38 using ::com::sun::star::uno::XInterface;
39 using ::com::sun::star::uno::Sequence;
40 using ::com::sun::star::uno::XComponentContext;
41 using ::com::sun::star::lang::XMultiServiceFactory;
42 using ::com::sun::star::awt::XControl;
43 using ::com::sun::star::awt::XTabControllerModel;
44 using ::com::sun::star::awt::XControlContainer;
45 using ::com::sun::star::lang::XServiceInfo;
46 using ::com::sun::star::form::runtime::FormController;
53 typedef ::cppu::WeakImplHelper < form::XFormController
68 static Reference< XInterface >
Create(
const Reference< XMultiServiceFactory >& _rxFactory )
74 explicit LegacyFormController(
const Reference< XComponentContext >& _rxContext )
80 virtual Reference< XControl > SAL_CALL getCurrentControl( )
override;
81 virtual void SAL_CALL addActivateListener(
const Reference< form::XFormControllerListener >& l )
override;
82 virtual void SAL_CALL removeActivateListener(
const Reference< form::XFormControllerListener >& l )
override;
85 virtual void SAL_CALL setModel(
const Reference< XTabControllerModel >&
Model )
override;
86 virtual Reference< XTabControllerModel > SAL_CALL getModel( )
override;
87 virtual void SAL_CALL setContainer(
const Reference< XControlContainer >& Container )
override;
88 virtual Reference< XControlContainer > SAL_CALL getContainer( )
override;
89 virtual Sequence< Reference< XControl > > SAL_CALL getControls( )
override;
90 virtual void SAL_CALL autoTabOrder( )
override;
91 virtual void SAL_CALL activateTabOrder( )
override;
92 virtual void SAL_CALL activateFirst( )
override;
93 virtual void SAL_CALL activateLast( )
override;
106 Reference< XControl > SAL_CALL LegacyFormController::getCurrentControl( )
112 void SAL_CALL LegacyFormController::addActivateListener(
const Reference< form::XFormControllerListener >& _listener )
118 void SAL_CALL LegacyFormController::removeActivateListener(
const Reference< form::XFormControllerListener >& _listener )
124 void SAL_CALL LegacyFormController::setModel(
const Reference< XTabControllerModel >& _model )
130 Reference< XTabControllerModel > SAL_CALL LegacyFormController::getModel( )
136 void SAL_CALL LegacyFormController::setContainer(
const Reference< XControlContainer >& _container )
142 Reference< XControlContainer > SAL_CALL LegacyFormController::getContainer( )
148 Sequence< Reference< XControl > > SAL_CALL LegacyFormController::getControls( )
154 void SAL_CALL LegacyFormController::autoTabOrder( )
160 void SAL_CALL LegacyFormController::activateTabOrder( )
166 void SAL_CALL LegacyFormController::activateFirst( )
172 void SAL_CALL LegacyFormController::activateLast( )
178 OUString SAL_CALL LegacyFormController::getImplementationName( )
180 return "org.openoffice.comp.svx.LegacyFormController";
183 sal_Bool SAL_CALL LegacyFormController::supportsService(
const OUString& _serviceName )
188 Sequence< OUString > SAL_CALL LegacyFormController::getSupportedServiceNames( )
190 return {
"com.sun.star.form.FormController",
"com.sun.star.awt.control.TabController" };
195css::uno::Reference< css::uno::XInterface >
Reference< XComponentContext > getComponentContext(Reference< XMultiServiceFactory > const &factory)
css::uno::Sequence< OUString > getSupportedServiceNames()
OUString getImplementationName()
bool CPPUHELPER_DLLPUBLIC supportsService(css::lang::XServiceInfo *implementation, rtl::OUString const &name)
void Create(SvxOrientationItem &rItem, SvStream &rStrm, sal_uInt16)