bump product version to 5.0.4.1
[LibreOffice.git] / sd / source / ui / inc / LayerTabBar.hxx
blobbb79203ea9231f22e1cbc991edf2fddb6d02dcf4
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 INCLUDED_SD_SOURCE_UI_INC_LAYERTABBAR_HXX
21 #define INCLUDED_SD_SOURCE_UI_INC_LAYERTABBAR_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 vcl::Window* pParent);
41 virtual ~LayerTabBar();
43 /** Inform all listeners of this control that the current layer has been
44 activated. Call this method after switching the current layer and is
45 not done elsewhere (like when using ctrl + page up/down keys).
47 void SendActivatePageEvent();
49 /** Inform all listeners of this control that the current layer has been
50 deactivated. Call this method before switching the current layer
51 and is not done elsewhere (like when using ctrl page up/down keys).
53 void SendDeactivatePageEvent();
55 protected:
56 DrawViewShell* pDrViewSh;
58 // TabBar
59 virtual void Select() SAL_OVERRIDE;
60 virtual void DoubleClick() SAL_OVERRIDE;
61 virtual void MouseButtonDown(const MouseEvent& rMEvt) SAL_OVERRIDE;
63 virtual void Command(const CommandEvent& rCEvt) SAL_OVERRIDE;
65 virtual bool StartRenaming() SAL_OVERRIDE;
66 virtual TabBarAllowRenamingReturnCode AllowRenaming() SAL_OVERRIDE;
67 virtual void EndRenaming() SAL_OVERRIDE;
69 virtual void ActivatePage() SAL_OVERRIDE;
71 // DropTargetHelper
72 virtual sal_Int8 AcceptDrop( const AcceptDropEvent& rEvt ) SAL_OVERRIDE;
73 virtual sal_Int8 ExecuteDrop( const ExecuteDropEvent& rEvt ) SAL_OVERRIDE;
76 } // end of namespace sd
78 #endif
80 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */