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_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
;
30 class ScColBar
: public ScHeaderControl
32 ScHSplitPos
const meWhich
;
33 ScHeaderFunctionSet
* mpFuncSet
;
36 ScColBar( vcl::Window
* pParent
, ScHSplitPos eWhich
,
37 ScHeaderFunctionSet
* pFuncSet
, ScHeaderSelectionEngine
* pEng
,
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
;
66 ScRowBar( vcl::Window
* pParent
, ScVSplitPos eWhich
,
67 ScHeaderFunctionSet
* pFuncSet
, ScHeaderSelectionEngine
* pEng
,
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
;
93 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */