/* -*- 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_POSTATTR_HXX #define INCLUDED_SVX_POSTATTR_HXX #include #include // class SvxPostItAuthorItem --------------------------------------------- /* The author shorthand symbol of a note */ class SVX_DLLPUBLIC SvxPostItAuthorItem: public SfxStringItem { public: static SfxPoolItem* CreateDefault(); SvxPostItAuthorItem( sal_uInt16 nWhich ); SvxPostItAuthorItem( const OUString& rAuthor, sal_uInt16 nWhich ); virtual bool GetPresentation( SfxItemPresentation ePres, SfxMapUnit eCoreMetric, SfxMapUnit ePresMetric, OUString &rText, const IntlWrapper * = nullptr ) const override; virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override; inline SvxPostItAuthorItem& operator=( const SvxPostItAuthorItem& rAuthor ) { SetValue( rAuthor.GetValue() ); return *this; } }; // class SvxPostItDateItem ----------------------------------------------- /* The date of a note */ class SVX_DLLPUBLIC SvxPostItDateItem: public SfxStringItem { public: static SfxPoolItem* CreateDefault(); SvxPostItDateItem( sal_uInt16 nWhich ); SvxPostItDateItem( const OUString& rDate, sal_uInt16 nWhich ); virtual bool GetPresentation( SfxItemPresentation ePres, SfxMapUnit eCoreMetric, SfxMapUnit ePresMetric, OUString &rText, const IntlWrapper * = nullptr ) const override; virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override; inline SvxPostItDateItem& operator=( const SvxPostItDateItem& rDate ) { SetValue( rDate.GetValue() ); return *this; } }; // class SvxPostItTextItem ----------------------------------------------- /* The text of a note */ class SVX_DLLPUBLIC SvxPostItTextItem: public SfxStringItem { public: static SfxPoolItem* CreateDefault(); SvxPostItTextItem( sal_uInt16 nWhich ); SvxPostItTextItem( const OUString& rText, sal_uInt16 nWhich ); // "pure virtual methods" from SfxPoolItem virtual bool GetPresentation( SfxItemPresentation ePres, SfxMapUnit eCoreMetric, SfxMapUnit ePresMetric, OUString &rText, const IntlWrapper * = nullptr ) const override; virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override; inline SvxPostItTextItem& operator=( const SvxPostItTextItem& rText ) { SetValue( rText.GetValue() ); return *this; } }; #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ value='distro/collabora/cp-6.0-29'>distro/collabora/cp-6.0-29 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2013-03-08Make use of new-style AccessBridge ctorStephan Bergmann
2013-03-06Translate German comments to English in svmain.cxxChris
2013-03-03Related to fdo#60724: correct spellingThomas Arnhold
2013-02-26embed also system fonts when embedding fonts in a documentLuboš Luňák
2013-02-25Remove unnecessary commented code that appears to do nothing whatsoever.Chris
2013-02-22drop someones stray debugging fprintfsCaolán McNamara
2013-02-21Revert "embed also system fonts when embedding fonts in a document"David Ostrovsky
2013-02-21android: finally starting and rendering at least something again.Michael Meeks
2013-02-21embed also system fonts when embedding fonts in a documentLuboš Luňák
2013-01-30Remove unused DeInitSalMainStephan Bergmann
2012-12-21fdo#46808, Convert frame::Desktop to new style service.Noel Grandin
2012-11-06re-base on ALv2 code. Includes (at least) relevant parts of:Michael Meeks
2012-10-31Get rid of vcl::unohelper::GetMultiServiceFactoryStephan Bergmann
2012-09-18Make getProcessComponentContext/ServiceFactory throw instead of returning nullStephan Bergmann
2012-09-07move temporary font cleaning to a place that is run on all platformsLuboš Luňák
2012-08-08mpPostYieldListeners dtor never calledCaolán McNamara
2012-07-02translated german commentsLuc Castermans
2012-06-27Remove commented out code (includes)Thomas Arnhold
2012-04-06Replaced equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) with == operatorSzabolcs Dezsi
2012-03-22Add a wrapper for InitVCL(), to be called from Java on AndroidTor Lillqvist
2012-02-15Revert temporary and not properly ifdeffed Android stuffTor Lillqvist
2012-01-28android: unwind horrific event dispatching bug causing all the grief.Michael Meeks
2011-12-16Properly join spawned GrammarCheckingIterator thread.Stephan Bergmann