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 
50 {
61 
71 
80 
91 
96 
99 
102 
105 
107 };
108 
111 {
112  // data members
113  OUStringBuffer sContentBuffer;
114  OUString sContent;
115  OUString sServiceName;
117 
118 protected:
119  OUString sServicePrefix;
120 
121  // data members for use in subclasses
122  bool bValid;
123 
124 public:
125 
127  SvXMLImport& rImport,
128  XMLTextImportHelper& rHlp,
129  const char* pService,
130  sal_uInt16 nPrfx,
131  const OUString& rLocalName);
132 
134  virtual void Characters( const OUString& sContent ) override;
135 
137  virtual void StartElement(
138  const css::uno::Reference< css::xml::sax::XAttributeList> & xAttrList) override;
139 
141  virtual void EndElement() override;
142 
146  SvXMLImport& rImport,
147  XMLTextImportHelper& rHlp,
148  sal_uInt16 nPrefix,
149  const OUString& rName,
150  sal_uInt16 nToken);
151 
152 protected:
155 
156  const OUString& GetServiceName() const { return sServiceName; }
157  void SetServiceName(const OUString& sStr) { sServiceName = sStr; }
158 
159  OUString const & GetContent();
160 
162  virtual void ProcessAttribute( sal_uInt16 nAttrToken,
163  const OUString& sAttrValue ) = 0;
164 
166  virtual void PrepareField(
167  const css::uno::Reference< css::beans::XPropertySet> & xPropertySet) = 0;
168 
170  bool CreateField(css::uno::Reference< css::beans::XPropertySet> & xField,
171  const OUString& sServiceName);
172 
175  static void ForceUpdate(
176  const css::uno::Reference< css::beans::XPropertySet> & rPropertySet);
177 };
178 
180 {
181 
182  sal_Int16 nSubType;
183 
184  const OUString sPropertyFixed;
185  const OUString sPropertyContent;
186 
187 protected:
188  // variables for access in subclass
189  bool bFixed;
190  sal_uInt16 nElementToken;
191 
192 public:
193 
195  SvXMLImport& rImport,
196  XMLTextImportHelper& rHlp,
197  sal_uInt16 nPrfx,
198  const OUString& sLocalName,
199  sal_uInt16 nToken);
200 
201 protected:
203  virtual void StartElement(
204  const css::uno::Reference< css::xml::sax::XAttributeList> & xAttrList) override;
205 
207  virtual void ProcessAttribute( sal_uInt16 nAttrToken,
208  const OUString& sAttrValue ) override;
209 
211  virtual void PrepareField(
212  const css::uno::Reference< css::beans::XPropertySet> & xPropertySet) override;
213 };
214 
217 {
219  const OUString sPropertyFixed;
220  const OUString sPropertyContent;
221 
222 public:
223 
225  SvXMLImport& rImport,
226  XMLTextImportHelper& rHlp,
227  sal_uInt16 nPrfx,
228  const OUString& sLocalName,
229  sal_uInt16 nToken);
230 
231 private:
233  virtual void StartElement(
234  const css::uno::Reference< css::xml::sax::XAttributeList> & xAttrList) override;
235 
237  virtual void ProcessAttribute( sal_uInt16 nAttrToken,
238  const OUString& sAttrValue ) override;
239 
241  virtual void PrepareField(
242  const css::uno::Reference< css::beans::XPropertySet> & xPropertySet) override;
243 };
244 
246 {
247  const OUString sPropertyHint;
248 
249  OUString sDescription;
250 
251  sal_Int16 nPlaceholderType;
252 
253 public:
254 
256  SvXMLImport& rImport,
257  XMLTextImportHelper& rHlp,
258  sal_uInt16 nPrfx,
259  const OUString& sLocalName);
260 
261 private:
263  virtual void ProcessAttribute( sal_uInt16 nAttrToken,
264  const OUString& sAttrValue ) override;
265 
267  virtual void PrepareField(
268  const css::uno::Reference< css::beans::XPropertySet> & xPropertySet) override;
269 };
270 
272 {
273 protected:
274  const OUString sPropertyNumberFormat;
275  const OUString sPropertyFixed;
276  const OUString sPropertyDateTimeValue;
277  const OUString sPropertyDateTime;
278  const OUString sPropertyIsDate;
279  const OUString sPropertyIsFixedLanguage;
280 
281  css::util::DateTime aDateTimeValue;
282  sal_Int32 nAdjust;
283  sal_Int32 nFormatKey;
284  bool bTimeOK;
285  bool bFormatOK;
286  bool bFixed;
287  bool bIsDate; // is this a date?
288  // (for XMLDateFieldImportContext, really)
290 
291 public:
292 
294  SvXMLImport& rImport,
295  XMLTextImportHelper& rHlp,
296  sal_uInt16 nPrfx,
297  const OUString& sLocalName);
298 
300  virtual void ProcessAttribute( sal_uInt16 nAttrToken,
301  const OUString& sAttrValue ) override;
302 
304  virtual void PrepareField(
305  const css::uno::Reference< css::beans::XPropertySet> & xPropertySet) override;
306 };
307 
311 {
312 public:
313 
315  SvXMLImport& rImport,
316  XMLTextImportHelper& rHlp,
317  sal_uInt16 nPrfx,
318  const OUString& sLocalName);
319 
321  virtual void ProcessAttribute( sal_uInt16 nAttrToken,
322  const OUString& sAttrValue ) override;
323 };
324 
327 {
328  const OUString sPropertySubType;
329  const OUString sPropertyNumberingType;
330 
331  OUString sString;
332  css::text::PageNumberType eSelectPage;
333  bool sStringOK;
335 
336 public:
337 
339  SvXMLImport& rImport,
340  XMLTextImportHelper& rHlp,
341  sal_uInt16 nPrfx,
342  const OUString& sLocalName);
343 
345  virtual void ProcessAttribute( sal_uInt16 nAttrToken,
346  const OUString& sAttrValue ) override;
347 
349  virtual void PrepareField(
350  const css::uno::Reference< css::beans::XPropertySet> & xPropertySet) override;
351 };
352 
355 {
356  const OUString sPropertySubType;
357  const OUString sPropertyNumberingType;
358  const OUString sPropertyOffset;
359 
360  OUString sNumberFormat;
361  OUString sNumberSync;
362  sal_Int16 nPageAdjust;
363  css::text::PageNumberType eSelectPage;
364  bool sNumberFormatOK;
366 
367 public:
368 
370  SvXMLImport& rImport,
371  XMLTextImportHelper& rHlp,
372  sal_uInt16 nPrfx,
373  const OUString& sLocalName);
374 
375 
377  virtual void ProcessAttribute( sal_uInt16 nAttrToken,
378  const OUString& sAttrValue ) override;
379 
381  virtual void PrepareField(
382  const css::uno::Reference< css::beans::XPropertySet> & xPropertySet) override;
383 };
384 
387 {
388  OUString m_sDatabaseName;
389  OUString m_sDatabaseURL;
390  OUString m_sTableName;
391 
392  sal_Int32 m_nCommandType;
394 
398 
399 protected:
404 
407  XMLTextImportHelper& rHlp,
408  const char* pServiceName,
409  sal_uInt16 nPrfx,
410  const OUString& sLocalName,
411  bool bUseDisplay );
412 
413 public:
414 
416  virtual void ProcessAttribute( sal_uInt16 nAttrToken,
417  const OUString& sAttrValue ) override;
418 
420  virtual void PrepareField(
421  const css::uno::Reference< css::beans::XPropertySet> & xPropertySet) override;
422 
425  sal_uInt16 nPrefix,
426  const OUString& rLocalName,
427  const css::uno::Reference< css::xml::sax::XAttributeList> & xAttrList ) override;
428 };
429 
432 {
433 public:
434 
436  XMLTextImportHelper& rHlp,
437  sal_uInt16 nPrfx,
438  const OUString& sLocalName);
439 
441  virtual void ProcessAttribute( sal_uInt16 nAttrToken,
442  const OUString& sAttrValue ) override;
443 };
444 
447 {
448  const OUString sPropertyCondition;
449  const OUString sTrue;
450  OUString sCondition;
452 
453 protected:
454  // for use in child classes
456  XMLTextImportHelper& rHlp,
457  const char* pServiceName,
458  sal_uInt16 nPrfx,
459  const OUString& sLocalName);
460 
461 public:
462 
464  XMLTextImportHelper& rHlp,
465  sal_uInt16 nPrfx,
466  const OUString& sLocalName);
467 
469  virtual void ProcessAttribute( sal_uInt16 nAttrToken,
470  const OUString& sAttrValue ) override;
471 
473  virtual void PrepareField(
474  const css::uno::Reference< css::beans::XPropertySet> & xPropertySet) override;
475 };
476 
479 {
480  const OUString sPropertySetNumber;
481  sal_Int32 nNumber;
482  bool bNumberOK;
483 
484 public:
485 
487  XMLTextImportHelper& rHlp,
488  sal_uInt16 nPrfx,
489  const OUString& sLocalName);
490 
492  virtual void ProcessAttribute( sal_uInt16 nAttrToken,
493  const OUString& sAttrValue ) override;
494 
496  virtual void PrepareField(
497  const css::uno::Reference<
498  css::beans::XPropertySet> & xPropertySet) override;
499 };
500 
503 {
504  const OUString sPropertyNumberingType;
505  const OUString sPropertySetNumber;
506  OUString sNumberFormat;
507  OUString sNumberSync;
508  sal_Int32 nValue;
509  bool bValueOK;
510 
511 public:
512 
514  XMLTextImportHelper& rHlp,
515  sal_uInt16 nPrfx,
516  const OUString& sLocalName);
517 
519  virtual void ProcessAttribute( sal_uInt16 nAttrToken,
520  const OUString& sAttrValue ) override;
521 
523  virtual void PrepareField(
524  const css::uno::Reference< css::beans::XPropertySet> & xPropertySet) override;
525 };
526 
529 {
530  const OUString sPropertyFixed;
531  const OUString sPropertyContent;
532  const OUString sPropertyAuthor;
534 
535 protected:
536  bool bFixed;
539 
540 public:
541 
543  XMLTextImportHelper& rHlp,
544  sal_uInt16 nPrfx,
545  const OUString& sLocalName,
546  sal_uInt16 nToken,
547  bool bContent,
548  bool bAuthor);
549 
550 protected:
552  virtual void ProcessAttribute( sal_uInt16 nAttrToken,
553  const OUString& sAttrValue ) override;
554 
556  virtual void PrepareField(
557  const css::uno::Reference< css::beans::XPropertySet> & xPropertySet) override;
558 
559  static const char* MapTokenToServiceName(sal_uInt16 nToken);
560 };
561 
564 {
565  const OUString sPropertyNumberFormat;
566  const OUString sPropertyIsDate;
567  const OUString sPropertyIsFixedLanguage;
568 
569  sal_Int32 nFormat;
570  bool bFormatOK;
571  bool bIsDate;
574 
575 public:
576 
578  XMLTextImportHelper& rHlp,
579  sal_uInt16 nPrfx,
580  const OUString& sLocalName,
581  sal_uInt16 nToken);
582 
583 private:
585  virtual void ProcessAttribute( sal_uInt16 nAttrToken,
586  const OUString& sAttrValue ) override;
587 
589  virtual void PrepareField(
590  const css::uno::Reference< css::beans::XPropertySet> & xPropertySet) override;
591 };
592 
595 {
596 public:
597 
599  XMLTextImportHelper& rHlp,
600  sal_uInt16 nPrfx,
601  const OUString& sLocalName,
602  sal_uInt16 nToken);
603 
604 private:
606  virtual void PrepareField(
607  const css::uno::Reference<css::beans::XPropertySet> & xPropertySet) override;
608 };
609 
612 {
613  OUString aName;
614  const OUString sPropertyName;
615  const OUString sPropertyNumberFormat;
616  const OUString sPropertyIsFixedLanguage;
617  sal_Int32 nFormat;
618  bool bFormatOK;
620 
621 public:
622 
624  XMLTextImportHelper& rHlp,
625  sal_uInt16 nPrfx,
626  const OUString& sLocalName,
627  sal_uInt16 nToken);
628 
629 private:
631  virtual void ProcessAttribute( sal_uInt16 nAttrToken,
632  const OUString& sAttrValue ) override;
633  virtual void PrepareField(
634  const css::uno::Reference<css::beans::XPropertySet> & xPropertySet) override;
635 };
636 
639 {
640  const OUString sPropertyCondition;
641  const OUString sPropertyIsHidden;
642 
643  OUString sCondition;
644  bool bIsHidden;
645 
646 public:
647 
649  XMLTextImportHelper& rHlp,
650  sal_uInt16 nPrfx,
651  const OUString& sLocalName);
652 
653 private:
655  virtual void ProcessAttribute( sal_uInt16 nAttrToken,
656  const OUString& sAttrValue ) override;
657 
659  virtual void PrepareField(
660  const css::uno::Reference<css::beans::XPropertySet> & xPropertySet) override;
661 };
662 
665 {
666  const OUString sPropertyCondition;
668 
669  OUString sCondition;
670  OUString sTrueContent;
671  OUString sFalseContent;
672 
674  bool bTrueOK;
675  bool bFalseOK;
677 
678 public:
679 
681  XMLTextImportHelper& rHlp,
682  sal_uInt16 nPrfx,
683  const OUString& sLocalName);
684 
685 private:
687  virtual void ProcessAttribute( sal_uInt16 nAttrToken,
688  const OUString& sAttrValue ) override;
689 
691  virtual void PrepareField(
692  const css::uno::Reference<css::beans::XPropertySet> & xPropertySet) override;
693 };
694 
697 {
698  const OUString sPropertyCondition;
699  const OUString sPropertyContent;
700  const OUString sPropertyIsHidden;
701 
702  OUString sCondition;
703  OUString sString;
704 
706  bool bStringOK;
707  bool bIsHidden;
708 
709 public:
710 
712  XMLTextImportHelper& rHlp,
713  sal_uInt16 nPrfx,
714  const OUString& sLocalName);
715 
716 private:
718  virtual void ProcessAttribute( sal_uInt16 nAttrToken,
719  const OUString& sAttrValue ) override;
720 
722  virtual void PrepareField(
723  const css::uno::Reference<css::beans::XPropertySet> & xPropertySet) override;
724 };
725 
728 {
729  const OUString sPropertyFixed;
730  const OUString sPropertyFileFormat;
732 
733  sal_Int16 nFormat;
734  bool bFixed;
735 
736 public:
737 
739  XMLTextImportHelper& rHlp,
740  sal_uInt16 nPrfx,
741  const OUString& sLocalName);
742 
743 private:
745  virtual void ProcessAttribute( sal_uInt16 nAttrToken,
746  const OUString& sAttrValue ) override;
747 
749  virtual void PrepareField(
750  const css::uno::Reference<css::beans::XPropertySet> & xPropertySet) override;
751 };
752 
755 {
756  const OUString sPropertyFileFormat;
757 
758  sal_Int16 nFormat;
759 
760 public:
761 
763  XMLTextImportHelper& rHlp,
764  sal_uInt16 nPrfx,
765  const OUString& sLocalName);
766 
767 private:
769  virtual void ProcessAttribute( sal_uInt16 nAttrToken,
770  const OUString& sAttrValue ) override;
771 
773  virtual void PrepareField(
774  const css::uno::Reference<css::beans::XPropertySet> & xPropertySet) override;
775 };
776 
779 {
780  sal_Int16 nFormat;
782 
783 public:
784 
786  XMLTextImportHelper& rHlp,
787  sal_uInt16 nPrfx,
788  const OUString& sLocalName);
789 
790 private:
792  virtual void ProcessAttribute( sal_uInt16 nAttrToken,
793  const OUString& sAttrValue ) override;
794 
796  virtual void PrepareField(
797  const css::uno::Reference<css::beans::XPropertySet> & xPropertySet) override;
798 };
799 
802 {
803  const OUString sPropertyNumberingType;
804 
805  OUString sNumberFormat;
806  OUString sLetterSync;
807 
809 
810 public:
811 
813  XMLTextImportHelper& rHlp,
814  sal_uInt16 nPrfx,
815  const OUString& sLocalName,
816  sal_uInt16 nToken);
817 
818 private:
820  virtual void ProcessAttribute( sal_uInt16 nAttrToken,
821  const OUString& sAttrValue ) override;
822 
824  virtual void PrepareField(
825  const css::uno::Reference<css::beans::XPropertySet> & xPropertySet) override;
826 
827  static const char* MapTokenToServiceName(sal_uInt16 nToken);
828 };
829 
832 {
833  OUString sNumberFormat;
834  OUString sLetterSync;
835 
837 
838 public:
839 
841  XMLTextImportHelper& rHlp,
842  sal_uInt16 nPrfx,
843  const OUString& sLocalName);
844 
845 private:
847  virtual void ProcessAttribute( sal_uInt16 nAttrToken,
848  const OUString& sAttrValue ) override;
849 
851  virtual void PrepareField(
852  const css::uno::Reference<css::beans::XPropertySet> & xPropertySet) override;
853 };
854 
857 {
858  sal_Int16 nAdjust;
859  bool bActive;
860 
861 public:
862 
864  XMLTextImportHelper& rHlp,
865  sal_uInt16 nPrfx,
866  const OUString& sLocalName);
867 
868 private:
870  virtual void ProcessAttribute( sal_uInt16 nAttrToken,
871  const OUString& sAttrValue ) override;
872 
874  virtual void PrepareField(
875  const css::uno::Reference<css::beans::XPropertySet> & xPropertySet) override;
876 };
877 
880 {
881  OUString sDescription;
883 
884  OUString sMacro; // macro for old documents (pre 638i)
885 
887 
888 public:
889 
891  XMLTextImportHelper& rHlp,
892  sal_uInt16 nPrfx,
893  const OUString& sLocalName);
894 
895 private:
898  sal_uInt16 nPrefix,
899  const OUString& rLocalName,
900  const css::uno::Reference<css::xml::sax::XAttributeList> & xAttrList ) override;
901 
903  virtual void ProcessAttribute( sal_uInt16 nAttrToken,
904  const OUString& sAttrValue ) override;
905 
907  virtual void PrepareField(
908  const css::uno::Reference<css::beans::XPropertySet> & xPropertySet) override;
909 };
910 
913 {
914  OUString sName;
915  OUString sLanguage;
916  sal_uInt16 nElementToken;
917  sal_Int16 nSource;
918  sal_Int16 nType;
919 
920  bool bNameOK;
921  bool bTypeOK;
922 
923 public:
924 
926  XMLTextImportHelper& rHlp,
927  sal_uInt16 nToken,
928  sal_uInt16 nPrfx,
929  const OUString& sLocalName);
930 
931 private:
933  virtual void StartElement(
934  const css::uno::Reference<css::xml::sax::XAttributeList> & xAttrList) override;
935 
937  virtual void ProcessAttribute( sal_uInt16 nAttrToken,
938  const OUString& sAttrValue ) override;
939 
941  virtual void PrepareField(
942  const css::uno::Reference<css::beans::XPropertySet> & xPropertySet) override;
943 };
944 
947 {
948 public:
949 
951  sal_uInt16 nPrfx,
952  const OUString& sLocalName);
953 
955  sal_uInt16 nPrefix,
956  const OUString& rLocalName,
957  const css::uno::Reference<css::xml::sax::XAttributeList> & xAttrList ) override;
958 };
959 
962 {
964 
965 public:
966 
968  sal_uInt16 nPrfx,
969  const OUString& sLocalName,
970  const SvXMLTokenMap& rMap);
971 
972  // create fieldmaster
973  virtual void StartElement(
974  const css::uno::Reference<css::xml::sax::XAttributeList> & xAttrList) override;
975 };
976 
979 {
980  OUString sName;
982 
983 public:
984 
986  XMLTextImportHelper& rHlp,
987  sal_uInt16 nPrfx,
988  const OUString& sLocalName);
989 
990 private:
992  virtual void ProcessAttribute( sal_uInt16 nAttrToken,
993  const OUString& sAttrValue ) override;
994 
996  virtual void EndElement() override;
997 
999  virtual void PrepareField(
1000  const css::uno::Reference<css::beans::XPropertySet> & xPropertySet) override;
1001 };
1002 
1005 {
1006 
1007 public:
1008 
1010  XMLTextImportHelper& rHlp,
1011  sal_uInt16 nPrfx,
1012  const OUString& sLocalName);
1013 
1014 private:
1016  virtual void ProcessAttribute( sal_uInt16 nAttrToken,
1017  const OUString& sAttrValue ) override;
1018 
1020  virtual void PrepareField(
1021  const css::uno::Reference<css::beans::XPropertySet> & xPropertySet) override;
1022 };
1023 
1026 {
1027 public:
1028 
1030  SvXMLImport& rImport,
1031  XMLTextImportHelper& rHlp,
1032  sal_uInt16 nPrfx,
1033  const OUString& sLocalName);
1034 
1036  virtual void ProcessAttribute( sal_uInt16 nAttrToken,
1037  const OUString& sAttrValue ) override;
1038 
1040  virtual void PrepareField(
1041  const css::uno::Reference<css::beans::XPropertySet> & xPropertySet) override;
1042 };
1043 
1046 {
1047  OUString sURL;
1048  OUString sFrame;
1049  bool bFrameOK;
1050 
1051 public:
1052 
1054  XMLTextImportHelper& rHlp,
1055  sal_uInt16 nPrfx,
1056  const OUString& sLocalName);
1057 
1058 private:
1060  virtual void ProcessAttribute( sal_uInt16 nAttrToken,
1061  const OUString& sAttrValue ) override;
1062 
1064  virtual void PrepareField(
1065  const css::uno::Reference<css::beans::XPropertySet> & xPropertySet) override;
1066 };
1067 
1070 {
1071  ::std::vector< css::beans::PropertyValue> aValues;
1072 
1073 public:
1074 
1076  XMLTextImportHelper& rHlp,
1077  sal_uInt16 nPrfx,
1078  const OUString& sLocalName);
1079 
1080 private:
1082  virtual void StartElement(
1083  const css::uno::Reference<css::xml::sax::XAttributeList> & xAttrList) override;
1084 
1086  virtual void ProcessAttribute( sal_uInt16 nAttrToken,
1087  const OUString& sAttrValue ) override;
1088 
1090  virtual void PrepareField(
1091  const css::uno::Reference<css::beans::XPropertySet> & xPropertySet) override;
1092 
1093  static const char* MapBibliographyFieldName(const OUString& sName);
1094 };
1095 
1098 {
1099  OUStringBuffer aAuthorBuffer;
1100  OUStringBuffer aInitialsBuffer;
1101  OUString aName;
1102  OUStringBuffer aTextBuffer;
1103  OUStringBuffer aDateBuffer;
1104  OUString aResolved;
1105 
1106  css::uno::Reference < css::beans::XPropertySet > mxField;
1107  css::uno::Reference < css::text::XTextCursor > mxCursor;
1108  css::uno::Reference < css::text::XTextCursor > mxOldCursor;
1109 
1110  sal_uInt16 m_nToken;
1111 
1112 public:
1113 
1115  XMLTextImportHelper& rHlp,
1116  sal_uInt16 nToken,
1117  sal_uInt16 nPrfx,
1118  const OUString& sLocalName);
1119 
1120 private:
1122  virtual void ProcessAttribute( sal_uInt16 nAttrToken,
1123  const OUString& sAttrValue ) override;
1124 
1126  virtual void PrepareField(
1127  const css::uno::Reference< css::beans::XPropertySet > & xPropertySet) override;
1128 
1130  sal_uInt16 nPrefix,
1131  const OUString& rLocalName,
1132  const css::uno::Reference<css::xml::sax::XAttributeList >& xAttrList ) override;
1133  virtual void EndElement() override;
1134 };
1135 
1138 {
1139  OUString sContent;
1140  OUString sScriptType;
1141 
1143 
1144 public:
1145 
1147  XMLTextImportHelper& rHlp,
1148  sal_uInt16 nPrfx,
1149  const OUString& sLocalName);
1150 
1151 private:
1153  virtual void ProcessAttribute( sal_uInt16 nAttrToken,
1154  const OUString& sAttrValue ) override;
1155 
1157  virtual void PrepareField(
1158  const css::uno::Reference<css::beans::XPropertySet> & xPropertySet) override;
1159 };
1160 
1163 {
1164  sal_Int16 mnKind;
1165 
1166 public:
1167 
1169  XMLTextImportHelper& rHlp,
1170  sal_uInt16 nPrfx,
1171  const OUString& sLocalName);
1172 
1173 private:
1175  virtual void ProcessAttribute( sal_uInt16 nAttrToken,
1176  const OUString& sAttrValue ) override;
1177 
1179  virtual void PrepareField(
1180  const css::uno::Reference<css::beans::XPropertySet> & xPropertySet) override;
1181 };
1182 
1185 {
1186  std::vector<OUString> aLabels;
1187  OUString sName;
1188  OUString sHelp;
1189  OUString sHint;
1190  sal_Int32 nSelected;
1191  bool bNameOK;
1192  bool bHelpOK;
1193  bool bHintOK;
1194 
1195 public:
1196 
1198  XMLTextImportHelper& rHlp,
1199  sal_uInt16 nPrfx,
1200  const OUString& sLocalName);
1201 
1203  sal_uInt16 nPrefix,
1204  const OUString& rLocalName,
1205  const css::uno::Reference<css::xml::sax::XAttributeList >& xAttrList ) override;
1206 
1207 private:
1209  virtual void ProcessAttribute( sal_uInt16 nAttrToken,
1210  const OUString& sAttrValue ) override;
1211 
1213  virtual void PrepareField(
1214  const css::uno::Reference<css::beans::XPropertySet> & xPropertySet) override;
1215 };
1216 
1219 {
1220 public:
1221 
1223  SvXMLImport& rImport,
1224  XMLTextImportHelper& rHlp,
1225  sal_uInt16 nPrfx,
1226  const OUString& sLocalName);
1227 
1229  virtual void ProcessAttribute( sal_uInt16 nAttrToken,
1230  const OUString& sAttrValue ) override;
1231 
1233  virtual void PrepareField(
1234  const css::uno::Reference<css::beans::XPropertySet> & xPropertySet) override;
1235 };
1236 
1239 {
1240 public:
1241 
1243  SvXMLImport& rImport,
1244  XMLTextImportHelper& rHlp,
1245  sal_uInt16 nPrfx,
1246  const OUString& sLocalName);
1247 
1249  virtual void ProcessAttribute( sal_uInt16 nAttrToken,
1250  const OUString& sAttrValue ) override;
1251 
1253  virtual void PrepareField(
1254  const css::uno::Reference<css::beans::XPropertySet> & xPropertySet) override;
1255 };
1256 
1259 {
1260 public:
1261 
1263  SvXMLImport& rImport,
1264  XMLTextImportHelper& rHlp,
1265  sal_uInt16 nPrfx,
1266  const OUString& sLocalName);
1267 
1269  virtual void ProcessAttribute( sal_uInt16 nAttrToken,
1270  const OUString& sAttrValue ) override;
1271 
1273  virtual void PrepareField(
1274  const css::uno::Reference<css::beans::XPropertySet> & xPropertySet) override;
1275 };
1276 
1277 #endif
1278 
1279 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
XMLScriptImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_uInt16 nPrfx, const OUString &sLocalName)
Definition: txtfldi.cxx:3490
XMLDropDownFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_uInt16 nPrfx, const OUString &sLocalName)
Definition: txtfldi.cxx:3588
virtual void ProcessAttribute(sal_uInt16 nAttrToken, const OUString &sAttrValue) override
process attribute values
Definition: txtfldi.cxx:612
::std::vector< css::beans::PropertyValue > aValues
Definition: txtfldi.hxx:1071
XMLPlaceholderFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_uInt16 nPrfx, const OUString &sLocalName)
Definition: txtfldi.cxx:884
virtual void ProcessAttribute(sal_uInt16 nAttrToken, const OUString &sAttrValue) override
element name w/o prefix
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:2253
const OUString sPropertyNumberingType
Definition: txtfldi.hxx:329
virtual void ProcessAttribute(sal_uInt16 nAttrToken, const OUString &sAttrValue) override
element name w/o prefix
Definition: txtfldi.cxx:800
virtual void StartElement(const css::uno::Reference< css::xml::sax::XAttributeList > &xAttrList) override
element token
Definition: txtfldi.cxx:672
XMLHeaderFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_uInt16 nPrfx, const OUString &sLocalName)
import header fields ()
Definition: txtfldi.cxx:3717
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
Definition: txtfldi.cxx:2070
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
Definition: txtfldi.cxx:1718
const OUString sPropertyFixed
Definition: txtfldi.hxx:729
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:3293
import file name fields ()
Definition: txtfldi.hxx:727
import macro fields ()
Definition: txtfldi.hxx:879
static const char * MapTokenToServiceName(sal_uInt16 nToken)
Definition: txtfldi.cxx:1539
const OUString sPropertySetNumber
Definition: txtfldi.hxx:480
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
Definition: txtfldi.cxx:1498
virtual void EndElement() override
create XTextField and insert into document; calls PrepareTextField
Definition: txtfldi.cxx:3357
const OUString sPropertyFixed
API subtype for ExtUser field.
Definition: txtfldi.hxx:184
virtual void StartElement(const css::uno::Reference< css::xml::sax::XAttributeList > &xAttrList) override
StartElement is called after a context has been constructed and before an elements context is parsed...
Definition: txtfldi.cxx:2725
const OUString sPropertyFixed
Definition: txtfldi.hxx:530
superclass for database fields: handle database and table names
Definition: txtfldi.hxx:386
XMLDatabaseSelectImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_uInt16 nPrfx, const OUString &sLocalName)
Definition: txtfldi.cxx:1356
virtual void Characters(const OUString &sContent) override
element name w/o prefix
Definition: txtfldi.cxx:192
inherit sender field because of fixed attribute in ProcessAttributes
Definition: txtfldi.hxx:216
const OUString sPropertyIsHidden
Definition: txtfldi.hxx:700
signed char sal_Int8
import conditional text fields ()
Definition: txtfldi.hxx:696
const OUString sPropertyIsFixedLanguage
Definition: txtfldi.hxx:616
OUString sServiceName
character data after collection
Definition: txtfldi.hxx:115
XMLPageNameFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_uInt16 nPrfx, const OUString &sLocalName)
import page|slide name fields ()
Definition: txtfldi.cxx:2936
import hidden paragraph fields ()
Definition: txtfldi.hxx:638
virtual void ProcessAttribute(sal_uInt16 nAttrToken, const OUString &sAttrValue) override
process attribute values
Definition: txtfldi.cxx:2120
virtual void ProcessAttribute(sal_uInt16 nAttrToken, const OUString &sAttrValue) override
process attribute values
Definition: txtfldi.cxx:2448
virtual void ProcessAttribute(sal_uInt16 nAttrToken, const OUString &sAttrValue) override
process attribute values
Definition: txtfldi.cxx:2329
import docinfo fields with date or time attributes and numberformats
Definition: txtfldi.hxx:563
const OUString sPropertyIsHidden
Definition: txtfldi.hxx:641
const OUString sPropertyDateTimeValue
Definition: txtfldi.hxx:276
virtual void ProcessAttribute(sal_uInt16 nAttrToken, const OUString &sAttrValue) override
process attribute values
Definition: txtfldi.cxx:3555
const SvXMLTokenMap & rTokenMap
Definition: txtfldi.hxx:963
XMLDdeFieldDeclImportContext(SvXMLImport &rImport, sal_uInt16 nPrfx, const OUString &sLocalName, const SvXMLTokenMap &rMap)
Definition: txtfldi.cxx:2715
Import an annotation field ()
Definition: txtfldi.hxx:1097
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
Definition: txtfldi.cxx:2465
virtual SvXMLImportContextRef CreateChildContext(sal_uInt16 nPrefix, const OUString &rLocalName, const css::uno::Reference< css::xml::sax::XAttributeList > &xAttrList) override
for children
Definition: txtfldi.cxx:2428
import footer fields ()
Definition: txtfldi.hxx:1258
abstract class for text field import
Definition: txtfldi.hxx:110
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
Definition: txtfldi.cxx:2003
virtual void ProcessAttribute(sal_uInt16 nAttrToken, const OUString &sAttrValue) override
process attribute values
Definition: txtfldi.cxx:1840
import page continuation fields ()
Definition: txtfldi.hxx:326
virtual void ProcessAttribute(sal_uInt16 nAttrToken, const OUString &sAttrValue) override
process attribute values
Definition: txtfldi.cxx:1416
virtual void ProcessAttribute(sal_uInt16 nAttrToken, const OUString &sAttrValue) override
process attribute values
Definition: txtfldi.cxx:1965
virtual SvXMLImportContextRef CreateChildContext(sal_uInt16 nPrefix, const OUString &rLocalName, const css::uno::Reference< css::xml::sax::XAttributeList > &xAttrList) override
handle database-location children
Definition: txtfldi.cxx:1208
virtual void ProcessAttribute(sal_uInt16 nAttrToken, const OUString &sAttrValue) override
element name w/o prefix
Definition: txtfldi.cxx:1103
virtual void ProcessAttribute(sal_uInt16 nAttrToken, const OUString &sAttrValue) override
process attribute values
Definition: txtfldi.cxx:2593
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
Definition: txtfldi.cxx:1937
virtual void ProcessAttribute(sal_uInt16 nAttrToken, const OUString &sAttrValue) override
process attribute values
Definition: txtfldi.cxx:682
const OUString sPropertyIsDate
Definition: txtfldi.hxx:278
XMLPageVarGetFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_uInt16 nPrfx, const OUString &sLocalName)
Definition: txtfldi.cxx:2317
const OUString & GetServiceName() const
Definition: txtfldi.hxx:156
bool CreateField(css::uno::Reference< css::beans::XPropertySet > &xField, const OUString &sServiceName)
create field from ServiceName
Definition: txtfldi.cxx:197
const OUString sPropertyCondition
Definition: txtfldi.hxx:666
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
Definition: txtfldi.cxx:2142
XMLMeasureFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_uInt16 nPrfx, const OUString &sLocalName)
Definition: txtfldi.cxx:3544
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
no attributes -> empty method
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:1033
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
set properties
Definition: txtfldi.cxx:3442
XMLHiddenTextImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_uInt16 nPrfx, const OUString &sLocalName)
Definition: txtfldi.cxx:1951
virtual void ProcessAttribute(sal_uInt16 nAttrToken, const OUString &sAttrValue) override
element name w/o prefix
Definition: txtfldi.cxx:3729
import header fields ()
Definition: txtfldi.hxx:1218
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:519
virtual void ProcessAttribute(sal_uInt16 nAttrToken, const OUString &sAttrValue) override
no attributes -> empty method
Definition: txtfldi.cxx:2973
XMLTextImportHelper & rTextImportHelper
service name for text field
Definition: txtfldi.hxx:116
virtual void ProcessAttribute(sal_uInt16 nAttrToken, const OUString &sAttrValue) override
process attribute values
Definition: txtfldi.cxx:1895
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
Definition: txtfldi.cxx:2408
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
Definition: txtfldi.cxx:2212
XMLPageContinuationImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_uInt16 nPrfx, const OUString &sLocalName)
continuation string encountered?
Definition: txtfldi.cxx:732
virtual void ProcessAttribute(sal_uInt16 nAttrToken, const OUString &sAttrValue) override
process attribute values
Definition: txtfldi.cxx:3657
const OUString sPropertyOffset
Definition: txtfldi.hxx:358
XMLDateTimeFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_uInt16 nPrfx, const OUString &sLocalName)
import footer fields ()
Definition: txtfldi.cxx:3764
XMLUrlFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_uInt16 nPrfx, const OUString &sLocalName)
Definition: txtfldi.cxx:2962
bool sStringOK
previous, current
Definition: txtfldi.hxx:334
virtual void ProcessAttribute(sal_uInt16 nAttrToken, const OUString &sAttrValue) override
process attribute values
Definition: txtfldi.cxx:1316
import date fields (); inherit from TimeField to reuse implementation
Definition: txtfldi.hxx:310
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
Definition: txtfldi.cxx:629
import dde fields ()
Definition: txtfldi.hxx:978
XMLDatabaseFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, const char *pServiceName, sal_uInt16 nPrfx, const OUString &sLocalName, bool bUseDisplay)
protected constructor: only for subclasses
Definition: txtfldi.cxx:1145
import bibliography info fields ()
Definition: txtfldi.hxx:1069
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:225
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
set properties
Definition: txtfldi.cxx:3524
rtl::Reference< XMLEventsImportContext > xEventContext
Definition: txtfldi.hxx:882
XMLDatabaseNumberImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_uInt16 nPrfx, const OUString &sLocalName)
Definition: txtfldi.cxx:1401
virtual void EndElement() override
create textfield, attach master, and insert into document
Definition: txtfldi.cxx:2856
Import a script field ()
Definition: txtfldi.hxx:1137
XMLDatabaseNextImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, const char *pServiceName, sal_uInt16 nPrfx, const OUString &sLocalName)
Definition: txtfldi.cxx:1293
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
empty method
Definition: txtfldi.cxx:2900
import database next fields ()
Definition: txtfldi.hxx:446
const OUString sPropertyFileFormat
Definition: txtfldi.hxx:756
import hyperlinks as URL fields (Calc, Impress, Draw) ()
Definition: txtfldi.hxx:1045
virtual void ProcessAttribute(sal_uInt16 nAttrToken, const OUString &sAttrValue) override
process attribute values
Definition: txtfldi.cxx:1367
virtual void ProcessAttribute(sal_uInt16 nAttrToken, const OUString &sAttrValue) override
process attribute values
Definition: txtfldi.cxx:1764
const OUString sPropertyCondition
Definition: txtfldi.hxx:448
const OUString sPropertyCondition
Definition: txtfldi.hxx:640
exports com.sun.star. text
XMLDdeFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_uInt16 nPrfx, const OUString &sLocalName)
Definition: txtfldi.cxx:2835
virtual void ProcessAttribute(sal_uInt16 nAttrToken, const OUString &sAttrValue) override
element name w/o prefix
Definition: txtfldi.cxx:986
virtual void ProcessAttribute(sal_uInt16 nAttrToken, const OUString &sAttrValue) override
process attribute values
Definition: txtfldi.cxx:2379
css::util::DateTime aDateTimeValue
Definition: txtfldi.hxx:281
virtual void ProcessAttribute(sal_uInt16 nAttrToken, const OUString &sAttrValue) override
element name w/o prefix
Definition: txtfldi.cxx:3752
virtual void ProcessAttribute(sal_uInt16 nAttrToken, const OUString &sAttrValue) override
process attribute values
Definition: txtfldi.cxx:1691
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
no attributes -> empty method
Definition: txtfldi.cxx:2993
const OUString sPropertyCurrentPresentation
Definition: txtfldi.hxx:731
css::uno::Reference< css::text::XTextCursor > mxCursor
Definition: txtfldi.hxx:1107
XMLChapterImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_uInt16 nPrfx, const OUString &sLocalName)
Definition: txtfldi.cxx:2165
XMLDateTimeDocInfoImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_uInt16 nPrfx, const OUString &sLocalName, sal_uInt16 nToken)
Definition: txtfldi.cxx:1647
css::uno::Reference< css::text::XTextCursor > mxOldCursor
Definition: txtfldi.hxx:1108
virtual void ProcessAttribute(sal_uInt16 nAttrToken, const OUString &sAttrValue) override
process attributes
Definition: txtfldi.cxx:3283
const OUString sPropertyName
Definition: txtfldi.hxx:614
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
Definition: txtfldi.cxx:1447
class SAL_NO_VTABLE XPropertySet
virtual void ProcessAttribute(sal_uInt16 nAttrToken, const OUString &sAttrValue) override
process attribute values
Definition: txtfldi.cxx:1281
XMLPageNumberImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_uInt16 nPrfx, const OUString &sLocalName)
Definition: txtfldi.cxx:785
import revision field ()
Definition: txtfldi.hxx:594
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
Definition: txtfldi.cxx:935
import sheet name fields (Calc) dde fields ()
Definition: txtfldi.hxx:1004
XMLTextImportHelper & GetImportHelper()
get helper
Definition: txtfldi.hxx:154
OUStringBuffer sContentBuffer
Definition: txtfldi.hxx:113
const OUString sPropertyCondition
Definition: txtfldi.hxx:698
import measure fields ()
Definition: txtfldi.hxx:1162
XMLMacroFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_uInt16 nPrfx, const OUString &sLocalName)
Definition: txtfldi.cxx:2419
virtual void ProcessAttribute(sal_uInt16 nAttrToken, const OUString &sAttrValue) override
process attribute values
Definition: txtfldi.cxx:2039
virtual void StartElement(const css::uno::Reference< css::xml::sax::XAttributeList > &xAttrList) override
process attributes (fill aValues)
Definition: txtfldi.cxx:3051
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
Definition: txtfldi.cxx:2636
XMLPageVarSetFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_uInt16 nPrfx, const OUString &sLocalName)
Definition: txtfldi.cxx:2368
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
Definition: txtfldi.cxx:3734
virtual void ProcessAttribute(sal_uInt16 nAttrToken, const OUString &sAttrValue) override
process attributes
Definition: txtfldi.cxx:3500
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
Definition: txtfldi.cxx:3678
static const char * MapBibliographyFieldName(const OUString &sName)
Definition: txtfldi.cxx:3121
OUString sContent
collect character data
Definition: txtfldi.hxx:114
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
Definition: txtfldi.cxx:1867
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
Definition: txtfldi.cxx:2953
import user docinfo field ()
Definition: txtfldi.hxx:611
virtual void ProcessAttribute(sal_uInt16 nAttrToken, const OUString &sAttrValue) override
process attribute values
Definition: txtfldi.cxx:2176
const OUString sPropertySubType
Definition: txtfldi.hxx:356
virtual void StartElement(const css::uno::Reference< css::xml::sax::XAttributeList > &xAttrList) override
parses attributes and calls ProcessAttribute
Definition: txtfldi.cxx:132
import conditional text fields ()
Definition: txtfldi.hxx:664
import page variable fields ()
Definition: txtfldi.hxx:831
import document template name fields ()
Definition: txtfldi.hxx:754
virtual void ProcessAttribute(sal_uInt16 nAttrToken, const OUString &sAttrValue) override
process attribute values
Definition: txtfldi.cxx:2845
virtual void ProcessAttribute(sal_uInt16 nAttrToken, const OUString &sAttrValue)=0
process attribute values
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
Definition: txtfldi.cxx:2345
const OUString sPropertyContent
Definition: txtfldi.hxx:185
XMLSimpleDocInfoImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_uInt16 nPrfx, const OUString &sLocalName, sal_uInt16 nToken, bool bContent, bool bAuthor)
Definition: txtfldi.cxx:1468
OUStringBuffer aDateBuffer
Definition: txtfldi.hxx:1103
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
Definition: txtfldi.cxx:1799
virtual void ProcessAttribute(sal_uInt16 nAttrToken, const OUString &sAttrValue) override
element name w/o prefix
Definition: txtfldi.cxx:3776
OUStringBuffer aInitialsBuffer
Definition: txtfldi.hxx:1100
virtual void ProcessAttribute(sal_uInt16 nAttrToken, const OUString &sAttrValue) override
process attribute values
Definition: txtfldi.cxx:2237
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
Definition: txtfldi.cxx:1341
const OUString sPropertyIsFixedLanguage
Definition: txtfldi.hxx:567
const OUString sPropertyContent
Definition: txtfldi.hxx:220
import page variable fields ()
Definition: txtfldi.hxx:856
const OUString sPropertyNumberFormat
Definition: txtfldi.hxx:615
css::text::PageNumberType eSelectPage
Definition: txtfldi.hxx:363
import reference fields ()
Definition: txtfldi.hxx:912
This class deliberately does not support XWeak, to improve performance when loading large documents...
Definition: xmlictxt.hxx:44
exports com.sun.star. beans
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet)=0
prepare XTextField for insertion into document
const OUString sPropertyCurrentPresentation
Definition: txtfldi.hxx:667
XMLFileNameImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_uInt16 nPrfx, const OUString &sLocalName)
Definition: txtfldi.cxx:2024
DefTokenId nToken
const OUString sPropertyAuthor
Definition: txtfldi.hxx:532
const OUString sPropertyContent
Definition: txtfldi.hxx:531
OUStringBuffer aAuthorBuffer
Definition: txtfldi.hxx:1099
import database select fields ()
Definition: txtfldi.hxx:478
virtual void ProcessAttribute(sal_uInt16 nAttrToken, const OUString &sAttrValue) override
no attributes -> empty method
Definition: txtfldi.cxx:2921
import page|slide name fields ()
Definition: txtfldi.hxx:1025
OUString const & GetContent()
Definition: txtfldi.cxx:149
virtual void ProcessAttribute(sal_uInt16 nAttrToken, const OUString &sAttrValue) override
element name w/o prefix
Definition: txtfldi.cxx:894
XMLDateFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_uInt16 nPrfx, const OUString &sLocalName)
Definition: txtfldi.cxx:1095
import docinfo fields with only fixed attribute
Definition: txtfldi.hxx:528
XMLSenderFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_uInt16 nPrfx, const OUString &sLocalName, sal_uInt16 nToken)
token for this element field
Definition: txtfldi.cxx:540
std::vector< OUString > aLabels
Definition: txtfldi.hxx:1186
XMLHiddenParagraphImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_uInt16 nPrfx, const OUString &sLocalName)
Definition: txtfldi.cxx:1828
XMLTextFieldAttrTokens
Definition: txtfldi.hxx:49
import page number fields ()
Definition: txtfldi.hxx:354
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
Definition: txtfldi.cxx:767
const OUString sPropertyDateTime
Definition: txtfldi.hxx:277
const OUString sPropertyFixed
Definition: txtfldi.hxx:275
const OUString sPropertySetNumber
Definition: txtfldi.hxx:505
const OUString sPropertyNumberingType
Definition: txtfldi.hxx:357
XMLFooterFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_uInt16 nPrfx, const OUString &sLocalName)
import footer fields ()
Definition: txtfldi.cxx:3740
XMLRevisionDocInfoImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_uInt16 nPrfx, const OUString &sLocalName, sal_uInt16 nToken)
Definition: txtfldi.cxx:1609
const OUString sPropertyNumberFormat
Definition: txtfldi.hxx:274
bool sNumberFormatOK
previous, current
Definition: txtfldi.hxx:365
const OUString sPropertyCurrentPresentation
Definition: txtfldi.hxx:533
import database display number fields ()
Definition: txtfldi.hxx:502
const OUString sPropertyIsFixedLanguage
Definition: txtfldi.hxx:279
const OUString sPropertyContent
Definition: txtfldi.hxx:699
virtual void EndElement() override
create XTextField and insert into document; calls PrepareTextField
Definition: txtfldi.cxx:159
XMLUserDocInfoImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_uInt16 nPrfx, const OUString &sLocalName, sal_uInt16 nToken)
Definition: txtfldi.cxx:1748
virtual void ProcessAttribute(sal_uInt16 nAttrToken, const OUString &sAttrValue) override
process attribute values
Definition: txtfldi.cxx:1162
import chapter fields ()
Definition: txtfldi.hxx:778
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:2696
virtual void ProcessAttribute(sal_uInt16 nAttrToken, const OUString &sAttrValue) override
process attribute values
Definition: txtfldi.cxx:1484
virtual void ProcessAttribute(sal_uInt16 nAttrToken, const OUString &sAttrValue) override
element name w/o prefix
Definition: txtfldi.cxx:744
XMLTimeFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_uInt16 nPrfx, const OUString &sLocalName)
Definition: txtfldi.cxx:965
XMLReferenceFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_uInt16 nToken, sal_uInt16 nPrfx, const OUString &sLocalName)
Definition: txtfldi.cxx:2537
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
Definition: txtfldi.cxx:1389
const OUString sPropertyFileFormat
Definition: txtfldi.hxx:730
XMLAuthorFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_uInt16 nPrfx, const OUString &sLocalName, sal_uInt16 nToken)
Definition: txtfldi.cxx:659
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
Definition: txtfldi.cxx:692
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
Definition: txtfldi.cxx:3782
XMLTemplateNameImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_uInt16 nPrfx, const OUString &sLocalName)
Definition: txtfldi.cxx:2109
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
Definition: txtfldi.cxx:1618
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:1881
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:3637
const OUString sPropertyFixed
Definition: txtfldi.hxx:219
css::uno::Reference< css::beans::XPropertySet > mxField
Definition: txtfldi.hxx:1106
const OUString sPropertyNumberingType
Definition: txtfldi.hxx:504
import dde field declaration ()
Definition: txtfldi.hxx:961
import dde field declaration container ()
Definition: txtfldi.hxx:946
css::text::PageNumberType eSelectPage
continuation string
Definition: txtfldi.hxx:332
import count fields ()
Definition: txtfldi.hxx:801
const OUString sPropertyIsDate
Definition: txtfldi.hxx:566
const OUString sPropertyNumberFormat
Definition: txtfldi.hxx:565
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
convert aValues into sequence and set property
Definition: txtfldi.cxx:3106
OUString sServicePrefix
the import helper
Definition: txtfldi.hxx:119
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
Definition: txtfldi.cxx:829
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
Definition: txtfldi.cxx:3578
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
Definition: txtfldi.cxx:3757
XMLSheetNameImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_uInt16 nPrfx, const OUString &sLocalName)
Definition: txtfldi.cxx:2910
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
Definition: txtfldi.cxx:1242
import database name fields ()
Definition: txtfldi.hxx:431
dropdown field (filter legacy)
Definition: txtfldi.hxx:1184
virtual void StartElement(const css::uno::Reference< css::xml::sax::XAttributeList > &xAttrList) override
element token
Definition: txtfldi.cxx:553
virtual void ProcessAttribute(sal_uInt16 nAttrToken, const OUString &sAttrValue) override
empty method; all attributes are handled in StartElement
Definition: txtfldi.cxx:3097
void SetServiceName(const OUString &sStr)
Definition: txtfldi.hxx:157
const OUString sPropertyNumberingType
Definition: txtfldi.hxx:803
XMLCountFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_uInt16 nPrfx, const OUString &sLocalName, sal_uInt16 nToken)
Definition: txtfldi.cxx:2223
OUStringBuffer aTextBuffer
Definition: txtfldi.hxx:1102
XMLDdeFieldDeclsImportContext(SvXMLImport &rImport, sal_uInt16 nPrfx, const OUString &sLocalName)
Definition: txtfldi.cxx:2690
XMLDatabaseNameImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_uInt16 nPrfx, const OUString &sLocalName)
Definition: txtfldi.cxx:1273
import footer fields ()
Definition: txtfldi.hxx:1238
static const char * MapTokenToServiceName(sal_uInt16 nToken)
Definition: txtfldi.cxx:2276
XMLAnnotationImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_uInt16 nToken, sal_uInt16 nPrfx, const OUString &sLocalName)
Definition: txtfldi.cxx:3265
XMLBibliographyFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_uInt16 nPrfx, const OUString &sLocalName)
Definition: txtfldi.cxx:3007
virtual void StartElement(const css::uno::Reference< css::xml::sax::XAttributeList > &xAttrList) override
start element
Definition: txtfldi.cxx:2565