1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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 SC_COLROWBAR_HXX
21 #define SC_COLROWBAR_HXX
23 #include "hdrcont.hxx"
24 #include "viewdata.hxx"
26 class ScHeaderFunctionSet
;
27 class ScHeaderSelectionEngine
;
29 class ScColBar
: public ScHeaderControl
31 ScViewData
* pViewData
;
33 ScHeaderFunctionSet
* pFuncSet
;
36 ScColBar( Window
* pParent
, ScViewData
* pData
, ScHSplitPos eWhichPos
,
37 ScHeaderFunctionSet
* pFunc
, ScHeaderSelectionEngine
* pEng
);
40 virtual SCCOLROW
GetPos() const;
41 virtual sal_uInt16
GetEntrySize( SCCOLROW nEntryNo
) const;
42 virtual OUString
GetEntryText( SCCOLROW nEntryNo
) const;
44 virtual bool IsLayoutRTL() const;
46 virtual void SetEntrySize( SCCOLROW nPos
, sal_uInt16 nNewSize
);
47 virtual void HideEntries( SCCOLROW nStart
, SCCOLROW nEnd
);
49 virtual void SetMarking( bool bSet
);
50 virtual void SelectWindow();
51 virtual bool IsDisabled() const;
52 virtual bool ResizeAllowed() const;
54 virtual void DrawInvert( long nDragPos
);
56 virtual OUString
GetDragHelp( long nVal
);
58 bool UseNumericHeader() const;
62 class ScRowBar
: public ScHeaderControl
64 ScViewData
* pViewData
;
66 ScHeaderFunctionSet
* pFuncSet
;
69 ScRowBar( Window
* pParent
, ScViewData
* pData
, ScVSplitPos eWhichPos
,
70 ScHeaderFunctionSet
* pFunc
, ScHeaderSelectionEngine
* pEng
);
73 virtual SCCOLROW
GetPos() const;
74 virtual sal_uInt16
GetEntrySize( SCCOLROW nEntryNo
) const;
75 virtual OUString
GetEntryText( SCCOLROW nEntryNo
) const;
77 virtual bool IsMirrored() const;
78 virtual SCROW
GetHiddenCount( SCROW nEntryNo
) const;
80 virtual void SetEntrySize( SCCOLROW nPos
, sal_uInt16 nNewSize
);
81 virtual void HideEntries( SCCOLROW nStart
, SCCOLROW nEnd
);
83 virtual void SetMarking( bool bSet
);
84 virtual void SelectWindow();
85 virtual bool IsDisabled() const;
86 virtual bool ResizeAllowed() const;
88 virtual void DrawInvert( long nDragPos
);
90 virtual OUString
GetDragHelp( long nVal
);
95 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */