diff options
author | Tamás Zolnai <tamas.zolnai@collabora.com> | 2017-08-16 22:02:53 +0200 |
---|---|---|
committer | Tamás Zolnai <tamas.zolnai@collabora.com> | 2017-08-18 00:04:29 +0200 |
commit | 79611a44fac472dfa5f0a01c051c314078f798b9 (patch) | |
tree | 7db7ec053f90cee683d12bb00be6e681c03297e0 /sw | |
parent | 27b1e21913d8119ea27be05954156d15ca069e66 (diff) |
NdTopLeft is unused now.
Change-Id: I39184b8fdf666676c21560d39911f6204b0afd52
Reviewed-on: https://gerrit.libreoffice.org/41257
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/filter/ww8/docxattributeoutput.cxx | 24 | ||||
-rw-r--r-- | sw/source/filter/ww8/docxattributeoutput.hxx | 5 | ||||
-rw-r--r-- | sw/source/filter/ww8/docxsdrexport.cxx | 10 | ||||
-rw-r--r-- | sw/source/filter/ww8/docxsdrexport.hxx | 4 |
4 files changed, 21 insertions, 22 deletions
diff --git a/sw/source/filter/ww8/docxattributeoutput.cxx b/sw/source/filter/ww8/docxattributeoutput.cxx index 3c8bddef0cbf..87fefdc7783b 100644 --- a/sw/source/filter/ww8/docxattributeoutput.cxx +++ b/sw/source/filter/ww8/docxattributeoutput.cxx @@ -4790,13 +4790,13 @@ void DocxAttributeOutput::WritePostponedActiveXControl() for( std::vector<PostponedDrawing>::const_iterator it = m_aPostponedActiveXControls.begin(); it != m_aPostponedActiveXControls.end(); ++it ) { - WriteActiveXControl(it->object, *(it->frame), *(it->point)); + WriteActiveXControl(it->object, *(it->frame)); } m_aPostponedActiveXControls.clear(); } -void DocxAttributeOutput::WriteActiveXControl(const SdrObject* pObject, const SwFrameFormat& rFrameFormat,const Point& rNdTopLeft) +void DocxAttributeOutput::WriteActiveXControl(const SdrObject* pObject, const SwFrameFormat& rFrameFormat) { SdrUnoObj *pFormObj = const_cast<SdrUnoObj*>(dynamic_cast< const SdrUnoObj*>(pObject)); if (!pFormObj) @@ -4833,7 +4833,7 @@ void DocxAttributeOutput::WriteActiveXControl(const SdrObject* pObject, const Sw sShapeId = m_rExport.VMLExporter().AddSdrObject(*pObject, rHoriOri.GetHoriOrient(), rVertOri.GetVertOrient(), rHoriOri.GetRelationOrient(), - rVertOri.GetRelationOrient(), &rNdTopLeft, true); + rVertOri.GetRelationOrient(), true); } // control @@ -5013,7 +5013,7 @@ void DocxAttributeOutput::WritePostponedCustomShape() if ( IsAlternateContentChoiceOpen() ) m_rExport.SdrExporter().writeDMLDrawing(it->object, (it->frame), m_anchorId++); else - m_rExport.SdrExporter().writeDMLAndVMLDrawing(it->object, *(it->frame), *(it->point), m_anchorId++); + m_rExport.SdrExporter().writeDMLAndVMLDrawing(it->object, *(it->frame), m_anchorId++); } m_bStartedParaSdt = bStartedParaSdt; m_pPostponedCustomShape.reset(nullptr); @@ -5037,14 +5037,14 @@ void DocxAttributeOutput::WritePostponedDMLDrawing() if ( IsAlternateContentChoiceOpen() && !( m_rExport.SdrExporter().IsDrawingOpen()) ) m_rExport.SdrExporter().writeDMLDrawing(it->object, (it->frame), m_anchorId++); else - m_rExport.SdrExporter().writeDMLAndVMLDrawing(it->object, *(it->frame), *(it->point), m_anchorId++); + m_rExport.SdrExporter().writeDMLAndVMLDrawing(it->object, *(it->frame), m_anchorId++); } m_bStartedParaSdt = bStartedParaSdt; m_pPostponedOLEs = std::move(pPostponedOLEs); } -void DocxAttributeOutput::OutputFlyFrame_Impl( const ww8::Frame &rFrame, const Point& rNdTopLeft ) +void DocxAttributeOutput::OutputFlyFrame_Impl( const ww8::Frame &rFrame, const Point& /*rNdTopLeft*/ ) { m_pSerializer->mark(Tag_OutputFlyFrame); @@ -5097,12 +5097,12 @@ void DocxAttributeOutput::OutputFlyFrame_Impl( const ww8::Frame &rFrame, const P { // Do not write w:drawing inside w:drawing. Instead Postpone the Inner Drawing. if( m_rExport.SdrExporter().IsDrawingOpen() ) - m_pPostponedCustomShape->push_back(PostponedDrawing(pSdrObj, &(rFrame.GetFrameFormat()), &rNdTopLeft)); + m_pPostponedCustomShape->push_back(PostponedDrawing(pSdrObj, &(rFrame.GetFrameFormat()))); else m_rExport.SdrExporter().writeDMLDrawing( pSdrObj, &rFrame.GetFrameFormat(), m_anchorId++); } else - m_rExport.SdrExporter().writeDMLAndVMLDrawing( pSdrObj, rFrame.GetFrameFormat(), rNdTopLeft, m_anchorId++); + m_rExport.SdrExporter().writeDMLAndVMLDrawing( pSdrObj, rFrame.GetFrameFormat(), m_anchorId++); m_bStartedParaSdt = bStartedParaSdt; m_bPostponedProcessingFly = false ; @@ -5110,12 +5110,12 @@ void DocxAttributeOutput::OutputFlyFrame_Impl( const ww8::Frame &rFrame, const P // IsAlternateContentChoiceOpen(): check is to ensure that only one object is getting added. Without this check, plus one object gets added // m_bParagraphFrameOpen: check if the frame is open. else if (IsAlternateContentChoiceOpen() && m_bParagraphFrameOpen) - m_pPostponedCustomShape->push_back(PostponedDrawing(pSdrObj, &(rFrame.GetFrameFormat()), &rNdTopLeft)); + m_pPostponedCustomShape->push_back(PostponedDrawing(pSdrObj, &(rFrame.GetFrameFormat()))); else { // we are writing out attributes, but w:drawing should not be inside w:rPr, so write it out later m_bPostponedProcessingFly = true ; - m_pPostponedDMLDrawings->push_back(PostponedDrawing(pSdrObj, &(rFrame.GetFrameFormat()), &rNdTopLeft)); + m_pPostponedDMLDrawings->push_back(PostponedDrawing(pSdrObj, &(rFrame.GetFrameFormat()))); } } } @@ -5166,14 +5166,14 @@ void DocxAttributeOutput::OutputFlyFrame_Impl( const ww8::Frame &rFrame, const P { const SdrObject* pObject = rFrame.GetFrameFormat().FindRealSdrObject(); if(ExportAsActiveXControl(pObject)) - m_aPostponedActiveXControls.push_back(PostponedDrawing(pObject, &(rFrame.GetFrameFormat()), &rNdTopLeft)); + m_aPostponedActiveXControls.push_back(PostponedDrawing(pObject, &(rFrame.GetFrameFormat()))); else m_aPostponedFormControls.push_back(pObject); m_bPostponedProcessingFly = true ; } break; default: - SAL_INFO("sw.ww8", "TODO DocxAttributeOutput::OutputFlyFrame_Impl( const ww8::Frame& rFrame, const Point& rNdTopLeft ) - frame type " << + SAL_INFO("sw.ww8", "TODO DocxAttributeOutput::OutputFlyFrame_Impl( const ww8::Frame& rFrame ) - frame type " << ( rFrame.GetWriterType() == ww8::Frame::eTextBox ? "eTextBox": ( rFrame.GetWriterType() == ww8::Frame::eOle ? "eOle": "???" ) ) ); break; diff --git a/sw/source/filter/ww8/docxattributeoutput.hxx b/sw/source/filter/ww8/docxattributeoutput.hxx index 54d67559b35e..0d716e7129fd 100644 --- a/sw/source/filter/ww8/docxattributeoutput.hxx +++ b/sw/source/filter/ww8/docxattributeoutput.hxx @@ -417,7 +417,7 @@ private: bool PostponeOLE( SwOLENode& rNode, const Size& rSize, const SwFlyFrameFormat* pFlyFrameFormat ); void WriteOLE( SwOLENode& rNode, const Size& rSize, const SwFlyFrameFormat* rFlyFrameFormat ); - void WriteActiveXControl(const SdrObject* pObject, const SwFrameFormat& rFrameFormat, const Point& rNdTopLeft); + void WriteActiveXControl(const SdrObject* pObject, const SwFrameFormat& rFrameFormat); bool ExportAsActiveXControl(const SdrObject* pObject) const; /// checks whether the current component is a diagram @@ -854,10 +854,9 @@ private: struct PostponedDrawing { - PostponedDrawing( const SdrObject* sdrObj, const SwFrameFormat* frm, const Point* pt ) : object( sdrObj ), frame( frm ), point( pt ) {}; + PostponedDrawing( const SdrObject* sdrObj, const SwFrameFormat* frm) : object( sdrObj ), frame( frm ) {}; const SdrObject* object; const SwFrameFormat* frame; - const Point* point; }; std::unique_ptr< std::list<PostponedDrawing> > m_pPostponedDMLDrawings; std::unique_ptr< std::list<PostponedDrawing> > m_pPostponedCustomShape; diff --git a/sw/source/filter/ww8/docxsdrexport.cxx b/sw/source/filter/ww8/docxsdrexport.cxx index ee5e4af200b5..ee2c646d536d 100644 --- a/sw/source/filter/ww8/docxsdrexport.cxx +++ b/sw/source/filter/ww8/docxsdrexport.cxx @@ -754,7 +754,7 @@ void DocxSdrExport::endDMLAnchorInline(const SwFrameFormat* pFrameFormat) m_pImpl->m_bDrawingOpen = false; } -void DocxSdrExport::writeVMLDrawing(const SdrObject* sdrObj, const SwFrameFormat& rFrameFormat,const Point& rNdTopLeft) +void DocxSdrExport::writeVMLDrawing(const SdrObject* sdrObj, const SwFrameFormat& rFrameFormat) { bool bSwapInPage = false; if (!sdrObj->GetPage()) @@ -778,7 +778,7 @@ void DocxSdrExport::writeVMLDrawing(const SdrObject* sdrObj, const SwFrameFormat m_pImpl->m_rExport.VMLExporter().AddSdrObject(*sdrObj, rHoriOri.GetHoriOrient(), rVertOri.GetVertOrient(), rHoriOri.GetRelationOrient(), - rVertOri.GetRelationOrient(), (&rNdTopLeft), true); + rVertOri.GetRelationOrient(), true); m_pImpl->m_pSerializer->endElementNS(XML_w, XML_pict); if (bSwapInPage) @@ -928,7 +928,7 @@ bool DocxSdrExport::Impl::isSupportedDMLShape(const uno::Reference<drawing::XSha return supported; } -void DocxSdrExport::writeDMLAndVMLDrawing(const SdrObject* sdrObj, const SwFrameFormat& rFrameFormat,const Point& rNdTopLeft, int nAnchorId) +void DocxSdrExport::writeDMLAndVMLDrawing(const SdrObject* sdrObj, const SwFrameFormat& rFrameFormat, int nAnchorId) { bool bDMLAndVMLDrawingOpen = m_pImpl->m_bDMLAndVMLDrawingOpen; m_pImpl->m_bDMLAndVMLDrawingOpen = true; @@ -958,13 +958,13 @@ void DocxSdrExport::writeDMLAndVMLDrawing(const SdrObject* sdrObj, const SwFrame m_pImpl->m_pSerializer->endElementNS(XML_mc, XML_Choice); m_pImpl->m_pSerializer->startElementNS(XML_mc, XML_Fallback, FSEND); - writeVMLDrawing(sdrObj, rFrameFormat, rNdTopLeft); + writeVMLDrawing(sdrObj, rFrameFormat); m_pImpl->m_pSerializer->endElementNS(XML_mc, XML_Fallback); m_pImpl->m_pSerializer->endElementNS(XML_mc, XML_AlternateContent); } else - writeVMLDrawing(sdrObj, rFrameFormat, rNdTopLeft); + writeVMLDrawing(sdrObj, rFrameFormat); m_pImpl->m_bDMLAndVMLDrawingOpen = false; } diff --git a/sw/source/filter/ww8/docxsdrexport.hxx b/sw/source/filter/ww8/docxsdrexport.hxx index 9183091f71f8..59871e7511f0 100644 --- a/sw/source/filter/ww8/docxsdrexport.hxx +++ b/sw/source/filter/ww8/docxsdrexport.hxx @@ -88,11 +88,11 @@ public: void startDMLAnchorInline(const SwFrameFormat* pFrameFormat, const Size& rSize); void endDMLAnchorInline(const SwFrameFormat* pFrameFormat); /// Writes a drawing as VML data. - void writeVMLDrawing(const SdrObject* sdrObj, const SwFrameFormat& rFrameFormat,const Point& rNdTopLeft); + void writeVMLDrawing(const SdrObject* sdrObj, const SwFrameFormat& rFrameFormat); /// Writes a drawing as DML. void writeDMLDrawing(const SdrObject* pSdrObject, const SwFrameFormat* pFrameFormat, int nAnchorId); /// Writes shape in both DML and VML format. - void writeDMLAndVMLDrawing(const SdrObject* sdrObj, const SwFrameFormat& rFrameFormat,const Point& rNdTopLeft, int nAnchorId); + void writeDMLAndVMLDrawing(const SdrObject* sdrObj, const SwFrameFormat& rFrameFormat, int nAnchorId); /// Write <a:effectLst>, the effect list. void writeDMLEffectLst(const SwFrameFormat& rFrameFormat); /// Writes a diagram (smartart). |