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#pragma once
27
28#include <com/sun/star/uno/Reference.h>
29#include <com/sun/star/beans/PropertyValue.hpp>
30#include <com/sun/star/text/PageNumberType.hpp>
31#include <com/sun/star/util/DateTime.hpp>
32#include <xmloff/xmlictxt.hxx>
33#include <xmloff/txtimp.hxx>
34#include <xmloff/xmltkmap.hxx>
35#include <rtl/ustrbuf.hxx>
36#include <vector>
37
38namespace com::sun::star {
39 namespace xml::sax { class XAttributeList; }
40 namespace text { class XTextField; }
41 namespace beans { class XPropertySet; struct PropertyValue; }
42}
43
44class SvXMLImport;
46class SvXMLTokenMap;
47
50{
51 // data members
52 OUStringBuffer sContentBuffer;
53 OUString sContent;
54 OUString sServiceName;
56
57protected:
59
60 // data members for use in subclasses
61 bool bValid;
62
63public:
64
66 SvXMLImport& rImport,
68 OUString aService);
69
71 virtual void SAL_CALL characters( const OUString& sContent ) override;
72
74 virtual void SAL_CALL startFastElement(
75 sal_Int32 nElement,
76 const css::uno::Reference<css::xml::sax::XFastAttributeList> & xAttrList) override;
77
79 virtual void SAL_CALL endFastElement(sal_Int32 nElement) override;
80
84 SvXMLImport& rImport,
86 sal_Int32 nElement);
87
88protected:
91
92 const OUString& GetServiceName() const { return sServiceName; }
93 void SetServiceName(const OUString& sStr) { sServiceName = sStr; }
94
95 OUString const & GetContent();
96
98 virtual void ProcessAttribute( sal_Int32 nAttrToken,
99 std::string_view sAttrValue ) = 0;
100
102 virtual void PrepareField(
103 const css::uno::Reference< css::beans::XPropertySet> & xPropertySet) = 0;
104
106 bool CreateField(css::uno::Reference< css::beans::XPropertySet> & xField,
107 const OUString& sServiceName);
108
111 static void ForceUpdate(
112 const css::uno::Reference< css::beans::XPropertySet> & rPropertySet);
113};
114
116{
117
118 sal_Int16 nSubType;
119
120 const OUString sPropertyFixed;
121 const OUString sPropertyContent;
122
123protected:
124 // variables for access in subclass
125 bool bFixed;
126
127public:
128
130 SvXMLImport& rImport,
131 XMLTextImportHelper& rHlp);
132
133protected:
135 virtual void SAL_CALL startFastElement(
136 sal_Int32 nElement,
137 const css::uno::Reference<css::xml::sax::XFastAttributeList> & xAttrList) override;
138
140 virtual void ProcessAttribute( sal_Int32 nAttrToken,
141 std::string_view sAttrValue ) override;
142
144 virtual void PrepareField(
145 const css::uno::Reference< css::beans::XPropertySet> & xPropertySet) override;
146};
147
150{
152 const OUString sPropertyFixed;
153 const OUString sPropertyContent;
154
155public:
156
158 SvXMLImport& rImport,
159 XMLTextImportHelper& rHlp);
160
161private:
163 virtual void SAL_CALL startFastElement(
164 sal_Int32 nElement,
165 const css::uno::Reference<css::xml::sax::XFastAttributeList> & xAttrList) override;
166
168 virtual void ProcessAttribute( sal_Int32 nAttrToken,
169 std::string_view sAttrValue ) override;
170
172 virtual void PrepareField(
173 const css::uno::Reference< css::beans::XPropertySet> & xPropertySet) override;
174};
175
177{
178 const OUString sPropertyHint;
179
180 OUString sDescription;
181
183
184public:
185
187 SvXMLImport& rImport,
188 XMLTextImportHelper& rHlp);
189
190private:
192 virtual void ProcessAttribute( sal_Int32 nAttrToken,
193 std::string_view sAttrValue ) override;
194
196 virtual void PrepareField(
197 const css::uno::Reference< css::beans::XPropertySet> & xPropertySet) override;
198};
199
201{
202protected:
203 const OUString sPropertyNumberFormat;
204 const OUString sPropertyFixed;
206 const OUString sPropertyDateTime;
207 const OUString sPropertyIsDate;
209
210 css::util::DateTime aDateTimeValue;
211 sal_Int32 nAdjust;
212 sal_Int32 nFormatKey;
215 bool bFixed;
216 bool bIsDate; // is this a date?
217 // (for XMLDateFieldImportContext, really)
219
220public:
221
223 SvXMLImport& rImport,
224 XMLTextImportHelper& rHlp);
225
227 virtual void ProcessAttribute( sal_Int32 nAttrToken,
228 std::string_view sAttrValue ) override;
229
231 virtual void PrepareField(
232 const css::uno::Reference< css::beans::XPropertySet> & xPropertySet) override;
233};
234
238{
239public:
240
242 SvXMLImport& rImport,
243 XMLTextImportHelper& rHlp);
244
246 virtual void ProcessAttribute( sal_Int32 nAttrToken,
247 std::string_view sAttrValue ) override;
248};
249
252{
253 const OUString sPropertySubType;
255
256 OUString sString;
257 css::text::PageNumberType eSelectPage;
260
261public:
262
264 SvXMLImport& rImport,
265 XMLTextImportHelper& rHlp);
266
268 virtual void ProcessAttribute( sal_Int32 nAttrToken,
269 std::string_view sAttrValue ) override;
270
272 virtual void PrepareField(
273 const css::uno::Reference< css::beans::XPropertySet> & xPropertySet) override;
274};
275
278{
279 const OUString sPropertySubType;
281 const OUString sPropertyOffset;
282
284 OUString sNumberSync;
285 sal_Int16 nPageAdjust;
286 css::text::PageNumberType eSelectPage;
289
290public:
291
293 SvXMLImport& rImport,
294 XMLTextImportHelper& rHlp);
295
296
298 virtual void ProcessAttribute( sal_Int32 nAttrToken,
299 std::string_view sAttrValue ) override;
300
302 virtual void PrepareField(
303 const css::uno::Reference< css::beans::XPropertySet> & xPropertySet) override;
304};
305
308{
311 OUString m_sTableName;
312
313 sal_Int32 m_nCommandType;
315
319
320protected:
325
329 const OUString& pServiceName,
330 bool bUseDisplay );
331
332public:
333
335 virtual void ProcessAttribute( sal_Int32 nAttrToken,
336 std::string_view sAttrValue ) override;
337
339 virtual void PrepareField(
340 const css::uno::Reference< css::beans::XPropertySet> & xPropertySet) override;
341
343 virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(
344 sal_Int32 nElement,
345 const css::uno::Reference< css::xml::sax::XFastAttributeList >& AttrList ) override;
346};
347
350{
351public:
352
354 XMLTextImportHelper& rHlp);
355
357 virtual void ProcessAttribute( sal_Int32 nAttrToken,
358 std::string_view sAttrValue ) override;
359};
360
363{
364 const OUString sPropertyCondition;
365 const OUString sTrue;
366 OUString sCondition;
368
369protected:
370 // for use in child classes
373 const OUString& pServiceName);
374
375public:
376
378 XMLTextImportHelper& rHlp);
379
381 virtual void ProcessAttribute( sal_Int32 nAttrToken,
382 std::string_view sAttrValue ) override;
383
385 virtual void PrepareField(
386 const css::uno::Reference< css::beans::XPropertySet> & xPropertySet) override;
387};
388
391{
392 const OUString sPropertySetNumber;
393 sal_Int32 nNumber;
395
396public:
397
399 XMLTextImportHelper& rHlp);
400
402 virtual void ProcessAttribute( sal_Int32 nAttrToken,
403 std::string_view sAttrValue ) override;
404
406 virtual void PrepareField(
407 const css::uno::Reference<
408 css::beans::XPropertySet> & xPropertySet) override;
409};
410
413{
415 const OUString sPropertySetNumber;
417 OUString sNumberSync;
418 sal_Int32 nValue;
420
421public:
422
424 XMLTextImportHelper& rHlp);
425
427 virtual void ProcessAttribute( sal_Int32 nAttrToken,
428 std::string_view sAttrValue ) override;
429
431 virtual void PrepareField(
432 const css::uno::Reference< css::beans::XPropertySet> & xPropertySet) override;
433};
434
437{
438 const OUString sPropertyFixed;
439 const OUString sPropertyContent;
440 const OUString sPropertyAuthor;
442
443protected:
444 bool bFixed;
447
448public:
449
452 sal_Int32 nElementToken,
453 bool bContent,
454 bool bAuthor);
455
456protected:
458 virtual void ProcessAttribute( sal_Int32 nAttrToken,
459 std::string_view sAttrValue ) override;
460
462 virtual void PrepareField(
463 const css::uno::Reference< css::beans::XPropertySet> & xPropertySet) override;
464
465 static OUString MapTokenToServiceName(sal_Int32 nElementToken);
466};
467
470{
471 const OUString sPropertyNumberFormat;
472 const OUString sPropertyIsDate;
474
475 sal_Int32 nFormat;
480
481public:
482
485 sal_Int32 nElement);
486
487private:
489 virtual void ProcessAttribute( sal_Int32 nAttrToken,
490 std::string_view sAttrValue ) override;
491
493 virtual void PrepareField(
494 const css::uno::Reference< css::beans::XPropertySet> & xPropertySet) override;
495};
496
499{
500public:
501
504 sal_Int32 nElement);
505
506private:
508 virtual void PrepareField(
509 const css::uno::Reference<css::beans::XPropertySet> & xPropertySet) override;
510};
511
514{
515 OUString aName;
516 const OUString sPropertyName;
517 const OUString sPropertyNumberFormat;
519 sal_Int32 nFormat;
522
523public:
524
527 sal_Int32 nElement);
528
529private:
531 virtual void ProcessAttribute( sal_Int32 nAttrToken,
532 std::string_view sAttrValue ) override;
533 virtual void PrepareField(
534 const css::uno::Reference<css::beans::XPropertySet> & xPropertySet) override;
535};
536
539{
540 const OUString sPropertyCondition;
541 const OUString sPropertyIsHidden;
542
543 OUString sCondition;
545
546public:
547
549 XMLTextImportHelper& rHlp);
550
551private:
553 virtual void ProcessAttribute( sal_Int32 nAttrToken,
554 std::string_view sAttrValue ) override;
555
557 virtual void PrepareField(
558 const css::uno::Reference<css::beans::XPropertySet> & xPropertySet) override;
559};
560
563{
564 const OUString sPropertyCondition;
566
567 OUString sCondition;
568 OUString sTrueContent;
570
575
576public:
577
579 XMLTextImportHelper& rHlp);
580
581private:
583 virtual void ProcessAttribute( sal_Int32 nAttrToken,
584 std::string_view sAttrValue ) override;
585
587 virtual void PrepareField(
588 const css::uno::Reference<css::beans::XPropertySet> & xPropertySet) override;
589};
590
593{
594 const OUString sPropertyCondition;
595 const OUString sPropertyContent;
596 const OUString sPropertyIsHidden;
597
598 OUString sCondition;
599 OUString sString;
600
604
605public:
606
608 XMLTextImportHelper& rHlp);
609
610private:
612 virtual void ProcessAttribute( sal_Int32 nAttrToken,
613 std::string_view sAttrValue ) override;
614
616 virtual void PrepareField(
617 const css::uno::Reference<css::beans::XPropertySet> & xPropertySet) override;
618};
619
622{
623 const OUString sPropertyFixed;
624 const OUString sPropertyFileFormat;
626
627 sal_Int16 nFormat;
628 bool bFixed;
629
630public:
631
633 XMLTextImportHelper& rHlp);
634
635private:
637 virtual void ProcessAttribute( sal_Int32 nAttrToken,
638 std::string_view sAttrValue ) override;
639
641 virtual void PrepareField(
642 const css::uno::Reference<css::beans::XPropertySet> & xPropertySet) override;
643};
644
647{
648 const OUString sPropertyFileFormat;
649
650 sal_Int16 nFormat;
651
652public:
653
655 XMLTextImportHelper& rHlp);
656
657private:
659 virtual void ProcessAttribute( sal_Int32 nAttrToken,
660 std::string_view sAttrValue ) override;
661
663 virtual void PrepareField(
664 const css::uno::Reference<css::beans::XPropertySet> & xPropertySet) override;
665};
666
669{
670 sal_Int16 nFormat;
672
673public:
674
676 XMLTextImportHelper& rHlp);
677
678private:
680 virtual void ProcessAttribute( sal_Int32 nAttrToken,
681 std::string_view sAttrValue ) override;
682
684 virtual void PrepareField(
685 const css::uno::Reference<css::beans::XPropertySet> & xPropertySet) override;
686};
687
690{
692
694 OUString sLetterSync;
695
697
698public:
699
702 sal_Int32 nElement);
703
704private:
706 virtual void ProcessAttribute( sal_Int32 nAttrToken,
707 std::string_view sAttrValue ) override;
708
710 virtual void PrepareField(
711 const css::uno::Reference<css::beans::XPropertySet> & xPropertySet) override;
712
713 static OUString MapTokenToServiceName(sal_Int32 nElement);
714};
715
718{
720 OUString sLetterSync;
721
723
724public:
725
727 XMLTextImportHelper& rHlp);
728
729private:
731 virtual void ProcessAttribute( sal_Int32 nAttrToken,
732 std::string_view sAttrValue ) override;
733
735 virtual void PrepareField(
736 const css::uno::Reference<css::beans::XPropertySet> & xPropertySet) override;
737};
738
741{
742 sal_Int16 nAdjust;
744
745public:
746
748 XMLTextImportHelper& rHlp);
749
750private:
752 virtual void ProcessAttribute( sal_Int32 nAttrToken,
753 std::string_view sAttrValue ) override;
754
756 virtual void PrepareField(
757 const css::uno::Reference<css::beans::XPropertySet> & xPropertySet) override;
758};
759
762{
763 OUString sDescription;
765
766 OUString sMacro; // macro for old documents (pre 638i)
767
769
770public:
771
773 XMLTextImportHelper& rHlp);
774
775private:
777 virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(
778 sal_Int32 nElement,
779 const css::uno::Reference< css::xml::sax::XFastAttributeList >& AttrList ) override;
780
782 virtual void ProcessAttribute( sal_Int32 nAttrToken,
783 std::string_view sAttrValue ) override;
784
786 virtual void PrepareField(
787 const css::uno::Reference<css::beans::XPropertySet> & xPropertySet) override;
788};
789
792{
793 OUString sName;
794 OUString sLanguage;
795 sal_Int32 nElementToken;
796 sal_Int16 nSource;
797 sal_Int16 nType;
798
801
802public:
803
806 sal_Int32 nToken);
807
808private:
810 virtual void SAL_CALL startFastElement(
811 sal_Int32 nElement,
812 const css::uno::Reference<css::xml::sax::XFastAttributeList> & xAttrList) override;
813
815 virtual void ProcessAttribute( sal_Int32 nAttrToken,
816 std::string_view sAttrValue ) override;
817
819 virtual void PrepareField(
820 const css::uno::Reference<css::beans::XPropertySet> & xPropertySet) override;
821};
822
825{
826public:
827
829
830 virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(
831 sal_Int32 nElement,
832 const css::uno::Reference< css::xml::sax::XFastAttributeList >& AttrList ) override;
833};
834
837{
838public:
839
841
842 // create fieldmaster
843 virtual void SAL_CALL startFastElement(
844 sal_Int32 nElement,
845 const css::uno::Reference<css::xml::sax::XFastAttributeList> & xAttrList) override;
846};
847
850{
851 OUString sName;
853
854public:
855
857 XMLTextImportHelper& rHlp);
858
859private:
861 virtual void ProcessAttribute( sal_Int32 nAttrToken,
862 std::string_view sAttrValue ) override;
863
865 virtual void SAL_CALL endFastElement(sal_Int32 nElement) override;
866
868 virtual void PrepareField(
869 const css::uno::Reference<css::beans::XPropertySet> & xPropertySet) override;
870};
871
874{
875
876public:
877
879 XMLTextImportHelper& rHlp);
880
881private:
883 virtual void ProcessAttribute( sal_Int32 nAttrToken,
884 std::string_view sAttrValue ) override;
885
887 virtual void PrepareField(
888 const css::uno::Reference<css::beans::XPropertySet> & xPropertySet) override;
889};
890
893{
894public:
895
897 SvXMLImport& rImport,
898 XMLTextImportHelper& rHlp);
899
901 virtual void ProcessAttribute( sal_Int32 nAttrToken,
902 std::string_view sAttrValue ) override;
903
905 virtual void PrepareField(
906 const css::uno::Reference<css::beans::XPropertySet> & xPropertySet) override;
907};
908
911{
912 OUString sURL;
913 OUString sFrame;
915
916public:
917
919 XMLTextImportHelper& rHlp);
920
921private:
923 virtual void ProcessAttribute( sal_Int32 nAttrToken,
924 std::string_view sAttrValue ) override;
925
927 virtual void PrepareField(
928 const css::uno::Reference<css::beans::XPropertySet> & xPropertySet) override;
929};
930
933{
934 ::std::vector< css::beans::PropertyValue> aValues;
935
936public:
937
939 XMLTextImportHelper& rHlp);
940
941private:
943 virtual void SAL_CALL startFastElement(
944 sal_Int32 nElement,
945 const css::uno::Reference< css::xml::sax::XFastAttributeList>& xAttrList) override;
946
948 virtual void ProcessAttribute( sal_Int32 nAttrToken,
949 std::string_view sAttrValue ) override;
950
952 virtual void PrepareField(
953 const css::uno::Reference<css::beans::XPropertySet> & xPropertySet) override;
954
955 static const char* MapBibliographyFieldName(sal_Int32 nElement);
956};
957
960{
961 OUStringBuffer aAuthorBuffer;
962 OUStringBuffer aInitialsBuffer;
963 OUString aName;
964 OUStringBuffer aTextBuffer;
965 OUStringBuffer aDateBuffer;
966 OUString aResolved;
967
968 css::uno::Reference < css::beans::XPropertySet > mxField;
969 css::uno::Reference < css::text::XTextCursor > mxCursor;
970 css::uno::Reference < css::text::XTextCursor > mxOldCursor;
971
972 sal_Int32 mnElement;
973
974public:
975
978 sal_Int32 nElement);
979
980private:
982 virtual void ProcessAttribute( sal_Int32 nAttrToken,
983 std::string_view sAttrValue ) override;
984
986 virtual void PrepareField(
987 const css::uno::Reference< css::beans::XPropertySet > & xPropertySet) override;
988
989 virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(
990 sal_Int32 nElement,
991 const css::uno::Reference< css::xml::sax::XFastAttributeList >& AttrList ) override;
992 virtual void SAL_CALL endFastElement(sal_Int32 nElement) override;
993};
994
997{
998 OUString sContent;
999 OUString sScriptType;
1000
1002
1003public:
1004
1006 XMLTextImportHelper& rHlp);
1007
1008private:
1010 virtual void ProcessAttribute( sal_Int32 nAttrToken,
1011 std::string_view sAttrValue ) override;
1012
1014 virtual void PrepareField(
1015 const css::uno::Reference<css::beans::XPropertySet> & xPropertySet) override;
1016};
1017
1020{
1021 sal_Int16 mnKind;
1022
1023public:
1024
1026 XMLTextImportHelper& rHlp);
1027
1028private:
1030 virtual void ProcessAttribute( sal_Int32 nAttrToken,
1031 std::string_view sAttrValue ) override;
1032
1034 virtual void PrepareField(
1035 const css::uno::Reference<css::beans::XPropertySet> & xPropertySet) override;
1036};
1037
1040{
1041 std::vector<OUString> aLabels;
1042 OUString sName;
1043 OUString sHelp;
1044 OUString sHint;
1045 sal_Int32 nSelected;
1049
1050public:
1051
1053 XMLTextImportHelper& rHlp);
1054
1055 virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(
1056 sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList >& AttrList ) override;
1057
1058private:
1060 virtual void ProcessAttribute( sal_Int32 nAttrToken,
1061 std::string_view sAttrValue ) override;
1062
1064 virtual void PrepareField(
1065 const css::uno::Reference<css::beans::XPropertySet> & xPropertySet) override;
1066};
1067
1070{
1071public:
1072
1074 SvXMLImport& rImport,
1075 XMLTextImportHelper& rHlp);
1076
1078 virtual void ProcessAttribute( sal_Int32 nAttrToken,
1079 std::string_view sAttrValue ) override;
1080
1082 virtual void PrepareField(
1083 const css::uno::Reference<css::beans::XPropertySet> & xPropertySet) override;
1084};
1085
1088{
1089public:
1090
1092 SvXMLImport& rImport,
1093 XMLTextImportHelper& rHlp);
1094
1096 virtual void ProcessAttribute( sal_Int32 nAttrToken,
1097 std::string_view sAttrValue ) override;
1098
1100 virtual void PrepareField(
1101 const css::uno::Reference<css::beans::XPropertySet> & xPropertySet) override;
1102};
1103
1106{
1107public:
1108
1110 SvXMLImport& rImport,
1111 XMLTextImportHelper& rHlp);
1112
1114 virtual void ProcessAttribute( sal_Int32 nAttrToken,
1115 std::string_view sAttrValue ) override;
1116
1118 virtual void PrepareField(
1119 const css::uno::Reference<css::beans::XPropertySet> & xPropertySet) override;
1120};
1121
1122/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
This class deliberately does not support XWeak, to improve performance when loading large documents.
Definition: xmlictxt.hxx:48
friend class SvXMLImport
Definition: xmlictxt.hxx:49
Import an annotation field (<text:annotation>)
Definition: txtfldi.hxx:960
OUStringBuffer aInitialsBuffer
Definition: txtfldi.hxx:962
virtual void ProcessAttribute(sal_Int32 nAttrToken, std::string_view sAttrValue) override
process attributes
Definition: txtfldi.cxx:3147
OUStringBuffer aTextBuffer
Definition: txtfldi.hxx:964
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
set properties
Definition: txtfldi.cxx:3302
XMLAnnotationImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_Int32 nElement)
Definition: txtfldi.cxx:3132
css::uno::Reference< css::text::XTextCursor > mxCursor
Definition: txtfldi.hxx:969
virtual void SAL_CALL endFastElement(sal_Int32 nElement) override
create XTextField and insert into document; calls PrepareTextField
Definition: txtfldi.cxx:3206
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:3159
css::uno::Reference< css::text::XTextCursor > mxOldCursor
Definition: txtfldi.hxx:970
OUStringBuffer aAuthorBuffer
Definition: txtfldi.hxx:961
css::uno::Reference< css::beans::XPropertySet > mxField
Definition: txtfldi.hxx:968
OUStringBuffer aDateBuffer
Definition: txtfldi.hxx:965
inherit sender field because of fixed attribute in ProcessAttributes
Definition: txtfldi.hxx:150
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Text import helper.
Definition: txtfldi.cxx:618
const OUString sPropertyFixed
Definition: txtfldi.hxx:152
virtual void ProcessAttribute(sal_Int32 nAttrToken, std::string_view sAttrValue) override
process attribute values
Definition: txtfldi.cxx:629
XMLAuthorFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp)
Definition: txtfldi.cxx:607
const OUString sPropertyContent
Definition: txtfldi.hxx:153
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
Definition: txtfldi.cxx:641
import bibliography info fields (<text:bibliography-mark>)
Definition: txtfldi.hxx:933
virtual void ProcessAttribute(sal_Int32 nAttrToken, std::string_view sAttrValue) override
empty method; all attributes are handled in StartElement
Definition: txtfldi.cxx:2986
static const char * MapBibliographyFieldName(sal_Int32 nElement)
Definition: txtfldi.cxx:3011
::std::vector< css::beans::PropertyValue > aValues
Definition: txtfldi.hxx:934
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:2937
XMLBibliographyFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp)
Definition: txtfldi.cxx:2897
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
convert aValues into sequence and set property
Definition: txtfldi.cxx:2995
import chapter fields (<text:chapter>)
Definition: txtfldi.hxx:669
XMLChapterImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp)
Definition: txtfldi.cxx:2102
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
Definition: txtfldi.cxx:2148
virtual void ProcessAttribute(sal_Int32 nAttrToken, std::string_view sAttrValue) override
process attribute values
Definition: txtfldi.cxx:2111
import conditional text fields (<text:conditional-text>)
Definition: txtfldi.hxx:563
XMLConditionalTextImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp)
Definition: txtfldi.cxx:1819
const OUString sPropertyCondition
Definition: txtfldi.hxx:564
virtual void ProcessAttribute(sal_Int32 nAttrToken, std::string_view sAttrValue) override
process attribute values
Definition: txtfldi.cxx:1831
const OUString sPropertyCurrentPresentation
Definition: txtfldi.hxx:565
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
Definition: txtfldi.cxx:1875
import count fields (<text:[XXX]-count>)
Definition: txtfldi.hxx:690
const OUString sPropertyNumberingType
Definition: txtfldi.hxx:691
static OUString MapTokenToServiceName(sal_Int32 nElement)
Definition: txtfldi.cxx:2211
XMLCountFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_Int32 nElement)
Definition: txtfldi.cxx:2159
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
Definition: txtfldi.cxx:2188
virtual void ProcessAttribute(sal_Int32 nAttrToken, std::string_view sAttrValue) override
process attribute values
Definition: txtfldi.cxx:2170
superclass for database fields: handle database and table names
Definition: txtfldi.hxx:308
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:1164
virtual void ProcessAttribute(sal_Int32 nAttrToken, std::string_view sAttrValue) override
process attribute values
Definition: txtfldi.cxx:1116
XMLDatabaseFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, const OUString &pServiceName, bool bUseDisplay)
protected constructor: only for subclasses
Definition: txtfldi.cxx:1100
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
Definition: txtfldi.cxx:1195
import database name fields (<text:database-name>)
Definition: txtfldi.hxx:350
XMLDatabaseNameImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp)
Definition: txtfldi.cxx:1226
virtual void ProcessAttribute(sal_Int32 nAttrToken, std::string_view sAttrValue) override
process attribute values
Definition: txtfldi.cxx:1232
import database next fields (<text:database-next>)
Definition: txtfldi.hxx:363
virtual void ProcessAttribute(sal_Int32 nAttrToken, std::string_view sAttrValue) override
process attribute values
Definition: txtfldi.cxx:1263
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
Definition: txtfldi.cxx:1288
XMLDatabaseNextImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, const OUString &pServiceName)
Definition: txtfldi.cxx:1244
const OUString sPropertyCondition
Definition: txtfldi.hxx:364
import database display number fields (<text:database-row-number>)
Definition: txtfldi.hxx:413
XMLDatabaseNumberImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp)
Definition: txtfldi.cxx:1346
virtual void ProcessAttribute(sal_Int32 nAttrToken, std::string_view sAttrValue) override
process attribute values
Definition: txtfldi.cxx:1359
const OUString sPropertyNumberingType
Definition: txtfldi.hxx:414
const OUString sPropertySetNumber
Definition: txtfldi.hxx:415
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
Definition: txtfldi.cxx:1391
import database select fields (<text:database-select>)
Definition: txtfldi.hxx:391
const OUString sPropertySetNumber
Definition: txtfldi.hxx:392
virtual void ProcessAttribute(sal_Int32 nAttrToken, std::string_view sAttrValue) override
process attribute values
Definition: txtfldi.cxx:1312
XMLDatabaseSelectImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp)
Definition: txtfldi.cxx:1303
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
Definition: txtfldi.cxx:1334
import date fields (<text:date>); inherit from TimeField to reuse implementation
Definition: txtfldi.hxx:238
virtual void ProcessAttribute(sal_Int32 nAttrToken, std::string_view sAttrValue) override
Text import helper.
Definition: txtfldi.cxx:1056
XMLDateFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp)
Definition: txtfldi.cxx:1049
import docinfo fields with date or time attributes and numberformats
Definition: txtfldi.hxx:470
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
Definition: txtfldi.cxx:1659
XMLDateTimeDocInfoImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_Int32 nElement)
Definition: txtfldi.cxx:1589
virtual void ProcessAttribute(sal_Int32 nAttrToken, std::string_view sAttrValue) override
process attribute values
Definition: txtfldi.cxx:1632
const OUString sPropertyIsDate
Definition: txtfldi.hxx:472
const OUString sPropertyIsFixedLanguage
Definition: txtfldi.hxx:473
const OUString sPropertyNumberFormat
Definition: txtfldi.hxx:471
import footer fields (<draw:date-and-time>)
Definition: txtfldi.hxx:1106
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
Definition: txtfldi.cxx:3628
virtual void ProcessAttribute(sal_Int32 nAttrToken, std::string_view sAttrValue) override
Text import helper.
Definition: txtfldi.cxx:3621
XMLDateTimeFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp)
import footer fields (<draw:date-and-time>)
Definition: txtfldi.cxx:3611
import dde field declaration (<text:dde-connection-decl>)
Definition: txtfldi.hxx:837
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Definition: txtfldi.cxx:2624
XMLDdeFieldDeclImportContext(SvXMLImport &rImport)
Definition: txtfldi.cxx:2619
import dde field declaration container (<text:dde-connection-decls>)
Definition: txtfldi.hxx:825
XMLDdeFieldDeclsImportContext(SvXMLImport &rImport)
Definition: txtfldi.cxx:2597
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:2602
import dde fields (<text:dde-connection>)
Definition: txtfldi.hxx:850
XMLDdeFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp)
Definition: txtfldi.cxx:2730
virtual void SAL_CALL endFastElement(sal_Int32 nElement) override
create textfield, attach master, and insert into document
Definition: txtfldi.cxx:2751
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
empty method
Definition: txtfldi.cxx:2795
virtual void ProcessAttribute(sal_Int32 nAttrToken, std::string_view sAttrValue) override
process attribute values
Definition: txtfldi.cxx:2737
dropdown field (filter legacy)
Definition: txtfldi.hxx:1040
virtual void ProcessAttribute(sal_Int32 nAttrToken, std::string_view sAttrValue) override
process attribute values
Definition: txtfldi.cxx:3504
std::vector< OUString > aLabels
Definition: txtfldi.hxx:1041
XMLDropDownFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp)
Definition: txtfldi.cxx:3445
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
Definition: txtfldi.cxx:3527
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:3487
import file name fields (<text:file-name>)
Definition: txtfldi.hxx:622
const OUString sPropertyFileFormat
Definition: txtfldi.hxx:624
virtual void ProcessAttribute(sal_Int32 nAttrToken, std::string_view sAttrValue) override
process attribute values
Definition: txtfldi.cxx:1976
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
Definition: txtfldi.cxx:2008
const OUString sPropertyCurrentPresentation
Definition: txtfldi.hxx:625
const OUString sPropertyFixed
Definition: txtfldi.hxx:623
XMLFileNameImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp)
Definition: txtfldi.cxx:1963
import footer fields (<draw:footer>)
Definition: txtfldi.hxx:1088
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
Definition: txtfldi.cxx:3604
XMLFooterFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp)
import footer fields (<draw:footer>)
Definition: txtfldi.cxx:3588
virtual void ProcessAttribute(sal_Int32 nAttrToken, std::string_view sAttrValue) override
Text import helper.
Definition: txtfldi.cxx:3598
import header fields (<draw:header>)
Definition: txtfldi.hxx:1070
virtual void ProcessAttribute(sal_Int32 nAttrToken, std::string_view sAttrValue) override
Text import helper.
Definition: txtfldi.cxx:3576
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
Definition: txtfldi.cxx:3582
XMLHeaderFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp)
import header fields (<draw:header>)
Definition: txtfldi.cxx:3566
import hidden paragraph fields (<text:hidden-paragraph>)
Definition: txtfldi.hxx:539
XMLHiddenParagraphImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp)
Definition: txtfldi.cxx:1767
virtual void ProcessAttribute(sal_Int32 nAttrToken, std::string_view sAttrValue) override
process attribute values
Definition: txtfldi.cxx:1776
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
Definition: txtfldi.cxx:1805
const OUString sPropertyIsHidden
Definition: txtfldi.hxx:541
const OUString sPropertyCondition
Definition: txtfldi.hxx:540
import conditional text fields (<text:hidden-text>)
Definition: txtfldi.hxx:593
XMLHiddenTextImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp)
Definition: txtfldi.cxx:1889
const OUString sPropertyCondition
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:1942
const OUString sPropertyIsHidden
Definition: txtfldi.hxx:596
virtual void ProcessAttribute(sal_Int32 nAttrToken, std::string_view sAttrValue) override
process attribute values
Definition: txtfldi.cxx:1901
const OUString sPropertyContent
Definition: txtfldi.hxx:595
import macro fields (<text:execute-macro>)
Definition: txtfldi.hxx:762
XMLMacroFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp)
Definition: txtfldi.cxx:2350
virtual void ProcessAttribute(sal_Int32 nAttrToken, std::string_view sAttrValue) override
process attribute values
Definition: txtfldi.cxx:2373
rtl::Reference< XMLEventsImportContext > xEventContext
Definition: txtfldi.hxx:764
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
Definition: txtfldi.cxx:2392
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 <office:events> children
Definition: txtfldi.cxx:2357
import measure fields (<text:measure>)
Definition: txtfldi.hxx:1020
XMLMeasureFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp)
Definition: txtfldi.cxx:3402
virtual void ProcessAttribute(sal_Int32 nAttrToken, std::string_view sAttrValue) override
process attribute values
Definition: txtfldi.cxx:3410
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
Definition: txtfldi.cxx:3435
import page continuation fields (<text:page-continuation-string>)
Definition: txtfldi.hxx:252
const OUString sPropertyNumberingType
Definition: txtfldi.hxx:254
virtual void ProcessAttribute(sal_Int32 nAttrToken, std::string_view sAttrValue) override
Text import helper.
Definition: txtfldi.cxx:692
XMLPageContinuationImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp)
continuation string encountered?
Definition: txtfldi.cxx:681
css::text::PageNumberType eSelectPage
continuation string
Definition: txtfldi.hxx:257
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
Definition: txtfldi.cxx:718
bool sStringOK
previous, current
Definition: txtfldi.hxx:259
import page|slide name fields (<text:page-name>)
Definition: txtfldi.hxx:893
XMLPageNameFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp)
import page|slide name fields (<text:page-name>)
Definition: txtfldi.cxx:2829
virtual void ProcessAttribute(sal_Int32 nAttrToken, std::string_view sAttrValue) override
Text import helper.
Definition: txtfldi.cxx:2838
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
Definition: txtfldi.cxx:2845
import page number fields (<text:page-number>)
Definition: txtfldi.hxx:278
const OUString sPropertyOffset
Definition: txtfldi.hxx:281
const OUString sPropertyNumberingType
Definition: txtfldi.hxx:280
virtual void ProcessAttribute(sal_Int32 nAttrToken, std::string_view sAttrValue) override
Text import helper.
Definition: txtfldi.cxx:750
XMLPageNumberImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp)
Definition: txtfldi.cxx:736
css::text::PageNumberType eSelectPage
Definition: txtfldi.hxx:286
const OUString sPropertySubType
Definition: txtfldi.hxx:279
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
Definition: txtfldi.cxx:781
bool sNumberFormatOK
previous, current
Definition: txtfldi.hxx:288
import page variable fields (<text:get-page-variable>)
Definition: txtfldi.hxx:718
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
Definition: txtfldi.cxx:2277
virtual void ProcessAttribute(sal_Int32 nAttrToken, std::string_view sAttrValue) override
process attribute values
Definition: txtfldi.cxx:2259
XMLPageVarGetFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp)
Definition: txtfldi.cxx:2251
import page variable fields (<text:get-page-variable>)
Definition: txtfldi.hxx:741
virtual void ProcessAttribute(sal_Int32 nAttrToken, std::string_view sAttrValue) override
process attribute values
Definition: txtfldi.cxx:2309
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
Definition: txtfldi.cxx:2339
XMLPageVarSetFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp)
Definition: txtfldi.cxx:2300
virtual void ProcessAttribute(sal_Int32 nAttrToken, std::string_view sAttrValue) override
Text import helper.
Definition: txtfldi.cxx:845
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
Definition: txtfldi.cxx:887
XMLPlaceholderFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp)
Definition: txtfldi.cxx:836
import reference fields (<text:reference-get>)
Definition: txtfldi.hxx:792
virtual void ProcessAttribute(sal_Int32 nAttrToken, std::string_view sAttrValue) override
process attribute values
Definition: txtfldi.cxx:2521
XMLReferenceFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_Int32 nToken)
Definition: txtfldi.cxx:2464
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
Definition: txtfldi.cxx:2567
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
start element
Definition: txtfldi.cxx:2492
import revision field (<text:editing-cycles>)
Definition: txtfldi.hxx:499
XMLRevisionDocInfoImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_Int32 nElement)
Definition: txtfldi.cxx:1553
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
Definition: txtfldi.cxx:1560
Import a script field (<text:script>)
Definition: txtfldi.hxx:997
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
set properties
Definition: txtfldi.cxx:3382
virtual void ProcessAttribute(sal_Int32 nAttrToken, std::string_view sAttrValue) override
process attributes
Definition: txtfldi.cxx:3357
XMLScriptImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp)
Definition: txtfldi.cxx:3349
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
Definition: txtfldi.cxx:577
const OUString sPropertyFixed
API subtype for ExtUser field.
Definition: txtfldi.hxx:120
const OUString sPropertyContent
Definition: txtfldi.hxx:121
virtual void ProcessAttribute(sal_Int32 nAttrToken, std::string_view sAttrValue) override
process attribute values
Definition: txtfldi.cxx:558
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
Text import helper.
Definition: txtfldi.cxx:496
XMLSenderFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp)
Definition: txtfldi.cxx:486
import sheet name fields (Calc) dde fields (<text:sheet-name>)
Definition: txtfldi.hxx:874
virtual void ProcessAttribute(sal_Int32 nAttrToken, std::string_view sAttrValue) override
no attributes -> empty method
Definition: txtfldi.cxx:2813
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
no attributes -> empty method
Definition: txtfldi.cxx:2821
XMLSheetNameImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp)
Definition: txtfldi.cxx:2805
import docinfo fields with only fixed attribute
Definition: txtfldi.hxx:437
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
Definition: txtfldi.cxx:1444
XMLSimpleDocInfoImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_Int32 nElementToken, bool bContent, bool bAuthor)
Definition: txtfldi.cxx:1412
virtual void ProcessAttribute(sal_Int32 nAttrToken, std::string_view sAttrValue) override
process attribute values
Definition: txtfldi.cxx:1428
const OUString sPropertyCurrentPresentation
Definition: txtfldi.hxx:441
static OUString MapTokenToServiceName(sal_Int32 nElementToken)
Definition: txtfldi.cxx:1485
const OUString sPropertyContent
Definition: txtfldi.hxx:439
const OUString sPropertyAuthor
Definition: txtfldi.hxx:440
const OUString sPropertyFixed
Definition: txtfldi.hxx:438
import document template name fields (<text:template-name>)
Definition: txtfldi.hxx:647
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
Definition: txtfldi.cxx:2079
virtual void ProcessAttribute(sal_Int32 nAttrToken, std::string_view sAttrValue) override
process attribute values
Definition: txtfldi.cxx:2056
const OUString sPropertyFileFormat
Definition: txtfldi.hxx:648
XMLTemplateNameImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp)
Definition: txtfldi.cxx:2047
abstract class for text field import
Definition: txtfldi.hxx:50
void SetServiceName(const OUString &sStr)
Definition: txtfldi.hxx:93
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:136
virtual void SAL_CALL characters(const OUString &sContent) override
name of SO API service
Definition: txtfldi.cxx:187
virtual void SAL_CALL endFastElement(sal_Int32 nElement) override
create XTextField and insert into document; calls PrepareTextField
Definition: txtfldi.cxx:155
XMLTextFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, OUString aService)
whether this field is valid ?
Definition: txtfldi.cxx:125
OUString sContent
collect character data
Definition: txtfldi.hxx:53
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet)=0
prepare XTextField for insertion into document
XMLTextImportHelper & GetImportHelper()
get helper
Definition: txtfldi.hxx:90
virtual void ProcessAttribute(sal_Int32 nAttrToken, std::string_view sAttrValue)=0
process attribute values
OUString sServicePrefix
the import helper
Definition: txtfldi.hxx:58
OUString sServiceName
character data after collection
Definition: txtfldi.hxx:54
XMLTextImportHelper & rTextImportHelper
service name for text field
Definition: txtfldi.hxx:55
OUStringBuffer sContentBuffer
Definition: txtfldi.hxx:52
static XMLTextFieldImportContext * CreateTextFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_Int32 nElement)
create the appropriate field context from (for use in paragraph import)
Definition: txtfldi.cxx:220
const OUString & GetServiceName() const
Definition: txtfldi.hxx:92
OUString const & GetContent()
Definition: txtfldi.cxx:145
bool CreateField(css::uno::Reference< css::beans::XPropertySet > &xField, const OUString &sServiceName)
create field from ServiceName
Definition: txtfldi.cxx:192
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:465
const OUString sPropertyDateTime
Definition: txtfldi.hxx:206
const OUString sPropertyFixed
Definition: txtfldi.hxx:204
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
Definition: txtfldi.cxx:987
css::util::DateTime aDateTimeValue
Definition: txtfldi.hxx:210
const OUString sPropertyNumberFormat
Definition: txtfldi.hxx:203
const OUString sPropertyIsFixedLanguage
Definition: txtfldi.hxx:208
virtual void ProcessAttribute(sal_Int32 nAttrToken, std::string_view sAttrValue) override
Text import helper.
Definition: txtfldi.cxx:937
const OUString sPropertyIsDate
Definition: txtfldi.hxx:207
XMLTimeFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp)
Definition: txtfldi.cxx:917
const OUString sPropertyDateTimeValue
Definition: txtfldi.hxx:205
import hyperlinks as URL fields (Calc, Impress, Draw) (<office:a>)
Definition: txtfldi.hxx:911
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
no attributes -> empty method
Definition: txtfldi.cxx:2883
virtual void ProcessAttribute(sal_Int32 nAttrToken, std::string_view sAttrValue) override
no attributes -> empty method
Definition: txtfldi.cxx:2862
XMLUrlFieldImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp)
Definition: txtfldi.cxx:2854
import user docinfo field (<text:user-defined>)
Definition: txtfldi.hxx:514
XMLUserDocInfoImportContext(SvXMLImport &rImport, XMLTextImportHelper &rHlp, sal_Int32 nElement)
Definition: txtfldi.cxx:1689
const OUString sPropertyIsFixedLanguage
Definition: txtfldi.hxx:518
const OUString sPropertyNumberFormat
Definition: txtfldi.hxx:517
const OUString sPropertyName
Definition: txtfldi.hxx:516
virtual void PrepareField(const css::uno::Reference< css::beans::XPropertySet > &xPropertySet) override
prepare XTextField for insertion into document
Definition: txtfldi.cxx:1738
virtual void ProcessAttribute(sal_Int32 nAttrToken, std::string_view sAttrValue) override
process attribute values
Definition: txtfldi.cxx:1703
def text(shape, orig_st)
class SAL_NO_VTABLE XPropertySet
signed char sal_Int8