ooo-build r14104 - in branches/ooo-build-3-0: . patches/dev300
- From: freuter svn gnome org
- To: svn-commits-list gnome org
- Subject: ooo-build r14104 - in branches/ooo-build-3-0: . patches/dev300
- Date: Fri, 26 Sep 2008 11:22:25 +0000 (UTC)
Author: freuter
Date: Fri Sep 26 11:22:25 2008
New Revision: 14104
URL: http://svn.gnome.org/viewvc/ooo-build?rev=14104&view=rev
Log:
writer doc margin text rotates when opened in word (n#404221)
Added:
branches/ooo-build-3-0/patches/dev300/svx-text-rotation-fix.diff
Modified:
branches/ooo-build-3-0/ChangeLog
branches/ooo-build-3-0/patches/dev300/apply
Modified: branches/ooo-build-3-0/patches/dev300/apply
==============================================================================
--- branches/ooo-build-3-0/patches/dev300/apply (original)
+++ branches/ooo-build-3-0/patches/dev300/apply Fri Sep 26 11:22:25 2008
@@ -476,6 +476,9 @@
samba-hyperlinks-sc-sd.diff, n#382718, jholesov
tools-qa-urlobj-unittest.diff, n#261623, flr
+# writer doc margin text rotates when opened in word
+svx-text-rotation-fix.diff, n#404221, flr
+
# check real help path defined in registry instead of the $(instpath)/help
sfx-check-real-help-path.diff, i#81139, pmladek
@@ -1853,8 +1856,8 @@
transogl-fix-dual-head.diff
transogl-buildfix-pixmap-ext.diff
transogl-fix-presenter-view.diff
-transogl-debug-time.diff
-transogl-fix-remote.diff
+#transogl-debug-time.diff
+#transogl-fix-remote.diff
transogl-fix-first-slide.diff
[ Experimental ]
Added: branches/ooo-build-3-0/patches/dev300/svx-text-rotation-fix.diff
==============================================================================
--- (empty file)
+++ branches/ooo-build-3-0/patches/dev300/svx-text-rotation-fix.diff Fri Sep 26 11:22:25 2008
@@ -0,0 +1,37 @@
+Index: svx/source/msfilter/escherex.cxx
+===================================================================
+RCS file: /cvs/graphics/svx/source/msfilter/escherex.cxx,v
+retrieving revision 1.73
+diff -u -r1.73 escherex.cxx
+--- svx/source/msfilter/escherex.cxx 31 Jul 2007 17:31:58 -0000 1.73
++++ svx/source/msfilter/escherex.cxx 11 Aug 2008 12:26:47 -0000
+@@ -853,6 +853,29 @@
+
+ if ( nTextId )
+ AddOpt( ESCHER_Prop_lTxid, nTextId );
++
++ // n#404221: In case of rotation we need to write the txtflTextFlow
++ // attribute too.
++ if (bIsTextFrame) {
++ sal_uInt16 nAngle = EscherPropertyValueHelper::GetPropertyValue(
++ aAny,
++ rXPropSet,
++ String( RTL_CONSTASCII_USTRINGPARAM( "RotateAngle" ) ),
++ sal_True )
++ ? (sal_uInt16)( ( *((sal_Int32*)aAny.getValue() ) ) + 5 ) / 10 : 0;
++ if (nAngle==900) {
++ AddOpt( ESCHER_Prop_txflTextFlow, 1 );
++ bSuppressRotation=true;
++ }
++ if (nAngle==1800) {
++ AddOpt( ESCHER_Prop_txflTextFlow, 2 );
++ bSuppressRotation=true;
++ }
++ if (nAngle==2700) {
++ AddOpt( ESCHER_Prop_txflTextFlow, 3 );
++ bSuppressRotation=true;
++ }
++ }
+ }
+
+ static sal_Bool GetLineArrow( const sal_Bool bLineStart,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]