bump product version to 6.3.0.0.beta1
[LibreOffice.git] / include / framework / sfxhelperfunctions.hxx
blobd0ef3ff1180dbc94277d1918b5cd5ec239577313
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/.
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 .
20 #ifndef INCLUDED_FRAMEWORK_SFXHELPERFUNCTIONS_HXX
21 #define INCLUDED_FRAMEWORK_SFXHELPERFUNCTIONS_HXX
23 #include <framework/fwedllapi.h>
24 #include <rtl/ustring.hxx>
26 namespace com::sun::star::frame { class XFrame; }
27 namespace com::sun::star::uno { template <typename > class Reference; }
28 namespace svt { class StatusbarController; }
29 namespace svt { class ToolboxController; }
31 class StatusBar;
32 class ToolBox;
34 typedef svt::ToolboxController* ( *pfunc_setToolBoxControllerCreator)(
35 const css::uno::Reference< css::frame::XFrame >& rFrame,
36 ToolBox* pToolbox,
37 unsigned short nID,
38 const OUString& aCommandURL );
40 typedef svt::StatusbarController* ( *pfunc_setStatusBarControllerCreator)(
41 const css::uno::Reference< css::frame::XFrame >& rFrame,
42 StatusBar* pStatusBar,
43 unsigned short nID,
44 const OUString& aCommandURL );
46 typedef void ( *pfunc_getRefreshToolbars)(
47 css::uno::Reference< css::frame::XFrame > const & rFrame );
49 typedef void ( *pfunc_createDockingWindow)(
50 const css::uno::Reference< css::frame::XFrame >& rFrame,
51 const OUString& rResourceURL );
53 typedef bool ( *pfunc_isDockingWindowVisible)(
54 const css::uno::Reference< css::frame::XFrame >& rFrame,
55 const OUString& rResourceURL );
58 namespace framework
60 FWE_DLLPUBLIC pfunc_setToolBoxControllerCreator SetToolBoxControllerCreator( pfunc_setToolBoxControllerCreator pSetToolBoxControllerCreator );
61 FWE_DLLPUBLIC svt::ToolboxController* CreateToolBoxController(
62 const css::uno::Reference< css::frame::XFrame >& rFrame,
63 ToolBox* pToolbox,
64 unsigned short nID,
65 const OUString& aCommandURL );
67 FWE_DLLPUBLIC pfunc_setStatusBarControllerCreator SetStatusBarControllerCreator( pfunc_setStatusBarControllerCreator pSetStatusBarControllerCreator );
68 FWE_DLLPUBLIC svt::StatusbarController* CreateStatusBarController(
69 const css::uno::Reference< css::frame::XFrame >& rFrame,
70 StatusBar* pStatusBar,
71 unsigned short nID,
72 const OUString& aCommandURL );
74 FWE_DLLPUBLIC pfunc_getRefreshToolbars SetRefreshToolbars( pfunc_getRefreshToolbars pRefreshToolbarsFunc );
75 FWE_DLLPUBLIC void RefreshToolbars(
76 css::uno::Reference< css::frame::XFrame > const & rFrame );
78 FWE_DLLPUBLIC pfunc_createDockingWindow SetDockingWindowCreator( pfunc_createDockingWindow pCreateDockingWindow );
79 FWE_DLLPUBLIC void CreateDockingWindow(
80 const css::uno::Reference< css::frame::XFrame >& rFrame,
81 const OUString& rResourceURL );
83 FWE_DLLPUBLIC pfunc_isDockingWindowVisible SetIsDockingWindowVisible( pfunc_isDockingWindowVisible pIsDockingWindowVisible );
84 FWE_DLLPUBLIC bool IsDockingWindowVisible(
85 const css::uno::Reference< css::frame::XFrame >& rFrame,
86 const OUString& rResourceURL );
89 #endif // INCLUDED_FRAMEWORK_SFXHELPERFUNCTIONS_HXX
91 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */