fdo#74697 Add Bluez 5 support for impress remote.
[LibreOffice.git] / sd / source / ui / inc / LayerTabBar.hxx
blobc7e52836aa514b2a4aa9777fc9754b428f5a1059
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef SD_LAYER_TAB_BAR_HXX
21 #define SD_LAYER_TAB_BAR_HXX
23 #include <svtools/tabbar.hxx>
24 #include <svtools/transfer.hxx>
26 namespace sd {
28 /**
29 * TabBar for layer administration
31 class DrawViewShell;
33 class LayerTabBar
34 : public TabBar,
35 public DropTargetHelper
37 public:
38 LayerTabBar (
39 DrawViewShell* pDrViewSh,
40 ::Window* pParent);
41 LayerTabBar (
42 DrawViewShell* pDrViewSh,
43 ::Window* pParent,
44 const ResId& rResId);
45 virtual ~LayerTabBar (void);
47 /** Inform all listeners of this control that the current layer has been
48 activated. Call this method after switching the current layer and is
49 not done elsewhere (like when using ctrl + page up/down keys).
51 void SendActivatePageEvent (void);
53 /** Inform all listeners of this control that the current layer has been
54 deactivated. Call this method before switching the current layer
55 and is not done elsewhere (like when using ctrl page up/down keys).
57 void SendDeactivatePageEvent (void);
59 protected:
60 DrawViewShell* pDrViewSh;
62 // TabBar
63 virtual void Select();
64 virtual void DoubleClick();
65 virtual void MouseButtonDown(const MouseEvent& rMEvt);
67 virtual void Command(const CommandEvent& rCEvt);
69 virtual long StartRenaming();
70 virtual long AllowRenaming();
71 virtual void EndRenaming();
73 virtual void ActivatePage();
75 // DropTargetHelper
76 virtual sal_Int8 AcceptDrop( const AcceptDropEvent& rEvt );
77 virtual sal_Int8 ExecuteDrop( const ExecuteDropEvent& rEvt );
80 } // end of namespace sd
82 #endif
84 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */