1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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>
29 * TabBar for layer administration
35 public DropTargetHelper
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();
56 DrawViewShell
* pDrViewSh
;
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
;
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
80 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */