xref: /aoo42x/main/svx/inc/GalleryControl.hxx (revision 9afceb33)
102c50d82SAndre Fischer /**************************************************************
202c50d82SAndre Fischer  *
302c50d82SAndre Fischer  * Licensed to the Apache Software Foundation (ASF) under one
402c50d82SAndre Fischer  * or more contributor license agreements.  See the NOTICE file
502c50d82SAndre Fischer  * distributed with this work for additional information
602c50d82SAndre Fischer  * regarding copyright ownership.  The ASF licenses this file
702c50d82SAndre Fischer  * to you under the Apache License, Version 2.0 (the
802c50d82SAndre Fischer  * "License"); you may not use this file except in compliance
902c50d82SAndre Fischer  * with the License.  You may obtain a copy of the License at
1002c50d82SAndre Fischer  *
1102c50d82SAndre Fischer  *   http://www.apache.org/licenses/LICENSE-2.0
1202c50d82SAndre Fischer  *
1302c50d82SAndre Fischer  * Unless required by applicable law or agreed to in writing,
1402c50d82SAndre Fischer  * software distributed under the License is distributed on an
1502c50d82SAndre Fischer  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
1602c50d82SAndre Fischer  * KIND, either express or implied.  See the License for the
1702c50d82SAndre Fischer  * specific language governing permissions and limitations
1802c50d82SAndre Fischer  * under the License.
1902c50d82SAndre Fischer  *
2002c50d82SAndre Fischer  *************************************************************/
2102c50d82SAndre Fischer 
2202c50d82SAndre Fischer #ifndef SVX_SIDEBAR_GALLERY_CONTROL_HXX
2302c50d82SAndre Fischer #define SVX_SIDEBAR_GALLERY_CONTROL_HXX
2402c50d82SAndre Fischer 
2502c50d82SAndre Fischer #include <vcl/window.hxx>
2602c50d82SAndre Fischer #include <vcl/graph.hxx>
2702c50d82SAndre Fischer #include <tools/urlobj.hxx>
2802c50d82SAndre Fischer #include "svx/svxdllapi.h"
2902c50d82SAndre Fischer 
3002c50d82SAndre Fischer #include <boost/scoped_ptr.hpp>
3102c50d82SAndre Fischer 
3202c50d82SAndre Fischer class SfxBindings;
3302c50d82SAndre Fischer 
3402c50d82SAndre Fischer class Gallery;
3502c50d82SAndre Fischer class GallerySplitter;
3602c50d82SAndre Fischer class GalleryBrowser1;
3702c50d82SAndre Fischer class GalleryBrowser2;
3802c50d82SAndre Fischer class FmFormModel;
3902c50d82SAndre Fischer 
4002c50d82SAndre Fischer namespace svx { namespace sidebar {
4102c50d82SAndre Fischer 
4202c50d82SAndre Fischer 
4302c50d82SAndre Fischer class SVX_DLLPUBLIC GalleryControl : public Window
4402c50d82SAndre Fischer {
4502c50d82SAndre Fischer public:
4602c50d82SAndre Fischer     GalleryControl (
4702c50d82SAndre Fischer         SfxBindings* pBindings,
4802c50d82SAndre Fischer         Window* pParentWindow);
4902c50d82SAndre Fischer     virtual ~GalleryControl (void);
5002c50d82SAndre Fischer 
51*65908a7eSAndre Fischer     sal_Bool KeyInput( const KeyEvent& rKEvt, Window* pWindow);
52*65908a7eSAndre Fischer 
5302c50d82SAndre Fischer private:
5402c50d82SAndre Fischer     Gallery* mpGallery;
5502c50d82SAndre Fischer     ::boost::scoped_ptr<GallerySplitter> mpSplitter;
5602c50d82SAndre Fischer     ::boost::scoped_ptr<GalleryBrowser1> mpBrowser1;
5702c50d82SAndre Fischer     ::boost::scoped_ptr<GalleryBrowser2> mpBrowser2;
5802c50d82SAndre Fischer 	Size maLastSize;
59a8eaca58SAndre Fischer     bool mbIsInitialResize;
6002c50d82SAndre Fischer 
6102c50d82SAndre Fischer     void InitSettings (void);
6202c50d82SAndre Fischer 
6302c50d82SAndre Fischer 	virtual void Resize (void);
6402c50d82SAndre Fischer 	virtual void GetFocus (void);
6502c50d82SAndre Fischer 
6602c50d82SAndre Fischer     DECL_LINK(SplitHdl, void*);
6702c50d82SAndre Fischer 
6802c50d82SAndre Fischer protected:
6902c50d82SAndre Fischer 	void ThemeSelectionHasChanged (void);
7002c50d82SAndre Fischer };
7102c50d82SAndre Fischer 
7202c50d82SAndre Fischer } } // end of namespace svx::sidebar
7302c50d82SAndre Fischer 
7402c50d82SAndre Fischer #endif
75