/* -*- 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_EDITENG_UDLNITEM_HXX #define INCLUDED_EDITENG_UDLNITEM_HXX #include #include #include #include class SvXMLUnitConverter; // class SvxTextLineItem ------------------------------------------------ /* Value container for underline and overline font effects */ class EDITENG_DLLPUBLIC SvxTextLineItem : public SfxEnumItem { Color mColor; public: SvxTextLineItem( const FontLineStyle eSt, const sal_uInt16 nId ); // "pure virtual Methods" from SfxPoolItem virtual bool GetPresentation( SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper& ) const override; virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override; virtual SfxPoolItem* Create(SvStream &, sal_uInt16) const override; virtual SvStream& Store(SvStream &, sal_uInt16 nItemVersion) const override; virtual OUString GetValueTextByPos( sal_uInt16 nPos ) const; virtual sal_uInt16 GetValueCount() const override; 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; using SfxEnumItem::SetValue; virtual bool HasBoolValue() const override; virtual bool GetBoolValue() const override; virtual void SetBoolValue( bool bVal ) override; virtual bool operator==( const SfxPoolItem& ) const override; SvxTextLineItem& operator=(const SvxTextLineItem& rTextLine) { SetValue( rTextLine.GetValue() ); SetColor( rTextLine.GetColor() ); return *this; } SvxTextLineItem(SvxTextLineItem const &) = default; // SfxPoolItem copy function dichotomy // enum cast FontLineStyle GetLineStyle() const { return GetValue(); } void SetLineStyle( FontLineStyle eNew ) { SetValue(eNew); } const Color& GetColor() const { return mColor; } void SetColor( const Color& rCol ) { mColor = rCol; } }; // class SvxUnderlineItem ------------------------------------------------ /* Value container for underline font effects */ class EDITENG_DLLPUBLIC SvxUnderlineItem : public SvxTextLineItem { public: static SfxPoolItem* CreateDefault(); SvxUnderlineItem( const FontLineStyle eSt, const sal_uInt16 nId ); virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override; virtual SfxPoolItem* Create(SvStream &, sal_uInt16) const override; virtual OUString GetValueTextByPos( sal_uInt16 nPos ) const override; }; // class SvxOverlineItem ------------------------------------------------ /* Value container for overline font effects */ class EDITENG_DLLPUBLIC SvxOverlineItem : public SvxTextLineItem { public: static SfxPoolItem* CreateDefault(); SvxOverlineItem( const FontLineStyle eSt, const sal_uInt16 nId ); virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override; virtual SfxPoolItem* Create(SvStream &, sal_uInt16) const override; virtual OUString GetValueTextByPos( sal_uInt16 nPos ) const override; }; #endif // INCLUDED_EDITENG_UDLNITEM_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ ion value='distro/collabora/lov-5.1'>distro/collabora/lov-5.1 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2024-04-15Adapt flatpak build to upstream changesStephan Bergmann
2024-01-16Flatpak: Work around patched libpng in org.freedesktop.SdkStephan Bergmann
2024-01-12Adapt Flatpak build to new external/argon2co-24.04-branch-pointStephan Bergmann
2023-11-25Update solenv/flatpak-manifest.inStephan Bergmann
2023-09-01distro-configs: Switch from JDK 11 to 17Michael Weghorn
2023-07-10Flatpak build needs external/frozenStephan Bergmann
2023-03-01Re-enable Skia in Flatpak buildsStephan Bergmann
2022-08-17tdf#150452: Revert "tdf#130795 use concurrent hashmap in SharedStringPool"Xisco Fauli
2022-05-18Adapt flatpak build to recently introduced dependenciesStephan Bergmann
2021-12-15ucb: remove --with-webdav=neonMichael Stahl
2021-11-26Adapt distro-configs/LibreOfficeFlatpak.confStephan Bergmann
2021-11-26--without-system-cuckoo missing in distro-configs/LibreOfficeFlatpak.confStephan Bergmann
2021-09-06Flatpak: Upgrade to 21.08 runtime, disable SkiaStephan Bergmann
2021-05-19Adapt Flatpak build to switch from qrcodegen to zxingStephan Bergmann
2021-04-11Get rid of apache-commons-loggingStephan Bergmann
2020-07-01Adapt Flatpak build to new Box2D external requirementStephan Bergmann
2019-09-30drop gtk2 supportCaolán McNamara
2019-09-11Adapt solenv/flatpak-manifest.in to "bundle external: qrcodegen"Stephan Bergmann
2019-01-28aarch64 and arm need libatomic_opsStephan Bergmann
2019-01-03Update Flatpak to OpenJDK11Stephan Bergmann
2018-12-20Enable --help=html for flatpakStephan Bergmann
2018-12-11mythes is included in org.freedesktop.Sdk//18.08Stephan Bergmann
2018-09-03Adapt solenv/flatpak-manifest.in to recent changesStephan Bergmann
2018-06-25Just use --with-extra-buildid=FlatpakStephan Bergmann
2018-06-08solenv/flatpak-manifest.in: Properly disable debug informationStephan Bergmann
2018-06-07Update Flatpak to OpenJDK10Stephan Bergmann
2018-05-15Adapt solenv/flatpak-manifest.in to recent download.lst changesStephan Bergmann
2018-04-09Merge in Flatpak improvementsStephan Bergmann
2018-03-15--without-lxml for Flatpak buildsStephan Bergmann
2018-01-08Let flatpak-builder build .Debug extensionStephan Bergmann
2018-01-03Add JVM support to FlatpakStephan Bergmann
2017-10-30related: tdf#103884 remove gltf/collada featureThorsten Behrens
2017-09-07No libqxp in org.gnome.Sdk//3.24Stephan Bergmann
2017-08-18No libepubgen in org.gnome.Sdk//3.24Stephan Bergmann
2017-06-28No suitable xmlsec found in org.gnome.Sdk//3.24Stephan Bergmann
2017-04-10No gpgmepp in org.gnome.Sdk//3.20Stephan Bergmann
2017-02-02Adapt LibreOfficeFlatpak.conf to newly added dependenciesStephan Bergmann
2016-12-13change from glew to epoxyCaolán McNamara
2016-05-11xdg-app got renamed to FlatpakStephan Bergmann