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
27class ScTabView;
28
30{
33
34public:
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
60{
63
64public:
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 void HideEntries(SCCOLROW nStart, SCCOLROW nEnd) override
Definition: colrowba.cxx:140
ScHSplitPos meWhich
Definition: colrowba.hxx:31
virtual OUString GetDragHelp(tools::Long nVal) override
Definition: colrowba.cxx:203
virtual bool ResizeAllowed() const override
Definition: colrowba.cxx:188
virtual void SelectWindow() override
Definition: colrowba.cxx:155
virtual OUString GetEntryText(SCCOLROW nEntryNo) const override
Definition: colrowba.cxx:85
virtual SCCOLROW GetPos() const override
Definition: colrowba.cxx:69
ScColBar(vcl::Window *pParent, ScHSplitPos eWhich, ScHeaderFunctionSet *pFuncSet, ScHeaderSelectionEngine *pEng, ScTabView *pTab)
Definition: colrowba.cxx:55
virtual sal_uInt16 GetEntrySize(SCCOLROW nEntryNo) const override
Definition: colrowba.cxx:74
ScHeaderFunctionSet * mpFuncSet
Definition: colrowba.hxx:32
virtual void SetEntrySize(SCCOLROW nPos, sal_uInt16 nNewSize) override
Definition: colrowba.cxx:92
virtual void DrawInvert(tools::Long nDragPos) override
Definition: colrowba.cxx:194
virtual ~ScColBar() override
Definition: colrowba.cxx:65
virtual bool IsLayoutRTL() const override
Definition: colrowba.cxx:209
virtual void SetMarking(bool bSet) override
Definition: colrowba.cxx:146
virtual bool IsDisabled() const override
Definition: colrowba.cxx:182
tools::Long nDragPos
Definition: hdrcont.hxx:60
virtual sal_uInt16 GetEntrySize(SCCOLROW nEntryNo) const override
Definition: colrowba.cxx:234
virtual OUString GetDragHelp(tools::Long nVal) override
Definition: colrowba.cxx:363
ScVSplitPos meWhich
Definition: colrowba.hxx:61
virtual void HideEntries(SCCOLROW nStart, SCCOLROW nEnd) override
Definition: colrowba.cxx:300
virtual OUString GetEntryText(SCCOLROW nEntryNo) const override
Definition: colrowba.cxx:247
virtual void SelectWindow() override
Definition: colrowba.cxx:315
virtual bool ResizeAllowed() const override
Definition: colrowba.cxx:348
virtual bool IsMirrored() const override
Definition: colrowba.cxx:377
virtual void SetMarking(bool bSet) override
Definition: colrowba.cxx:306
virtual SCCOLROW GetHiddenCount(SCCOLROW nEntryNo) const override
Definition: colrowba.cxx:369
ScHeaderFunctionSet * mpFuncSet
Definition: colrowba.hxx:62
virtual void SetEntrySize(SCCOLROW nPos, sal_uInt16 nNewSize) override
Definition: colrowba.cxx:252
virtual void DrawInvert(tools::Long nDragPos) override
Definition: colrowba.cxx:354
virtual ~ScRowBar() override
Definition: colrowba.cxx:225
virtual bool IsDisabled() const override
Definition: colrowba.cxx:342
virtual SCCOLROW GetPos() const override
Definition: colrowba.cxx:229
ScRowBar(vcl::Window *pParent, ScVSplitPos eWhich, ScHeaderFunctionSet *pFuncSet, ScHeaderSelectionEngine *pEng, ScTabView *pTab)
Definition: colrowba.cxx:215
long Long
sal_Int32 SCCOLROW
a type capable of holding either SCCOL or SCROW
Definition: types.hxx:23
ScHSplitPos
Definition: viewdata.hxx:45
ScVSplitPos
Definition: viewdata.hxx:46