Line data Source code
1 : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : /*
3 : * This file is part of the LibreOffice project.
4 : *
5 : * This Source Code Form is subject to the terms of the Mozilla Public
6 : * License, v. 2.0. If a copy of the MPL was not distributed with this
7 : * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 : *
9 : * This file incorporates work covered by the following license notice:
10 : *
11 : * Licensed to the Apache Software Foundation (ASF) under one or more
12 : * contributor license agreements. See the NOTICE file distributed
13 : * with this work for additional information regarding copyright
14 : * ownership. The ASF licenses this file to you under the Apache
15 : * License, Version 2.0 (the "License"); you may not use this file
16 : * except in compliance with the License. You may obtain a copy of
17 : * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 : */
19 :
20 : #ifndef INCLUDED_TOOLKIT_CONTROLS_DIALOGCONTROL_HXX
21 : #define INCLUDED_TOOLKIT_CONTROLS_DIALOGCONTROL_HXX
22 :
23 : #include <toolkit/controls/controlmodelcontainerbase.hxx>
24 : #include <com/sun/star/awt/UnoControlDialog.hpp>
25 : #include <com/sun/star/awt/XTopWindow.hpp>
26 : #include <com/sun/star/awt/XDialog2.hpp>
27 : #include <com/sun/star/awt/XSimpleTabController.hpp>
28 : #include <com/sun/star/resource/XStringResourceResolver.hpp>
29 : #include <com/sun/star/graphic/XGraphicObject.hpp>
30 : #include <toolkit/helper/servicenames.hxx>
31 : #include <toolkit/helper/macros.hxx>
32 : #include <toolkit/controls/unocontrolcontainer.hxx>
33 : #include <cppuhelper/basemutex.hxx>
34 : #include <cppuhelper/implbase2.hxx>
35 : #include <cppuhelper/implbase3.hxx>
36 : #include <list>
37 :
38 : typedef ::cppu::AggImplInheritanceHelper2 < ControlContainerBase
39 : , ::com::sun::star::awt::XUnoControlDialog
40 : , ::com::sun::star::awt::XWindowListener
41 : > UnoDialogControl_Base;
42 : class UnoDialogControl : public UnoDialogControl_Base
43 : {
44 : private:
45 : ::com::sun::star::uno::Reference< ::com::sun::star::awt::XMenuBar > mxMenuBar;
46 : TopWindowListenerMultiplexer maTopWindowListeners;
47 : bool mbWindowListener;
48 :
49 : public:
50 :
51 : UnoDialogControl( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& rxContext );
52 : virtual ~UnoDialogControl();
53 : OUString GetComponentServiceName() SAL_OVERRIDE;
54 :
55 : void SAL_CALL createPeer( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XToolkit >& Toolkit, const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer >& Parent ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
56 : void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
57 : void SAL_CALL dispose() throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
58 :
59 : // ::com::sun::star::awt::XTopWindow
60 : void SAL_CALL addTopWindowListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XTopWindowListener >& xListener ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
61 : void SAL_CALL removeTopWindowListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XTopWindowListener >& xListener ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
62 : void SAL_CALL toFront( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
63 : void SAL_CALL toBack( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
64 : void SAL_CALL setMenuBar( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XMenuBar >& xMenu ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
65 :
66 : // ::com::sun::star::awt::XWindowListener
67 : virtual void SAL_CALL windowResized( const ::com::sun::star::awt::WindowEvent& e ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
68 : virtual void SAL_CALL windowMoved( const ::com::sun::star::awt::WindowEvent& e ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
69 : virtual void SAL_CALL windowShown( const ::com::sun::star::lang::EventObject& e ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
70 : virtual void SAL_CALL windowHidden( const ::com::sun::star::lang::EventObject& e ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
71 :
72 : // ::com::sun::star::awt::XDialog2
73 : virtual void SAL_CALL endDialog( ::sal_Int32 Result ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
74 : virtual void SAL_CALL setHelpId( const OUString& Id ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
75 :
76 : // ::com::sun::star::awt::XDialog
77 : void SAL_CALL setTitle( const OUString& Title ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
78 : OUString SAL_CALL getTitle() throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
79 : sal_Int16 SAL_CALL execute() throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
80 : void SAL_CALL endExecute() throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
81 :
82 : // ::com::sun::star::awt::XControl
83 : sal_Bool SAL_CALL setModel( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel >& Model ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
84 :
85 : // XModifyListener
86 : virtual void SAL_CALL modified( const ::com::sun::star::lang::EventObject& aEvent ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
87 :
88 : // resolve some ambigous methods
89 446 : virtual com::sun::star::uno::Reference<com::sun::star::awt::XWindowPeer> SAL_CALL getPeer() throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE
90 446 : { return UnoDialogControl_Base::ControlContainerBase::getPeer(); }
91 6 : virtual void SAL_CALL addWindowListener(const com::sun::star::uno::Reference<com::sun::star::awt::XWindowListener>& p1) throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE
92 6 : { UnoDialogControl_Base::ControlContainerBase::addWindowListener(p1); }
93 980 : virtual com::sun::star::uno::Reference<com::sun::star::awt::XControlModel> SAL_CALL getModel() throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE
94 980 : { return UnoDialogControl_Base::ControlContainerBase::getModel(); }
95 2 : virtual void SAL_CALL addEventListener(const com::sun::star::uno::Reference<com::sun::star::lang::XEventListener>& p1) throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE
96 2 : { UnoDialogControl_Base::ControlContainerBase::addEventListener(p1); }
97 2 : virtual void SAL_CALL removeEventListener(const com::sun::star::uno::Reference<com::sun::star::lang::XEventListener>& p1) throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE
98 2 : { UnoDialogControl_Base::ControlContainerBase::removeEventListener(p1); }
99 6 : virtual void SAL_CALL setContext(const com::sun::star::uno::Reference<com::sun::star::uno::XInterface>& p1) throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE
100 6 : { UnoDialogControl_Base::ControlContainerBase::setContext(p1); }
101 0 : virtual com::sun::star::uno::Reference<com::sun::star::uno::XInterface> SAL_CALL getContext() throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE
102 0 : { return UnoDialogControl_Base::ControlContainerBase::getContext(); }
103 0 : virtual com::sun::star::uno::Reference<com::sun::star::awt::XView> SAL_CALL getView() throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE
104 0 : { return UnoDialogControl_Base::ControlContainerBase::getView(); }
105 0 : virtual void SAL_CALL setDesignMode(sal_Bool p1) throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE
106 0 : { UnoDialogControl_Base::ControlContainerBase::setDesignMode(p1); }
107 248 : virtual sal_Bool SAL_CALL isDesignMode() throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE
108 248 : { return UnoDialogControl_Base::ControlContainerBase::isDesignMode(); }
109 0 : virtual sal_Bool SAL_CALL isTransparent() throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE
110 0 : { return UnoDialogControl_Base::ControlContainerBase::isTransparent(); }
111 34 : virtual void SAL_CALL setPosSize(sal_Int32 p1, sal_Int32 p2, sal_Int32 p3, sal_Int32 p4, sal_Int16 p5) throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE
112 34 : { UnoDialogControl_Base::ControlContainerBase::setPosSize(p1, p2, p3, p4, p5); }
113 4 : virtual com::sun::star::awt::Rectangle SAL_CALL getPosSize() throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE
114 4 : { return UnoDialogControl_Base::ControlContainerBase::getPosSize(); }
115 3 : virtual void SAL_CALL setVisible(sal_Bool p1) throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE
116 3 : { UnoDialogControl_Base::ControlContainerBase::setVisible(p1); }
117 0 : virtual void SAL_CALL setEnable(sal_Bool p1) throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE
118 0 : { UnoDialogControl_Base::ControlContainerBase::setEnable(p1); }
119 0 : virtual void SAL_CALL setFocus() throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE
120 0 : { UnoDialogControl_Base::ControlContainerBase::setFocus(); }
121 2 : virtual void SAL_CALL removeWindowListener(const com::sun::star::uno::Reference<com::sun::star::awt::XWindowListener>& p1) throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE
122 2 : { UnoDialogControl_Base::ControlContainerBase::removeWindowListener(p1); }
123 4 : virtual void SAL_CALL addFocusListener(const com::sun::star::uno::Reference<com::sun::star::awt::XFocusListener>& p1) throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE
124 4 : { UnoDialogControl_Base::ControlContainerBase::addFocusListener(p1); }
125 0 : virtual void SAL_CALL removeFocusListener(const com::sun::star::uno::Reference<com::sun::star::awt::XFocusListener>& p1) throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE
126 0 : { UnoDialogControl_Base::ControlContainerBase::removeFocusListener(p1); }
127 4 : virtual void SAL_CALL addKeyListener(const com::sun::star::uno::Reference<com::sun::star::awt::XKeyListener>& p1) throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE
128 4 : { UnoDialogControl_Base::ControlContainerBase::addKeyListener(p1); }
129 0 : virtual void SAL_CALL removeKeyListener(const com::sun::star::uno::Reference<com::sun::star::awt::XKeyListener>& p1) throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE
130 0 : { UnoDialogControl_Base::ControlContainerBase::removeKeyListener(p1); }
131 4 : virtual void SAL_CALL addMouseListener(const com::sun::star::uno::Reference<com::sun::star::awt::XMouseListener>& p1) throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE
132 4 : { UnoDialogControl_Base::ControlContainerBase::addMouseListener(p1); }
133 0 : virtual void SAL_CALL removeMouseListener(const com::sun::star::uno::Reference<com::sun::star::awt::XMouseListener>& p1) throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE
134 0 : { UnoDialogControl_Base::ControlContainerBase::removeMouseListener(p1); }
135 4 : virtual void SAL_CALL addMouseMotionListener(const com::sun::star::uno::Reference<com::sun::star::awt::XMouseMotionListener>& p1) throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE
136 4 : { UnoDialogControl_Base::ControlContainerBase::addMouseMotionListener(p1); }
137 0 : virtual void SAL_CALL removeMouseMotionListener(const com::sun::star::uno::Reference<com::sun::star::awt::XMouseMotionListener>& p1) throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE
138 0 : { UnoDialogControl_Base::ControlContainerBase::removeMouseMotionListener(p1); }
139 0 : virtual void SAL_CALL addPaintListener(const com::sun::star::uno::Reference<com::sun::star::awt::XPaintListener>& p1) throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE
140 0 : { UnoDialogControl_Base::ControlContainerBase::addPaintListener(p1); }
141 0 : virtual void SAL_CALL removePaintListener(const com::sun::star::uno::Reference<com::sun::star::awt::XPaintListener>& p1) throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE
142 0 : { UnoDialogControl_Base::ControlContainerBase::removePaintListener(p1); }
143 0 : virtual void SAL_CALL setStatusText(const rtl::OUString& p1) throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE
144 0 : { UnoDialogControl_Base::ControlContainerBase::setStatusText(p1); }
145 34 : virtual com::sun::star::uno::Sequence<com::sun::star::uno::Reference<com::sun::star::awt::XControl> > SAL_CALL getControls() throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE
146 34 : { return UnoDialogControl_Base::ControlContainerBase::getControls(); }
147 103 : virtual com::sun::star::uno::Reference<com::sun::star::awt::XControl> SAL_CALL getControl(const rtl::OUString& p1) throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE
148 103 : { return UnoDialogControl_Base::ControlContainerBase::getControl(p1); }
149 21 : virtual void SAL_CALL addControl(const rtl::OUString& p1, const com::sun::star::uno::Reference<com::sun::star::awt::XControl>& p2) throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE
150 21 : { UnoDialogControl_Base::ControlContainerBase::addControl(p1, p2); }
151 11 : virtual void SAL_CALL removeControl(const com::sun::star::uno::Reference<com::sun::star::awt::XControl>& p1) throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE
152 11 : { UnoDialogControl_Base::ControlContainerBase::removeControl(p1); }
153 :
154 :
155 : // ::com::sun::star::lang::XServiceInfo
156 : OUString SAL_CALL getImplementationName()
157 : throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
158 :
159 : sal_Bool SAL_CALL supportsService(OUString const & ServiceName)
160 : throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
161 :
162 : css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames()
163 : throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
164 :
165 : protected:
166 : virtual void PrepareWindowDescriptor( ::com::sun::star::awt::WindowDescriptor& rDesc ) SAL_OVERRIDE;
167 : virtual void ImplModelPropertiesChanged( const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyChangeEvent >& rEvents ) throw(::com::sun::star::uno::RuntimeException) SAL_OVERRIDE;
168 : protected:
169 : };
170 :
171 : class UnoMultiPageModel : public ControlModelContainerBase
172 : {
173 : public:
174 : UnoMultiPageModel( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& rxContext );
175 : virtual ~UnoMultiPageModel();
176 : UnoMultiPageModel( const UnoMultiPageModel& rModel );
177 :
178 : UnoControlModel* Clone() const SAL_OVERRIDE;
179 :
180 0 : DECLIMPL_SERVICEINFO_DERIVED( UnoMultiPageModel, ControlModelContainerBase, "com.sun.star.awt.UnoMultiPageModel" )
181 :
182 : virtual OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
183 : virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) throw( ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
184 : // XNamedContainer
185 : void SAL_CALL insertByName( const OUString& aName, const ::com::sun::star::uno::Any& aElement ) throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::container::ElementExistException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
186 :
187 : // Override the method of parent Class
188 : virtual sal_Bool SAL_CALL getGroupControl( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
189 : protected:
190 : virtual ::com::sun::star::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const SAL_OVERRIDE;
191 : ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper() SAL_OVERRIDE;
192 :
193 : };
194 :
195 : class UnoMultiPageControl : public ControlContainerBase
196 : ,public ::com::sun::star::awt::XSimpleTabController
197 : ,public ::com::sun::star::awt::XTabListener
198 : {
199 : TabListenerMultiplexer maTabListeners;
200 : void bindPage( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControl >& _rxControl );
201 : public:
202 : UnoMultiPageControl( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& rxContext );
203 : virtual ~UnoMultiPageControl();
204 : OUString GetComponentServiceName() SAL_OVERRIDE;
205 :
206 : // ::com::sun::star::lang::XServiceInfo
207 0 : DECLIMPL_SERVICEINFO_DERIVED( UnoMultiPageControl, ControlContainerBase, "com.sun.star.awt.UnoControlMultiPage" )
208 0 : ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException) SAL_OVERRIDE { return ControlContainerBase::queryInterface(rType); }
209 : ::com::sun::star::uno::Any SAL_CALL queryAggregation( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException) SAL_OVERRIDE;
210 0 : void SAL_CALL acquire() throw() SAL_OVERRIDE { OWeakAggObject::acquire(); }
211 0 : void SAL_CALL release() throw() SAL_OVERRIDE { OWeakAggObject::release(); }
212 : // ::com::sun::star::lang::XTypeProvider
213 : ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
214 : ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
215 : void SAL_CALL createPeer( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XToolkit >& Toolkit, const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer >& Parent ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
216 : // com::sun::star::awt::XSimpleTabController
217 : virtual ::sal_Int32 SAL_CALL insertTab() throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
218 : virtual void SAL_CALL removeTab( ::sal_Int32 ID ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
219 :
220 : virtual void SAL_CALL setTabProps( ::sal_Int32 ID, const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::NamedValue >& Properties ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
221 : virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::NamedValue > SAL_CALL getTabProps( ::sal_Int32 ID ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
222 :
223 : virtual void SAL_CALL activateTab( ::sal_Int32 ID ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
224 : virtual ::sal_Int32 SAL_CALL getActiveTabID() throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
225 :
226 : virtual void SAL_CALL addTabListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XTabListener >& Listener ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
227 : virtual void SAL_CALL removeTabListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XTabListener >& Listener ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
228 : // XTabListener
229 : virtual void SAL_CALL inserted( ::sal_Int32 ID ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
230 : virtual void SAL_CALL removed( ::sal_Int32 ID ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
231 : virtual void SAL_CALL changed( ::sal_Int32 ID, const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::NamedValue >& Properties ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
232 : virtual void SAL_CALL activated( ::sal_Int32 ID ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
233 : virtual void SAL_CALL deactivated( ::sal_Int32 ID ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
234 : virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& evt ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
235 : // XComponent
236 : void SAL_CALL dispose( ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
237 :
238 : protected:
239 : virtual void impl_createControlPeerIfNecessary(
240 : const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControl >& _rxControl
241 : ) SAL_OVERRIDE;
242 :
243 : };
244 :
245 :
246 : class UnoPageModel : public ControlModelContainerBase
247 : {
248 : public:
249 : UnoPageModel( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& rxContext );
250 : virtual ~UnoPageModel();
251 : UnoPageModel( const UnoPageModel& rModel );
252 :
253 : UnoControlModel* Clone() const SAL_OVERRIDE;
254 :
255 0 : DECLIMPL_SERVICEINFO_DERIVED( UnoPageModel, ControlModelContainerBase, "com.sun.star.awt.UnoPageModel" )
256 :
257 : virtual OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
258 : virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) throw( ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
259 :
260 : // Override the method of parent Class
261 : virtual sal_Bool SAL_CALL getGroupControl( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
262 : protected:
263 : virtual ::com::sun::star::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const SAL_OVERRIDE;
264 : ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper() SAL_OVERRIDE;
265 :
266 : };
267 :
268 : class UnoPageControl : public ControlContainerBase
269 : {
270 : public:
271 : UnoPageControl( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& rxContext );
272 : virtual ~UnoPageControl();
273 : OUString GetComponentServiceName() SAL_OVERRIDE;
274 :
275 :
276 : // ::com::sun::star::lang::XServiceInfo
277 0 : DECLIMPL_SERVICEINFO_DERIVED( UnoPageControl, ControlContainerBase, "com.sun.star.awt.UnoControlPage" )
278 : };
279 :
280 : class UnoFrameModel : public ControlModelContainerBase
281 : {
282 : public:
283 : UnoFrameModel( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& rxContext );
284 : virtual ~UnoFrameModel();
285 : UnoFrameModel( const UnoFrameModel& rModel );
286 :
287 : UnoControlModel* Clone() const SAL_OVERRIDE;
288 :
289 0 : DECLIMPL_SERVICEINFO_DERIVED( UnoFrameModel, ControlModelContainerBase, "com.sun.star.awt.UnoFrameModel" )
290 :
291 : virtual OUString SAL_CALL getServiceName() throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
292 : virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) throw( ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
293 :
294 : protected:
295 : virtual ::com::sun::star::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const SAL_OVERRIDE;
296 : ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper() SAL_OVERRIDE;
297 : };
298 :
299 : class UnoFrameControl : public ControlContainerBase
300 : {
301 : protected:
302 : virtual void ImplSetPosSize( ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControl >& rxCtrl ) SAL_OVERRIDE;
303 : public:
304 : UnoFrameControl( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& rxContext );
305 : virtual ~UnoFrameControl();
306 : OUString GetComponentServiceName() SAL_OVERRIDE;
307 :
308 : // ::com::sun::star::lang::XServiceInfo
309 0 : DECLIMPL_SERVICEINFO_DERIVED( UnoFrameControl, ControlContainerBase, "com.sun.star.awt.UnoControlFrame" )
310 : };
311 :
312 : #endif // INCLUDED_TOOLKIT_CONTROLS_DIALOGCONTROL_HXX
313 :
314 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|