Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
c18cdfb1
Kaydet (Commit)
c18cdfb1
authored
Nis 10, 2015
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
DocxAttributeOutput::m_postponedDiagram: use std::unique_ptr<>
Change-Id: Id969145f25e99047d21e9ea3c97323274168cf64
üst
53d7c88d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
10 deletions
+8
-10
docxattributeoutput.cxx
sw/source/filter/ww8/docxattributeoutput.cxx
+7
-9
docxattributeoutput.hxx
sw/source/filter/ww8/docxattributeoutput.hxx
+1
-1
No files found.
sw/source/filter/ww8/docxattributeoutput.cxx
Dosyayı görüntüle @
c18cdfb1
...
...
@@ -1599,8 +1599,8 @@ void DocxAttributeOutput::StartRunProperties()
OSL_ASSERT( !m_pPostponedGraphic );
m_pPostponedGraphic.reset(new std::list<PostponedGraphic>());
OSL_ASSERT(
m_postponedDiagram == NULL
);
m_p
ostponedDiagram = new std::list< PostponedDiagram >
;
OSL_ASSERT(
!m_pPostponedDiagrams
);
m_p
PostponedDiagrams.reset(new std::list<PostponedDiagram>())
;
OSL_ASSERT( m_postponedVMLDrawing == NULL );
m_postponedVMLDrawing = new std::list< PostponedDrawing >;
...
...
@@ -1971,12 +1971,11 @@ void DocxAttributeOutput::WritePostponedGraphic()
void DocxAttributeOutput::WritePostponedDiagram()
{
for( std::list< PostponedDiagram >::const_iterator it = m_p
ostponedDiagram
->begin();
it != m_p
ostponedDiagram
->end();
for( std::list< PostponedDiagram >::const_iterator it = m_p
PostponedDiagrams
->begin();
it != m_p
PostponedDiagrams
->end();
++it )
m_rExport.SdrExporter().writeDiagram( it->object, *(it->frame), m_anchorId++ );
delete m_postponedDiagram;
m_postponedDiagram = NULL;
m_pPostponedDiagrams.reset(0);
}
void DocxAttributeOutput::FootnoteEndnoteRefTag()
...
...
@@ -4805,7 +4804,7 @@ void DocxAttributeOutput::OutputFlyFrame_Impl( const sw::Frame &rFrame, const Po
{
if ( IsDiagram( pSdrObj ) )
{
if (
m_postponedDiagram == NULL
)
if (
!m_pPostponedDiagrams
)
{
m_bPostponedProcessingFly = false ;
m_rExport.SdrExporter().writeDiagram( pSdrObj, rFrame.GetFrmFmt(), m_anchorId++);
...
...
@@ -4813,7 +4812,7 @@ void DocxAttributeOutput::OutputFlyFrame_Impl( const sw::Frame &rFrame, const Po
else // we are writing out attributes, but w:drawing should not be inside w:rPr,
{ // so write it out later
m_bPostponedProcessingFly = true ;
m_p
ostponedDiagram
->push_back( PostponedDiagram( pSdrObj, &(rFrame.GetFrmFmt()) ));
m_p
PostponedDiagrams
->push_back( PostponedDiagram( pSdrObj, &(rFrame.GetFrmFmt()) ));
}
}
else
...
...
@@ -8278,7 +8277,6 @@ DocxAttributeOutput::DocxAttributeOutput( DocxExport &rExport, FSHelperPtr pSeri
m_startedHyperlink( false ),
m_nHyperLinkCount(0),
m_nFieldsInHyperlink( 0 ),
m_postponedDiagram( NULL ),
m_postponedVMLDrawing(NULL),
m_postponedDMLDrawing(NULL),
m_postponedOLE( NULL ),
...
...
sw/source/filter/ww8/docxattributeoutput.hxx
Dosyayı görüntüle @
c18cdfb1
...
...
@@ -839,7 +839,7 @@ private:
const
SdrObject
*
object
;
const
SwFrmFmt
*
frame
;
};
std
::
list
<
PostponedDiagram
>*
m_postponedDiagram
;
std
::
unique_ptr
<
std
::
list
<
PostponedDiagram
>
>
m_pPostponedDiagrams
;
struct
PostponedDrawing
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment