Version 6.4.0.3, tag libreoffice-6.4.0.3
[LibreOffice.git] / sc / source / ui / inc / colrowba.hxx
blobd231dda5f08a2ed6bfd7d53e4b85f093871080c6
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_SC_SOURCE_UI_INC_COLROWBA_HXX
21 #define INCLUDED_SC_SOURCE_UI_INC_COLROWBA_HXX
23 #include "hdrcont.hxx"
24 #include "viewdata.hxx"
26 class ScHeaderFunctionSet;
27 class ScHeaderSelectionEngine;
28 class ScTabView;
30 class ScColBar : public ScHeaderControl
32 ScHSplitPos const meWhich;
33 ScHeaderFunctionSet* mpFuncSet;
35 public:
36 ScColBar( vcl::Window* pParent, ScHSplitPos eWhich,
37 ScHeaderFunctionSet* pFuncSet, ScHeaderSelectionEngine* pEng,
38 ScTabView* pTab );
39 virtual ~ScColBar() override;
41 virtual SCCOLROW GetPos() const override;
42 virtual sal_uInt16 GetEntrySize( SCCOLROW nEntryNo ) const override;
43 virtual OUString GetEntryText( SCCOLROW nEntryNo ) const override;
45 virtual bool IsLayoutRTL() const override;
47 virtual void SetEntrySize( SCCOLROW nPos, sal_uInt16 nNewSize ) override;
48 virtual void HideEntries( SCCOLROW nStart, SCCOLROW nEnd ) override;
50 virtual void SetMarking( bool bSet ) override;
51 virtual void SelectWindow() override;
52 virtual bool IsDisabled() const override;
53 virtual bool ResizeAllowed() const override;
55 virtual void DrawInvert( long nDragPos ) override;
57 virtual OUString GetDragHelp( long nVal ) override;
60 class ScRowBar : public ScHeaderControl
62 ScVSplitPos const meWhich;
63 ScHeaderFunctionSet* mpFuncSet;
65 public:
66 ScRowBar( vcl::Window* pParent, ScVSplitPos eWhich,
67 ScHeaderFunctionSet* pFuncSet, ScHeaderSelectionEngine* pEng,
68 ScTabView* pTab );
69 virtual ~ScRowBar() override;
71 virtual SCCOLROW GetPos() const override;
72 virtual sal_uInt16 GetEntrySize( SCCOLROW nEntryNo ) const override;
73 virtual OUString GetEntryText( SCCOLROW nEntryNo ) const override;
75 virtual bool IsMirrored() const override;
76 virtual SCCOLROW GetHiddenCount( SCCOLROW nEntryNo ) const override;
78 virtual void SetEntrySize( SCCOLROW nPos, sal_uInt16 nNewSize ) override;
79 virtual void HideEntries( SCCOLROW nStart, SCCOLROW nEnd ) override;
81 virtual void SetMarking( bool bSet ) override;
82 virtual void SelectWindow() override;
83 virtual bool IsDisabled() const override;
84 virtual bool ResizeAllowed() const override;
86 virtual void DrawInvert( long nDragPos ) override;
88 virtual OUString GetDragHelp( long nVal ) override;
91 #endif
93 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */