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 .
20 #ifndef INCLUDED_FRAMEWORK_SFXHELPERFUNCTIONS_HXX
21 #define INCLUDED_FRAMEWORK_SFXHELPERFUNCTIONS_HXX
23 #include <framework/fwedllapi.h>
24 #include <com/sun/star/frame/XFrame.hpp>
25 #include <rtl/ustring.hxx>
26 #include <vcl/toolbox.hxx>
27 #include <vcl/status.hxx>
28 #include <svtools/toolboxcontroller.hxx>
29 #include <svtools/statusbarcontroller.hxx>
31 typedef svt::ToolboxController
* ( *pfunc_setToolBoxControllerCreator
)(
32 const css::uno::Reference
< css::frame::XFrame
>& rFrame
,
35 const OUString
& aCommandURL
);
37 typedef svt::StatusbarController
* ( *pfunc_setStatusBarControllerCreator
)(
38 const css::uno::Reference
< css::frame::XFrame
>& rFrame
,
39 StatusBar
* pStatusBar
,
41 const OUString
& aCommandURL
);
43 typedef void ( *pfunc_getRefreshToolbars
)(
44 css::uno::Reference
< css::frame::XFrame
>& rFrame
);
46 typedef void ( *pfunc_createDockingWindow
)(
47 const css::uno::Reference
< css::frame::XFrame
>& rFrame
,
48 const OUString
& rResourceURL
);
50 typedef bool ( *pfunc_isDockingWindowVisible
)(
51 const css::uno::Reference
< css::frame::XFrame
>& rFrame
,
52 const OUString
& rResourceURL
);
57 FWE_DLLPUBLIC pfunc_setToolBoxControllerCreator SAL_CALL
SetToolBoxControllerCreator( pfunc_setToolBoxControllerCreator pSetToolBoxControllerCreator
);
58 FWE_DLLPUBLIC
svt::ToolboxController
* SAL_CALL
CreateToolBoxController(
59 const css::uno::Reference
< css::frame::XFrame
>& rFrame
,
62 const OUString
& aCommandURL
);
64 FWE_DLLPUBLIC pfunc_setStatusBarControllerCreator SAL_CALL
SetStatusBarControllerCreator( pfunc_setStatusBarControllerCreator pSetStatusBarControllerCreator
);
65 FWE_DLLPUBLIC
svt::StatusbarController
* SAL_CALL
CreateStatusBarController(
66 const css::uno::Reference
< css::frame::XFrame
>& rFrame
,
67 StatusBar
* pStatusBar
,
69 const OUString
& aCommandURL
);
71 FWE_DLLPUBLIC pfunc_getRefreshToolbars SAL_CALL
SetRefreshToolbars( pfunc_getRefreshToolbars pRefreshToolbarsFunc
);
72 FWE_DLLPUBLIC
void SAL_CALL
RefreshToolbars(
73 css::uno::Reference
< css::frame::XFrame
>& rFrame
);
75 FWE_DLLPUBLIC pfunc_createDockingWindow SAL_CALL
SetDockingWindowCreator( pfunc_createDockingWindow pCreateDockingWindow
);
76 FWE_DLLPUBLIC
void SAL_CALL
CreateDockingWindow(
77 const css::uno::Reference
< css::frame::XFrame
>& rFrame
,
78 const OUString
& rResourceURL
);
80 FWE_DLLPUBLIC pfunc_isDockingWindowVisible SAL_CALL
SetIsDockingWindowVisible( pfunc_isDockingWindowVisible pIsDockingWindowVisible
);
81 FWE_DLLPUBLIC
bool SAL_CALL
IsDockingWindowVisible(
82 const css::uno::Reference
< css::frame::XFrame
>& rFrame
,
83 const OUString
& rResourceURL
);
86 #endif // INCLUDED_FRAMEWORK_SFXHELPERFUNCTIONS_HXX
88 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */