1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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/.
10 #ifndef _LIMITBOXCONTROLLER_HXX_
11 #define _LIMITBOXCONTROLLER_HXX_
13 #include <com/sun/star/lang/XServiceInfo.hpp>
14 #include <svtools/toolboxcontroller.hxx>
15 #include <rtl/ustring.hxx>
17 #include "apitools.hxx"
25 * A ToolboxController to paste LimitBox onto the Query Design Toolbar
26 * It is communicating with querycontroller and this channel make enable
27 * to set\get the value of limitbox when switching between views
29 class LimitBoxController
: public svt::ToolboxController
,
30 public ::com::sun::star::lang::XServiceInfo
34 const com::sun::star::uno::Reference
< com::sun::star::uno::XComponentContext
>& rxContext
);
35 ~LimitBoxController();
38 virtual ::com::sun::star::uno::Any SAL_CALL
queryInterface( const ::com::sun::star::uno::Type
& aType
) throw (::com::sun::star::uno::RuntimeException
);
39 virtual void SAL_CALL
acquire() throw ();
40 virtual void SAL_CALL
release() throw ();
43 DECLARE_SERVICE_INFO_STATIC();
46 virtual void SAL_CALL
dispose() throw (::com::sun::star::uno::RuntimeException
);
49 virtual void SAL_CALL
statusChanged( const ::com::sun::star::frame::FeatureStateEvent
& Event
) throw ( ::com::sun::star::uno::RuntimeException
);
51 /// XToolbarController
52 virtual void SAL_CALL
execute( sal_Int16 KeyModifier
) throw (::com::sun::star::uno::RuntimeException
);
53 virtual void SAL_CALL
click() throw (::com::sun::star::uno::RuntimeException
);
54 virtual void SAL_CALL
doubleClick() throw (::com::sun::star::uno::RuntimeException
);
55 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::awt::XWindow
> SAL_CALL
createPopupWindow() throw (::com::sun::star::uno::RuntimeException
);
56 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
);
58 void dispatchCommand( const ::com::sun::star::uno::Sequence
< ::com::sun::star::beans::PropertyValue
>& rArgs
);
59 using svt::ToolboxController::dispatchCommand
;
62 LimitBoxImpl
* m_pLimitBox
;
67 #endif /// _LIMITBOXCONTROLLER_HXX_
69 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */