summaryrefslogtreecommitdiff
path: root/writerfilter/source
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@frugalware.org>2011-07-13 12:18:53 +0200
committerMiklos Vajna <vmiklos@frugalware.org>2011-07-29 17:32:38 +0200
commitfaa90b8fbe65983391c40d114c04260c2c4b6d74 (patch)
tree9bf571fe412b80c09c0b0bd3ac32a9cf92c0fd12 /writerfilter/source
parent8520e2cb70b5e9fa2de4e6a86002fd6b2f2ff297 (diff)
implement RTF_AUTHOR
Diffstat (limited to 'writerfilter/source')
-rw-r--r--writerfilter/source/rtftok/rtfdocumentimpl.cxx6
-rw-r--r--writerfilter/source/rtftok/rtfdocumentimpl.hxx3
2 files changed, 8 insertions, 1 deletions
diff --git a/writerfilter/source/rtftok/rtfdocumentimpl.cxx b/writerfilter/source/rtftok/rtfdocumentimpl.cxx
index a267f0e95..40b863932 100644
--- a/writerfilter/source/rtftok/rtfdocumentimpl.cxx
+++ b/writerfilter/source/rtftok/rtfdocumentimpl.cxx
@@ -632,6 +632,7 @@ void RTFDocumentImpl::text(OUString& rString)
case DESTINATION_FORMFIELDNAME:
case DESTINATION_FORMFIELDLIST:
case DESTINATION_DATAFIELD:
+ case DESTINATION_AUTHOR:
m_aDestinationText.append(rString);
break;
default: bRet = false; break;
@@ -955,6 +956,9 @@ int RTFDocumentImpl::dispatchDestination(RTFKeyword nKeyword)
case RTF_PRINTIM:
m_aStates.top().nDestinationState = DESTINATION_PRINTTIME;
break;
+ case RTF_AUTHOR:
+ m_aStates.top().nDestinationState = DESTINATION_AUTHOR;
+ break;
case RTF_LISTTEXT:
// Should be ignored by any reader that understands Word 97 through Word 2007 numbering.
case RTF_NONESTTABLES:
@@ -2381,6 +2385,8 @@ int RTFDocumentImpl::popState()
m_xDocumentProperties->setModificationDate(lcl_getDateTime(m_aStates));
else if (m_aStates.top().nDestinationState == DESTINATION_PRINTTIME)
m_xDocumentProperties->setPrintDate(lcl_getDateTime(m_aStates));
+ else if (m_aStates.top().nDestinationState == DESTINATION_AUTHOR)
+ m_xDocumentProperties->setAuthor(m_aDestinationText.makeStringAndClear());
// See if we need to end a track change
RTFValue::Pointer_t pTrackchange = RTFSprm::find(m_aStates.top().aCharacterSprms, NS_ooxml::LN_trackchange);
diff --git a/writerfilter/source/rtftok/rtfdocumentimpl.hxx b/writerfilter/source/rtftok/rtfdocumentimpl.hxx
index da25ffdb2..8213907de 100644
--- a/writerfilter/source/rtftok/rtfdocumentimpl.hxx
+++ b/writerfilter/source/rtftok/rtfdocumentimpl.hxx
@@ -101,7 +101,8 @@ namespace writerfilter {
DESTINATION_INFO,
DESTINATION_CREATIONTIME,
DESTINATION_REVISIONTIME,
- DESTINATION_PRINTTIME
+ DESTINATION_PRINTTIME,
+ DESTINATION_AUTHOR
};
enum RTFBorderState