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 #pragma once
21 
22 #include "hdrcont.hxx"
23 #include "viewdata.hxx"
24 
27 class ScTabView;
28 
29 class ScColBar : public ScHeaderControl
30 {
33 
34 public:
35  ScColBar( vcl::Window* pParent, ScHSplitPos eWhich,
37  ScTabView* pTab );
38  virtual ~ScColBar() override;
39 
40  virtual SCCOLROW GetPos() const override;
41  virtual sal_uInt16 GetEntrySize( SCCOLROW nEntryNo ) const override;
42  virtual OUString GetEntryText( SCCOLROW nEntryNo ) const override;
43 
44  virtual bool IsLayoutRTL() const override;
45 
46  virtual void SetEntrySize( SCCOLROW nPos, sal_uInt16 nNewSize ) override;
47  virtual void HideEntries( SCCOLROW nStart, SCCOLROW nEnd ) override;
48 
49  virtual void SetMarking( bool bSet ) override;
50  virtual void SelectWindow() override;
51  virtual bool IsDisabled() const override;
52  virtual bool ResizeAllowed() const override;
53 
54  virtual void DrawInvert( tools::Long nDragPos ) override;
55 
56  virtual OUString GetDragHelp( tools::Long nVal ) override;
57 };
58 
59 class ScRowBar : public ScHeaderControl
60 {
63 
64 public:
65  ScRowBar( vcl::Window* pParent, ScVSplitPos eWhich,
67  ScTabView* pTab );
68  virtual ~ScRowBar() override;
69 
70  virtual SCCOLROW GetPos() const override;
71  virtual sal_uInt16 GetEntrySize( SCCOLROW nEntryNo ) const override;
72  virtual OUString GetEntryText( SCCOLROW nEntryNo ) const override;
73 
74  virtual bool IsMirrored() const override;
75  virtual SCCOLROW GetHiddenCount( SCCOLROW nEntryNo ) const override;
76 
77  virtual void SetEntrySize( SCCOLROW nPos, sal_uInt16 nNewSize ) override;
78  virtual void HideEntries( SCCOLROW nStart, SCCOLROW nEnd ) override;
79 
80  virtual void SetMarking( bool bSet ) override;
81  virtual void SelectWindow() override;
82  virtual bool IsDisabled() const override;
83  virtual bool ResizeAllowed() const override;
84 
85  virtual void DrawInvert( tools::Long nDragPos ) override;
86 
87  virtual OUString GetDragHelp( tools::Long nVal ) override;
88 };
89 
90 /* 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:32
virtual OUString GetDragHelp(tools::Long nVal) override
Definition: colrowba.cxx:203
ScHeaderFunctionSet * mpFuncSet
Definition: colrowba.hxx:62
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:46
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:23
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:31
virtual void SetEntrySize(SCCOLROW nPos, sal_uInt16 nNewSize) override
Definition: colrowba.cxx:92
ScHSplitPos
Definition: viewdata.hxx:45
ScVSplitPos meWhich
Definition: colrowba.hxx:61
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:60
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