sw/qa/extras/ooxmlexport/ooxmlexport.cxx     |   12 ++++++------
 sw/source/filter/ww8/docxattributeoutput.cxx |   21 ++++-----------------
 2 files changed, 10 insertions(+), 23 deletions(-)

New commits:
commit cfb5b20cdc230320ff9f864d1cfd81aaea221da0
Author: Miklos Vajna <vmik...@collabora.co.uk>
Date:   Wed Dec 18 11:03:57 2013 +0100

    DocxAttributeOutput::OutputFlyFrame_Impl: enable DML export by default
    
    This was only available in experimental mode previously. Also note that
    export of Writer TextFrames are handled separately, there DML export is
    still off by default.
    
    Change-Id: Ie8eaa1670610d92a363a8558b68064e7d7de2cdd

diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport.cxx 
b/sw/qa/extras/ooxmlexport/ooxmlexport.cxx
index bd7c913..bd099be 100644
--- a/sw/qa/extras/ooxmlexport/ooxmlexport.cxx
+++ b/sw/qa/extras/ooxmlexport/ooxmlexport.cxx
@@ -1748,7 +1748,7 @@ DECLARE_OOXMLEXPORT_TEST(testVMLData, "TestVMLData.docx")
     xmlDocPtr pXmlDoc = parseExport("word/header1.xml");
     if (!pXmlDoc)
         return;
-    CPPUNIT_ASSERT(getXPath(pXmlDoc, "/w:hdr/w:p/w:r/w:pict/v:rect", 
"stroked").match("f"));
+    CPPUNIT_ASSERT(getXPath(pXmlDoc, 
"/w:hdr/w:p/w:r/mc:AlternateContent/mc:Fallback/w:pict/v:rect", 
"stroked").match("f"));
 }
 
 DECLARE_OOXMLEXPORT_TEST(testImageData, "image_data.docx")
@@ -1758,7 +1758,7 @@ DECLARE_OOXMLEXPORT_TEST(testImageData, "image_data.docx")
     xmlDocPtr pXmlDoc = parseExport("word/header1.xml");
     if (!pXmlDoc)
         return;
-    CPPUNIT_ASSERT(getXPath(pXmlDoc, 
"/w:hdr/w:p/w:r/w:pict/v:rect/v:imagedata", "detectmouseclick").match("t"));
+    CPPUNIT_ASSERT(getXPath(pXmlDoc, 
"/w:hdr/w:p/w:r/mc:AlternateContent/mc:Fallback/w:pict/v:rect/v:imagedata", 
"detectmouseclick").match("t"));
 }
 
 DECLARE_OOXMLEXPORT_TEST(testImageCrop, "ImageCrop.docx")
@@ -1788,13 +1788,13 @@ DECLARE_OOXMLEXPORT_TEST(testFdo70838, "fdo70838.docx")
 
     // get styles of the four shapes
     OUString aStyles[4];
-    aStyles[0] = getXPath( pXmlDocument, 
"/w:document/w:body/w:p/w:r/w:pict[1]/v:rect", "style");
+    aStyles[0] = getXPath( pXmlDocument, 
"/w:document/w:body/w:p/w:r/mc:AlternateContent[1]/mc:Fallback/w:pict/v:rect", 
"style");
     // original is: 
"position:absolute;margin-left:97.6pt;margin-top:165pt;width:283.4pt;height:141.7pt;rotation:285"
-    aStyles[1] = getXPath( pXmlDocument, 
"/w:document/w:body/w:p/w:r/w:pict[2]/v:rect", "style");
+    aStyles[1] = getXPath( pXmlDocument, 
"/w:document/w:body/w:p/w:r/mc:AlternateContent[2]/mc:Fallback/w:pict/v:rect", 
"style");
     // original is: 
"position:absolute;margin-left:97.6pt;margin-top:164.95pt;width:283.4pt;height:141.7pt;rotation:255"
-    aStyles[2] = getXPath( pXmlDocument, 
"/w:document/w:body/w:p/w:r/w:pict[3]/v:rect", "style");
+    aStyles[2] = getXPath( pXmlDocument, 
"/w:document/w:body/w:p/w:r/mc:AlternateContent[3]/mc:Fallback/w:pict/v:rect", 
"style");
     // original is: 
"position:absolute;margin-left:97.5pt;margin-top:164.9pt;width:283.4pt;height:141.7pt;rotation:105"
-    aStyles[3] = getXPath( pXmlDocument, 
"/w:document/w:body/w:p/w:r/w:pict[4]/v:rect", "style");
+    aStyles[3] = getXPath( pXmlDocument, 
"/w:document/w:body/w:p/w:r/mc:AlternateContent[4]/mc:Fallback/w:pict/v:rect", 
"style");
     // original is: 
"position:absolute;margin-left:97.55pt;margin-top:164.95pt;width:283.4pt;height:141.7pt;rotation:75"
 
     //check the size and position of each of the shapes
diff --git a/sw/source/filter/ww8/docxattributeoutput.cxx 
b/sw/source/filter/ww8/docxattributeoutput.cxx
index f4aae40..4c7e6cc 100644
--- a/sw/source/filter/ww8/docxattributeoutput.cxx
+++ b/sw/source/filter/ww8/docxattributeoutput.cxx
@@ -3380,24 +3380,11 @@ void DocxAttributeOutput::OutputFlyFrame_Impl( const 
sw::Frame &rFrame, const Po
                     }
                     else
                     {
-                        SvtMiscOptions aMiscOptions;
-                        if (aMiscOptions.IsExperimentalMode())
-                        {
-                            if ( m_postponedDMLDrawing == NULL )
-                                m_rExport.SdrExporter().writeDMLAndVMLDrawing( 
pSdrObj, rFrame.GetFrmFmt(), rNdTopLeft, m_anchorId++);
-                            else
-                                // we are writing out attributes, but 
w:drawing should not be inside w:rPr, so write it out later
-                                
m_postponedDMLDrawing->push_back(PostponedDrawing(pSdrObj, 
&(rFrame.GetFrmFmt()), &rNdTopLeft));
-                        }
+                        if ( m_postponedDMLDrawing == NULL )
+                            m_rExport.SdrExporter().writeDMLAndVMLDrawing( 
pSdrObj, rFrame.GetFrmFmt(), rNdTopLeft, m_anchorId++);
                         else
-                        {
-                            if ( m_postponedVMLDrawing == NULL )
-                                m_rExport.SdrExporter().writeVMLDrawing( 
pSdrObj, rFrame.GetFrmFmt(), rNdTopLeft);
-                            else // we are writing out attributes, but w:pict 
should not be inside w:rPr,
-                            {    // so write it out later
-                                 m_postponedVMLDrawing->push_back( 
PostponedDrawing( pSdrObj, &(rFrame.GetFrmFmt()), &rNdTopLeft ) );
-                            }
-                        }
+                            // we are writing out attributes, but w:drawing 
should not be inside w:rPr, so write it out later
+                            
m_postponedDMLDrawing->push_back(PostponedDrawing(pSdrObj, 
&(rFrame.GetFrmFmt()), &rNdTopLeft));
                     }
                 }
             }
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to