fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / sc / source / ui / inc / colrowba.hxx
blob308d75591789e672a40a6c7ad7bf42b491c17774
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 #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;
29 class ScColBar : public ScHeaderControl
31 ScViewData* pViewData;
32 ScHSplitPos eWhich;
33 ScHeaderFunctionSet* pFuncSet;
35 public:
36 ScColBar( vcl::Window* pParent, ScViewData* pData, ScHSplitPos eWhichPos,
37 ScHeaderFunctionSet* pFunc, ScHeaderSelectionEngine* pEng );
38 virtual ~ScColBar();
40 virtual SCCOLROW GetPos() const SAL_OVERRIDE;
41 virtual sal_uInt16 GetEntrySize( SCCOLROW nEntryNo ) const SAL_OVERRIDE;
42 virtual OUString GetEntryText( SCCOLROW nEntryNo ) const SAL_OVERRIDE;
44 virtual bool IsLayoutRTL() const SAL_OVERRIDE;
46 virtual void SetEntrySize( SCCOLROW nPos, sal_uInt16 nNewSize ) SAL_OVERRIDE;
47 virtual void HideEntries( SCCOLROW nStart, SCCOLROW nEnd ) SAL_OVERRIDE;
49 virtual void SetMarking( bool bSet ) SAL_OVERRIDE;
50 virtual void SelectWindow() SAL_OVERRIDE;
51 virtual bool IsDisabled() const SAL_OVERRIDE;
52 virtual bool ResizeAllowed() const SAL_OVERRIDE;
54 virtual void DrawInvert( long nDragPos ) SAL_OVERRIDE;
56 virtual OUString GetDragHelp( long nVal ) SAL_OVERRIDE;
58 bool UseNumericHeader() const;
61 class ScRowBar : public ScHeaderControl
63 ScViewData* pViewData;
64 ScVSplitPos eWhich;
65 ScHeaderFunctionSet* pFuncSet;
67 public:
68 ScRowBar( vcl::Window* pParent, ScViewData* pData, ScVSplitPos eWhichPos,
69 ScHeaderFunctionSet* pFunc, ScHeaderSelectionEngine* pEng );
70 virtual ~ScRowBar();
72 virtual SCCOLROW GetPos() const SAL_OVERRIDE;
73 virtual sal_uInt16 GetEntrySize( SCCOLROW nEntryNo ) const SAL_OVERRIDE;
74 virtual OUString GetEntryText( SCCOLROW nEntryNo ) const SAL_OVERRIDE;
76 virtual bool IsMirrored() const SAL_OVERRIDE;
77 virtual SCROW GetHiddenCount( SCROW nEntryNo ) const SAL_OVERRIDE;
79 virtual void SetEntrySize( SCCOLROW nPos, sal_uInt16 nNewSize ) SAL_OVERRIDE;
80 virtual void HideEntries( SCCOLROW nStart, SCCOLROW nEnd ) SAL_OVERRIDE;
82 virtual void SetMarking( bool bSet ) SAL_OVERRIDE;
83 virtual void SelectWindow() SAL_OVERRIDE;
84 virtual bool IsDisabled() const SAL_OVERRIDE;
85 virtual bool ResizeAllowed() const SAL_OVERRIDE;
87 virtual void DrawInvert( long nDragPos ) SAL_OVERRIDE;
89 virtual OUString GetDragHelp( long nVal ) SAL_OVERRIDE;
92 #endif
94 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */