Bump version to 6.4-15
[LibreOffice.git] / sc / inc / rowheightcontext.hxx
blob2bec0e05cbcbc1d585222540ce952d823ba95667
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/.
8 */
10 #ifndef INCLUDED_SC_INC_ROWHEIGHTCONTEXT_HXX
11 #define INCLUDED_SC_INC_ROWHEIGHTCONTEXT_HXX
13 #include "scdllapi.h"
15 #include <tools/fract.hxx>
16 #include <vcl/vclptr.hxx>
17 #include <vcl/outdev.hxx>
19 #include "segmenttree.hxx"
21 namespace sc {
23 class SC_DLLPUBLIC RowHeightContext
25 ScFlatUInt16RowSegments maHeights;
27 double const mfPPTX;
28 double const mfPPTY;
29 Fraction const maZoomX;
30 Fraction const maZoomY;
31 VclPtr<OutputDevice> mpOutDev;
33 sal_uInt16 mnExtraHeight;
34 bool mbForceAutoSize; /// whether to set height to optimal even when the manual height flag is set.
36 public:
37 RowHeightContext(
38 double fPPTX, double fPPTY, const Fraction& rZoomX, const Fraction& rZoomY,
39 OutputDevice* pOutDev );
41 ~RowHeightContext();
43 double getPPTX() const { return mfPPTX;}
44 double getPPTY() const { return mfPPTY;}
45 const Fraction& getZoomX() const { return maZoomX;}
46 const Fraction& getZoomY() const { return maZoomY;}
48 OutputDevice* getOutputDevice() { return mpOutDev;}
50 void setExtraHeight( sal_uInt16 nH );
51 sal_uInt16 getExtraHeight() const { return mnExtraHeight;}
53 void setForceAutoSize( bool b );
54 bool isForceAutoSize() const { return mbForceAutoSize;}
56 ScFlatUInt16RowSegments& getHeightArray();
61 #endif
63 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */