xref: /AOO41X/main/svx/inc/GalleryControl.hxx (revision 02c50d825b93d3e4e3bd9073db30bd7615e748eb)
1*02c50d82SAndre Fischer /**************************************************************
2*02c50d82SAndre Fischer  *
3*02c50d82SAndre Fischer  * Licensed to the Apache Software Foundation (ASF) under one
4*02c50d82SAndre Fischer  * or more contributor license agreements.  See the NOTICE file
5*02c50d82SAndre Fischer  * distributed with this work for additional information
6*02c50d82SAndre Fischer  * regarding copyright ownership.  The ASF licenses this file
7*02c50d82SAndre Fischer  * to you under the Apache License, Version 2.0 (the
8*02c50d82SAndre Fischer  * "License"); you may not use this file except in compliance
9*02c50d82SAndre Fischer  * with the License.  You may obtain a copy of the License at
10*02c50d82SAndre Fischer  *
11*02c50d82SAndre Fischer  *   http://www.apache.org/licenses/LICENSE-2.0
12*02c50d82SAndre Fischer  *
13*02c50d82SAndre Fischer  * Unless required by applicable law or agreed to in writing,
14*02c50d82SAndre Fischer  * software distributed under the License is distributed on an
15*02c50d82SAndre Fischer  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*02c50d82SAndre Fischer  * KIND, either express or implied.  See the License for the
17*02c50d82SAndre Fischer  * specific language governing permissions and limitations
18*02c50d82SAndre Fischer  * under the License.
19*02c50d82SAndre Fischer  *
20*02c50d82SAndre Fischer  *************************************************************/
21*02c50d82SAndre Fischer 
22*02c50d82SAndre Fischer #ifndef SVX_SIDEBAR_GALLERY_CONTROL_HXX
23*02c50d82SAndre Fischer #define SVX_SIDEBAR_GALLERY_CONTROL_HXX
24*02c50d82SAndre Fischer 
25*02c50d82SAndre Fischer #include <vcl/window.hxx>
26*02c50d82SAndre Fischer #include <vcl/graph.hxx>
27*02c50d82SAndre Fischer #include <tools/urlobj.hxx>
28*02c50d82SAndre Fischer #include "svx/svxdllapi.h"
29*02c50d82SAndre Fischer 
30*02c50d82SAndre Fischer #include <boost/scoped_ptr.hpp>
31*02c50d82SAndre Fischer 
32*02c50d82SAndre Fischer class SfxBindings;
33*02c50d82SAndre Fischer 
34*02c50d82SAndre Fischer class Gallery;
35*02c50d82SAndre Fischer class GallerySplitter;
36*02c50d82SAndre Fischer class GalleryBrowser1;
37*02c50d82SAndre Fischer class GalleryBrowser2;
38*02c50d82SAndre Fischer class FmFormModel;
39*02c50d82SAndre Fischer 
40*02c50d82SAndre Fischer namespace svx { namespace sidebar {
41*02c50d82SAndre Fischer 
42*02c50d82SAndre Fischer 
43*02c50d82SAndre Fischer class SVX_DLLPUBLIC GalleryControl : public Window
44*02c50d82SAndre Fischer {
45*02c50d82SAndre Fischer public:
46*02c50d82SAndre Fischer     GalleryControl (
47*02c50d82SAndre Fischer         SfxBindings* pBindings,
48*02c50d82SAndre Fischer         Window* pParentWindow);
49*02c50d82SAndre Fischer     virtual ~GalleryControl (void);
50*02c50d82SAndre Fischer 
51*02c50d82SAndre Fischer private:
52*02c50d82SAndre Fischer     Gallery* mpGallery;
53*02c50d82SAndre Fischer     ::boost::scoped_ptr<GallerySplitter> mpSplitter;
54*02c50d82SAndre Fischer     ::boost::scoped_ptr<GalleryBrowser1> mpBrowser1;
55*02c50d82SAndre Fischer     ::boost::scoped_ptr<GalleryBrowser2> mpBrowser2;
56*02c50d82SAndre Fischer 	Size maLastSize;
57*02c50d82SAndre Fischer 
58*02c50d82SAndre Fischer     void InitSettings (void);
59*02c50d82SAndre Fischer 
60*02c50d82SAndre Fischer 	virtual void Resize (void);
61*02c50d82SAndre Fischer 	virtual void GetFocus (void);
62*02c50d82SAndre Fischer 
63*02c50d82SAndre Fischer     DECL_LINK(SplitHdl, void*);
64*02c50d82SAndre Fischer 
65*02c50d82SAndre Fischer protected:
66*02c50d82SAndre Fischer 	void ThemeSelectionHasChanged (void);
67*02c50d82SAndre Fischer 
68*02c50d82SAndre Fischer 	INetURLObject GetURL (void) const;
69*02c50d82SAndre Fischer 	String GetFilterName (void) const;
70*02c50d82SAndre Fischer 	Graphic GetGraphic (void) const;
71*02c50d82SAndre Fischer 	sal_Bool GetVCDrawModel (FmFormModel& rModel) const;
72*02c50d82SAndre Fischer 	sal_Bool IsLinkage (void) const;
73*02c50d82SAndre Fischer     sal_Bool KeyInput( const KeyEvent& rKEvt, Window* pWindow);
74*02c50d82SAndre Fischer };
75*02c50d82SAndre Fischer 
76*02c50d82SAndre Fischer } } // end of namespace svx::sidebar
77*02c50d82SAndre Fischer 
78*02c50d82SAndre Fischer #endif
79