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 ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XFrame
>& rFrame
,
35 const OUString
& aCommandURL
);
37 typedef svt::StatusbarController
* ( *pfunc_setStatusBarControllerCreator
)(
38 const ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XFrame
>& rFrame
,
39 StatusBar
* pStatusBar
,
41 const OUString
& aCommandURL
);
43 typedef void ( *pfunc_getRefreshToolbars
)(
44 ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XFrame
>& rFrame
);
46 typedef void ( *pfunc_createDockingWindow
)(
47 const ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XFrame
>& rFrame
,
48 const OUString
& rResourceURL
);
50 typedef bool ( *pfunc_isDockingWindowVisible
)(
51 const ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XFrame
>& rFrame
,
52 const OUString
& rResourceURL
);
54 typedef void ( *pfunc_activateToolPanel
)(
55 const ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XFrame
>& i_rFrame
,
56 const OUString
& i_rPanelURL
);
61 FWE_DLLPUBLIC pfunc_setToolBoxControllerCreator SAL_CALL
SetToolBoxControllerCreator( pfunc_setToolBoxControllerCreator pSetToolBoxControllerCreator
);
62 FWE_DLLPUBLIC
svt::ToolboxController
* SAL_CALL
CreateToolBoxController(
63 const ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XFrame
>& rFrame
,
66 const OUString
& aCommandURL
);
68 FWE_DLLPUBLIC pfunc_setStatusBarControllerCreator SAL_CALL
SetStatusBarControllerCreator( pfunc_setStatusBarControllerCreator pSetStatusBarControllerCreator
);
69 FWE_DLLPUBLIC
svt::StatusbarController
* SAL_CALL
CreateStatusBarController(
70 const ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XFrame
>& rFrame
,
71 StatusBar
* pStatusBar
,
73 const OUString
& aCommandURL
);
75 FWE_DLLPUBLIC pfunc_getRefreshToolbars SAL_CALL
SetRefreshToolbars( pfunc_getRefreshToolbars pRefreshToolbarsFunc
);
76 FWE_DLLPUBLIC
void SAL_CALL
RefreshToolbars(
77 ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XFrame
>& rFrame
);
79 FWE_DLLPUBLIC pfunc_createDockingWindow SAL_CALL
SetDockingWindowCreator( pfunc_createDockingWindow pCreateDockingWindow
);
80 FWE_DLLPUBLIC
void SAL_CALL
CreateDockingWindow(
81 const ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XFrame
>& rFrame
,
82 const OUString
& rResourceURL
);
84 FWE_DLLPUBLIC pfunc_isDockingWindowVisible SAL_CALL
SetIsDockingWindowVisible( pfunc_isDockingWindowVisible pIsDockingWindowVisible
);
85 FWE_DLLPUBLIC
bool SAL_CALL
IsDockingWindowVisible(
86 const ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XFrame
>& rFrame
,
87 const OUString
& rResourceURL
);
89 FWE_DLLPUBLIC pfunc_activateToolPanel SAL_CALL
SetActivateToolPanel( pfunc_activateToolPanel i_pActivator
);
90 FWE_DLLPUBLIC
void SAL_CALL
ActivateToolPanel(
91 const ::com::sun::star::uno::Reference
< ::com::sun::star::frame::XFrame
>& i_rFrame
,
92 const OUString
& i_rPanelURL
);
95 #endif // INCLUDED_FRAMEWORK_SFXHELPERFUNCTIONS_HXX
97 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */