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;
448  std::unique_ptr<OutlinerParaObject> mpText;
450  sal_uInt32 m_nPostItId;
451 
452 public:
453  static sal_uInt32 m_nLastPostItId;
454 
456  const OUString& rAuthor,
457  const OUString& rText,
458  const OUString& rInitials,
459  const OUString& rName,
460  const DateTime& rDate,
461  const sal_uInt32 nPostItId = 0);
462 
463  SwPostItField(const SwPostItField&) = delete;
464  SwPostItField* operator=(const SwPostItField&) = delete;
465 
466  virtual ~SwPostItField() override;
467 
468  virtual OUString ExpandImpl(SwRootFrame const* pLayout) const override;
469  virtual std::unique_ptr<SwField> Copy() const override;
470 
471  const DateTime& GetDateTime() const { return m_aDateTime; }
472  const Date GetDate() const { return Date(m_aDateTime.GetDate()); }
473  const tools::Time GetTime() const { return tools::Time(m_aDateTime.GetTime()); }
474  sal_uInt32 GetPostItId() const { return m_nPostItId; }
475 
477  virtual OUString GetPar1() const override;
478  virtual void SetPar1(const OUString& rStr) override;
479 
481  virtual OUString GetPar2() const override;
482  virtual void SetPar2(const OUString& rStr) override;
483  const OUString& GetText() const { return m_sText; }
484  const OUString& GetInitials() const { return m_sInitials;}
485  void SetName(const OUString& rStr);
486  const OUString& GetName() const { return m_sName;}
487 
488  const OutlinerParaObject* GetTextObject() const { return mpText.get();}
489  void SetTextObject( std::unique_ptr<OutlinerParaObject> pText );
490 
491  sal_Int32 GetNumberOfParagraphs() const;
492 
493  virtual bool QueryValue( css::uno::Any& rVal, sal_uInt16 nWhich ) const override;
494  virtual bool PutValue( const css::uno::Any& rVal, sal_uInt16 nWhich ) override;
495  virtual OUString GetDescription() const override;
496  virtual void dumpAsXml(xmlTextWriterPtr pWriter) const override;
497 };
498 
499 class SAL_DLLPUBLIC_RTTI SwDocInfoFieldType : public SwValueFieldType
500 {
501 public:
503 
504  OUString Expand(sal_uInt16 nSubType, sal_uInt32 nFormat, LanguageType nLang, const OUString& rName) const;
505  virtual std::unique_ptr<SwFieldType> Copy() const override;
506 };
507 
509 {
510  sal_uInt16 m_nSubType;
511  OUString m_aContent;
512  OUString m_aName;
513 
514  virtual OUString ExpandImpl(SwRootFrame const* pLayout) const override;
515  virtual std::unique_ptr<SwField> Copy() const override;
516 
517 public:
518  SwDocInfoField(SwDocInfoFieldType*, sal_uInt16 nSub, const OUString& rName, sal_uInt32 nFormat=0);
519  SwDocInfoField(SwDocInfoFieldType*, sal_uInt16 nSub, const OUString& rName, const OUString& rValue, sal_uInt32 nFormat=0);
520 
521  virtual void SetSubType(sal_uInt16) override;
522  virtual sal_uInt16 GetSubType() const override;
523  virtual void SetLanguage(LanguageType nLng) override;
524  virtual OUString GetFieldName() const override;
525  const OUString& GetName() const { return m_aName; }
526  void SetName( const OUString& rName ) { m_aName = rName; }
527  void SetExpansion(const OUString& rStr) { m_aContent = rStr; }
528  virtual bool QueryValue( css::uno::Any& rVal, sal_uInt16 nWhich ) const override;
529  virtual bool PutValue( const css::uno::Any& rVal, sal_uInt16 nWhich ) override;
530 };
531 
532 // Extended User settings.
534 {
535 public:
537 
538  static OUString Expand(sal_uInt16 nSubType);
539  virtual std::unique_ptr<SwFieldType> Copy() const override;
540 };
541 
542 class SwExtUserField : public SwField
543 {
544  OUString m_aContent;
545  sal_uInt16 m_nType;
546 
547 public:
548  SwExtUserField(SwExtUserFieldType*, sal_uInt16 nSub, sal_uInt32 nFormat);
549 
550  virtual OUString ExpandImpl(SwRootFrame const* pLayout) const override;
551  virtual std::unique_ptr<SwField> Copy() const override;
552 
553  virtual sal_uInt16 GetSubType() const override;
554  virtual void SetSubType(sal_uInt16 nSub) override;
555 
556  void SetExpansion(const OUString& rStr) { m_aContent = rStr; }
557 
558  virtual bool QueryValue( css::uno::Any& rVal, sal_uInt16 nWhich ) const override;
559  virtual bool PutValue( const css::uno::Any& rVal, sal_uInt16 nWhich ) override;
560 };
561 
562 // Relative page numbers - field.
564 {
565 public:
567 
568  virtual std::unique_ptr<SwFieldType> Copy() const override;
569 
570 protected:
572  virtual void Modify( const SfxPoolItem*, const SfxPoolItem * ) override;
573 };
574 
575 // Relative page numbering.
576 class SAL_DLLPUBLIC_RTTI SwRefPageSetField : public SwField
577 {
578  short m_nOffset;
579  bool m_bOn;
580 
581 public:
582  SwRefPageSetField( SwRefPageSetFieldType*, short nOff, bool bOn );
583 
584  virtual OUString ExpandImpl(SwRootFrame const* pLayout) const override;
585  virtual std::unique_ptr<SwField> Copy() const override;
586 
587  virtual OUString GetPar2() const override;
588  virtual void SetPar2(const OUString& rStr) override;
589 
590  bool IsOn() const { return m_bOn; }
591 
592  short GetOffset() const { return m_nOffset; }
593  void SetOffset( short nOff ) { m_nOffset = nOff; }
594  virtual bool QueryValue( css::uno::Any& rVal, sal_uInt16 nWhich ) const override;
595  virtual bool PutValue( const css::uno::Any& rVal, sal_uInt16 nWhich ) override;
596 };
597 
598 // Relative page numbers - query field.
600 {
602  sal_Int16 m_nNumberingType;
603 
604  void UpdateField(SwTextField const * pTextField,
605  SetGetExpFields const & rSetList, SwRootFrame const* pLayout);
606 
607 protected:
609  virtual void Modify( const SfxPoolItem*, const SfxPoolItem * ) override;
610 public:
611  SwRefPageGetFieldType( SwDoc* pDoc );
612  virtual std::unique_ptr<SwFieldType> Copy() const override;
613  bool MakeSetList(SetGetExpFields& rTmpLst, SwRootFrame const* pLayout);
614  SwDoc* GetDoc() const { return m_pDoc; }
615 };
616 
617 // Query relative page numbering.
619 {
620  OUString m_sText;
621  OUString m_sTextRLHidden;
622 
623 public:
624  SwRefPageGetField( SwRefPageGetFieldType*, sal_uInt32 nFormat );
625 
626  virtual OUString ExpandImpl(SwRootFrame const* pLayout) const override;
627  virtual std::unique_ptr<SwField> Copy() const override;
628 
629  void SetText(const OUString& rText, SwRootFrame const* pLayout);
630 
631  void ChangeExpansion(const SwFrame& rFrame, const SwTextField* pField);
632  virtual bool QueryValue( css::uno::Any& rVal, sal_uInt16 nWhich ) const override;
633  virtual bool PutValue( const css::uno::Any& rVal, sal_uInt16 nWhich ) override;
634 };
635 
636 // Field to jump to and edit.
638 {
641 
642 public:
643  SwJumpEditFieldType( SwDoc* pDoc );
644  virtual std::unique_ptr<SwFieldType> Copy() const override;
645 
647 };
648 
649 class SwJumpEditField : public SwField
650 {
651  OUString m_sText;
652  OUString m_sHelp;
653 public:
654  SwJumpEditField( SwJumpEditFieldType*, sal_uInt32 nFormat,
655  const OUString& sText, const OUString& sHelp );
656 
657  virtual OUString ExpandImpl(SwRootFrame const* pLayout) const override;
658  virtual std::unique_ptr<SwField> Copy() const override;
659 
661  virtual OUString GetPar1() const override;
662  virtual void SetPar1(const OUString& rStr) override;
663 
665  virtual OUString GetPar2() const override;
666  virtual void SetPar2(const OUString& rStr) override;
667 
669  { return static_cast<SwJumpEditFieldType*>(GetTyp())->GetCharFormat(); }
670  virtual bool QueryValue( css::uno::Any& rVal, sal_uInt16 nWhich ) const override;
671  virtual bool PutValue( const css::uno::Any& rVal, sal_uInt16 nWhich ) override;
672 };
673 
675 {
676  SwDoc* const m_pDoc;
677 public:
678  SwScriptFieldType( SwDoc* pDoc );
679 
680  virtual std::unique_ptr<SwFieldType> Copy() const override;
681 };
682 
683 class SAL_DLLPUBLIC_RTTI SwScriptField : public SwField
684 {
685  OUString m_sType;
686  OUString m_sCode;
689  bool m_bCodeURL;
690 
691 public:
692  SwScriptField( SwScriptFieldType*, const OUString& rType,
693  const OUString& rCode, bool bURL );
694 
695  virtual OUString GetDescription() const override;
696 
697  virtual OUString ExpandImpl(SwRootFrame const* pLayout) const override;
698  virtual std::unique_ptr<SwField> Copy() const override;
699 
701  virtual OUString GetPar1() const override;
702  virtual void SetPar1(const OUString& rStr) override;
704  virtual OUString GetPar2() const override;
705  virtual void SetPar2(const OUString& rStr) override;
706 
707  bool IsCodeURL() const { return m_bCodeURL; }
708  void SetCodeURL( bool bURL ) { m_bCodeURL = bURL; }
709  virtual bool QueryValue( css::uno::Any& rVal, sal_uInt16 nWhich ) const override;
710  virtual bool PutValue( const css::uno::Any& rVal, sal_uInt16 nWhich ) override;
711 };
712 
713 // Combined Character Fieldtype
714 class SAL_DLLPUBLIC_RTTI SwCombinedCharFieldType : public SwFieldType
715 {
716 public:
718 
719  virtual std::unique_ptr<SwFieldType> Copy() const override;
720 };
721 
722 // ScriptField
723 #define MAX_COMBINED_CHARACTERS 6
724 
726 {
727  OUString m_sCharacters;
728 
729 public:
730  SwCombinedCharField( SwCombinedCharFieldType*, const OUString& rChars );
731 
732  virtual OUString ExpandImpl(SwRootFrame const* pLayout) const override;
733  virtual std::unique_ptr<SwField> Copy() const override;
734 
736  virtual OUString GetPar1() const override;
737  virtual void SetPar1(const OUString& rStr) override;
738 
739  virtual bool QueryValue( css::uno::Any& rVal, sal_uInt16 nWhich ) const override;
740  virtual bool PutValue( const css::uno::Any& rVal, sal_uInt16 nWhich ) override;
741 };
742 
743 #endif // INCLUDED_SW_INC_DOCUFLD_HXX
744 
745 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual std::unique_ptr< SwFieldType > Copy() const override
Definition: scrptfld.cxx:32
virtual void SetPar1(const OUString &rStr) override
set place holder text
Definition: docufld.cxx:2480
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:2444
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:2000
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:2139
bool IsCodeURL() const
Definition: docufld.hxx:707
void ChangeExpansion(const SwFrame &rFrame, const SwTextField *pField)
Definition: docufld.cxx:2338
OUString m_sUserStr
Definition: docufld.hxx:144
sal_uIntPtr sal_uLong
const tools::Time GetTime() const
Definition: docufld.hxx:473
virtual std::unique_ptr< SwField > Copy() const override
Definition: docufld.cxx:1992
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
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:2439
sal_Int16 m_nNumberingType
Definition: docufld.hxx:602
OUString m_aCond
Condition.
Definition: docufld.hxx:297
SwRefPageGetField(SwRefPageGetFieldType *, sal_uInt32 nFormat)
Definition: docufld.cxx:2305
const OUString & GetName() const
Definition: docufld.hxx:525
virtual std::unique_ptr< SwField > Copy() const override
Definition: docufld.cxx:2467
SwJumpEditField(SwJumpEditFieldType *, sal_uInt32 nFormat, const OUString &sText, const OUString &sHelp)
Definition: docufld.cxx:2456
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:2010
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:2073
SvxNumType
static LanguageType nLang
Definition: srtdlg.cxx:58
virtual OUString GetPar1() const
Definition: fldbas.cxx:271
rtl::Reference< SwTextAPIObject > m_xTextObject
Definition: docufld.hxx:449
OUString m_sCharacters
combine these characters
Definition: docufld.hxx:727
virtual OUString ExpandImpl(SwRootFrame const *pLayout) const =0
OUString m_sCode
Code as text.
Definition: docufld.hxx:686
SwDoc * GetDoc() const
Definition: docufld.hxx:614
virtual void SetPar2(const OUString &rStr)
Definition: fldbas.cxx:289
OUString m_aContent
Definition: docufld.hxx:544
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt16 nWhichId)
Definition: fldbas.cxx:314
const OUString & GetText() const
Definition: docufld.hxx:483
virtual std::unique_ptr< SwFieldType > Copy() const override
Definition: docufld.cxx:2144
SwDocStatSubType
Definition: docufld.hxx:46
virtual void SetPar2(const OUString &rStr) override
set hint text
Definition: docufld.cxx:2492
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:2474
OUString m_sText
Definition: docufld.hxx:620
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:2067
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt16 nWhich) override
Definition: docufld.cxx:1687
void SetExpansion(const OUString &rStr)
Definition: docufld.hxx:527
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt16 nWhich) override
Definition: docufld.cxx:2033
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:685
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:512
struct _xmlTextWriter * xmlTextWriterPtr
sal_uInt32 GetPostItId() const
Definition: docufld.hxx:474
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:471
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:2399
OUString m_sAuthor
Definition: docufld.hxx:444
SwCharFormat * GetCharFormat()
Definition: docufld.cxx:2449
const SwDocInfoSubType DI_KEYS
Definition: docufld.hxx:68
virtual OUString ExpandImpl(SwRootFrame const *pLayout) const override
Definition: docufld.cxx:1984
sal_uInt16 m_nSubType
Definition: docufld.hxx:262
sal_uInt16 m_nSubType
Definition: docufld.hxx:510
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:2486
sw::WriterMultiListener m_aDep
Definition: docufld.hxx:640
const SwDocInfoSubType DI_SUB_MASK
Definition: docufld.hxx:82
OUString m_aContent
Definition: docufld.hxx:211
bool IsOn() const
Definition: docufld.hxx:590
sal_uInt16 m_nMaxPage
Definition: docufld.hxx:149
virtual OUString ExpandImpl(SwRootFrame const *pLayout) const override
Definition: docufld.cxx:2324
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:448
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:453
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:486
short GetOffset() const
Definition: docufld.hxx:592
SwFieldType * GetTyp() const
Definition: fldbas.hxx:382
void SetText(const OUString &rText, SwRootFrame const *pLayout)
Definition: docufld.cxx:2311
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:652
virtual std::unique_ptr< SwField > Copy() const override
Definition: docufld.cxx:1663
virtual std::unique_ptr< SwFieldType > Copy() const override
Definition: docufld.cxx:1938
const OutlinerParaObject * GetTextObject() const
Definition: docufld.hxx:488
virtual void Modify(const SfxPoolItem *, const SfxPoolItem *) override
overwritten to update all RefPageGet fields
Definition: docufld.cxx:2151
OUString m_aContent
Definition: docufld.hxx:511
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:668
SwPageNumSubType
Definition: docufld.hxx:85
const Date GetDate() const
Definition: docufld.hxx:472
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:2329
static OUString Expand(sal_uInt16 nSubType)
Definition: docufld.cxx:1943
sal_uInt32 m_nPostItId
Definition: docufld.hxx:450
static OUString Expand(sal_uLong)
Definition: docufld.cxx:317
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt16 nWhich) const override
Definition: docufld.cxx:2497
OUString m_aText
Definition: docufld.hxx:391
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt16 nWhich) override
Definition: docufld.cxx:2528
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:689
void SetExpansion(const OUString &rStr)
Definition: docufld.hxx:556
sal_uInt16 m_nType
Definition: docufld.hxx:545
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt16 nWhich) override
Definition: docufld.cxx:2415
virtual OUString ExpandImpl(SwRootFrame const *pLayout) const override
Definition: docufld.cxx:337
OUString m_sTextRLHidden
hidden redlines
Definition: docufld.hxx:621
void SetOffset(short nOff)
Definition: docufld.hxx:593
void SetName(const OUString &rName)
Definition: docufld.hxx:526
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:676
const SwDocInfoSubType DI_THEMA
Definition: docufld.hxx:67
const OUString & GetInitials() const
Definition: docufld.hxx:484
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:2196
virtual void SetSubType(sal_uInt16 nSub) override
Definition: docufld.cxx:2005
virtual OUString ExpandImpl(SwRootFrame const *pLayout) const override
Definition: docufld.cxx:2462
void SetHidden(bool bHidden)
Definition: docufld.hxx:368
SwJumpEditFormat
Definition: docufld.hxx:117
void SetCodeURL(bool bURL)
Definition: docufld.hxx:708
const OUString & GetMacro() const
Definition: docufld.hxx:402
void UpdateField(SwTextField const *pTextField, SetGetExpFields const &rSetList, SwRootFrame const *pLayout)
Definition: docufld.cxx:2248
SwExtUserField(SwExtUserFieldType *, sal_uInt16 nSub, sal_uInt32 nFormat)
Definition: docufld.cxx:1978
SwAuthorFormat
Definition: docufld.hxx:37
OUString m_sText
Definition: docufld.hxx:651
void SetUserString(const OUString &rS)
Definition: docufld.hxx:171
virtual void SetPar1(const OUString &rStr) override
set condition
Definition: docufld.cxx:1705