/* -*- 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_SVL_RNGITEM_HXX #define INCLUDED_SVL_RNGITEM_HXX #include #include class SvStream; class SVL_DLLPUBLIC SfxRangeItem : public SfxPoolItem { private: sal_uInt16 nFrom; sal_uInt16 nTo; public: TYPEINFO_OVERRIDE(); SfxRangeItem(); SfxRangeItem( sal_uInt16 nWID, sal_uInt16 nFrom, sal_uInt16 nTo ); SfxRangeItem( const SfxRangeItem& rItem ); virtual bool operator==( const SfxPoolItem& ) const SAL_OVERRIDE; virtual bool GetPresentation( SfxItemPresentation ePres, SfxMapUnit eCoreMetric, SfxMapUnit ePresMetric, OUString &rText, const IntlWrapper * = 0 ) const SAL_OVERRIDE; virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const SAL_OVERRIDE; inline sal_uInt16& From() { return nFrom; } virtual SfxPoolItem* Create( SvStream &, sal_uInt16 nVersion ) const SAL_OVERRIDE; virtual SvStream& Store( SvStream &, sal_uInt16 nItemVersion ) const SAL_OVERRIDE; }; class SVL_DLLPUBLIC SfxUShortRangesItem : public SfxPoolItem { private: sal_uInt16* _pRanges; public: TYPEINFO_OVERRIDE(); SfxUShortRangesItem(); SfxUShortRangesItem( sal_uInt16 nWID, SvStream &rStream ); SfxUShortRangesItem( const SfxUShortRangesItem& rItem ); virtual ~SfxUShortRangesItem(); virtual bool operator==( const SfxPoolItem& ) const SAL_OVERRIDE; virtual bool GetPresentation( SfxItemPresentation ePres, SfxMapUnit eCoreMetric, SfxMapUnit ePresMetric, OUString &rText, const IntlWrapper * = 0 ) const SAL_OVERRIDE; virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const SAL_OVERRIDE; virtual SfxPoolItem* Create( SvStream &, sal_uInt16 nVersion ) const SAL_OVERRIDE; virtual SvStream& Store( SvStream &, sal_uInt16 nItemVersion ) const SAL_OVERRIDE; }; #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ a/co-24.04.8 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2020-09-29Fix typo in codeAndrea Gelmini
2019-08-19Fix typosAndrea Gelmini
2019-08-19Fix typosAndrea Gelmini
2019-07-23Fix typosAndrea Gelmini
2018-11-18fix off by one errorMarkus Mohrhard
2017-09-13onlineupdate: work around GCC7 -Werror=implicit-fallthroughMichael Stahl
2017-07-31updater: get the signature verification working on WindowsMarkus Mohrhard
2017-07-28updater: remove unnecessary mozilla makefileMarkus Mohrhard
2017-05-19Wdeclaration-after-statementMarkus Mohrhard
2017-05-19use a more libreoffice like formattingMarkus Mohrhard
2017-05-19fix more platform define checksMarkus Mohrhard
2017-05-19disable warning 4204Markus Mohrhard
2017-05-19store the correct version string in the updater and the mar executableMarkus Mohrhard
2017-05-19add a way to create mar file from fileMarkus Mohrhard
2017-05-19fix unitialized memoryMarkus Mohrhard
2017-05-19temp windows fixesMarkus Mohrhard
2017-03-25Fix typosAndrea Gelmini
2016-07-13Remove __cplusplus-checks from apparently-C++-only filesStephan Bergmann
2016-06-13tdf#98602 Duplicate code in onlineupdate/Ras-al-Ghul
2016-04-30Fix typosAndrea Gelmini
2016-02-17use consistent #define checks for the Windows platformNoel Grandin
2016-02-16use consistent #define checks for the Windows platformNoel Grandin
2016-02-05Fix typosAndrea Gelmini
2016-01-10Fix typosAndrea Gelmini
2015-11-04onlineupdate: -Werror=unused-but-set-variableMichael Stahl
2015-11-04onlineupdate: -Werror=unused-variableMichael Stahl
2015-10-12cppcheck:variableScopeNoel Grandin
2015-09-30Fix typosAndrea Gelmini
2015-08-12Add the needed #ifndef instead of removing the variable.Jan Holesovsky
2015-08-10cppcheck: arrayIndexThenCheckCaolán McNamara
2015-08-10cppcheck: unusedVariableCaolán McNamara
2015-07-22online update: Fix many warnings.Jan Holesovsky
2015-07-22online update tdf#68274: fix --enable-online-update=mar on WindowsNathan Yee
2015-07-03online update: Remove unneeded files.Nathan Yee
2015-06-29online update: Add mar executable build supportNathan Yee
2015-06-29online update: MAR-based online update - initial import from Mozilla.Jan Holesovsky