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 #ifndef SVX_SIDEBAR_INSERT_PROPERTY_PAGE_HXX
23 #define SVX_SIDEBAR_INSERT_PROPERTY_PAGE_HXX
24 
25 #include <boost/scoped_ptr.hpp>
26 
27 #include <vcl/ctrl.hxx>
28 #include <com/sun/star/frame/XFrame.hpp>
29 #include <com/sun/star/frame/XDispatch.hpp>
30 #include <com/sun/star/frame/XToolbarController.hpp>
31 
32 #include <map>
33 
34 
35 namespace css = ::com::sun::star;
36 namespace cssu = ::com::sun::star::uno;
37 
38 class ToolBox;
39 
40 namespace svx { namespace sidebar {
41 
42 /** This panel provides buttons for inserting shapes into a document.
43 */
44 class InsertPropertyPanel
45     : public Control
46 {
47 public:
48     InsertPropertyPanel (
49         Window* pParent,
50         const cssu::Reference<css::frame::XFrame>& rxFrame);
51     virtual ~InsertPropertyPanel (void);
52 
53 private:
54     ::boost::scoped_ptr<Window> mpStandardShapesBackground;
55     ::boost::scoped_ptr<ToolBox> mpStandardShapesToolBox;
56     ::boost::scoped_ptr<Window> mpCustomShapesBackground;
57     ::boost::scoped_ptr<ToolBox> mpCustomShapesToolBox;
58     const cssu::Reference<css::frame::XFrame> mxFrame;
59 
60     DECL_LINK(WindowEventListener, VclSimpleEvent*);
61 };
62 
63 
64 } } // end of namespace ::svx::sidebar
65 
66 #endif
67