txtfldi.hxx (ecfe53c5) txtfldi.hxx (3b32dd21)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 1328 unchanged lines hidden (view full) ---

1337 const ::com::sun::star::uno::Reference<
1338 ::com::sun::star::beans::XPropertySet> & xPropertySet);
1339
1340 static const sal_Char* MapBibliographyFieldName(::rtl::OUString sName);
1341
1342};
1343
1344
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 1328 unchanged lines hidden (view full) ---

1337 const ::com::sun::star::uno::Reference<
1338 ::com::sun::star::beans::XPropertySet> & xPropertySet);
1339
1340 static const sal_Char* MapBibliographyFieldName(::rtl::OUString sName);
1341
1342};
1343
1344
1345/** Import an annotation field (<text:annotation>) */
1345/** Import an annotation field (<office:annotation>) */
1346class XMLAnnotationImportContext : public XMLTextFieldImportContext
1347{
1346class XMLAnnotationImportContext : public XMLTextFieldImportContext
1347{
1348 const ::rtl::OUString sPropertyAuthor;
1349 const ::rtl::OUString sPropertyContent;
1350 const ::rtl::OUString sPropertyDate;
1351 const ::rtl::OUString sPropertyTextRange;
1348 const ::rtl::OUString sPropertyName;
1349 const ::rtl::OUString sPropertyAuthor;
1350 const ::rtl::OUString sPropertyInitials;
1351 const ::rtl::OUString sPropertyContent;
1352 const ::rtl::OUString sPropertyDate;
1353 const ::rtl::OUString sPropertyTextRange;
1352
1354
1353 ::rtl::OUStringBuffer aAuthorBuffer;
1354 ::rtl::OUStringBuffer aTextBuffer;
1355 ::rtl::OUStringBuffer aDateBuffer;
1355 ::rtl::OUString aName;
1356
1356
1357 com::sun::star::uno::Reference < com::sun::star::beans::XPropertySet > mxField;
1358 com::sun::star::uno::Reference < com::sun::star::text::XTextCursor > mxCursor;
1359 com::sun::star::uno::Reference < com::sun::star::text::XTextCursor > mxOldCursor;
1357 ::rtl::OUStringBuffer aAuthorBuffer;
1358 ::rtl::OUStringBuffer aInitialsBuffer;
1359 ::rtl::OUStringBuffer aTextBuffer;
1360 ::rtl::OUStringBuffer aDateBuffer;
1360
1361
1362 com::sun::star::uno::Reference < com::sun::star::beans::XPropertySet > mxField;
1363 com::sun::star::uno::Reference < com::sun::star::text::XTextCursor > mxCursor;
1364 com::sun::star::uno::Reference < com::sun::star::text::XTextCursor > mxOldCursor;
1365 /// If this is an annotation end, then position of the start.
1366 com::sun::star::uno::Reference < com::sun::star::text::XTextContent > m_xStart;
1367 const sal_uInt16 m_nToken;
1368
1361public:
1362
1369public:
1370
1363 TYPEINFO();
1371 TYPEINFO();
1364
1372
1365 XMLAnnotationImportContext(SvXMLImport& rImport,
1366 XMLTextImportHelper& rHlp,
1367 sal_uInt16 nPrfx,
1368 const ::rtl::OUString& sLocalName);
1373 XMLAnnotationImportContext(
1374 SvXMLImport& rImport,
1375 XMLTextImportHelper& rHlp,
1376 sal_uInt16 nToken,
1377 sal_uInt16 nPrfx,
1378 const ::rtl::OUString& sLocalName);
1369
1370protected:
1371
1372 /// process attributes
1373 virtual void ProcessAttribute( sal_uInt16 nAttrToken,
1374 const ::rtl::OUString& sAttrValue );
1375
1376 /// set properties

--- 213 unchanged lines hidden ---
1379
1380protected:
1381
1382 /// process attributes
1383 virtual void ProcessAttribute( sal_uInt16 nAttrToken,
1384 const ::rtl::OUString& sAttrValue );
1385
1386 /// set properties

--- 213 unchanged lines hidden ---