20#include <com/sun/star/uno/Sequence.hxx>
22#include <unitconv.hxx>
33 std::u16string_view rFromUnit, std::u16string_view rToUnit,
double fValue ) :
34 maIndexString(BuildIndexString(rFromUnit, rToUnit)),
38 std::u16string_view rFromUnit, std::u16string_view rToUnit )
40 return rFromUnit + OUStringChar(
cDelim) + rToUnit;
64 OUString* pValNameArray = aValNames.getArray();
65 const OUString sSlash(
'/');
68 for (
const OUString& rNode : aNodeNames)
70 OUString
sPrefix = rNode + sSlash;
79 if (
aProperties.getLength() != aValNames.getLength())
91 pProperties[
nIndex++] >>= sFromUnit;
92 pProperties[
nIndex++] >>= sToUnit;
93 pProperties[
nIndex++] >>= fFactor;
104 double& fValue, std::u16string_view rFromUnit, std::u16string_view rToUnit )
const
114 fValue = it->second.GetValue();
PropertiesInfo aProperties
css::uno::Sequence< css::uno::Any > GetProperties(const css::uno::Sequence< OUString > &rNames)
ScUnitConverterData(std::u16string_view rFromUnit, std::u16string_view rToUnit, double fValue)
static OUString BuildIndexString(std::u16string_view rFromUnit, std::u16string_view rToUnit)
const OUString & GetIndexString() const
bool GetValue(double &fValue, std::u16string_view rFromUnit, std::u16string_view rToUnit) const
static css::uno::Sequence< OUString > GetNodeNames(css::uno::Reference< css::container::XHierarchicalNameAccess > const &xHierarchyAccess, const OUString &rNode, ConfigNameFormat eFormat)
std::deque< AttacherIndex_Impl > aIndex
constexpr OUStringLiteral CFGSTR_UNIT_FACTOR
constexpr OUStringLiteral CFGSTR_UNIT_FROM
constexpr OUStringLiteral CFGPATH_UNIT
constexpr OUStringLiteral CFGSTR_UNIT_TO