LibreOffice Module sc (master) 1
typedstrdata.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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 */
9
10#pragma once
11
12#include <rtl/ustring.hxx>
13
14#include <set>
15
17{
18public:
25 Header
26 };
27
29 OUString&& rStr, double fVal = 0.0, double fRVal = 0.0, StringType nType = Standard, bool bDate = false, bool bIsHiddenByFilter = false ) :
30 maStrValue(std::move(rStr)),
31 mfValue(fVal),
32 mfRoundedValue(fRVal),
34 mbIsDate( bDate ),
35 mbIsHiddenByFilter(bIsHiddenByFilter) {}
36
37 ScTypedStrData( const OUString& rStr, double fVal = 0.0, double fRVal = 0.0, StringType eType = Standard,
38 bool bDate = false, bool bIsHiddenByFilter = false );
39
40 bool IsDate() const { return mbIsDate;}
41 bool IsHiddenByFilter() const { return mbIsHiddenByFilter;}
42 const OUString& GetString() const { return maStrValue;}
44 double GetValue() const { return mfValue; }
45 double GetRoundedValue() const { return mfRoundedValue; }
46
48 {
49 bool operator() (const ScTypedStrData& left, const ScTypedStrData& right) const;
50 };
51
53 {
54 bool operator() (const ScTypedStrData& left, const ScTypedStrData& right) const;
55 };
56
58 {
59 bool operator() (const ScTypedStrData& left, const ScTypedStrData& right) const;
60 };
61
63 {
64 bool operator() (const ScTypedStrData& left, const ScTypedStrData& right) const;
65 };
66
68 {
69 bool operator() (const ScTypedStrData& left, const ScTypedStrData& right) const;
70 };
71
72 bool operator< (const ScTypedStrData& r) const;
73
74private:
75 OUString maStrValue;
76 double mfValue;
77 double mfRoundedValue; // rounded value by format code
81};
82
84{
87public:
88 FindTypedStrData(ScTypedStrData aVal, bool bCaseSens);
89 bool operator() (const ScTypedStrData& r) const;
90};
91
92typedef std::set<ScTypedStrData, ScTypedStrData::LessCaseSensitive> ScTypedCaseStrSet;
93
94/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
FindTypedStrData(ScTypedStrData aVal, bool bCaseSens)
ScTypedStrData maVal
bool operator()(const ScTypedStrData &r) const
double GetRoundedValue() const
bool IsDate() const
double mfRoundedValue
double GetValue() const
OUString maStrValue
bool IsHiddenByFilter() const
StringType meStrType
bool operator<(const ScTypedStrData &r) const
StringType GetStringType() const
const OUString & GetString() const
ScTypedStrData(OUString &&rStr, double fVal=0.0, double fRVal=0.0, StringType nType=Standard, bool bDate=false, bool bIsHiddenByFilter=false)
OString right
QPRO_FUNC_TYPE nType
Definition: qproform.cxx:398
bool operator()(const ScTypedStrData &left, const ScTypedStrData &right) const
bool operator()(const ScTypedStrData &left, const ScTypedStrData &right) const
bool operator()(const ScTypedStrData &left, const ScTypedStrData &right) const
bool operator()(const ScTypedStrData &left, const ScTypedStrData &right) const
bool operator()(const ScTypedStrData &left, const ScTypedStrData &right) const
std::set< ScTypedStrData, ScTypedStrData::LessCaseSensitive > ScTypedCaseStrSet
sal_uInt64 left