2 * This file is part of the LibreOffice project.
4 * This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 * This file incorporates work covered by the following license notice:
10 * Licensed to the Apache Software Foundation (ASF) under one or more
11 * contributor license agreements. See the NOTICE file distributed
12 * with this work for additional information regarding copyright
13 * ownership. The ASF licenses this file to you under the Apache
14 * License, Version 2.0 (the "License"); you may not use this file
15 * except in compliance with the License. You may obtain a copy of
16 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 #ifndef SVX_SIDEBAR_GALLERY_CONTROL_HXX
19 #define SVX_SIDEBAR_GALLERY_CONTROL_HXX
21 #include <vcl/window.hxx>
22 #include <vcl/graph.hxx>
23 #include <tools/urlobj.hxx>
24 #include "svx/svxdllapi.h"
26 #include <boost/scoped_ptr.hpp>
31 class GallerySplitter
;
32 class GalleryBrowser1
;
33 class GalleryBrowser2
;
36 namespace svx
{ namespace sidebar
{
39 class SVX_DLLPUBLIC GalleryControl
: public Window
43 SfxBindings
* pBindings
,
44 Window
* pParentWindow
);
45 virtual ~GalleryControl (void);
47 sal_Bool
GalleryKeyInput( const KeyEvent
& rKEvt
, Window
* pWindow
);
51 ::boost::scoped_ptr
<GallerySplitter
> mpSplitter
;
52 ::boost::scoped_ptr
<GalleryBrowser1
> mpBrowser1
;
53 ::boost::scoped_ptr
<GalleryBrowser2
> mpBrowser2
;
55 bool mbIsInitialResize
;
57 void InitSettings (void);
59 virtual void Resize (void);
60 virtual void GetFocus (void);
62 DECL_LINK(SplitHdl
, void*);
65 void ThemeSelectionHasChanged (void);
67 INetURLObject
GetURL (void) const;
68 String
GetFilterName (void) const;
69 Graphic
GetGraphic (void) const;
70 sal_Bool
IsLinkage (void) const;
73 } } // end of namespace svx::sidebar