tdf#130857 qt weld: Implement QtInstanceWidget::get_text_height
[LibreOffice.git] / dbaccess / source / ui / querydesign / limitboxcontroller.hxx
blob142280937235a9d34a525a6bcd38c39d27d4707c
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 #pragma once
12 #include <com/sun/star/lang/XServiceInfo.hpp>
13 #include <connectivity/CommonTools.hxx>
14 #include <svtools/toolboxcontroller.hxx>
15 #include <vcl/vclptr.hxx>
17 namespace dbaui
20 class LimitBox;
22 /**
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
30 public:
31 explicit LimitBoxController(
32 const css::uno::Reference< css::uno::XComponentContext >& rxContext );
33 virtual ~LimitBoxController() override;
35 /// XServiceInfo
36 DECLARE_SERVICE_INFO();
38 /// XComponent
39 virtual void SAL_CALL dispose() override;
41 /// XStatusListener
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;
54 private:
55 VclPtr<LimitBox> m_xLimitBox;
58 } ///dbaui namespace
60 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */