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/.
9 * This file incorporates work covered by the following license notice:
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 .
22 #include <framework/fwkdllapi.h>
23 #include <svtools/toolboxcontroller.hxx>
24 #include <vcl/toolbox.hxx>
29 class FWK_DLLPUBLIC GenericToolbarController final
: public svt::ToolboxController
32 GenericToolbarController( const css::uno::Reference
< css::uno::XComponentContext
>& rxContext
,
33 const css::uno::Reference
< css::frame::XFrame
>& rFrame
,
36 const OUString
& aCommand
);
37 GenericToolbarController( const css::uno::Reference
< css::uno::XComponentContext
>& rxContext
,
38 const css::uno::Reference
< css::frame::XFrame
>& rFrame
,
39 weld::Toolbar
& rToolBar
,
40 const OUString
& aCommand
);
41 virtual ~GenericToolbarController() override
;
44 virtual void SAL_CALL
dispose() override
;
47 virtual void SAL_CALL
execute( sal_Int16 KeyModifier
) override
;
50 virtual void SAL_CALL
statusChanged( const css::frame::FeatureStateEvent
& Event
) override
;
52 DECL_DLLPRIVATE_STATIC_LINK( GenericToolbarController
, ExecuteHdl_Impl
, void*, void );
56 css::uno::Reference
< css::frame::XDispatch
> xDispatch
;
57 css::util::URL aTargetURL
;
58 css::uno::Sequence
< css::beans::PropertyValue
> aArgs
;
62 VclPtr
<ToolBox
> m_xToolbar
;
64 bool m_bEnumCommand
: 1,
67 OUString m_aEnumCommand
;
70 class FWK_DLLPUBLIC ImageOrientationController final
: public svt::ToolboxController
73 ImageOrientationController(const css::uno::Reference
<css::uno::XComponentContext
>& rContext
,
74 const css::uno::Reference
<css::frame::XFrame
>& rFrame
,
75 const css::uno::Reference
<css::awt::XWindow
>& rParentWindow
,
76 const OUString
& rModuleName
);
79 void SAL_CALL
dispose() override
;
82 void SAL_CALL
statusChanged(const css::frame::FeatureStateEvent
& rEvent
) override
;
84 DECL_LINK(WindowEventListener
, VclWindowEvent
&, void);
86 Degree10 m_nRotationAngle
;
92 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */