xref: /aoo42x/main/svx/inc/GalleryControl.hxx (revision 9afceb33)
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_GALLERY_CONTROL_HXX
23 #define SVX_SIDEBAR_GALLERY_CONTROL_HXX
24 
25 #include <vcl/window.hxx>
26 #include <vcl/graph.hxx>
27 #include <tools/urlobj.hxx>
28 #include "svx/svxdllapi.h"
29 
30 #include <boost/scoped_ptr.hpp>
31 
32 class SfxBindings;
33 
34 class Gallery;
35 class GallerySplitter;
36 class GalleryBrowser1;
37 class GalleryBrowser2;
38 class FmFormModel;
39 
40 namespace svx { namespace sidebar {
41 
42 
43 class SVX_DLLPUBLIC GalleryControl : public Window
44 {
45 public:
46     GalleryControl (
47         SfxBindings* pBindings,
48         Window* pParentWindow);
49     virtual ~GalleryControl (void);
50 
51     sal_Bool KeyInput( const KeyEvent& rKEvt, Window* pWindow);
52 
53 private:
54     Gallery* mpGallery;
55     ::boost::scoped_ptr<GallerySplitter> mpSplitter;
56     ::boost::scoped_ptr<GalleryBrowser1> mpBrowser1;
57     ::boost::scoped_ptr<GalleryBrowser2> mpBrowser2;
58 	Size maLastSize;
59     bool mbIsInitialResize;
60 
61     void InitSettings (void);
62 
63 	virtual void Resize (void);
64 	virtual void GetFocus (void);
65 
66     DECL_LINK(SplitHdl, void*);
67 
68 protected:
69 	void ThemeSelectionHasChanged (void);
70 };
71 
72 } } // end of namespace svx::sidebar
73 
74 #endif
75