diff options
author | Miklos Vajna <vmiklos@frugalware.org> | 2011-08-18 02:14:02 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@frugalware.org> | 2011-08-18 02:14:02 +0200 |
commit | 57f28d9900edc48cbe5239c2b8597f8f5c5c3edb (patch) | |
tree | fe6283df4bc5542d46d85876b0162ca901377d5e /writerfilter | |
parent | tokenize text::RelOrientation (diff) | |
download | core-57f28d9900edc48cbe5239c2b8597f8f5c5c3edb.tar.gz core-57f28d9900edc48cbe5239c2b8597f8f5c5c3edb.zip |
complete text::VertOrientation
Diffstat (limited to 'writerfilter')
-rw-r--r-- | writerfilter/source/rtftok/rtfdocumentimpl.cxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/writerfilter/source/rtftok/rtfdocumentimpl.cxx b/writerfilter/source/rtftok/rtfdocumentimpl.cxx index df327c7d45a7..30fe732dd99a 100644 --- a/writerfilter/source/rtftok/rtfdocumentimpl.cxx +++ b/writerfilter/source/rtftok/rtfdocumentimpl.cxx @@ -1834,9 +1834,10 @@ int RTFDocumentImpl::dispatchFlag(RTFKeyword nKeyword) case RTF_FORMSHADE: // Noop, this is the default in Writer. break; - case RTF_POSYT: - m_aStates.top().aFrame.nVertOrient = text::VertOrientation::TOP; - break; + case RTF_POSYT: m_aStates.top().aFrame.nVertOrient = text::VertOrientation::TOP; break; + case RTF_POSYB: m_aStates.top().aFrame.nVertOrient = text::VertOrientation::BOTTOM; break; + case RTF_POSYC: m_aStates.top().aFrame.nVertOrient = text::VertOrientation::CENTER; break; + case RTF_PHMRG: m_aStates.top().aFrame.nHoriOrientRelation = text::RelOrientation::PAGE_PRINT_AREA; break; case RTF_PVMRG: m_aStates.top().aFrame.nVertOrientRelation = text::RelOrientation::PAGE_PRINT_AREA; break; case RTF_PHPG: m_aStates.top().aFrame.nHoriOrientRelation = text::RelOrientation::PAGE_FRAME; break; @@ -2418,6 +2419,7 @@ int RTFDocumentImpl::dispatchValue(RTFKeyword nKeyword, int nParam) m_aStates.top().aFrame.nX = TWIP_TO_MM100(nParam); break; case RTF_POSY: + m_aStates.top().aFrame.nVertOrient = text::VertOrientation::NONE; m_aStates.top().aFrame.nY = TWIP_TO_MM100(nParam); break; case RTF_DFRMTXTX: |