tdf#130857 qt weld: Implement QtInstanceWidget::strip_mnemonic
[LibreOffice.git] / sc / source / ui / inc / colrowba.hxx
blob536a78dd1d718acffc29bba7296fd8ee3e14304b
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 #pragma once
22 #include "hdrcont.hxx"
23 #include "viewdata.hxx"
25 class ScHeaderFunctionSet;
26 class ScHeaderSelectionEngine;
27 class ScTabView;
29 class ScColBar : public ScHeaderControl
31 ScHSplitPos meWhich;
32 ScHeaderFunctionSet* mpFuncSet;
34 public:
35 ScColBar( vcl::Window* pParent, ScHSplitPos eWhich,
36 ScHeaderFunctionSet* pFuncSet, ScHeaderSelectionEngine* pEng,
37 ScTabView* pTab );
38 virtual ~ScColBar() override;
40 virtual SCCOLROW GetPos() const override;
41 virtual sal_uInt16 GetEntrySize( SCCOLROW nEntryNo ) const override;
42 virtual OUString GetEntryText( SCCOLROW nEntryNo ) const override;
44 virtual bool IsLayoutRTL() const override;
46 virtual void SetEntrySize( SCCOLROW nPos, sal_uInt16 nNewSize ) override;
47 virtual void HideEntries( SCCOLROW nStart, SCCOLROW nEnd ) override;
49 virtual void SetMarking( bool bSet ) override;
50 virtual void SelectWindow() override;
51 virtual bool IsDisabled() const override;
52 virtual bool ResizeAllowed() const override;
54 virtual void DrawInvert( tools::Long nDragPos ) override;
56 virtual OUString GetDragHelp( tools::Long nVal ) override;
59 class ScRowBar : public ScHeaderControl
61 ScVSplitPos meWhich;
62 ScHeaderFunctionSet* mpFuncSet;
64 public:
65 ScRowBar( vcl::Window* pParent, ScVSplitPos eWhich,
66 ScHeaderFunctionSet* pFuncSet, ScHeaderSelectionEngine* pEng,
67 ScTabView* pTab );
68 virtual ~ScRowBar() override;
70 virtual SCCOLROW GetPos() const override;
71 virtual sal_uInt16 GetEntrySize( SCCOLROW nEntryNo ) const override;
72 virtual OUString GetEntryText( SCCOLROW nEntryNo ) const override;
74 virtual bool IsMirrored() const override;
75 virtual SCCOLROW GetHiddenCount( SCCOLROW nEntryNo ) const override;
77 virtual void SetEntrySize( SCCOLROW nPos, sal_uInt16 nNewSize ) override;
78 virtual void HideEntries( SCCOLROW nStart, SCCOLROW nEnd ) override;
80 virtual void SetMarking( bool bSet ) override;
81 virtual void SelectWindow() override;
82 virtual bool IsDisabled() const override;
83 virtual bool ResizeAllowed() const override;
85 virtual void DrawInvert( tools::Long nDragPos ) override;
87 virtual OUString GetDragHelp( tools::Long nVal ) override;
90 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */