/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: IDocumentFieldsAccess.hxx,v $ * * $Revision: 1.4 $ * * last change: $Author: obo $ $Date: 2006-10-11 08:42:48 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. * * * GNU Lesser General Public License Version 2.1 * ============================================= * Copyright 2005 by Sun Microsystems, Inc. * 901 San Antonio Road, Palo Alto, CA 94303, USA * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License version 2.1, as published by the Free Software Foundation. * * This library 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 for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, * MA 02111-1307 USA * ************************************************************************/ #ifndef IDOCUMENTFIELDSACCESS_HXX_INCLUDED #define IDOCUMENTFIELDSACCESS_HXX_INCLUDED #ifndef _SAL_TYPES_H_ #include #endif #ifndef _SOLAR_H #include #endif class SwFldTypes; class SwFieldType; class SfxPoolItem; struct SwPosition; class SwDocUpdtFld; class SwCalc; class SwTxtFld; class SwField; class SwMsgPoolItem; class DateTime; class _SetGetExpFld; struct SwHash; class String; class SwNode; namespace com { namespace sun { namespace star { namespace uno { class Any; } } } } /** Document fields related interfaces */ class IDocumentFieldsAccess { public: /** */ virtual const SwFldTypes *GetFldTypes() const = 0; /** */ virtual SwFieldType *InsertFldType(const SwFieldType &) = 0; /** */ virtual SwFieldType *GetSysFldType( const sal_uInt16 eWhich ) const = 0; /** */ virtual SwFieldType* GetFldType(sal_uInt16 nResId, const String& rName, bool bDbFieldMatching) const = 0; /** */ virtual void RemoveFldType(sal_uInt16 nFld) = 0; /** */ virtual void UpdateFlds( SfxPoolItem* pNewHt, bool bCloseDB) = 0; /** */ virtual void InsDeletedFldType(SwFieldType &) = 0; // #111840# /** Puts a value into a field at a certain position. A missing field at the given position leads to a failure. @param rPosition position of the field @param rVal the value @param nMId @retval TRUE putting of value was successful @retval FALSE else */ virtual bool PutValueToField(const SwPosition & rPos, const com::sun::star::uno::Any& rVal, BYTE nMId) = 0; // rufe das Update der Expression Felder auf; alle Ausdruecke werden // neu berechnet. // #111840# /** Updates a field. @param rDstFmtFld field to update @param rSrcFld field containing the new values @param pMsgHnt @param bUpdateTblFlds TRUE: update table fields, too. @retval TRUE update was successful @retval FALSE else */ virtual bool UpdateFld(SwTxtFld * rDstFmtFld, SwField & rSrcFld, SwMsgPoolItem * pMsgHnt, bool bUpdateTblFlds) = 0; /** */ virtual void UpdateRefFlds(SfxPoolItem* pHt) = 0; /** */ virtual void UpdateTblFlds(SfxPoolItem* pHt) = 0; /** */ virtual void UpdateExpFlds(SwTxtFld* pFld, bool bUpdateRefFlds) = 0; /** */ virtual void UpdateUsrFlds() = 0; /** */ virtual void UpdatePageFlds(SfxPoolItem*) = 0; /** */ virtual void LockExpFlds() = 0; /** */ virtual void UnlockExpFlds() = 0; /** */ virtual bool IsExpFldsLocked() const = 0; virtual SwDocUpdtFld& GetUpdtFlds() const = 0; /* @@@MAINTAINABILITY-HORROR@@@ SwNode (see parameter pChk) is (?) part of the private data structure of SwDoc and should not be exposed */ virtual bool SetFieldsDirty(bool b, const SwNode* pChk, ULONG nLen) = 0; /** */ virtual void SetFixFields(bool bOnlyTimeDate, const DateTime* pNewDateTime) = 0; // Setze im Calculator alle SetExpresion Felder, die bis zur // angegebenen Position (Node [ + ::com::sun::star::ucb::Content]) gueltig sind. Es kann // eine erzeugte Liste aller Felder mit uebergegeben werden. // (ist die Adresse != 0, und der Pointer == 0 wird eine neue // Liste returnt.) virtual void FldsToCalc(SwCalc& rCalc, ULONG nLastNd, sal_uInt16 nLastCnt) = 0; /** */ virtual void FldsToCalc(SwCalc& rCalc, const _SetGetExpFld& rToThisFld) = 0; /** */ virtual void FldsToExpand(SwHash**& ppTbl, sal_uInt16& rTblSize, const _SetGetExpFld& rToThisFld) = 0; /** */ virtual bool IsNewFldLst() const = 0; /** */ virtual void SetNewFldLst( bool bFlag) = 0; /** */ virtual void InsDelFldInFldLst(bool bIns, const SwTxtFld& rFld) = 0; protected: virtual ~IDocumentFieldsAccess() {}; }; #endif // IDOCUMENTLINKSADMINISTRATION_HXX_INCLUDED labora/lov-6.0.4 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2024-01-27Drop std::as_const from css::uno::Sequence iterationsMike Kaganski
2023-08-25Revert "use more Reference::query instead of UNO_QUERY_THROW"Noel Grandin
2023-08-18use more Reference::query instead of UNO_QUERY_THROWNoel Grandin
2022-05-04Just use Any ctor instead of makeAny in embedservStephan Bergmann
2021-11-13Use o3tl::convertMike Kaganski
2021-10-30Prepare for removal of non-const operator[] from Sequence in embedservMike Kaganski
2021-06-25-Werror,-Wunused-but-set-variable (clang-cl 13 trunk)Stephan Bergmann
2021-03-09loplugin:refcounting (clang-cl)Stephan Bergmann
2021-01-12Simplify some string constructionStephan Bergmann
2020-10-19clang-cl: Adapt Windows-specific code to extended loplugin:cstylecastStephan Bergmann
2020-08-04loplugin:elidestringvar (clang-cl)Stephan Bergmann
2020-05-20use for-range on Sequence in d*Noel Grandin
2020-03-20-Werror,-Wpointer-to-int-cast (LLVM 10 trunk clang-cl)Stephan Bergmann
2019-11-19loplugin:fakebool (clang-cl)Stephan Bergmann
2019-10-17Remove some memset callsMike Kaganski
2019-10-01loplugin:referencecasting (clang-cl)Stephan Bergmann
2018-10-24remove more rtl::OUString and OString prefixesNoel Grandin
2018-09-24loplugin:external (clang-cl)Stephan Bergmann
2018-09-17loplugin:simplifyconstruct (clang-cl)Stephan Bergmann
2018-02-01embedserv: MSVC: pragma warning: make more specific, remove obsoleteMike Kaganski
2018-01-23More loplugin:cstylecast on WindowsStephan Bergmann
2017-10-27loplugin:includeform: embedserv (Windows)Stephan Bergmann
2017-09-30Use explicit function names for fooA/fooW WinAPI; prefer fooWMike Kaganski
2017-09-22Better not modify const RECTs passed inStephan Bergmann
2017-09-18Some more WIN32_LEAN_AND_MEANMike Kaganski
2017-07-03loplugin:oncevar (clang-cl): embedservStephan Bergmann
2017-06-12cleanup unused css/frame/* includesJochen Nitschke
2017-04-21remove unnecessary explicit linefeeds from end of SAL and OSL log callsNoel Grandin
2017-04-04loplugin:redundantcast (clang-cl)Stephan Bergmann
2017-02-08Add missing #includesStephan Bergmann
2017-02-01loplugin:stringconstantStephan Bergmann
2017-01-26Remove dynamic exception specificationsStephan Bergmann
2017-01-25embedserv/source/embed/xwin.cxx is goneStephan Bergmann
2016-10-16clang-cl loplugin: embedservStephan Bergmann
2016-10-1464-bit Windows fix: InsertMenu takes a UINT_PTRStephan Bergmann
2016-08-25-Werror,-Wnonportable-include-path (clang-cl)Stephan Bergmann