Bump version to 4.3-4
[LibreOffice.git] / sc / inc / rowheightcontext.hxx
blob21e9ee4e9e0936b95e6a85ac36bc5f0e17691c5f
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>
17 class OutputDevice;
19 namespace sc {
21 class SC_DLLPUBLIC RowHeightContext
23 double mfPPTX;
24 double mfPPTY;
25 Fraction maZoomX;
26 Fraction maZoomY;
27 OutputDevice* mpOutDev;
29 sal_uInt16 mnExtraHeight;
30 bool mbForceAutoSize; /// whether to set height to optimal even when the manual height flag is set.
32 public:
33 RowHeightContext(
34 double fPPTX, double fPPTY, const Fraction& rZoomX, const Fraction& rZoomY,
35 OutputDevice* pOutDev );
37 ~RowHeightContext();
39 double getPPTX() const;
40 double getPPTY() const;
41 const Fraction& getZoomX() const;
42 const Fraction& getZoomY() const;
44 OutputDevice* getOutputDevice();
46 void setExtraHeight( sal_uInt16 nH );
47 sal_uInt16 getExtraHeight() const;
49 void setForceAutoSize( bool b );
50 bool isForceAutoSize() const;
55 #endif
57 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */