Bump version to 4.3-4
[LibreOffice.git] / sc / inc / dputil.hxx
blob002389e33b1b91691adadbdfbda9b6251d91b0d8
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_DPUTIL_HXX
11 #define INCLUDED_SC_INC_DPUTIL_HXX
13 #include <rtl/ustring.hxx>
14 #include "scdllapi.h"
15 #include "global.hxx"
17 #include <com/sun/star/sheet/GeneralFunction.hpp>
19 class SvNumberFormatter;
20 struct ScDPNumGroupInfo;
22 class ScDPUtil
24 public:
25 static bool isDuplicateDimension(const OUString& rName);
27 SC_DLLPUBLIC static OUString getSourceDimensionName(const OUString& rName);
29 /**
30 * Get a duplicate index in case the dimension is a duplicate. It returns
31 * 0 in case it's an original dimension.
33 sal_uInt8 static getDuplicateIndex(const OUString& rName);
35 SC_DLLPUBLIC static OUString createDuplicateDimensionName(const OUString& rOriginal, size_t nDupCount);
37 static OUString getDateGroupName(
38 sal_Int32 nDatePart, sal_Int32 nValue, SvNumberFormatter* pFormatter,
39 double fStart, double fEnd);
41 static double getNumGroupStartValue(double fValue, const ScDPNumGroupInfo& rInfo);
43 static OUString getNumGroupName(
44 double fValue, const ScDPNumGroupInfo& rInfo, sal_Unicode cDecSep,
45 SvNumberFormatter* pFormatter);
47 static sal_Int32 getDatePartValue(
48 double fValue, const ScDPNumGroupInfo* pInfo, sal_Int32 nDatePart,
49 SvNumberFormatter* pFormatter);
51 static OUString getDisplayedMeasureName(const OUString& rName, ScSubTotalFunc eFunc);
53 static ScSubTotalFunc toSubTotalFunc(com::sun::star::sheet::GeneralFunction eGenFunc);
56 #endif
58 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */