LibreOffice Module xmloff (master)  1
txtfldi.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 
26 #ifndef INCLUDED_XMLOFF_INC_TXTFLDI_HXX
27 #define INCLUDED_XMLOFF_INC_TXTFLDI_HXX
28 
29 #include <com/sun/star/uno/Reference.h>
30 #include <com/sun/star/beans/PropertyValue.hpp>
31 #include <com/sun/star/text/PageNumberType.hpp>
32 #include <com/sun/star/util/DateTime.hpp>
33 #include <xmloff/xmlictxt.hxx>
34 #include <xmloff/txtimp.hxx>
35 #include <xmloff/xmltkmap.hxx>
36 #include <rtl/ustrbuf.hxx>
37 #include <vector>
38 
39 namespace com::sun::star {
40  namespace xml::sax { class XAttributeList; }
41  namespace text { class XTextField; }
42  namespace beans { class XPropertySet; struct PropertyValue; }
43 }
44 
45 class SvXMLImport;
47 class SvXMLTokenMap;
48 
51 {
52  // data members
53  OUStringBuffer sContentBuffer;
54  OUString sContent;
55  OUString sServiceName;
57 
58 protected:
59  OUString sServicePrefix;
60 
61  // data members for use in subclasses
62  bool bValid;
63 
64 public:
65 
67  SvXMLImport& rImport,
68  XMLTextImportHelper& rHlp,
69  const char* pService,
70  sal_uInt16 nPrfx,
71  const OUString& rLocalName);
72 
74  virtual void SAL_CALL characters( const OUString& sContent ) override;
75 
77  virtual void SAL_CALL startFastElement(
78  sal_Int32 nElement,
79  const css::uno::Reference<css::xml::sax::XFastAttributeList> & xAttrList) override;
80 
82  virtual void SAL_CALL endFastElement(sal_Int32 nElement) override;
83 
87  SvXMLImport& rImport,
88  XMLTextImportHelper& rHlp,
89  sal_uInt16 nPrefix,
90  const OUString& rName,
91  sal_uInt16 nToken);
92 
93 protected:
96 
97  const OUString& GetServiceName() const { return sServiceName; }
98  void SetServiceName(const OUString& sStr) { sServiceName = sStr; }
99 
100  OUString const & GetContent();
101 
103  virtual void ProcessAttribute( sal_Int32 nAttrToken,
104  const OUString& sAttrValue ) = 0;
105 
107  virtual void PrepareField(
108  const css::uno::Reference< css::beans::XPropertySet> & xPropertySet) = 0;
109 
111  bool CreateField(css::uno::Reference< css::beans::XPropertySet> & xField,
112  const OUString& sServiceName);
113 
116  static void ForceUpdate(
117  const css::uno::Reference< css::beans::XPropertySet> & rPropertySet);
118 };
119 
121 {
122 
123  sal_Int16 nSubType;
124 
125  const OUString sPropertyFixed;
126  const OUString sPropertyContent;
127 
128 protected:
129  // variables for access in subclass
130  bool bFixed;
131 
132 public:
133 
135  SvXMLImport& rImport,
136  XMLTextImportHelper& rHlp,
137  sal_uInt16 nPrfx,
138  const OUString& sLocalName);
139 
140 protected:
142  virtual void SAL_CALL startFastElement(
143  sal_Int32 nElement,
144  const css::uno::Reference<css::xml::sax::XFastAttributeList> & xAttrList) override;
145 
147  virtual void ProcessAttribute( sal_Int32 nAttrToken,
148  const OUString& sAttrValue ) override;
149 
151  virtual void PrepareField(
152  const css::uno::Reference< css::beans::XPropertySet> & xPropertySet) override;
153 };
154 
157 {
159  const OUString sPropertyFixed;
160  const OUString sPropertyContent;
161 
162 public:
163 
165  SvXMLImport& rImport,
166  XMLTextImportHelper& rHlp,
167  sal_uInt16 nPrfx,
168  const OUString& sLocalName);
169 
170 private:
172  virtual void SAL_CALL startFastElement(
173  sal_Int32 nElement,
174  const css::uno::Reference<css::xml::sax::XFastAttributeList> & xAttrList) override;
175 
177  virtual void ProcessAttribute( sal_Int32 nAttrToken,
178  const OUString& sAttrValue ) override;
179 
181  virtual void PrepareField(
182  const css::uno::Reference< css::beans::XPropertySet> & xPropertySet) override;
183 };
184 
186 {
187  const OUString sPropertyHint;
188 
189  OUString sDescription;
190 
191  sal_Int16 nPlaceholderType;
192 
193 public:
194 
196  SvXMLImport& rImport,
197  XMLTextImportHelper& rHlp,
198  sal_uInt16 nPrfx,
199  const OUString& sLocalName);
200 
201 private:
203  virtual void ProcessAttribute( sal_Int32 nAttrToken,
204  const OUString& sAttrValue ) override;
205 
207  virtual void PrepareField(
208  const css::uno::Reference< css::beans::XPropertySet> & xPropertySet) override;
209 };
210 
212 {
213 protected:
214  const OUString sPropertyNumberFormat;
215  const OUString sPropertyFixed;
216  const OUString sPropertyDateTimeValue;
217  const OUString sPropertyDateTime;
218  const OUString sPropertyIsDate;
219  const OUString sPropertyIsFixedLanguage;
220 
221  css::util::DateTime aDateTimeValue;
222  sal_Int32 nAdjust;
223  sal_Int32 nFormatKey;
224  bool bTimeOK;
225  bool bFormatOK;
226  bool bFixed;
227  bool bIsDate; // is this a date?
228  // (for XMLDateFieldImportContext, really)
230 
231 public:
232 
234  SvXMLImport& rImport,
235  XMLTextImportHelper& rHlp,
236  sal_uInt16 nPrfx,
237  const OUString& sLocalName);
238 
240  virtual void ProcessAttribute( sal_Int32 nAttrToken,
241  const OUString& sAttrValue ) override;
242 
244  virtual void PrepareField(
245  const css::uno::Reference< css::beans::XPropertySet> & xPropertySet) override;
246 };
247 
251 {
252 public:
253 
255  SvXMLImport& rImport,
256  XMLTextImportHelper& rHlp,
257  sal_uInt16 nPrfx,
258  const OUString& sLocalName);
259 
261  virtual void ProcessAttribute( sal_Int32 nAttrToken,
262  const OUString& sAttrValue ) override;
263 };
264 
267 {
268  const OUString sPropertySubType;
269  const OUString sPropertyNumberingType;
270 
271  OUString sString;
272  css::text::PageNumberType eSelectPage;
273  bool sStringOK;
275 
276 public:
277 
279  SvXMLImport& rImport,
280  XMLTextImportHelper& rHlp,
281  sal_uInt16 nPrfx,
282  const OUString& sLocalName);
283 
285  virtual void ProcessAttribute( sal_Int32 nAttrToken,
286  const OUString& sAttrValue ) override;
287 
289  virtual void PrepareField(
290  const css::uno::Reference< css::beans::XPropertySet> & xPropertySet) override;
291 };
292 
295 {
296  const OUString sPropertySubType;
297  const OUString sPropertyNumberingType;
298  const OUString sPropertyOffset;
299 
300  OUString sNumberFormat;
301  OUString sNumberSync;
302  sal_Int16 nPageAdjust;
303  css::text::PageNumberType eSelectPage;
304  bool sNumberFormatOK;
306 
307 public:
308 
310  SvXMLImport& rImport,
311  XMLTextImportHelper& rHlp,
312  sal_uInt16 nPrfx,
313  const OUString& sLocalName);
314 
315 
317  virtual void ProcessAttribute( sal_Int32 nAttrToken,
318  const OUString& sAttrValue ) override;
319 
321  virtual void PrepareField(
322  const css::uno::Reference< css::beans::XPropertySet> & xPropertySet) override;
323 };
324 
327 {
328  OUString m_sDatabaseName;
329  OUString m_sDatabaseURL;
330  OUString m_sTableName;
331 
332  sal_Int32 m_nCommandType;
334 
338 
339 protected:
344 
347  XMLTextImportHelper& rHlp,
348  const char* pServiceName,
349  sal_uInt16 nPrfx,
350  const OUString& sLocalName,
351  bool bUseDisplay );
352 
353 public:
354 
356  virtual void ProcessAttribute( sal_Int32 nAttrToken,
357  const OUString& sAttrValue ) override;
358 
360  virtual void PrepareField(
361  const css::uno::Reference< css::beans::XPropertySet> & xPropertySet) override;
362 
364  virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(
365  sal_Int32 nElement,
366  const css::uno::Reference< css::xml::sax::XFastAttributeList >& AttrList ) override;
367 };
368 
371 {
372 public:
373 
375  XMLTextImportHelper& rHlp,
376  sal_uInt16 nPrfx,
377  const OUString& sLocalName);
378 
380  virtual void ProcessAttribute( sal_Int32 nAttrToken,
381  const OUString& sAttrValue ) override;
382 };
383 
386 {
387  const OUString sPropertyCondition;
388  const OUString sTrue;
389  OUString sCondition;
391 
392 protected:
393  // for use in child classes
395  XMLTextImportHelper& rHlp,
396  const char* pServiceName,
397  sal_uInt16 nPrfx,
398  const OUString& sLocalName);
399 
400 public:
401 
403  XMLTextImportHelper& rHlp,
404  sal_uInt16 nPrfx,
405  const OUString& sLocalName);
406 
408  virtual void ProcessAttribute( sal_Int32 nAttrToken,
409  const OUString& sAttrValue ) override;
410 
412  virtual void PrepareField(
413  const css::uno::Reference< css::beans::XPropertySet> & xPropertySet) override;
414 };
415 
418 {
419  const OUString sPropertySetNumber;
420  sal_Int32 nNumber;
421  bool bNumberOK;
422 
423 public:
424 
426  XMLTextImportHelper& rHlp,
427  sal_uInt16 nPrfx,
428  const OUString& sLocalName);
429 
431  virtual void ProcessAttribute( sal_Int32 nAttrToken,
432  const OUString& sAttrValue ) override;
433 
435  virtual void PrepareField(
436  const css::uno::Reference<
437  css::beans::XPropertySet> & xPropertySet) override;
438 };
439 
442 {
443  const OUString sPropertyNumberingType;
444  const OUString sPropertySetNumber;
445  OUString sNumberFormat;
446  OUString sNumberSync;
447  sal_Int32 nValue;
448  bool bValueOK;
449 
450 public:
451 
453  XMLTextImportHelper& rHlp,
454  sal_uInt16 nPrfx,
455  const OUString& sLocalName);
456 
458  virtual void ProcessAttribute( sal_Int32 nAttrToken,
459  const OUString& sAttrValue ) override;
460 
462  virtual void PrepareField(
463  const css::uno::Reference< css::beans::XPropertySet> & xPropertySet) override;
464 };
465 
468 {
469  const OUString sPropertyFixed;
470  const OUString sPropertyContent;
471  const OUString sPropertyAuthor;
473 
474 protected:
475  bool bFixed;
478 
479 public:
480 
482  XMLTextImportHelper& rHlp,
483  sal_uInt16 nPrfx,
484  const OUString& sLocalName,
485  sal_uInt16 nToken,
486  bool bContent,
487  bool bAuthor);
488 
489 protected:
491  virtual void ProcessAttribute( sal_Int32 nAttrToken,
492  const OUString& sAttrValue ) override;
493 
495  virtual void PrepareField(
496  const css::uno::Reference< css::beans::XPropertySet> & xPropertySet) override;
497 
498  static const char* MapTokenToServiceName(sal_uInt16 nToken);
499 };
500 
503 {
504  const OUString sPropertyNumberFormat;
505  const OUString sPropertyIsDate;
506  const OUString sPropertyIsFixedLanguage;
507 
508  sal_Int32 nFormat;
509  bool bFormatOK;
510  bool bIsDate;
513 
514 public:
515 
517  XMLTextImportHelper& rHlp,
518  sal_uInt16 nPrfx,
519  const OUString& sLocalName,
520  sal_uInt16 nToken);
521 
522 private:
524  virtual void ProcessAttribute( sal_Int32 nAttrToken,
525  const OUString& sAttrValue ) override;
526 
528  virtual void PrepareField(
529  const css::uno::Reference< css::beans::XPropertySet> & xPropertySet) override;
530 };
531 
534 {
535 public:
536 
538  XMLTextImportHelper& rHlp,
539  sal_uInt16 nPrfx,
540  const OUString& sLocalName,
541  sal_uInt16 nToken);
542 
543 private:
545  virtual void PrepareField(
546  const css::uno::Reference<css::beans::XPropertySet> & xPropertySet) override;
547 };
548 
551 {
552  OUString aName;
553  const OUString sPropertyName;
554  const OUString sPropertyNumberFormat;
555  const OUString sPropertyIsFixedLanguage;
556  sal_Int32 nFormat;
557  bool bFormatOK;
559 
560 public:
561 
563  XMLTextImportHelper& rHlp,
564  sal_uInt16 nPrfx,
565  const OUString& sLocalName,
566  sal_uInt16 nToken);
567 
568 private:
570  virtual void ProcessAttribute( sal_Int32 nAttrToken,
571  const OUString& sAttrValue ) override;
572  virtual void PrepareField(
573  const css::uno::Reference<css::beans::XPropertySet> & xPropertySet) override;
574 };
575 
578 {
579  const OUString sPropertyCondition;
580  const OUString sPropertyIsHidden;
581 
582  OUString sCondition;
583  bool bIsHidden;
584 
585 public:
586 
588  XMLTextImportHelper& rHlp,
589  sal_uInt16 nPrfx,
590  const OUString& sLocalName);
591 
592 private:
594  virtual void ProcessAttribute( sal_Int32 nAttrToken,
595  const OUString& sAttrValue ) override;
596 
598  virtual void PrepareField(
599  const css::uno::Reference<css::beans::XPropertySet> & xPropertySet) override;
600 };
601 
604 {
605  const OUString sPropertyCondition;
607 
608  OUString sCondition;
609  OUString sTrueContent;
610  OUString sFalseContent;
611 
613  bool bTrueOK;
614  bool bFalseOK;
616 
617 public:
618 
620  XMLTextImportHelper& rHlp,
621  sal_uInt16 nPrfx,
622  const OUString& sLocalName);
623 
624 private:
626  virtual void ProcessAttribute( sal_Int32 nAttrToken,
627  const OUString& sAttrValue ) override;
628 
630  virtual void PrepareField(
631  const css::uno::Reference<css::beans::XPropertySet> & xPropertySet) override;
632 };
633 
636 {
637  const OUString sPropertyCondition;
638  const OUString sPropertyContent;
639  const OUString sPropertyIsHidden;
640 
641  OUString sCondition;
642  OUString sString;
643 
645  bool bStringOK;
646  bool bIsHidden;
647 
648 public:
649 
651  XMLTextImportHelper& rHlp,
652  sal_uInt16 nPrfx,
653  const OUString& sLocalName);
654 
655 private:
657  virtual void ProcessAttribute( sal_Int32 nAttrToken,
658  const OUString& sAttrValue ) override;
659 
661  virtual void PrepareField(
662  const css::uno::Reference<css::beans::XPropertySet> & xPropertySet) override;
663 };
664 
667 {
668  const OUString sPropertyFixed;
669  const OUString sPropertyFileFormat;
671 
672  sal_Int16 nFormat;
673  bool bFixed;
674 
675 public:
676 
678  XMLTextImportHelper& rHlp,
679  sal_uInt16 nPrfx,
680  const OUString& sLocalName);
681 
682 private:
684  virtual void ProcessAttribute( sal_Int32 nAttrToken,
685  const OUString& sAttrValue ) override;
686 
688  virtual void PrepareField(
689  const css::uno::Reference<css::beans::XPropertySet> & xPropertySet) override;
690 };
691 
694 {
695  const OUString sPropertyFileFormat;
696 
697  sal_Int16 nFormat;
698 
699 public:
700 
702  XMLTextImportHelper& rHlp,
703  sal_uInt16 nPrfx,
704  const OUString& sLocalName);
705 
706 private:
708  virtual void ProcessAttribute( sal_Int32 nAttrToken,
709  const OUString& sAttrValue ) override;
710 
712  virtual void PrepareField(
713  const css::uno::Reference<css::beans::XPropertySet> & xPropertySet) override;
714 };
715 
718 {
719  sal_Int16 nFormat;
721 
722 public:
723 
725  XMLTextImportHelper& rHlp,
726  sal_uInt16 nPrfx,
727  const OUString& sLocalName);
728 
729 private:
731  virtual void ProcessAttribute( sal_Int32 nAttrToken,
732  const OUString& sAttrValue ) override;
733 
735  virtual void PrepareField(
736  const css::uno::Reference<css::beans::XPropertySet> & xPropertySet) override;
737 };
738 
741 {
742  const OUString sPropertyNumberingType;
743 
744  OUString sNumberFormat;
745  OUString sLetterSync;
746 
748 
749 public:
750 
752  XMLTextImportHelper& rHlp,
753  sal_uInt16 nPrfx,
754  const OUString& sLocalName,
755  sal_uInt16 nToken);
756 
757 private:
759  virtual void ProcessAttribute( sal_Int32 nAttrToken,
760  const OUString& sAttrValue ) override;
761 
763  virtual void PrepareField(
764  const css::uno::Reference<css::beans::XPropertySet> & xPropertySet) override;
765 
766  static const char* MapTokenToServiceName(sal_uInt16 nToken);
767 };
768 
771 {
772  OUString sNumberFormat;
773  OUString sLetterSync;
774 
776 
777 public:
778 
780  XMLTextImportHelper& rHlp,
781  sal_uInt16 nPrfx,
782  const OUString& sLocalName);
783 
784 private:
786  virtual void ProcessAttribute( sal_Int32 nAttrToken,
787  const OUString& sAttrValue ) override;
788 
790  virtual void PrepareField(
791  const css::uno::Reference<css::beans::XPropertySet> & xPropertySet) override;
792 };
793 
796 {
797  sal_Int16 nAdjust;
798  bool bActive;
799 
800 public:
801 
803  XMLTextImportHelper& rHlp,
804  sal_uInt16 nPrfx,
805  const OUString& sLocalName);
806 
807 private:
809  virtual void ProcessAttribute( sal_Int32 nAttrToken,
810  const OUString& sAttrValue ) override;
811 
813  virtual void PrepareField(
814  const css::uno::Reference<css::beans::XPropertySet> & xPropertySet) override;
815 };
816 
819 {
820  OUString sDescription;
822 
823  OUString sMacro; // macro for old documents (pre 638i)
824 
826 
827 public:
828 
830  XMLTextImportHelper& rHlp,
831  sal_uInt16 nPrfx,
832  const OUString& sLocalName);
833 
834 private:
836  virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(
837  sal_Int32 nElement,
838  const css::uno::Reference< css::xml::sax::XFastAttributeList >& AttrList ) override;
839 
841  virtual void ProcessAttribute( sal_Int32 nAttrToken,
842  const OUString& sAttrValue ) override;
843 
845  virtual void PrepareField(
846  const css::uno::Reference<css::beans::XPropertySet> & xPropertySet) override;
847 };
848 
851 {
852  OUString sName;
853  OUString sLanguage;
854  sal_uInt16 nElementToken;
855  sal_Int16 nSource;
856  sal_Int16 nType;
857 
858  bool bNameOK;
859  bool bTypeOK;
860 
861 public:
862 
864  XMLTextImportHelper& rHlp,
865  sal_uInt16 nToken,
866  sal_uInt16 nPrfx,
867  const OUString& sLocalName);
868 
869 private:
871  virtual void SAL_CALL startFastElement(
872  sal_Int32 nElement,
873  const css::uno::Reference<css::xml::sax::XFastAttributeList> & xAttrList) override;
874 
876  virtual void ProcessAttribute( sal_Int32 nAttrToken,
877  const OUString& sAttrValue ) override;
878 
880  virtual void PrepareField(
881  const css::uno::Reference<css::beans::XPropertySet> & xPropertySet) override;
882 };
883 
886 {
887 public:
888 
890  sal_uInt16 nPrfx,
891  const OUString& sLocalName);
892 
893  virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(
894  sal_Int32 nElement,
895  const css::uno::Reference< css::xml::sax::XFastAttributeList >& AttrList ) override;
896 };
897 
900 {
901 public:
902 
904 
905  // create fieldmaster
906  virtual void SAL_CALL startFastElement(
907  sal_Int32 nElement,
908  const css::uno::Reference<css::xml::sax::XFastAttributeList> & xAttrList) override;
909 };
910 
913 {
914  OUString sName;
916 
917 public:
918 
920  XMLTextImportHelper& rHlp,
921  sal_uInt16 nPrfx,
922  const OUString& sLocalName);
923 
924 private:
926  virtual void ProcessAttribute( sal_Int32 nAttrToken,
927  const OUString& sAttrValue ) override;
928 
930  virtual void SAL_CALL endFastElement(sal_Int32 nElement) override;
931 
933  virtual void PrepareField(
934  const css::uno::Reference<css::beans::XPropertySet> & xPropertySet) override;
935 };
936 
939 {
940 
941 public:
942 
944  XMLTextImportHelper& rHlp,
945  sal_uInt16 nPrfx,
946  const OUString& sLocalName);
947 
948 private:
950  virtual void ProcessAttribute( sal_Int32 nAttrToken,
951  const OUString& sAttrValue ) override;
952 
954  virtual void PrepareField(
955  const css::uno::Reference<css::beans::XPropertySet> & xPropertySet) override;
956 };
957 
960 {
961 public:
962 
964  SvXMLImport& rImport,
965  XMLTextImportHelper& rHlp,
966  sal_uInt16 nPrfx,
967  const OUString& sLocalName);
968 
970  virtual void ProcessAttribute( sal_Int32 nAttrToken,
971  const OUString& sAttrValue ) override;
972 
974  virtual void PrepareField(
975  const css::uno::Reference<css::beans::XPropertySet> & xPropertySet) override;
976 };
977 
980 {
981  OUString sURL;
982  OUString sFrame;
983  bool bFrameOK;
984 
985 public:
986 
988  XMLTextImportHelper& rHlp,
989  sal_uInt16 nPrfx,
990  const OUString& sLocalName);
991 
992 private:
994  virtual void ProcessAttribute( sal_Int32 nAttrToken,
995  const OUString& sAttrValue ) override;
996 
998  virtual void PrepareField(
999  const css::uno::Reference<css::beans::XPropertySet> & xPropertySet) override;
1000 };
1001 
1004 {
1005  ::std::vector< css::beans::PropertyValue> aValues;
1006 
1007 public:
1008 
1010  XMLTextImportHelper& rHlp,
1011  sal_uInt16 nPrfx,
1012  const OUString& sLocalName);
1013 
1014 private:
1016  virtual void SAL_CALL startFastElement(
1017  sal_Int32 nElement,
1018  const css::uno::Reference<css::xml::sax::XFastAttributeList> & xAttrList) override;
1019 
1021  virtual void ProcessAttribute( sal_Int32 nAttrToken,
1022  const OUString& sAttrValue ) override;
1023 
1025  virtual void PrepareField(
1026  const css::uno::Reference<css::beans::XPropertySet> & xPropertySet) override;
1027 
1028  static const char* MapBibliographyFieldName(const OUString& sName);
1029 };
1030 
1033 {
1034  OUStringBuffer aAuthorBuffer;
1035  OUStringBuffer aInitialsBuffer;
1036  OUString aName;
1037  OUStringBuffer aTextBuffer;
1038  OUStringBuffer aDateBuffer;
1039  OUString aResolved;
1040 
1041  css::uno::Reference < css::beans::XPropertySet > mxField;
1042  css::uno::Reference < css::text::XTextCursor > mxCursor;
1043  css::uno::Reference < css::text::XTextCursor > mxOldCursor;
1044 
1045  sal_uInt16 m_nToken;
1046 
1047 public:
1048 
1050  XMLTextImportHelper& rHlp,
1051  sal_uInt16 nToken,
1052  sal_uInt16 nPrfx,
1053  const OUString& sLocalName);
1054 
1055 private:
1057  virtual void ProcessAttribute( sal_Int32 nAttrToken,
1058  const OUString& sAttrValue ) override;
1059 
1061  virtual void PrepareField(
1062  const css::uno::Reference< css::beans::XPropertySet > & xPropertySet) override;
1063 
1065  sal_uInt16 nPrefix,
1066  const OUString& rLocalName,
1067  const css::uno::Reference<css::xml::sax::XAttributeList >& xAttrList ) override;
1068  virtual void SAL_CALL endFastElement(sal_Int32 nElement) override;
1069 };
1070 
1073 {
1074  OUString sContent;
1075  OUString sScriptType;
1076 
1078 
1079 public:
1080 
1082  XMLTextImportHelper& rHlp,
1083  sal_uInt16 nPrfx,
1084  const OUString& sLocalName);
1085 
1086 private:
1088  virtual void ProcessAttribute( sal_Int32 nAttrToken,
1089  const OUString& sAttrValue ) override;
1090 
1092  virtual void PrepareField(
1093  const css::uno::Reference<css::beans::XPropertySet> & xPropertySet) override;
1094 };
1095 
1098 {
1099  sal_Int16 mnKind;
1100 
1101 public:
1102 
1104  XMLTextImportHelper& rHlp,
1105  sal_uInt16 nPrfx,
1106  const OUString& sLocalName);
1107 
1108 private:
1110  virtual void ProcessAttribute( sal_Int32 nAttrToken,
1111  const OUString& sAttrValue ) override;
1112 
1114  virtual void PrepareField(
1115  const css::uno::Reference<css::beans::XPropertySet> & xPropertySet) override;
1116 };
1117 
1120 {
1121  std::vector<OUString> aLabels;
1122  OUString sName;
1123  OUString sHelp;
1124  OUString sHint;
1125  sal_Int32 nSelected;
1126  bool bNameOK;
1127  bool bHelpOK;
1128  bool bHintOK;
1129 
1130 public:
1131 
1133  XMLTextImportHelper& rHlp,
1134  sal_uInt16 nPrfx,
1135  const OUString& sLocalName);
1136 
1137  virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(
1138  sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList >& AttrList ) override;
1139 
1140 private:
1142  virtual void ProcessAttribute( sal_Int32 nAttrToken,
1143  const OUString& sAttrValue ) override;
1144 
1146  virtual void PrepareField(
1147  const css::uno::Reference<css::beans::XPropertySet> & xPropertySet) override;
1148 };
1149 
1152 {
1153 public:
1154 
1156  SvXMLImport& rImport,
1157  XMLTextImportHelper& rHlp,
1158  sal_uInt16 nPrfx,
1159  const OUString& sLocalName);
1160 
1162  virtual void ProcessAttribute( sal_Int32 nAttrToken,
1163  const OUString& sAttrValue ) override;
1164 
1166  virtual void PrepareField(
1167  const css::uno::Reference<css::beans::XPropertySet> & xPropertySet) override;
1168 };
1169 
1172 {
1173 public:
1174 
1176  SvXMLImport& rImport,
1177  XMLTextImportHelper& rHlp,
1178  sal_uInt16 nPrfx,
1179  const OUString& sLocalName);
1180 
1182  virtual void ProcessAttribute( sal_Int32 nAttrToken,
1183  const OUString& sAttrValue ) override;
1184 
1186  virtual void PrepareField(
1187  const css::uno::Reference<css::beans::XPropertySet> & xPropertySet) override;
1188 };
1189 
1192 {
1193 public:
1194 
1196  SvXMLImport& rImport,
1197  XMLTextImportHelper& rHlp,
1198  sal_uInt16 nPrfx,
1199  const OUString& sLocalName);
1200 
1202  virtual void ProcessAttribute( sal_Int32 nAttrToken,
1203  const OUString& sAttrValue ) override;
1204 
1206  virtual void PrepareField(
1207  const css::uno::Reference<css::beans::XPropertySet> & xPropertySet) override;
1208 };
1209 
1210 #endif
1211 
1212 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
XMLScriptImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_uInt16 nPrfx, const OUString &sLocalName)
Definition: txtfldi.cxx:3506
XMLDropDownFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_uInt16 nPrfx, const OUString &sLocalName)
Definition: txtfldi.cxx:3607
::std::vector< css::beans::PropertyValue > aValues
Definition: txtfldi.hxx:1005
XMLPlaceholderFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_uInt16 nPrfx, const OUString &sLocalName)
Definition: txtfldi.cxx:885
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
Definition: txtfldi.cxx:2274
const OUString sPropertyNumberingType
Definition: txtfldi.hxx:269
virtual void SAL_CALL endFastElement(sal_Int32 nElement) override
create XTextField and insert into document; calls PrepareTextField
Definition: txtfldi.cxx:151
XMLHeaderFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_uInt16 nPrfx, const OUString &sLocalName)
import header fields ()
Definition: txtfldi.cxx:3734
virtual void ProcessAttribute(sal_Int32 nAttrToken, const OUString &sAttrValue) override
process attribute values
Definition: txtfldi.cxx:604
virtual void ProcessAttribute(sal_Int32 nAttrToken, const OUString &sAttrValue) override
process attribute values
Definition: txtfldi.cxx:1287
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
Definition: txtfldi.cxx:2087
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
Definition: txtfldi.cxx:1727
const OUString sPropertyFixed
Definition: txtfldi.hxx:668
virtual SvXMLImportContextRef CreateChildContext(sal_uInt16 nPrefix, const OUString &rLocalName, const css::uno::Reference< css::xml::sax::XAttributeList > &xAttrList) override
Create a children element context.
Definition: txtfldi.cxx:3312
import file name fields ()
Definition: txtfldi.hxx:666
import macro fields ()
Definition: txtfldi.hxx:818
static const char * MapTokenToServiceName(sal_uInt16 nToken)
Definition: txtfldi.cxx:1548
const OUString sPropertySetNumber
Definition: txtfldi.hxx:419
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
Definition: txtfldi.cxx:1507
virtual void ProcessAttribute(sal_Int32 nAttrToken, const OUString &sAttrValue) override
process attribute values
Definition: txtfldi.cxx:1849
const OUString sPropertyFixed
API subtype for ExtUser field.
Definition: txtfldi.hxx:125
const OUString sPropertyFixed
Definition: txtfldi.hxx:469
superclass for database fields: handle database and table names
Definition: txtfldi.hxx:326
virtual void ProcessAttribute(sal_Int32 nAttrToken, const OUString &sAttrValue) override
element name w/o prefix
Definition: txtfldi.cxx:3795
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
process attributes (fill aValues)
Definition: txtfldi.cxx:3072
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
parses attributes and calls ProcessAttribute
Definition: txtfldi.cxx:132
XMLDatabaseSelectImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_uInt16 nPrfx, const OUString &sLocalName)
Definition: txtfldi.cxx:1362
inherit sender field because of fixed attribute in ProcessAttributes
Definition: txtfldi.hxx:156
const OUString sPropertyIsHidden
Definition: txtfldi.hxx:639
signed char sal_Int8
import conditional text fields ()
Definition: txtfldi.hxx:635
const OUString sPropertyIsFixedLanguage
Definition: txtfldi.hxx:555
OUString sServiceName
character data after collection
Definition: txtfldi.hxx:55
XMLPageNameFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_uInt16 nPrfx, const OUString &sLocalName)
import page|slide name fields ()
Definition: txtfldi.cxx:2955
import hidden paragraph fields ()
Definition: txtfldi.hxx:577
import docinfo fields with date or time attributes and numberformats
Definition: txtfldi.hxx:502
const OUString sPropertyIsHidden
Definition: txtfldi.hxx:580
virtual void ProcessAttribute(sal_Int32 nAttrToken, const OUString &sAttrValue) override
process attribute values
Definition: txtfldi.cxx:1773
const OUString sPropertyDateTimeValue
Definition: txtfldi.hxx:216
virtual void ProcessAttribute(sal_Int32 nAttrToken, const OUString &sAttrValue) override
process attribute values
Definition: txtfldi.cxx:2468
Import an annotation field ()
Definition: txtfldi.hxx:1032
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
Definition: txtfldi.cxx:2487
virtual void ProcessAttribute(sal_Int32 nAttrToken, const OUString &sAttrValue) override
process attribute values
Definition: txtfldi.cxx:2402
import footer fields ()
Definition: txtfldi.hxx:1191
abstract class for text field import
Definition: txtfldi.hxx:50
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
Definition: txtfldi.cxx:2019
import page continuation fields ()
Definition: txtfldi.hxx:266
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
element name w/o prefix
Definition: txtfldi.cxx:543
virtual void ProcessAttribute(sal_Int32 nAttrToken, const OUString &sAttrValue) override
no attributes -> empty method
Definition: txtfldi.cxx:2993
virtual void ProcessAttribute(sal_Int32 nAttrToken, const OUString &sAttrValue) override
process attribute values
Definition: txtfldi.cxx:2194
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
element name w/o prefix
Definition: txtfldi.cxx:665
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
Definition: txtfldi.cxx:1950
const OUString sPropertyIsDate
Definition: txtfldi.hxx:218
XMLPageVarGetFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_uInt16 nPrfx, const OUString &sLocalName)
Definition: txtfldi.cxx:2338
const OUString & GetServiceName() const
Definition: txtfldi.hxx:97
bool CreateField(css::uno::Reference< css::beans::XPropertySet > &xField, const OUString &sServiceName)
create field from ServiceName
Definition: txtfldi.cxx:189
const OUString sPropertyCondition
Definition: txtfldi.hxx:605
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
Definition: txtfldi.cxx:2160
virtual void ProcessAttribute(sal_Int32 nAttrToken, const OUString &sAttrValue) override
process attribute values
Definition: txtfldi.cxx:3572
XMLMeasureFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_uInt16 nPrfx, const OUString &sLocalName)
Definition: txtfldi.cxx:3561
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
no attributes -> empty method
Definition: txtfldi.cxx:2947
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
Definition: txtfldi.cxx:1038
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
set properties
Definition: txtfldi.cxx:3458
virtual void ProcessAttribute(sal_Int32 nAttrToken, const OUString &sAttrValue) override
process attribute values
Definition: txtfldi.cxx:1422
XMLHiddenTextImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_uInt16 nPrfx, const OUString &sLocalName)
Definition: txtfldi.cxx:1964
virtual void ProcessAttribute(sal_Int32 nAttrToken, const OUString &sAttrValue) override
element name w/o prefix
Definition: txtfldi.cxx:1108
import header fields ()
Definition: txtfldi.hxx:1151
static void ForceUpdate(const css::uno::Reference< css::beans::XPropertySet > &rPropertySet)
force an update of the field's value call update on optional XUpdatable interface; (disable Fixed pro...
Definition: txtfldi.cxx:511
XMLTextImportHelper & rTextImportHelper
service name for text field
Definition: txtfldi.hxx:56
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
Definition: txtfldi.cxx:2432
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
Definition: txtfldi.cxx:2231
XMLPageContinuationImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_uInt16 nPrfx, const OUString &sLocalName)
continuation string encountered?
Definition: txtfldi.cxx:728
const OUString sPropertyOffset
Definition: txtfldi.hxx:298
XMLDateTimeFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_uInt16 nPrfx, const OUString &sLocalName)
import footer fields ()
Definition: txtfldi.cxx:3783
XMLUrlFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_uInt16 nPrfx, const OUString &sLocalName)
Definition: txtfldi.cxx:2982
bool sStringOK
previous, current
Definition: txtfldi.hxx:274
import date fields (); inherit from TimeField to reuse implementation
Definition: txtfldi.hxx:250
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
Definition: txtfldi.cxx:623
virtual void ProcessAttribute(sal_Int32 nAttrToken, const OUString &sAttrValue) override
process attribute values
Definition: txtfldi.cxx:1700
import dde fields ()
Definition: txtfldi.hxx:912
XMLDatabaseFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, const char *pServiceName, sal_uInt16 nPrfx, const OUString &sLocalName, bool bUseDisplay)
protected constructor: only for subclasses
Definition: txtfldi.cxx:1152
import bibliography info fields ()
Definition: txtfldi.hxx:1003
virtual void ProcessAttribute(sal_Int32 nAttrToken, const OUString &sAttrValue) override
process attribute values
Definition: txtfldi.cxx:2860
static XMLTextFieldImportContext * CreateTextFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_uInt16 nPrefix, const OUString &rName, sal_uInt16 nToken)
create the appropriate field context from (for use in paragraph import)
Definition: txtfldi.cxx:217
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
set properties
Definition: txtfldi.cxx:3541
rtl::Reference< XMLEventsImportContext > xEventContext
Definition: txtfldi.hxx:821
XMLDatabaseNumberImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_uInt16 nPrfx, const OUString &sLocalName)
Definition: txtfldi.cxx:1407
Import a script field ()
Definition: txtfldi.hxx:1072
XMLDatabaseNextImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, const char *pServiceName, sal_uInt16 nPrfx, const OUString &sLocalName)
Definition: txtfldi.cxx:1299
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
empty method
Definition: txtfldi.cxx:2918
import database next fields ()
Definition: txtfldi.hxx:385
const OUString sPropertyFileFormat
Definition: txtfldi.hxx:695
import hyperlinks as URL fields (Calc, Impress, Draw) ()
Definition: txtfldi.hxx:979
virtual void ProcessAttribute(sal_Int32 nAttrToken, const OUString &sAttrValue) override
process attribute values
Definition: txtfldi.cxx:1322
virtual void ProcessAttribute(sal_Int32 nAttrToken, const OUString &sAttrValue) override
element name w/o prefix
Definition: txtfldi.cxx:740
virtual void ProcessAttribute(sal_Int32 nAttrToken, const OUString &sAttrValue) override
process attribute values
Definition: txtfldi.cxx:1978
const OUString sPropertyCondition
Definition: txtfldi.hxx:387
const OUString sPropertyCondition
Definition: txtfldi.hxx:579
exports com.sun.star. text
XMLDdeFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_uInt16 nPrfx, const OUString &sLocalName)
Definition: txtfldi.cxx:2850
virtual void SAL_CALL characters(const OUString &sContent) override
element name w/o prefix
Definition: txtfldi.cxx:184
XMLDdeFieldDeclImportContext(SvXMLImport &rImport)
Definition: txtfldi.cxx:2739
css::util::DateTime aDateTimeValue
Definition: txtfldi.hxx:221
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
no attributes -> empty method
Definition: txtfldi.cxx:3014
virtual void ProcessAttribute(sal_Int32 nAttrToken, const OUString &sAttrValue) override
process attribute values
Definition: txtfldi.cxx:2256
const OUString sPropertyCurrentPresentation
Definition: txtfldi.hxx:670
css::uno::Reference< css::text::XTextCursor > mxCursor
Definition: txtfldi.hxx:1042
XMLChapterImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_uInt16 nPrfx, const OUString &sLocalName)
Definition: txtfldi.cxx:2183
XMLDateTimeDocInfoImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_uInt16 nPrfx, const OUString &sLocalName, sal_uInt16 nToken)
Definition: txtfldi.cxx:1656
css::uno::Reference< css::text::XTextCursor > mxOldCursor
Definition: txtfldi.hxx:1043
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &AttrList) override
for children
Definition: txtfldi.cxx:2452
const OUString sPropertyName
Definition: txtfldi.hxx:553
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
Definition: txtfldi.cxx:1454
virtual void ProcessAttribute(sal_Int32 nAttrToken, const OUString &sAttrValue) override
element name w/o prefix
Definition: txtfldi.cxx:2966
class SAL_NO_VTABLE XPropertySet
XMLPageNumberImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_uInt16 nPrfx, const OUString &sLocalName)
Definition: txtfldi.cxx:784
virtual void ProcessAttribute(sal_Int32 nAttrToken, const OUString &sAttrValue) override
element name w/o prefix
Definition: txtfldi.cxx:895
virtual void ProcessAttribute(sal_Int32 nAttrToken, const OUString &sAttrValue) override
element name w/o prefix
Definition: txtfldi.cxx:3746
virtual void ProcessAttribute(sal_Int32 nAttrToken, const OUString &sAttrValue) override
element name w/o prefix
Definition: txtfldi.cxx:799
import revision field ()
Definition: txtfldi.hxx:533
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
Definition: txtfldi.cxx:937
import sheet name fields (Calc) dde fields ()
Definition: txtfldi.hxx:938
virtual void ProcessAttribute(sal_Int32 nAttrToken, const OUString &sAttrValue) override
process attribute values
Definition: txtfldi.cxx:2137
XMLTextImportHelper & GetImportHelper()
get helper
Definition: txtfldi.hxx:95
OUStringBuffer sContentBuffer
Definition: txtfldi.hxx:53
virtual void ProcessAttribute(sal_Int32 nAttrToken, const OUString &sAttrValue) override
process attribute values
Definition: txtfldi.cxx:1906
const OUString sPropertyCondition
Definition: txtfldi.hxx:637
import measure fields ()
Definition: txtfldi.hxx:1097
XMLMacroFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_uInt16 nPrfx, const OUString &sLocalName)
Definition: txtfldi.cxx:2443
virtual void ProcessAttribute(sal_Int32 nAttrToken, const OUString &sAttrValue) override
element name w/o prefix
Definition: txtfldi.cxx:988
virtual void ProcessAttribute(sal_Int32 nAttrToken, const OUString &sAttrValue) override
process attribute values
Definition: txtfldi.cxx:676
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
Definition: txtfldi.cxx:2662
virtual void ProcessAttribute(sal_Int32 nAttrToken, const OUString &sAttrValue) override
process attributes
Definition: txtfldi.cxx:3516
XMLPageVarSetFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_uInt16 nPrfx, const OUString &sLocalName)
Definition: txtfldi.cxx:2391
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
Definition: txtfldi.cxx:3752
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &AttrList) override
handle database-location children
Definition: txtfldi.cxx:1217
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
Definition: txtfldi.cxx:3695
static const char * MapBibliographyFieldName(const OUString &sName)
Definition: txtfldi.cxx:3138
OUString sContent
collect character data
Definition: txtfldi.hxx:54
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
Definition: txtfldi.cxx:1878
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
Definition: txtfldi.cxx:2973
import user docinfo field ()
Definition: txtfldi.hxx:550
const OUString sPropertySubType
Definition: txtfldi.hxx:296
import conditional text fields ()
Definition: txtfldi.hxx:603
virtual void ProcessAttribute(sal_Int32 nAttrToken, const OUString &sAttrValue) override
process attribute values
Definition: txtfldi.cxx:1169
import page variable fields ()
Definition: txtfldi.hxx:770
virtual void ProcessAttribute(sal_Int32 nAttrToken, const OUString &sAttrValue) override
empty method; all attributes are handled in startFastElement
Definition: txtfldi.cxx:3114
import document template name fields ()
Definition: txtfldi.hxx:693
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
Definition: txtfldi.cxx:2368
const OUString sPropertyContent
Definition: txtfldi.hxx:126
XMLSimpleDocInfoImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_uInt16 nPrfx, const OUString &sLocalName, sal_uInt16 nToken, bool bContent, bool bAuthor)
Definition: txtfldi.cxx:1475
OUStringBuffer aDateBuffer
Definition: txtfldi.hxx:1038
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
Definition: txtfldi.cxx:1808
OUStringBuffer aInitialsBuffer
Definition: txtfldi.hxx:1035
XMLSenderFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_uInt16 nPrfx, const OUString &sLocalName)
Definition: txtfldi.cxx:532
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
Definition: txtfldi.cxx:1347
const OUString sPropertyIsFixedLanguage
Definition: txtfldi.hxx:506
const OUString sPropertyContent
Definition: txtfldi.hxx:160
import page variable fields ()
Definition: txtfldi.hxx:795
const OUString sPropertyNumberFormat
Definition: txtfldi.hxx:554
css::text::PageNumberType eSelectPage
Definition: txtfldi.hxx:303
import reference fields ()
Definition: txtfldi.hxx:850
This class deliberately does not support XWeak, to improve performance when loading large documents...
Definition: xmlictxt.hxx:45
exports com.sun.star. beans
virtual void ProcessAttribute(sal_Int32 nAttrToken, const OUString &sAttrValue) override
process attribute values
Definition: txtfldi.cxx:2055
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet)=0
prepare XTextField for insertion into document
const OUString sPropertyCurrentPresentation
Definition: txtfldi.hxx:606
XMLFileNameImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_uInt16 nPrfx, const OUString &sLocalName)
Definition: txtfldi.cxx:2040
DefTokenId nToken
virtual void ProcessAttribute(sal_Int32 nAttrToken, const OUString &sAttrValue) override
process attribute values
Definition: txtfldi.cxx:2616
const OUString sPropertyAuthor
Definition: txtfldi.hxx:471
const OUString sPropertyContent
Definition: txtfldi.hxx:470
virtual void SAL_CALL endFastElement(sal_Int32 nElement) override
create XTextField and insert into document; calls PrepareTextField
Definition: txtfldi.cxx:3373
OUStringBuffer aAuthorBuffer
Definition: txtfldi.hxx:1034
import database select fields ()
Definition: txtfldi.hxx:417
virtual void SAL_CALL endFastElement(sal_Int32 nElement) override
create textfield, attach master, and insert into document
Definition: txtfldi.cxx:2874
import page|slide name fields ()
Definition: txtfldi.hxx:959
OUString const & GetContent()
Definition: txtfldi.cxx:141
XMLDateFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_uInt16 nPrfx, const OUString &sLocalName)
Definition: txtfldi.cxx:1100
import docinfo fields with only fixed attribute
Definition: txtfldi.hxx:467
std::vector< OUString > aLabels
Definition: txtfldi.hxx:1121
XMLHiddenParagraphImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_uInt16 nPrfx, const OUString &sLocalName)
Definition: txtfldi.cxx:1837
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &AttrList) override
Definition: txtfldi.cxx:3655
import page number fields ()
Definition: txtfldi.hxx:294
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
Definition: txtfldi.cxx:766
const OUString sPropertyDateTime
Definition: txtfldi.hxx:217
virtual void ProcessAttribute(sal_Int32 nAttrToken, const OUString &sAttrValue) override
process attribute values
Definition: txtfldi.cxx:2350
const OUString sPropertyFixed
Definition: txtfldi.hxx:215
const OUString sPropertySetNumber
Definition: txtfldi.hxx:444
const OUString sPropertyNumberingType
Definition: txtfldi.hxx:297
XMLFooterFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_uInt16 nPrfx, const OUString &sLocalName)
import footer fields ()
Definition: txtfldi.cxx:3758
XMLRevisionDocInfoImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_uInt16 nPrfx, const OUString &sLocalName, sal_uInt16 nToken)
Definition: txtfldi.cxx:1618
const OUString sPropertyNumberFormat
Definition: txtfldi.hxx:214
bool sNumberFormatOK
previous, current
Definition: txtfldi.hxx:305
const OUString sPropertyCurrentPresentation
Definition: txtfldi.hxx:472
import database display number fields ()
Definition: txtfldi.hxx:441
const OUString sPropertyIsFixedLanguage
Definition: txtfldi.hxx:219
const OUString sPropertyContent
Definition: txtfldi.hxx:638
XMLUserDocInfoImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_uInt16 nPrfx, const OUString &sLocalName, sal_uInt16 nToken)
Definition: txtfldi.cxx:1757
import chapter fields ()
Definition: txtfldi.hxx:717
virtual void ProcessAttribute(sal_Int32 nAttrToken, const OUString &sAttrValue)=0
process attribute values
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &AttrList) override
Definition: txtfldi.cxx:2722
XMLAuthorFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_uInt16 nPrfx, const OUString &sLocalName)
Definition: txtfldi.cxx:653
virtual void ProcessAttribute(sal_Int32 nAttrToken, const OUString &sAttrValue) override
process attributes
Definition: txtfldi.cxx:3300
XMLTimeFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_uInt16 nPrfx, const OUString &sLocalName)
Definition: txtfldi.cxx:967
virtual void ProcessAttribute(sal_Int32 nAttrToken, const OUString &sAttrValue) override
element name w/o prefix
Definition: txtfldi.cxx:3770
XMLReferenceFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_uInt16 nToken, sal_uInt16 nPrfx, const OUString &sLocalName)
Definition: txtfldi.cxx:2559
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
Definition: txtfldi.cxx:1395
virtual void ProcessAttribute(sal_Int32 nAttrToken, const OUString &sAttrValue) override
process attribute values
Definition: txtfldi.cxx:1491
const OUString sPropertyFileFormat
Definition: txtfldi.hxx:669
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
Definition: txtfldi.cxx:688
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
Definition: txtfldi.cxx:3802
XMLTemplateNameImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_uInt16 nPrfx, const OUString &sLocalName)
Definition: txtfldi.cxx:2126
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Definition: txtfldi.cxx:2744
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
Definition: txtfldi.cxx:1627
XMLTextFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, const char *pService, sal_uInt16 nPrfx, const OUString &rLocalName)
whether this field is valid ?
Definition: txtfldi.cxx:119
XMLConditionalTextImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_uInt16 nPrfx, const OUString &sLocalName)
Definition: txtfldi.cxx:1892
const OUString sPropertyFixed
Definition: txtfldi.hxx:159
css::uno::Reference< css::beans::XPropertySet > mxField
Definition: txtfldi.hxx:1041
const OUString sPropertyNumberingType
Definition: txtfldi.hxx:443
import dde field declaration ()
Definition: txtfldi.hxx:899
import dde field declaration container ()
Definition: txtfldi.hxx:885
virtual void ProcessAttribute(sal_Int32 nAttrToken, const OUString &sAttrValue) override
no attributes -> empty method
Definition: txtfldi.cxx:2939
css::text::PageNumberType eSelectPage
continuation string
Definition: txtfldi.hxx:272
import count fields ()
Definition: txtfldi.hxx:740
virtual void ProcessAttribute(sal_Int32 nAttrToken, const OUString &sAttrValue) override
process attribute values
Definition: txtfldi.cxx:3672
const OUString sPropertyIsDate
Definition: txtfldi.hxx:505
const OUString sPropertyNumberFormat
Definition: txtfldi.hxx:504
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
convert aValues into sequence and set property
Definition: txtfldi.cxx:3123
OUString sServicePrefix
the import helper
Definition: txtfldi.hxx:59
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
Definition: txtfldi.cxx:830
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
Definition: txtfldi.cxx:3597
virtual void ProcessAttribute(sal_Int32 nAttrToken, const OUString &sAttrValue) override
process attribute values
Definition: txtfldi.cxx:1373
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
Definition: txtfldi.cxx:3776
XMLSheetNameImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_uInt16 nPrfx, const OUString &sLocalName)
Definition: txtfldi.cxx:2928
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
Definition: txtfldi.cxx:1248
import database name fields ()
Definition: txtfldi.hxx:370
dropdown field (filter legacy)
Definition: txtfldi.hxx:1119
void SetServiceName(const OUString &sStr)
Definition: txtfldi.hxx:98
const OUString sPropertyNumberingType
Definition: txtfldi.hxx:742
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
start element
Definition: txtfldi.cxx:2587
XMLCountFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_uInt16 nPrfx, const OUString &sLocalName, sal_uInt16 nToken)
Definition: txtfldi.cxx:2242
OUStringBuffer aTextBuffer
Definition: txtfldi.hxx:1037
XMLDdeFieldDeclsImportContext(SvXMLImport &rImport, sal_uInt16 nPrfx, const OUString &sLocalName)
Definition: txtfldi.cxx:2716
XMLDatabaseNameImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_uInt16 nPrfx, const OUString &sLocalName)
Definition: txtfldi.cxx:1279
import footer fields ()
Definition: txtfldi.hxx:1171
static const char * MapTokenToServiceName(sal_uInt16 nToken)
Definition: txtfldi.cxx:2297
XMLAnnotationImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_uInt16 nToken, sal_uInt16 nPrfx, const OUString &sLocalName)
Definition: txtfldi.cxx:3282
XMLBibliographyFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_uInt16 nPrfx, const OUString &sLocalName)
Definition: txtfldi.cxx:3028