To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=86769
------- Additional comments from [EMAIL PROTECTED] Wed Jul 16 05:25:01 +0000
2008 -------
Thanks to everybody. Eventually, I have got it.
It seems that this issue could be fixed by the following code fragments.
In the method
SwFrmFmt* SwWW8ImplReader::Read_GrafLayer( long nGrafAnchorCp )
===================================================================
RCS file: /cvs/sw/sw/source/filter/ww8/ww8graf.cxx,v
retrieving revision 1.151
diff -U 4 -r1.151 ww8graf.cxx
--- ww8graf.cxx 10 Apr 2008 17:23:45 -0000 1.151
+++ ww8graf.cxx 16 Jul 2008 05:04:59 -0000
@@ -2494,8 +2494,23 @@
if (!pMSDffManager->GetModel())
pMSDffManager->SetModel(pDrawModel, 1440);
+ // --> #i86769#
+ if ( maSectionManager.CurrentSectionIsVertical() )
+ {
+ // In case of vertical writing, the coordinate system of Word for
+ // vertical text flow should be converted into that of Writer.
+ sal_Int32 nLeft = pF->nXaLeft;
+ sal_Int32 nTop = pF->nYaTop;
+ sal_Int32 nRight = pF->nXaRight;
+ sal_Int32 nBottom = pF->nYaBottom;
+ pF->nXaLeft = nTop;
+ pF->nYaTop = 0 - nRight;
+ pF->nXaRight = nRight - nLeft + nTop;
+ pF->nYaBottom = nBottom - nTop - nRight;
+ }
+ // <-- #i86769#
Rectangle aRect(pF->nXaLeft, pF->nYaTop, pF->nXaRight, pF->nYaBottom);
SvxMSDffImportData aData( aRect );
I am also trying to accomplish the similar one for exporting a document into
Word file format.
---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]