/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * This file incorporates work covered by the following license notice: * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed * with this work for additional information regarding copyright * ownership. The ASF licenses this file to you under the Apache * License, Version 2.0 (the "License"); you may not use this file * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ #ifndef INCLUDED_SC_INC_UNITCONV_HXX #define INCLUDED_SC_INC_UNITCONV_HXX #include class ScUnitConverterData { OUString maIndexString; double mfValue; ScUnitConverterData& operator=( const ScUnitConverterData& ) = delete; public: ScUnitConverterData( const OUString& rFromUnit, const OUString& rToUnit, double fValue ); ScUnitConverterData( const ScUnitConverterData& ); ~ScUnitConverterData(); double GetValue() const { return mfValue;} const OUString& GetIndexString() const { return maIndexString;} static OUString BuildIndexString( const OUString& rFromUnit, const OUString& rToUnit ); }; class ScUnitConverter { typedef std::map MapType; MapType maData; public: ScUnitConverter(); ScUnitConverter(const ScUnitConverter&) = delete; const ScUnitConverter& operator=(const ScUnitConverter&) = delete; ~ScUnitConverter(); bool GetValue( double& fValue, const OUString& rFromUnit, const OUString& rToUnit ) const; }; #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ bora/cp-4.4'>distro/collabora/cp-4.4 LibreOffice 界面翻译代码仓库文档基金会
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2018-10-27 14:57:24 +0200
committerChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2018-10-27 15:03:54 +0200
commitf14221545cf5a1be2c6f74915bcaff29db79a85d (patch)
tree450741e0ef12c6049cf36f6153d0503e829dd238
parent7ecee4ec3b466784f25e0a84cbb90a5ab992528e (diff)
update translations for master libreoffice-6-2-branch-point
and force-fix errors using pocheck Change-Id: Ib2c4218faaa153151595024d052cc93d32037d4b