LibreOffice Module framework (master) 1
generictoolbarcontroller.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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 *
9 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19
20#pragma once
21
22#include <framework/fwkdllapi.h>
24#include <vcl/toolbox.hxx>
25
26namespace framework
27{
28
30{
31 public:
32 GenericToolbarController( const css::uno::Reference< css::uno::XComponentContext >& rxContext,
33 const css::uno::Reference< css::frame::XFrame >& rFrame,
34 ToolBox* pToolBar,
35 ToolBoxItemId nID,
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;
42
43 // XComponent
44 virtual void SAL_CALL dispose() override;
45
46 // XToolbarController
47 virtual void SAL_CALL execute( sal_Int16 KeyModifier ) override;
48
49 // XStatusListener
50 virtual void SAL_CALL statusChanged( const css::frame::FeatureStateEvent& Event ) override;
51
52 DECL_DLLPRIVATE_STATIC_LINK( GenericToolbarController, ExecuteHdl_Impl, void*, void );
53
55 {
56 css::uno::Reference< css::frame::XDispatch > xDispatch;
57 css::util::URL aTargetURL;
58 css::uno::Sequence< css::beans::PropertyValue > aArgs;
59 };
60
61 private:
68};
69
71{
72public:
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);
77
78 // XComponent
79 void SAL_CALL dispose() override;
80
81 // XStatusListener
82 void SAL_CALL statusChanged(const css::frame::FeatureStateEvent& rEvent) override;
83
84 DECL_LINK(WindowEventListener, VclWindowEvent&, void);
85private:
88};
89
90}
91
92/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
GenericToolbarController(const css::uno::Reference< css::uno::XComponentContext > &rxContext, const css::uno::Reference< css::frame::XFrame > &rFrame, weld::Toolbar &rToolBar, const OUString &aCommand)
GenericToolbarController(const css::uno::Reference< css::uno::XComponentContext > &rxContext, const css::uno::Reference< css::frame::XFrame > &rFrame, ToolBox *pToolBar, ToolBoxItemId nID, const OUString &aCommand)
DECL_DLLPRIVATE_STATIC_LINK(GenericToolbarController, ExecuteHdl_Impl, void *, void)
DECL_LINK(WindowEventListener, VclWindowEvent &, void)
#define FWK_DLLPUBLIC
Definition: fwkdllapi.h:19
void dispose()
css::uno::Reference< css::frame::XDispatch > xDispatch
css::uno::Sequence< css::beans::PropertyValue > aArgs
OUString aCommand