fdo#74697 Add Bluez 5 support for impress remote.
[LibreOffice.git] / svx / inc / GalleryControl.hxx
blob0617bf16546c56c3c72b27bc8377709806cbf9d8
1 /*
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>
28 class SfxBindings;
30 class Gallery;
31 class GallerySplitter;
32 class GalleryBrowser1;
33 class GalleryBrowser2;
34 class FmFormModel;
36 namespace svx { namespace sidebar {
39 class SVX_DLLPUBLIC GalleryControl : public Window
41 public:
42 GalleryControl (
43 SfxBindings* pBindings,
44 Window* pParentWindow);
45 virtual ~GalleryControl (void);
47 sal_Bool GalleryKeyInput( const KeyEvent& rKEvt, Window* pWindow);
49 private:
50 Gallery* mpGallery;
51 ::boost::scoped_ptr<GallerySplitter> mpSplitter;
52 ::boost::scoped_ptr<GalleryBrowser1> mpBrowser1;
53 ::boost::scoped_ptr<GalleryBrowser2> mpBrowser2;
54 Size maLastSize;
55 bool mbIsInitialResize;
57 void InitSettings (void);
59 virtual void Resize (void);
60 virtual void GetFocus (void);
62 DECL_LINK(SplitHdl, void*);
64 protected:
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
75 #endif