fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / dbaccess / source / ui / querydesign / limitboxcontroller.hxx
blob93401164eca18ad10fec1f145da109529c2ca22a
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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 */
10 #ifndef INCLUDED_DBACCESS_SOURCE_UI_QUERYDESIGN_LIMITBOXCONTROLLER_HXX
11 #define INCLUDED_DBACCESS_SOURCE_UI_QUERYDESIGN_LIMITBOXCONTROLLER_HXX
13 #include <com/sun/star/lang/XServiceInfo.hpp>
14 #include <svtools/toolboxcontroller.hxx>
15 #include <rtl/ustring.hxx>
16 #include <vcl/vclptr.hxx>
18 #include "apitools.hxx"
20 namespace dbaui
23 class LimitBoxImpl;
25 /**
26 * A ToolboxController to paste LimitBox onto the Query Design Toolbar
27 * It is communicating with querycontroller and this channel make enable
28 * to set\get the value of limitbox when switching between views
30 class LimitBoxController: public svt::ToolboxController,
31 public ::com::sun::star::lang::XServiceInfo
33 public:
34 LimitBoxController(
35 const com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >& rxContext );
36 virtual ~LimitBoxController();
38 /// XInterface
39 virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type& aType ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
40 virtual void SAL_CALL acquire() throw () SAL_OVERRIDE;
41 virtual void SAL_CALL release() throw () SAL_OVERRIDE;
43 /// XServiceInfo
44 DECLARE_SERVICE_INFO_STATIC();
46 /// XComponent
47 virtual void SAL_CALL dispose() throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
49 /// XStatusListener
50 virtual void SAL_CALL statusChanged( const ::com::sun::star::frame::FeatureStateEvent& Event ) throw ( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
52 /// XToolbarController
53 virtual void SAL_CALL execute( sal_Int16 KeyModifier ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
54 virtual void SAL_CALL click() throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
55 virtual void SAL_CALL doubleClick() throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
56 virtual ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow > SAL_CALL createPopupWindow() throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
57 virtual ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow > SAL_CALL createItemWindow( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow >& Parent ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
59 void dispatchCommand( const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& rArgs );
60 using svt::ToolboxController::dispatchCommand;
62 private:
63 VclPtr<LimitBoxImpl> m_pLimitBox;
66 } ///dbaui namespace
68 #endif /// INCLUDED_DBACCESS_SOURCE_UI_QUERYDESIGN_LIMITBOXCONTROLLER_HXX
70 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */