Bump version to 4.3-4
[LibreOffice.git] / sc / inc / cellform.hxx
blob9798dac2de5548bec8b314da583cc703b1e3718e
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_INC_CELLFORM_HXX
21 #define INCLUDED_SC_INC_CELLFORM_HXX
23 #include <tools/solar.h>
24 #include "scdllapi.h"
25 #include <rtl/ustring.hxx>
27 class SvNumberFormatter;
28 class Color;
29 class ScDocument;
30 class ScAddress;
31 struct ScRefCellValue;
33 enum ScForceTextFmt {
34 ftDontForce, ///< numbers as numbers
35 ftForce, ///< numbers as text
36 ftCheck ///< is the numberformat a textformat?
39 class SC_DLLPUBLIC ScCellFormat
41 public:
43 static void GetString(
44 ScRefCellValue& rCell, sal_uLong nFormat, OUString& rString,
45 Color** ppColor, SvNumberFormatter& rFormatter, const ScDocument* pDoc, bool bNullVals = true,
46 bool bFormula = false, ScForceTextFmt eForceTextFmt = ftDontForce,
47 bool bUseStarFormat = false );
49 static OUString GetString(
50 ScDocument& rDoc, const ScAddress& rPos, sal_uLong nFormat,
51 Color** ppColor, SvNumberFormatter& rFormatter, bool bNullVals = true,
52 bool bFormula = false, ScForceTextFmt eForceTextFmt = ftDontForce, bool bUseStarFormat = false );
54 static void GetInputString(
55 ScRefCellValue& rCell, sal_uLong nFormat, OUString& rString, SvNumberFormatter& rFormatter,
56 const ScDocument* pDoc );
58 static OUString GetOutputString(
59 ScDocument& rDoc, const ScAddress& rPos, ScRefCellValue& rCell );
62 #endif
64 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */