/* -*- 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 SVX_DLLPUBLIC SdrMeasureUnitItem: public SfxEnumItem { public: TYPEINFO_OVERRIDE(); SdrMeasureUnitItem(FieldUnit eUnit=FUNIT_NONE): SfxEnumItem(SDRATTR_MEASUREUNIT,sal::static_int_cast< sal_uInt16 >(eUnit)) {} SdrMeasureUnitItem(SvStream& rIn) : SfxEnumItem(SDRATTR_MEASUREUNIT,rIn) {} virtual SfxPoolItem* Clone(SfxItemPool* pPool=NULL) const SAL_OVERRIDE; virtual SfxPoolItem* Create(SvStream& rIn, sal_uInt16 nVer) const SAL_OVERRIDE; virtual sal_uInt16 GetValueCount() const SAL_OVERRIDE; // { return 14; } FieldUnit GetValue() const { return (FieldUnit)SfxEnumItem::GetValue(); } virtual bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const SAL_OVERRIDE; virtual bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) SAL_OVERRIDE; virtual OUString GetValueTextByPos(sal_uInt16 nPos) const SAL_OVERRIDE; virtual bool GetPresentation(SfxItemPresentation ePres, SfxMapUnit eCoreMetric, SfxMapUnit ePresMetric, OUString& rText, const IntlWrapper * = 0) const SAL_OVERRIDE; }; #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ bora/co-2021 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2013-11-17bugs.freedesktop.org -> bugs.libreoffice.orgAndras Timar
2013-06-27Seems people prefer enumerations in the wiki for bugs.Thorsten Behrens
2013-03-06lo-commit-stat: new --bugs-changelog optionPetr Mladek
2012-11-29lo-commit-stat: allow to filer cherry-picked commitsPetr Mladek
2012-11-20lo-commit-stat: allow to generate more logs at oncePetr Mladek
2012-11-19lo-commit-stat: make it working with git submodulesPetr Mladek
2012-11-09binfilter.die.die.dieNorbert Thiebaud
2012-07-12Make commit stat script recognize opensuse fate entries, tooThorsten Behrens
2012-06-25Slightly more robust removal of bug title prefix.Thorsten Behrens
2012-06-13lo-commit-stat: really print the piece title into the log filePetr Mladek
2012-06-13No need for fancy string formatting, use plain printThorsten Behrens
2012-06-12lo-commit-stat: avoid problems whit '%' in the commit messagePetr Mladek
2012-06-12Optionally output wiki-markup from lo-commit-statThorsten Behrens
2012-06-01lo-commit-stat: better formatting for bug fix commitsKorrawit Pruegsanusak
2012-06-01lo-commit-stat: we don't have 'bootstrap' repo anymoreKorrawit Pruegsanusak
2012-06-01lo-commit-stat: lowercase first char if the word contains only lowercase charsKorrawit Pruegsanusak
2012-06-01lo-commit-stat: bug ID should have >= 4 digitsKorrawit Pruegsanusak
2012-05-21lo-commit-stat: use utf8 to be able to query a dash in the bug titleIvan Timofeev
2012-05-18lo-commit-stat: problem with wide character in bug titlePetr Mladek
2012-05-18lo-commit-stat: remove flags and print_filtersIvan Timofeev
2012-05-18lo-commit-stat: use bug titles instead of commit messages if possibleIvan Timofeev
2011-08-15lo-commit-stat: update list of available repositoriesPetr Mladek
2011-05-31Merge branch 'master' of git://anongit.freedesktop.org/libreoffice/bootstrapJan Holesovsky
2011-05-31Merge commit 'libreoffice-3.4.0.2'Jan Holesovsky
2011-05-30lo-commit-stat: add --log-dir optionPetr Mladek
2011-04-28lo-commit-stat: new --bug-numbers option to print just bug numbersPetr Mladek
2011-04-28lo-commit-stat: new --bug-numbers option to print just bug numbersPetr Mladek
2011-04-26fix typos in messagesAndras Timar
2011-04-26lo-commit-stat: add --rev-list optionPetr Mladek
2011-04-26lo-commit-stat: allow to list commits between branchesPetr Mladek
2011-04-26lo-commit-stat: detect mismatch of branches between reposPetr Mladek
2011-04-26lo-commit-stat: detect mismatch of branches between reposPetr Mladek
2011-04-19fix typos in messagesAndras Timar
2011-04-13lo-commit-stat: add --rev-list optionPetr Mladek
2011-04-11lo-commit-stat: allow to list commits between branchesPetr Mladek
2011-04-04lo-commit-stat: do stat also from the new "translations" repoPetr Mladek
2011-04-04lo-commit-stat: do stat also from the new "translations" repoPetr Mladek
2011-03-28lo-commit-stat: print summary into log a filePetr Mladek
2011-03-01lo-commit-stat: replace "n#" with "bnc#"Petr Mladek
2011-02-14lo-commit-stat: new --bugs option to print just commits with bugsPetr Mladek
2011-02-09lo-commit-stat: sort modules alphabeticalyPetr Mladek
2011-02-09lo-commit-stat: fix bug detectionPetr Mladek
2011-02-02lo-commit-stat: really print the found bug numbersPetr Mladek
2011-01-31lo-commit-stat: new script for analyzing commit logsPetr Mladek