[Libreoffice-commits] .: writerfilter/source
Miklos Vajna
vmiklos at kemper.freedesktop.org
Mon Jan 9 10:52:43 PST 2012
writerfilter/source/rtftok/rtfdocumentimpl.cxx | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
New commits:
commit 3dbe4c18d0df62fa28fa69052ffb37c90af077f2
Author: Miklos Vajna <vmiklos at frugalware.org>
Date: Mon Jan 9 19:52:09 2012 +0100
Related: fdo#42151 implement cell text flow support
diff --git a/writerfilter/source/rtftok/rtfdocumentimpl.cxx b/writerfilter/source/rtftok/rtfdocumentimpl.cxx
index 6c8e8d7..143bd23 100644
--- a/writerfilter/source/rtftok/rtfdocumentimpl.cxx
+++ b/writerfilter/source/rtftok/rtfdocumentimpl.cxx
@@ -1612,6 +1612,22 @@ int RTFDocumentImpl::dispatchFlag(RTFKeyword nKeyword)
return 0;
}
+ // Cell Text Flow
+ switch (nKeyword)
+ {
+ case RTF_CLTXLRTB: nParam = 0; break;
+ case RTF_CLTXTBRL: nParam = 1; break;
+ case RTF_CLTXBTLR: nParam = 3; break;
+ case RTF_CLTXLRTBV: nParam = 4; break;
+ case RTF_CLTXTBRLV: nParam = 5; break;
+ default: break;
+ }
+ if (nParam >= 0)
+ {
+ RTFValue::Pointer_t pValue(new RTFValue(nParam));
+ m_aStates.top().aTableCellSprms->push_back(make_pair(NS_ooxml::LN_CT_TcPrBase_textDirection, pValue));
+ }
+
// Trivial paragraph flags
switch (nKeyword)
{
More information about the Libreoffice-commits
mailing list