LibreOffice Module sw (master)  1
docufld.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  *
9  * This file incorporates work covered by the following license notice:
10  *
11  * Licensed to the Apache Software Foundation (ASF) under one or more
12  * contributor license agreements. See the NOTICE file distributed
13  * with this work for additional information regarding copyright
14  * ownership. The ASF licenses this file to you under the Apache
15  * License, Version 2.0 (the "License"); you may not use this file
16  * except in compliance with the License. You may obtain a copy of
17  * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18  */
19 #ifndef INCLUDED_SW_INC_DOCUFLD_HXX
20 #define INCLUDED_SW_INC_DOCUFLD_HXX
21 
22 #include <tools/solar.h>
23 #include <tools/date.hxx>
24 #include <tools/datetime.hxx>
25 #include <rtl/ref.hxx>
26 #include <svl/macitem.hxx>
27 
28 #include "fldbas.hxx"
29 
30 class SetGetExpFields;
31 class SwTextField;
32 class SwFrame;
33 class OutlinerParaObject;
34 class SwTextAPIObject;
35 class SwCharFormat;
36 
38 {
42  AF_FIXED = 0x8000
43 };
44 
45 // Subtype of document statistics.
47 {
56 };
57 
58 typedef sal_uInt16 SwDocInfoSubType;
60 {
77 
79  const SwDocInfoSubType DI_SUB_TIME = 0x0200;
80  const SwDocInfoSubType DI_SUB_DATE = 0x0300;
82  const SwDocInfoSubType DI_SUB_MASK = 0xff00;
83 }
84 
86 {
90 };
91 
92 // NOTE: Possibly the first 15 values in the below enum are required
93 // to exactly match the published constants in css::text::UserDataPart
94 // (see offapi/com/sun/star/text/UserDataPart.idl).
95 
97 {
115 };
116 
118 {
124 };
125 
126 class SAL_DLLPUBLIC_RTTI SwPageNumberFieldType : public SwFieldType
127 {
130 
131 public:
133 
134  OUString Expand( SvxNumType nFormat, short nOff, sal_uInt16 const nPageNumber,
135  sal_uInt16 const nMaxPage, const OUString&, LanguageType = LANGUAGE_NONE ) const;
136  void ChangeExpansion( SwDoc* pDoc,
137  bool bVirtPageNum, const SvxNumType* pNumFormat );
138  virtual std::unique_ptr<SwFieldType> Copy() const override;
139 };
140 
141 // Page numbering.
143 {
144  OUString m_sUserStr;
145  sal_uInt16 m_nSubType;
146  short m_nOffset;
147  // fdo#58074 store page number in SwField, not SwFieldType
148  sal_uInt16 m_nPageNumber;
149  sal_uInt16 m_nMaxPage;
150 
151 public:
152  SwPageNumberField(SwPageNumberFieldType*, sal_uInt16 nSub,
153  sal_uInt32 nFormat, short nOff = 0,
154  sal_uInt16 const nPageNumber = 0,
155  sal_uInt16 const nMaxPage = 0);
156 
157  void ChangeExpansion(sal_uInt16 const nPageNumber,
158  sal_uInt16 const nMaxPage);
159 
160  virtual OUString ExpandImpl(SwRootFrame const* pLayout) const override;
161  virtual std::unique_ptr<SwField> Copy() const override;
162 
163  virtual OUString GetPar2() const override;
164  virtual void SetPar2(const OUString& rStr) override;
165 
166  virtual sal_uInt16 GetSubType() const override;
167  virtual bool QueryValue( css::uno::Any& rVal, sal_uInt16 nWhich ) const override;
168  virtual bool PutValue( const css::uno::Any& rVal, sal_uInt16 nWhich ) override;
169 
170  const OUString& GetUserString() const { return m_sUserStr; }
171  void SetUserString( const OUString& rS ) { m_sUserStr = rS; }
172 };
173 
175 {
176 public:
178 
179  static OUString Expand(sal_uLong);
180  virtual std::unique_ptr<SwFieldType> Copy() const override;
181 };
182 
183 class SwAuthorField : public SwField
184 {
185  OUString m_aContent;
186 
187 public:
188  SwAuthorField(SwAuthorFieldType*, sal_uInt32 nFormat);
189 
190  virtual OUString ExpandImpl(SwRootFrame const* pLayout) const override;
191  virtual std::unique_ptr<SwField> Copy() const override;
192 
193  void SetExpansion(const OUString& rStr) { m_aContent = rStr; }
194 
195  virtual bool QueryValue( css::uno::Any& rVal, sal_uInt16 nWhich ) const override;
196  virtual bool PutValue( const css::uno::Any& rVal, sal_uInt16 nWhich ) override;
197 };
198 
199 class SAL_DLLPUBLIC_RTTI SwFileNameFieldType : public SwFieldType
200 {
202 public:
204 
205  OUString Expand(sal_uLong) const;
206  virtual std::unique_ptr<SwFieldType> Copy() const override;
207 };
208 
210 {
211  OUString m_aContent;
212 
213 public:
214  SwFileNameField(SwFileNameFieldType*, sal_uInt32 nFormat);
215 
216  virtual OUString ExpandImpl(SwRootFrame const* pLayout) const override;
217  virtual std::unique_ptr<SwField> Copy() const override;
218 
219  void SetExpansion(const OUString& rStr) { m_aContent = rStr; }
220 
221  virtual bool QueryValue( css::uno::Any& rVal, sal_uInt16 nWhich ) const override;
222  virtual bool PutValue( const css::uno::Any& rVal, sal_uInt16 nWhich ) override;
223 };
224 
225 class SAL_DLLPUBLIC_RTTI SwTemplNameFieldType : public SwFieldType
226 {
228 public:
230 
231  OUString Expand(sal_uLong) const;
232  virtual std::unique_ptr<SwFieldType> Copy() const override;
233 };
234 
236 {
237 public:
238  SwTemplNameField(SwTemplNameFieldType*, sal_uInt32 nFormat);
239 
240  virtual OUString ExpandImpl(SwRootFrame const* pLayout) const override;
241  virtual std::unique_ptr<SwField> Copy() const override;
242  virtual bool QueryValue( css::uno::Any& rVal, sal_uInt16 nWhich ) const override;
243  virtual bool PutValue( const css::uno::Any& rVal, sal_uInt16 nWhich ) override;
244 };
245 
246 // Document statistics
247 class SAL_DLLPUBLIC_RTTI SwDocStatFieldType : public SwFieldType
248 {
251 
252 public:
254  OUString Expand(sal_uInt16 nSubType, SvxNumType nFormat) const;
255  virtual std::unique_ptr<SwFieldType> Copy() const override;
256 
257  void SetNumFormat( SvxNumType eFormat ) { m_nNumberingType = eFormat; }
258 };
259 
261 {
262  sal_uInt16 m_nSubType;
263 
264 public:
266  sal_uInt16 nSubType, sal_uInt32 nFormat);
267 
268  void ChangeExpansion( const SwFrame* pFrame );
269 
270  virtual OUString ExpandImpl(SwRootFrame const* pLayout) const override;
271  virtual std::unique_ptr<SwField> Copy() const override;
272 
273  virtual sal_uInt16 GetSubType() const override;
274  virtual void SetSubType(sal_uInt16 nSub) override;
275  virtual bool QueryValue( css::uno::Any& rVal, sal_uInt16 nWhich ) const override;
276  virtual bool PutValue( const css::uno::Any& rVal, sal_uInt16 nWhich ) override;
277 };
278 
279 class SAL_DLLPUBLIC_RTTI SwHiddenTextFieldType : public SwFieldType
280 {
281  bool m_bHidden;
282 public:
283  SwHiddenTextFieldType(bool bSetHidden = true);
284 
285  virtual std::unique_ptr<SwFieldType> Copy() const override;
286 
287  void SetHiddenFlag( bool bSetHidden );
288  bool GetHiddenFlag() const { return m_bHidden; }
289 };
290 
292 {
293  OUString m_aTRUEText;
294  OUString m_aFALSEText;
295  OUString m_aContent;
296 
297  OUString m_aCond;
298  sal_uInt16 m_nSubType;
299 
300  bool m_bCanToggle : 1;
301  bool m_bIsHidden : 1;
302  bool m_bValid : 1;
303 
304  virtual OUString ExpandImpl(SwRootFrame const* pLayout) const override;
305  virtual std::unique_ptr<SwField> Copy() const override;
306 
307 public:
309  bool bConditional,
310  const OUString& rCond,
311  const OUString& rText,
312  bool bHidden,
313  sal_uInt16 nSubType = TYP_HIDDENTXTFLD);
314 
316  const OUString& rCond,
317  const OUString& rTrue,
318  const OUString& rFalse,
319  sal_uInt16 nSubType = TYP_HIDDENTXTFLD);
320 
321  virtual OUString GetFieldName() const override;
322 
323  void Evaluate(SwDoc*);
324 
325  void SetValue(bool bHidden) { m_bIsHidden = bHidden; }
326  static OUString GetColumnName(const OUString& rName);
327  static OUString GetDBName(const OUString& rName, SwDoc *pDoc);
328 
330  virtual void SetPar1(const OUString& rStr) override;
331  virtual OUString GetPar1() const override;
332 
334  virtual void SetPar2(const OUString& rStr) override;
335  virtual OUString GetPar2() const override;
336 
337  virtual sal_uInt16 GetSubType() const override;
338 
339  virtual bool QueryValue( css::uno::Any& rVal, sal_uInt16 nWhich ) const override;
340  virtual bool PutValue( const css::uno::Any& rVal, sal_uInt16 nWhich ) override;
341 
342  static void ParseIfFieldDefinition(const OUString& aFieldDefinition,
343  OUString& rCondition,
344  OUString& rTrue,
345  OUString& rFalse);
346 };
347 
348 // Field that expands to an empty line (without height).
350 {
351 public:
353 
354  virtual std::unique_ptr<SwFieldType> Copy() const override;
355 };
356 
358 {
359  OUString m_aCond;
361 public:
363  SwHiddenParaField(SwHiddenParaFieldType*, const OUString& rCond);
364 
365  virtual OUString ExpandImpl(SwRootFrame const* pLayout) const override;
366  virtual std::unique_ptr<SwField> Copy() const override;
367 
368  void SetHidden(bool bHidden) { m_bIsHidden = bHidden; }
369  bool IsHidden() const { return m_bIsHidden; }
370 
372  virtual OUString GetPar1() const override;
373  virtual void SetPar1(const OUString& rStr) override;
374  virtual bool QueryValue( css::uno::Any& rVal, sal_uInt16 nWhich ) const override;
375  virtual bool PutValue( const css::uno::Any& rVal, sal_uInt16 nWhich ) override;
376 };
377 
378 class SAL_DLLPUBLIC_RTTI SwMacroFieldType : public SwFieldType
379 {
380  SwDoc* const m_pDoc;
381 
382 public:
384 
385  virtual std::unique_ptr<SwFieldType> Copy() const override;
386 };
387 
389 {
390  OUString m_aMacro;
391  OUString m_aText;
393 
394  virtual OUString ExpandImpl(SwRootFrame const* pLayout) const override;
395  virtual std::unique_ptr<SwField> Copy() const override;
396 
397 public:
399  SwMacroField( SwMacroFieldType*, const OUString& rLibAndName,
400  const OUString& rText);
401 
402  const OUString& GetMacro() const { return m_aMacro; }
403  OUString GetLibName() const;
404  OUString GetMacroName() const;
405  SvxMacro GetSvxMacro() const;
406 
407  virtual OUString GetFieldName() const override;
408 
410  virtual OUString GetPar1() const override;
411  virtual void SetPar1(const OUString& rStr) override;
412 
414  virtual OUString GetPar2() const override;
415  virtual void SetPar2(const OUString& rStr) override;
416  virtual bool QueryValue( css::uno::Any& rVal, sal_uInt16 nWhich ) const override;
417  virtual bool PutValue( const css::uno::Any& rVal, sal_uInt16 nWhich ) override;
418 
419  static void CreateMacroString( OUString& rMacro,
420  const OUString& rMacroName,
421  const OUString& rLibraryName );
422 
423  static bool isScriptURL( const OUString& str );
424 };
425 
426 class SAL_DLLPUBLIC_RTTI SwPostItFieldType : public SwFieldType
427 {
428 private:
429  SwDoc* const mpDoc;
430 public:
431  SwPostItFieldType(SwDoc* pDoc);
432 
433  virtual std::unique_ptr<SwFieldType> Copy() const override;
434 
435  SwDoc* GetDoc() const
436  {
437  return mpDoc;
438  };
439 };
440 
442 {
443  OUString m_sText;
444  OUString m_sAuthor;
445  OUString m_sInitials;
446  OUString m_sName;
449  std::unique_ptr<OutlinerParaObject> mpText;
451  sal_uInt32 m_nPostItId;
452 
453 public:
454  static sal_uInt32 m_nLastPostItId;
455 
457  const OUString& rAuthor,
458  const OUString& rText,
459  const OUString& rInitials,
460  const OUString& rName,
461  const DateTime& rDate,
462  const bool bResolved = false,
463  const sal_uInt32 nPostItId = 0);
464 
465  SwPostItField(const SwPostItField&) = delete;
466  SwPostItField* operator=(const SwPostItField&) = delete;
467 
468  virtual ~SwPostItField() override;
469 
470  virtual OUString ExpandImpl(SwRootFrame const* pLayout) const override;
471  virtual std::unique_ptr<SwField> Copy() const override;
472 
473  const DateTime& GetDateTime() const { return m_aDateTime; }
474  Date GetDate() const { return Date(m_aDateTime.GetDate()); }
475  tools::Time GetTime() const { return tools::Time(m_aDateTime.GetTime()); }
476  sal_uInt32 GetPostItId() const { return m_nPostItId; }
477 
479  virtual OUString GetPar1() const override;
480  virtual void SetPar1(const OUString& rStr) override;
481 
483  virtual OUString GetPar2() const override;
484  virtual void SetPar2(const OUString& rStr) override;
485  const OUString& GetText() const { return m_sText; }
486  const OUString& GetInitials() const { return m_sInitials;}
487  void SetName(const OUString& rStr);
488  const OUString& GetName() const { return m_sName;}
489 
490  const OutlinerParaObject* GetTextObject() const { return mpText.get();}
491  void SetTextObject( std::unique_ptr<OutlinerParaObject> pText );
492 
493  void SetResolved(bool bNewState);
494  void ToggleResolved();
495  bool GetResolved() const;
496 
497  sal_Int32 GetNumberOfParagraphs() const;
498 
499  virtual bool QueryValue( css::uno::Any& rVal, sal_uInt16 nWhich ) const override;
500  virtual bool PutValue( const css::uno::Any& rVal, sal_uInt16 nWhich ) override;
501  virtual OUString GetDescription() const override;
502  virtual void dumpAsXml(xmlTextWriterPtr pWriter) const override;
503 };
504 
505 class SAL_DLLPUBLIC_RTTI SwDocInfoFieldType : public SwValueFieldType
506 {
507 public:
509 
510  OUString Expand(sal_uInt16 nSubType, sal_uInt32 nFormat, LanguageType nLang, const OUString& rName) const;
511  virtual std::unique_ptr<SwFieldType> Copy() const override;
512 };
513 
515 {
516  sal_uInt16 m_nSubType;
517  OUString m_aContent;
518  OUString m_aName;
519 
520  virtual OUString ExpandImpl(SwRootFrame const* pLayout) const override;
521  virtual std::unique_ptr<SwField> Copy() const override;
522 
523 public:
524  SwDocInfoField(SwDocInfoFieldType*, sal_uInt16 nSub, const OUString& rName, sal_uInt32 nFormat=0);
525  SwDocInfoField(SwDocInfoFieldType*, sal_uInt16 nSub, const OUString& rName, const OUString& rValue, sal_uInt32 nFormat=0);
526 
527  virtual void SetSubType(sal_uInt16) override;
528  virtual sal_uInt16 GetSubType() const override;
529  virtual void SetLanguage(LanguageType nLng) override;
530  virtual OUString GetFieldName() const override;
531  const OUString& GetName() const { return m_aName; }
532  void SetName( const OUString& rName ) { m_aName = rName; }
533  void SetExpansion(const OUString& rStr) { m_aContent = rStr; }
534  virtual bool QueryValue( css::uno::Any& rVal, sal_uInt16 nWhich ) const override;
535  virtual bool PutValue( const css::uno::Any& rVal, sal_uInt16 nWhich ) override;
536 };
537 
538 // Extended User settings.
540 {
541 public:
543 
544  static OUString Expand(sal_uInt16 nSubType);
545  virtual std::unique_ptr<SwFieldType> Copy() const override;
546 };
547 
548 class SwExtUserField : public SwField
549 {
550  OUString m_aContent;
551  sal_uInt16 m_nType;
552 
553 public:
554  SwExtUserField(SwExtUserFieldType*, sal_uInt16 nSub, sal_uInt32 nFormat);
555 
556  virtual OUString ExpandImpl(SwRootFrame const* pLayout) const override;
557  virtual std::unique_ptr<SwField> Copy() const override;
558 
559  virtual sal_uInt16 GetSubType() const override;
560  virtual void SetSubType(sal_uInt16 nSub) override;
561 
562  void SetExpansion(const OUString& rStr) { m_aContent = rStr; }
563 
564  virtual bool QueryValue( css::uno::Any& rVal, sal_uInt16 nWhich ) const override;
565  virtual bool PutValue( const css::uno::Any& rVal, sal_uInt16 nWhich ) override;
566 };
567 
568 // Relative page numbers - field.
570 {
571 public:
573 
574  virtual std::unique_ptr<SwFieldType> Copy() const override;
575 
576 protected:
578  virtual void Modify( const SfxPoolItem*, const SfxPoolItem * ) override;
579 };
580 
581 // Relative page numbering.
582 class SAL_DLLPUBLIC_RTTI SwRefPageSetField : public SwField
583 {
584  short m_nOffset;
585  bool m_bOn;
586 
587 public:
588  SwRefPageSetField( SwRefPageSetFieldType*, short nOff, bool bOn );
589 
590  virtual OUString ExpandImpl(SwRootFrame const* pLayout) const override;
591  virtual std::unique_ptr<SwField> Copy() const override;
592 
593  virtual OUString GetPar2() const override;
594  virtual void SetPar2(const OUString& rStr) override;
595 
596  bool IsOn() const { return m_bOn; }
597 
598  short GetOffset() const { return m_nOffset; }
599  void SetOffset( short nOff ) { m_nOffset = nOff; }
600  virtual bool QueryValue( css::uno::Any& rVal, sal_uInt16 nWhich ) const override;
601  virtual bool PutValue( const css::uno::Any& rVal, sal_uInt16 nWhich ) override;
602 };
603 
604 // Relative page numbers - query field.
606 {
608  sal_Int16 m_nNumberingType;
609 
610  void UpdateField(SwTextField const * pTextField,
611  SetGetExpFields const & rSetList, SwRootFrame const* pLayout);
612 
613 protected:
615  virtual void Modify( const SfxPoolItem*, const SfxPoolItem * ) override;
616 public:
617  SwRefPageGetFieldType( SwDoc* pDoc );
618  virtual std::unique_ptr<SwFieldType> Copy() const override;
619  bool MakeSetList(SetGetExpFields& rTmpLst, SwRootFrame const* pLayout);
620  SwDoc* GetDoc() const { return m_pDoc; }
621 };
622 
623 // Query relative page numbering.
625 {
626  OUString m_sText;
627  OUString m_sTextRLHidden;
628 
629 public:
630  SwRefPageGetField( SwRefPageGetFieldType*, sal_uInt32 nFormat );
631 
632  virtual OUString ExpandImpl(SwRootFrame const* pLayout) const override;
633  virtual std::unique_ptr<SwField> Copy() const override;
634 
635  void SetText(const OUString& rText, SwRootFrame const* pLayout);
636 
637  void ChangeExpansion(const SwFrame& rFrame, const SwTextField* pField);
638  virtual bool QueryValue( css::uno::Any& rVal, sal_uInt16 nWhich ) const override;
639  virtual bool PutValue( const css::uno::Any& rVal, sal_uInt16 nWhich ) override;
640 };
641 
642 // Field to jump to and edit.
644 {
647 
648 public:
649  SwJumpEditFieldType( SwDoc* pDoc );
650  virtual std::unique_ptr<SwFieldType> Copy() const override;
651 
653 };
654 
655 class SwJumpEditField : public SwField
656 {
657  OUString m_sText;
658  OUString m_sHelp;
659 public:
660  SwJumpEditField( SwJumpEditFieldType*, sal_uInt32 nFormat,
661  const OUString& sText, const OUString& sHelp );
662 
663  virtual OUString ExpandImpl(SwRootFrame const* pLayout) const override;
664  virtual std::unique_ptr<SwField> Copy() const override;
665 
667  virtual OUString GetPar1() const override;
668  virtual void SetPar1(const OUString& rStr) override;
669 
671  virtual OUString GetPar2() const override;
672  virtual void SetPar2(const OUString& rStr) override;
673 
675  { return static_cast<SwJumpEditFieldType*>(GetTyp())->GetCharFormat(); }
676  virtual bool QueryValue( css::uno::Any& rVal, sal_uInt16 nWhich ) const override;
677  virtual bool PutValue( const css::uno::Any& rVal, sal_uInt16 nWhich ) override;
678 };
679 
681 {
682  SwDoc* const m_pDoc;
683 public:
684  SwScriptFieldType( SwDoc* pDoc );
685 
686  virtual std::unique_ptr<SwFieldType> Copy() const override;
687 };
688 
689 class SAL_DLLPUBLIC_RTTI SwScriptField : public SwField
690 {
691  OUString m_sType;
692  OUString m_sCode;
695  bool m_bCodeURL;
696 
697 public:
698  SwScriptField( SwScriptFieldType*, const OUString& rType,
699  const OUString& rCode, bool bURL );
700 
701  virtual OUString GetDescription() const override;
702 
703  virtual OUString ExpandImpl(SwRootFrame const* pLayout) const override;
704  virtual std::unique_ptr<SwField> Copy() const override;
705 
707  virtual OUString GetPar1() const override;
708  virtual void SetPar1(const OUString& rStr) override;
710  virtual OUString GetPar2() const override;
711  virtual void SetPar2(const OUString& rStr) override;
712 
713  bool IsCodeURL() const { return m_bCodeURL; }
714  void SetCodeURL( bool bURL ) { m_bCodeURL = bURL; }
715  virtual bool QueryValue( css::uno::Any& rVal, sal_uInt16 nWhich ) const override;
716  virtual bool PutValue( const css::uno::Any& rVal, sal_uInt16 nWhich ) override;
717 };
718 
719 // Combined Character Fieldtype
720 class SAL_DLLPUBLIC_RTTI SwCombinedCharFieldType : public SwFieldType
721 {
722 public:
724 
725  virtual std::unique_ptr<SwFieldType> Copy() const override;
726 };
727 
728 // ScriptField
729 #define MAX_COMBINED_CHARACTERS 6
730 
732 {
733  OUString m_sCharacters;
734 
735 public:
736  SwCombinedCharField( SwCombinedCharFieldType*, const OUString& rChars );
737 
738  virtual OUString ExpandImpl(SwRootFrame const* pLayout) const override;
739  virtual std::unique_ptr<SwField> Copy() const override;
740 
742  virtual OUString GetPar1() const override;
743  virtual void SetPar1(const OUString& rStr) override;
744 
745  virtual bool QueryValue( css::uno::Any& rVal, sal_uInt16 nWhich ) const override;
746  virtual bool PutValue( const css::uno::Any& rVal, sal_uInt16 nWhich ) override;
747 };
748 
749 #endif // INCLUDED_SW_INC_DOCUFLD_HXX
750 
751 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual std::unique_ptr< SwFieldType > Copy() const override
Definition: scrptfld.cxx:32
Date GetDate() const
Definition: docufld.hxx:474
virtual void SetPar1(const OUString &rStr) override
set place holder text
Definition: docufld.cxx:2504
Instances of SwFields and those derived from it occur 0 to n times.
Definition: fldbas.hxx:233
const SwDocInfoSubType DI_SUB_TIME
Definition: docufld.hxx:79
void SetValue(bool bHidden)
Definition: docufld.hxx:325
const OUString & GetUserString() const
Definition: docufld.hxx:170
Base class of the Writer layout elements.
Definition: frame.hxx:295
virtual void dumpAsXml(xmlTextWriterPtr pWriter) const
Definition: fldbas.cxx:782
OUString m_aMacro
Definition: docufld.hxx:390
sal_uInt16 m_nPageNumber
Definition: docufld.hxx:148
SwField & operator=(SwField const &)=default
virtual std::unique_ptr< SwFieldType > Copy() const override
Definition: docufld.cxx:2468
const SwDocInfoSubType DI_SUBTYPE_END
Definition: docufld.hxx:76
DateTime m_aDateTime
Definition: docufld.hxx:447
SwExtUserSubType
Definition: docufld.hxx:96
virtual sal_uInt16 GetSubType() const override
Definition: docufld.cxx:2024
SwDoc * GetDoc() const
Definition: docufld.hxx:435
virtual std::unique_ptr< SwFieldType > Copy() const override
Definition: docufld.cxx:326
bool GetHiddenFlag() const
Definition: docufld.hxx:288
virtual std::unique_ptr< SwFieldType > Copy() const =0
SwRefPageGetFieldType(SwDoc *pDoc)
Definition: docufld.cxx:2163
bool IsCodeURL() const
Definition: docufld.hxx:713
void ChangeExpansion(const SwFrame &rFrame, const SwTextField *pField)
Definition: docufld.cxx:2362
OUString m_sUserStr
Definition: docufld.hxx:144
sal_uIntPtr sal_uLong
virtual std::unique_ptr< SwField > Copy() const override
Definition: docufld.cxx:2016
Base class of all fields.
Definition: fldbas.hxx:279
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt16 nWhich) const override
Definition: docufld.cxx:1670
Definition: doc.hxx:185
tools::Time GetTime() const
Definition: docufld.hxx:475
OUString m_aTRUEText
Text if condition true.
Definition: docufld.hxx:293
const SwDocInfoSubType DI_COMMENT
Definition: docufld.hxx:69
SwJumpEditFieldType(SwDoc *pDoc)
Definition: docufld.cxx:2463
sal_Int16 m_nNumberingType
Definition: docufld.hxx:608
OUString m_aCond
Condition.
Definition: docufld.hxx:297
SwRefPageGetField(SwRefPageGetFieldType *, sal_uInt32 nFormat)
Definition: docufld.cxx:2329
const OUString & GetName() const
Definition: docufld.hxx:531
virtual std::unique_ptr< SwField > Copy() const override
Definition: docufld.cxx:2491
SwJumpEditField(SwJumpEditFieldType *, sal_uInt32 nFormat, const OUString &sText, const OUString &sHelp)
Definition: docufld.cxx:2480
OUString m_aContent
Definition: docufld.hxx:185
The root element of a Writer document layout.
Definition: rootfrm.hxx:79
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt16 nWhich) const override
Definition: docufld.cxx:2034
const SwDocInfoSubType DI_EDIT
Definition: docufld.hxx:74
virtual std::unique_ptr< SwField > Copy() const override
Definition: docufld.cxx:346
virtual void Modify(const SfxPoolItem *, const SfxPoolItem *) override
Overlay, because there is nothing to update!
Definition: docufld.cxx:2097
SvxNumType
static LanguageType nLang
Definition: srtdlg.cxx:60
virtual OUString GetPar1() const
Definition: fldbas.cxx:271
rtl::Reference< SwTextAPIObject > m_xTextObject
Definition: docufld.hxx:450
OUString m_sCharacters
combine these characters
Definition: docufld.hxx:733
virtual OUString ExpandImpl(SwRootFrame const *pLayout) const =0
OUString m_sCode
Code as text.
Definition: docufld.hxx:692
SwDoc * GetDoc() const
Definition: docufld.hxx:620
virtual void SetPar2(const OUString &rStr)
Definition: fldbas.cxx:289
OUString m_aContent
Definition: docufld.hxx:550
bool m_bResolved
Definition: docufld.hxx:448
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt16 nWhichId)
Definition: fldbas.cxx:314
const OUString & GetText() const
Definition: docufld.hxx:485
virtual std::unique_ptr< SwFieldType > Copy() const override
Definition: docufld.cxx:2168
SwDocStatSubType
Definition: docufld.hxx:46
virtual void SetPar2(const OUString &rStr) override
set hint text
Definition: docufld.cxx:2516
virtual void SetLanguage(LanguageType nLng) override
set language of the format
Definition: fldbas.cxx:633
void SetExpansion(const OUString &rStr)
Definition: docufld.hxx:193
virtual OUString GetPar1() const override
Placeholder-Text.
Definition: docufld.cxx:2498
OUString m_sText
Definition: docufld.hxx:626
sal_Int32 GetDate() const
SwHiddenParaField(SwHiddenParaFieldType *, const OUString &rCond)
Direct input, delete old value.
Definition: docufld.cxx:1652
virtual std::unique_ptr< SwFieldType > Copy() const override
Definition: docufld.cxx:2091
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt16 nWhich) override
Definition: docufld.cxx:1687
void SetExpansion(const OUString &rStr)
Definition: docufld.hxx:533
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt16 nWhich) override
Definition: docufld.cxx:2057
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt16 nWhichId) const
Definition: fldbas.cxx:301
bool IsHidden() const
Definition: docufld.hxx:369
virtual OUString GetPar1() const override
Query, set condition.
Definition: docufld.cxx:1710
OUString m_sType
Type of Code (Java/VBScript/...)
Definition: docufld.hxx:691
OUString m_sText
Definition: docufld.hxx:443
const SwDocInfoSubType DI_CUSTOM
Definition: docufld.hxx:75
virtual OUString GetDescription() const
Definition: fldbas.cxx:761
OUString m_aName
Definition: docufld.hxx:518
struct _xmlTextWriter * xmlTextWriterPtr
sal_uInt32 GetPostItId() const
Definition: docufld.hxx:476
const SwDocInfoSubType DI_PRINT
Definition: docufld.hxx:72
virtual void SetPar1(const OUString &rStr)
Definition: fldbas.cxx:286
const DateTime & GetDateTime() const
Definition: docufld.hxx:473
OUString m_aCond
Definition: docufld.hxx:359
SwAuthorField(SwAuthorFieldType *, sal_uInt32 nFormat)
Definition: docufld.cxx:331
void SetExpansion(const OUString &rStr)
Definition: docufld.hxx:219
virtual std::unique_ptr< SwField > Copy() const =0
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt16 nWhich) const override
Definition: docufld.cxx:2423
OUString m_sAuthor
Definition: docufld.hxx:444
SwCharFormat * GetCharFormat()
Definition: docufld.cxx:2473
const SwDocInfoSubType DI_KEYS
Definition: docufld.hxx:68
virtual OUString ExpandImpl(SwRootFrame const *pLayout) const override
Definition: docufld.cxx:2008
sal_uInt16 m_nSubType
Definition: docufld.hxx:262
sal_uInt16 m_nSubType
Definition: docufld.hxx:516
OUString m_aFALSEText
If condition false.
Definition: docufld.hxx:294
const SwDocInfoSubType DI_CREATE
Definition: docufld.hxx:70
virtual OUString GetPar2() const override
Hint-Text.
Definition: docufld.cxx:2510
sw::WriterMultiListener m_aDep
Definition: docufld.hxx:646
const SwDocInfoSubType DI_SUB_MASK
Definition: docufld.hxx:82
OUString m_aContent
Definition: docufld.hxx:211
bool IsOn() const
Definition: docufld.hxx:596
sal_uInt16 m_nMaxPage
Definition: docufld.hxx:149
virtual OUString ExpandImpl(SwRootFrame const *pLayout) const override
Definition: docufld.cxx:2348
const SwDocInfoSubType DI_SUB_DATE
Definition: docufld.hxx:80
sal_uInt16 m_nSubType
Definition: docufld.hxx:145
std::unique_ptr< OutlinerParaObject > mpText
Definition: docufld.hxx:449
virtual OUString GetPar2() const
Definition: fldbas.cxx:276
#define SW_DLLPUBLIC
Definition: swdllapi.h:28
sal_uInt16 m_nSubType
Definition: docufld.hxx:298
static sal_uInt32 m_nLastPostItId
Definition: docufld.hxx:454
SvxNumType m_nNumberingType
Definition: docufld.hxx:250
sal_uInt16 SwDocInfoSubType
Definition: docufld.hxx:58
virtual sal_uInt16 GetSubType() const
Definition: fldbas.cxx:292
const OUString & GetName() const
Definition: docufld.hxx:488
short GetOffset() const
Definition: docufld.hxx:598
SwFieldType * GetTyp() const
Definition: fldbas.hxx:382
void SetText(const OUString &rText, SwRootFrame const *pLayout)
Definition: docufld.cxx:2335
const SwDocInfoSubType DI_SUB_AUTHOR
Definition: docufld.hxx:78
Fields containing values that have to be formatted via number formatter.
Definition: fldbas.hxx:398
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt16 nWhich) const override
Definition: docufld.cxx:354
OUString m_sHelp
Definition: docufld.hxx:658
virtual std::unique_ptr< SwField > Copy() const override
Definition: docufld.cxx:1663
virtual std::unique_ptr< SwFieldType > Copy() const override
Definition: docufld.cxx:1962
const OutlinerParaObject * GetTextObject() const
Definition: docufld.hxx:490
virtual void Modify(const SfxPoolItem *, const SfxPoolItem *) override
overwritten to update all RefPageGet fields
Definition: docufld.cxx:2175
OUString m_aContent
Definition: docufld.hxx:517
OUString m_sInitials
Initials of the author.
Definition: docufld.hxx:445
const SwDocInfoSubType DI_SUBTYPE_BEGIN
NB: these must denote consecutive integers! NB2: these are extended by 4 DI_INFO values for backward ...
Definition: docufld.hxx:65
SwCharFormat * GetCharFormat() const
Definition: docufld.hxx:674
SwPageNumSubType
Definition: docufld.hxx:85
const SwDocInfoSubType DI_DOCNO
Definition: docufld.hxx:73
virtual std::unique_ptr< SwFieldType > Copy() const override
Definition: docufld.cxx:1645
virtual std::unique_ptr< SwField > Copy() const override
Definition: docufld.cxx:2353
static OUString Expand(sal_uInt16 nSubType)
Definition: docufld.cxx:1967
sal_uInt32 m_nPostItId
Definition: docufld.hxx:451
static OUString Expand(sal_uLong)
Definition: docufld.cxx:317
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt16 nWhich) const override
Definition: docufld.cxx:2521
OUString m_aText
Definition: docufld.hxx:391
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt16 nWhich) override
Definition: docufld.cxx:2552
sal_Int64 GetTime() const
virtual OUString GetFieldName() const
get name or content
Definition: fldbas.cxx:255
bool m_bCodeURL
Code contains URL of a script.
Definition: docufld.hxx:695
void SetExpansion(const OUString &rStr)
Definition: docufld.hxx:562
sal_uInt16 m_nType
Definition: docufld.hxx:551
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt16 nWhich) override
Definition: docufld.cxx:2439
virtual OUString ExpandImpl(SwRootFrame const *pLayout) const override
Definition: docufld.cxx:337
OUString m_sTextRLHidden
hidden redlines
Definition: docufld.hxx:627
void SetOffset(short nOff)
Definition: docufld.hxx:599
void SetName(const OUString &rName)
Definition: docufld.hxx:532
OUString m_sName
Name of the comment.
Definition: docufld.hxx:446
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt16 nWhich) override
Definition: docufld.cxx:376
bool m_bIsScriptURL
Definition: docufld.hxx:392
void SetNumFormat(SvxNumType eFormat)
Definition: docufld.hxx:257
SwScriptFieldType(SwDoc *pDoc)
Definition: scrptfld.cxx:28
virtual OUString ExpandImpl(SwRootFrame const *pLayout) const override
Definition: docufld.cxx:1658
OUString m_aContent
Evaluated DB-text.
Definition: docufld.hxx:295
const SwDocInfoSubType DI_SUB_FIXED
Definition: docufld.hxx:81
const SwDocInfoSubType DI_CHANGE
Definition: docufld.hxx:71
SwDoc *const m_pDoc
Definition: docufld.hxx:682
const SwDocInfoSubType DI_THEMA
Definition: docufld.hxx:67
const OUString & GetInitials() const
Definition: docufld.hxx:486
SwDoc *const m_pDoc
Definition: docufld.hxx:380
virtual void SetSubType(sal_uInt16)
Definition: fldbas.cxx:297
SvxNumType m_nNumberingType
Definition: docufld.hxx:128
SwDoc *const mpDoc
Definition: docufld.hxx:429
const SwDocInfoSubType DI_TITLE
Definition: docufld.hxx:66
bool MakeSetList(SetGetExpFields &rTmpLst, SwRootFrame const *pLayout)
Definition: docufld.cxx:2220
virtual void SetSubType(sal_uInt16 nSub) override
Definition: docufld.cxx:2029
virtual OUString ExpandImpl(SwRootFrame const *pLayout) const override
Definition: docufld.cxx:2486
void SetHidden(bool bHidden)
Definition: docufld.hxx:368
SwJumpEditFormat
Definition: docufld.hxx:117
void SetCodeURL(bool bURL)
Definition: docufld.hxx:714
const OUString & GetMacro() const
Definition: docufld.hxx:402
void UpdateField(SwTextField const *pTextField, SetGetExpFields const &rSetList, SwRootFrame const *pLayout)
Definition: docufld.cxx:2272
SwExtUserField(SwExtUserFieldType *, sal_uInt16 nSub, sal_uInt32 nFormat)
Definition: docufld.cxx:2002
SwAuthorFormat
Definition: docufld.hxx:37
OUString m_sText
Definition: docufld.hxx:657
void SetUserString(const OUString &rS)
Definition: docufld.hxx:171
virtual void SetPar1(const OUString &rStr) override
set condition
Definition: docufld.cxx:1705