build fix
[LibreOffice.git] / sc / inc / cellform.hxx
blobff2bb8ae328b915c4aa45066313cf3f5ae506329
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 class SC_DLLPUBLIC ScCellFormat
35 public:
37 static void GetString(
38 ScRefCellValue& rCell, sal_uLong nFormat, OUString& rString,
39 Color** ppColor, SvNumberFormatter& rFormatter, const ScDocument* pDoc, bool bNullVals = true,
40 bool bFormula = false, bool bUseStarFormat = false );
42 static OUString GetString(
43 ScDocument& rDoc, const ScAddress& rPos, sal_uLong nFormat,
44 Color** ppColor, SvNumberFormatter& rFormatter, bool bNullVals = true,
45 bool bFormula = false );
47 static void GetInputString(
48 ScRefCellValue& rCell, sal_uLong nFormat, OUString& rString, SvNumberFormatter& rFormatter,
49 const ScDocument* pDoc );
51 static OUString GetOutputString(
52 ScDocument& rDoc, const ScAddress& rPos, ScRefCellValue& rCell );
55 #endif
57 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */