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/.
12 #include <com/sun/star/lang/XServiceInfo.hpp>
13 #include <connectivity/CommonTools.hxx>
14 #include <svtools/toolboxcontroller.hxx>
15 #include <vcl/vclptr.hxx>
23 * A ToolboxController to paste LimitBox onto the Query Design Toolbar
24 * It is communicating with querycontroller and this channel make enable
25 * to set\get the value of limitbox when switching between views
27 typedef cppu::ImplInheritanceHelper
< ::svt::ToolboxController
, css::lang::XServiceInfo
> LimitBoxController_Base
;
28 class LimitBoxController
: public LimitBoxController_Base
31 explicit LimitBoxController(
32 const css::uno::Reference
< css::uno::XComponentContext
>& rxContext
);
33 virtual ~LimitBoxController() override
;
36 DECLARE_SERVICE_INFO();
39 virtual void SAL_CALL
dispose() override
;
42 virtual void SAL_CALL
statusChanged( const css::frame::FeatureStateEvent
& Event
) override
;
44 /// XToolbarController
45 virtual void SAL_CALL
execute( sal_Int16 KeyModifier
) override
;
46 virtual void SAL_CALL
click() override
;
47 virtual void SAL_CALL
doubleClick() override
;
48 virtual css::uno::Reference
< css::awt::XWindow
> SAL_CALL
createPopupWindow() override
;
49 virtual css::uno::Reference
< css::awt::XWindow
> SAL_CALL
createItemWindow( const css::uno::Reference
< css::awt::XWindow
>& Parent
) override
;
51 void dispatchCommand( const css::uno::Sequence
< css::beans::PropertyValue
>& rArgs
);
52 using svt::ToolboxController::dispatchCommand
;
55 VclPtr
<LimitBox
> m_xLimitBox
;
60 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */