/************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite * * This file is part of OpenOffice.org. * * OpenOffice.org is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License version 3 * only, as published by the Free Software Foundation. * * OpenOffice.org is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License version 3 for more details * (a copy is included in the LICENSE file that accompanied this code). * * You should have received a copy of the GNU Lesser General Public License * version 3 along with OpenOffice.org. If not, see * * for a copy of the LGPLv3 License. * ************************************************************************/ #ifndef SW_UNDO_FIELD_HXX #define SW_UNDO_FIELD_HXX #include #include class SwDoc; class SwField; class SwMsgPoolItem; class SwUndoField : public SwUndo { sal_uLong nNodeIndex; xub_StrLen nOffset; protected: SwDoc * pDoc; SwPosition GetPosition(); public: SwUndoField(const SwPosition & rPos, SwUndoId nId = UNDO_FIELD ); virtual ~SwUndoField(); }; class SwUndoFieldFromDoc : public SwUndoField { SwField * pOldField, * pNewField; SwMsgPoolItem * pHnt; sal_Bool bUpdate; void DoImpl(); public: SwUndoFieldFromDoc(const SwPosition & rPos, const SwField & aOldField, const SwField & aNewField, SwMsgPoolItem * pHnt, sal_Bool bUpdate, SwUndoId nId = UNDO_FIELD ); virtual ~SwUndoFieldFromDoc(); virtual void UndoImpl( ::sw::UndoRedoContext & ); virtual void RedoImpl( ::sw::UndoRedoContext & ); virtual void RepeatImpl( ::sw::RepeatContext & ); }; class SwUndoFieldFromAPI : public SwUndoField { com::sun::star::uno::Any aOldVal, aNewVal; sal_uInt16 nWhich; void DoImpl(); public: SwUndoFieldFromAPI(const SwPosition & rPos, const com::sun::star::uno::Any & rOldVal, const com::sun::star::uno::Any & rNewVal, sal_uInt16 nWhich); virtual ~SwUndoFieldFromAPI(); virtual void UndoImpl( ::sw::UndoRedoContext & ); virtual void RedoImpl( ::sw::UndoRedoContext & ); virtual void RepeatImpl( ::sw::RepeatContext & ); }; #endif // SW_UNDO_FIELD_HXX lue='distro/collabora/co-24.04.5'>distro/collabora/co-24.04.5 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2019-10-29tdf#42949 Fix IWYU warnings in ucb/*/*cxxGabor Kelemen
2019-10-01tdf#42949 Fix IWYU warnings in ucb/source/*/*hxxGabor Kelemen
2019-09-26add property name when throwing css::uno::UnknownPropertyExceptionNoel Grandin
2019-06-25improve loplugin:simplifyconstructNoel Grandin
2019-05-02Use hasElements to check Sequence emptiness in [t-u]*Arkadiy Illarionov
2018-11-06convert some macros to local functionsNoel Grandin
2018-09-13tdf#42949 Fix IWYU warnings in include/ucbhelper/*Gabor Kelemen
2018-09-12loplugin:simplifyconstruct in toolkit..ucbNoel Grandin
2018-01-25loplugin:useuniqueptr in ContentResultSetWrapperNoel Grandin
2017-12-06loplugin:salcall handle virtual methodsNoel Grandin
2017-12-05loplugin:salcall fix non-virtual methodsNoel Grandin
2017-10-23loplugin:includeform: ucbStephan Bergmann
2017-09-04loplugin:unnecessaryparen include c++ castsNoel Grandin
2017-01-26Remove dynamic exception specificationsStephan Bergmann
2017-01-18use rtl::Reference in ContentResultSetWrapperNoel Grandin
2017-01-09ucb: ReacquireableGuard::reacquire() is a no-opMichael Stahl
2016-07-07loplugin:passstuffbyref also for {css::uno,rtl}::ReferenceStephan Bergmann
2016-04-20loplugin:salbool: Automatic rewrite of sal_False/TrueStephan Bergmann
2016-02-09Remove excess newlinesChris Sherlock
2016-01-25InterfaceContainer2 with vector instead of SequenceNoel Grandin
2016-01-13loplugin:unusedmethods unused return value in ucb/Noel Grandin
2015-11-10loplugin:nullptr (automatic rewrite)Stephan Bergmann
2015-11-09com::sun::star->css in tools/ and ucb/Noel Grandin
2015-11-05use uno::Reference::set method instead of assignmentNoel Grandin
2015-05-21tdf#91054: cleanup weirdo function prototypesJens Carl
2014-04-30ucb: sal_Bool->boolNoel Grandin
2014-03-05kill QUERYINTERFACE_IMPL_START/ENDNorbert Thiebaud
2014-03-05de-macroize QUERYINTERFACE_IMPL_START QUERYINTERFACE_IMPL_ENDNorbert Thiebaud
2014-03-05de-macroize XINTERFACE_COMMON_IMPLNorbert Thiebaud
2014-02-26cppuhelper: retrofit std::exception into overriding exception specsStephan Bergmann
2014-02-26Remove visual noise from ucbAlexander Wilms
2014-02-23Remove unneccessary commentsAlexander Wilms