LibreOffice Module sc (master)  1
colrowba.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
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/.
8  *
9  * This file incorporates work covered by the following license notice:
10  *
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 .
18  */
19 
20 #ifndef INCLUDED_SC_SOURCE_UI_INC_COLROWBA_HXX
21 #define INCLUDED_SC_SOURCE_UI_INC_COLROWBA_HXX
22 
23 #include "hdrcont.hxx"
24 #include "viewdata.hxx"
25 
28 class ScTabView;
29 
30 class ScColBar : public ScHeaderControl
31 {
34 
35 public:
36  ScColBar( vcl::Window* pParent, ScHSplitPos eWhich,
38  ScTabView* pTab );
39  virtual ~ScColBar() override;
40 
41  virtual SCCOLROW GetPos() const override;
42  virtual sal_uInt16 GetEntrySize( SCCOLROW nEntryNo ) const override;
43  virtual OUString GetEntryText( SCCOLROW nEntryNo ) const override;
44 
45  virtual bool IsLayoutRTL() const override;
46 
47  virtual void SetEntrySize( SCCOLROW nPos, sal_uInt16 nNewSize ) override;
48  virtual void HideEntries( SCCOLROW nStart, SCCOLROW nEnd ) override;
49 
50  virtual void SetMarking( bool bSet ) override;
51  virtual void SelectWindow() override;
52  virtual bool IsDisabled() const override;
53  virtual bool ResizeAllowed() const override;
54 
55  virtual void DrawInvert( tools::Long nDragPos ) override;
56 
57  virtual OUString GetDragHelp( tools::Long nVal ) override;
58 };
59 
60 class ScRowBar : public ScHeaderControl
61 {
64 
65 public:
66  ScRowBar( vcl::Window* pParent, ScVSplitPos eWhich,
68  ScTabView* pTab );
69  virtual ~ScRowBar() override;
70 
71  virtual SCCOLROW GetPos() const override;
72  virtual sal_uInt16 GetEntrySize( SCCOLROW nEntryNo ) const override;
73  virtual OUString GetEntryText( SCCOLROW nEntryNo ) const override;
74 
75  virtual bool IsMirrored() const override;
76  virtual SCCOLROW GetHiddenCount( SCCOLROW nEntryNo ) const override;
77 
78  virtual void SetEntrySize( SCCOLROW nPos, sal_uInt16 nNewSize ) override;
79  virtual void HideEntries( SCCOLROW nStart, SCCOLROW nEnd ) override;
80 
81  virtual void SetMarking( bool bSet ) override;
82  virtual void SelectWindow() override;
83  virtual bool IsDisabled() const override;
84  virtual bool ResizeAllowed() const override;
85 
86  virtual void DrawInvert( tools::Long nDragPos ) override;
87 
88  virtual OUString GetDragHelp( tools::Long nVal ) override;
89 };
90 
91 #endif
92 
93 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual bool IsDisabled() const override
Definition: colrowba.cxx:342
virtual void SelectWindow() override
Definition: colrowba.cxx:315
virtual SCCOLROW GetPos() const override
Definition: colrowba.cxx:69
virtual SCCOLROW GetHiddenCount(SCCOLROW nEntryNo) const override
Definition: colrowba.cxx:369
ScHeaderFunctionSet * mpFuncSet
Definition: colrowba.hxx:33
virtual OUString GetDragHelp(tools::Long nVal) override
Definition: colrowba.cxx:203
ScHeaderFunctionSet * mpFuncSet
Definition: colrowba.hxx:63
virtual void DrawInvert(tools::Long nDragPos) override
Definition: colrowba.cxx:194
virtual void DrawInvert(tools::Long nDragPos) override
Definition: colrowba.cxx:354
ScVSplitPos
Definition: viewdata.hxx:47
long Long
ScColBar(vcl::Window *pParent, ScHSplitPos eWhich, ScHeaderFunctionSet *pFuncSet, ScHeaderSelectionEngine *pEng, ScTabView *pTab)
Definition: colrowba.cxx:55
virtual ~ScRowBar() override
Definition: colrowba.cxx:225
virtual SCCOLROW GetPos() const override
Definition: colrowba.cxx:229
sal_Int32 SCCOLROW
a type capable of holding either SCCOL or SCROW
Definition: types.hxx:24
virtual void HideEntries(SCCOLROW nStart, SCCOLROW nEnd) override
Definition: colrowba.cxx:140
virtual OUString GetEntryText(SCCOLROW nEntryNo) const override
Definition: colrowba.cxx:247
virtual sal_uInt16 GetEntrySize(SCCOLROW nEntryNo) const override
Definition: colrowba.cxx:234
virtual bool ResizeAllowed() const override
Definition: colrowba.cxx:188
virtual void SetEntrySize(SCCOLROW nPos, sal_uInt16 nNewSize) override
Definition: colrowba.cxx:252
virtual ~ScColBar() override
Definition: colrowba.cxx:65
virtual bool IsDisabled() const override
Definition: colrowba.cxx:182
virtual void SetMarking(bool bSet) override
Definition: colrowba.cxx:146
virtual bool ResizeAllowed() const override
Definition: colrowba.cxx:348
virtual bool IsMirrored() const override
Definition: colrowba.cxx:377
ScHSplitPos meWhich
Definition: colrowba.hxx:32
virtual void SetEntrySize(SCCOLROW nPos, sal_uInt16 nNewSize) override
Definition: colrowba.cxx:92
ScHSplitPos
Definition: viewdata.hxx:46
ScVSplitPos meWhich
Definition: colrowba.hxx:62
ScRowBar(vcl::Window *pParent, ScVSplitPos eWhich, ScHeaderFunctionSet *pFuncSet, ScHeaderSelectionEngine *pEng, ScTabView *pTab)
Definition: colrowba.cxx:215
virtual void HideEntries(SCCOLROW nStart, SCCOLROW nEnd) override
Definition: colrowba.cxx:300
virtual void SelectWindow() override
Definition: colrowba.cxx:155
virtual sal_uInt16 GetEntrySize(SCCOLROW nEntryNo) const override
Definition: colrowba.cxx:74
virtual OUString GetDragHelp(tools::Long nVal) override
Definition: colrowba.cxx:363
tools::Long nDragPos
Definition: hdrcont.hxx:57
virtual void SetMarking(bool bSet) override
Definition: colrowba.cxx:306
virtual OUString GetEntryText(SCCOLROW nEntryNo) const override
Definition: colrowba.cxx:85
virtual bool IsLayoutRTL() const override
Definition: colrowba.cxx:209