/* -*- 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_SVX_SXMUITM_HXX #define INCLUDED_SVX_SXMUITM_HXX #include #include #include #include // specification of the unit if measurement. The numerical quantity value is converted in this unity. // (based on the facts of the MapUnit of the model). This unity is displayed if necessary. class SVXCORE_DLLPUBLIC SdrMeasureUnitItem: public SfxEnumItem { public: SdrMeasureUnitItem(FieldUnit eUnit=FieldUnit::NONE): SfxEnumItem(SDRATTR_MEASUREUNIT, eUnit) {} virtual SdrMeasureUnitItem* Clone(SfxItemPool* pPool=nullptr) const override; virtual sal_uInt16 GetValueCount() const override; // { return 14; } virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override; virtual bool PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) override; static OUString GetValueTextByPos(sal_uInt16 nPos); virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString& rText, const IntlWrapper&) const override; }; #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ lue='distro/collabora/cd-5.3'>distro/collabora/cd-5.3 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2019-11-08sw: no reason why SwModelTestBase can be used only by "extras" testsMiklos Vajna
2019-10-04use the common system PCH header in sw/Luboš Luňák
2019-03-08sw: replace long lists of components with services.rdbMichael Stahl
2019-01-24Clean up dead uses of DISABLE_ATLStephan Bergmann
2018-10-01Change all font-based tests to depend on ooo_fontsJan-Marek Glogowski
2018-05-31SwModule is a convenient (?) place for passing events to Automation clientsTor Lillqvist
2018-03-11Move (and rename) graphic stuff from svtools to vclTomaž Vajngerl
2017-07-18No reason to silently misbehave when these UNO services are missingStephan Bergmann
2017-04-21gbuild: Remove MSVC 2013 legacy codeDavid Ostrovsky
2016-07-27add uui component to some other placesCaolán McNamara
2016-06-09tdf#94698 cleanup Makefiles. Get rid of udkapi and offapiGleb Mishchenko
2015-12-10DOC export: write smart tag locations to table streamMiklos Vajna
2015-10-13tdf#94386: Unit test stub - emulates the steps to trigger the bug.Jan Holesovsky
2015-02-27gbuild: CppunitTest: always use unittest configurationMichael Stahl
2014-06-04DeInitVCL at end of testsStephan Bergmann
2014-05-01Simplify type detectorsMaxim Monastirsky
2013-10-18fdo#60698: Move fileaccess module to ucbMarcos Paulo de Souza
2013-10-01gbuild: use .xcd configuration files from instdirMatúš Kukan
2013-09-01Make it possible to build without ATLNiklas Johansson
2013-04-22Move to MPLv2 license headers, with ESC decision and author's permission.Michael Meeks
2013-03-18let toplevel 'make -sr CppunitTest_sw_ooxmlexport' (and friends) work againMiklos Vajna
2013-03-18sw: rename odf/ooxml/rtf/ww8 filter testsMiklos Vajna