xref: /aoo4110/main/svx/inc/svx/tbxcolor.hxx (revision b1cdbd2c)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 #ifndef _SVX_TBXCOLOR_HXX
24 #define _SVX_TBXCOLOR_HXX
25 
26 #include <com/sun/star/frame/XLayoutManager.hpp>
27 #include "svx/svxdllapi.h"
28 
29 //........................................................................
30 namespace svx
31 {
32 //........................................................................
33 
34     //====================================================================
35     //= ToolboxAccess
36     //====================================================================
37     class SVX_DLLPUBLIC ToolboxAccess
38     {
39     private:
40         bool                                                    m_bDocking;
41         ::rtl::OUString                                         m_sToolboxResName;
42         ::com::sun::star::uno::Reference<
43             ::com::sun::star::frame::XLayoutManager >   m_xLayouter;
44 
45     public:
46         ToolboxAccess( const ::rtl::OUString& rToolboxName );
47 
48     public:
49         /** toggles the toolbox
50         */
51         void        toggleToolbox() const;
52 
53         /** determines whether the toolbox is currently visible
54         */
55         bool        isToolboxVisible() const;
56 
57         /** forces that the toolbox is docked
58         */
forceDocking()59         inline void forceDocking() { m_bDocking = true; }
60     };
61 
62 //........................................................................
63 } // namespace svx
64 //........................................................................
65 
66 #endif // #ifndef _SVX_TBXCOLOR_HXX
67 
68