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
f16ceae4
Kaydet (Commit)
f16ceae4
authored
Mar 08, 2016
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
avoid infinite regress in busted documents
Change-Id: I639617e41cd9a9a51a3dd3efa32ac1cf2991b9d2
üst
08306201
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
7 deletions
+21
-7
loop-2.lwp
lotuswordpro/qa/cppunit/data/fail/loop-2.lwp
+0
-0
xfcontent.hxx
lotuswordpro/source/filter/xfilter/xfcontent.hxx
+17
-3
xfcontentcontainer.cxx
lotuswordpro/source/filter/xfilter/xfcontentcontainer.cxx
+1
-1
xftextspan.cxx
lotuswordpro/source/filter/xfilter/xftextspan.cxx
+3
-3
No files found.
lotuswordpro/qa/cppunit/data/fail/loop-2.lwp
0 → 100644
Dosyayı görüntüle @
f16ceae4
File added
lotuswordpro/source/filter/xfilter/xfcontent.hxx
Dosyayı görüntüle @
f16ceae4
...
...
@@ -92,14 +92,28 @@ public:
*/
OUString
GetStyleName
()
{
return
m_strStyleName
;}
virtual
void
ToXml
(
IXFStream
*
stream
)
=
0
;
void
DoToXml
(
IXFStream
*
stream
)
{
if
(
m_bDoingToXml
)
throw
std
::
runtime_error
(
"recursion in content"
);
m_bDoingToXml
=
true
;
ToXml
(
stream
);
m_bDoingToXml
=
false
;
}
protected
:
XFContent
()
{}
XFContent
()
:
m_bDoingToXml
(
false
)
{
}
virtual
void
ToXml
(
IXFStream
*
stream
)
=
0
;
virtual
~
XFContent
()
{}
OUString
m_strStyleName
;
OUString
m_strStyleName
;
private
:
bool
m_bDoingToXml
;
};
#endif
...
...
lotuswordpro/source/filter/xfilter/xfcontentcontainer.cxx
Dosyayı görüntüle @
f16ceae4
...
...
@@ -131,7 +131,7 @@ void XFContentContainer::ToXml(IXFStream *pStrm)
{
XFContent
*
pContent
=
it
->
get
();
if
(
pContent
)
pContent
->
ToXml
(
pStrm
);
pContent
->
Do
ToXml
(
pStrm
);
}
}
...
...
lotuswordpro/source/filter/xfilter/xftextspan.cxx
Dosyayı görüntüle @
f16ceae4
...
...
@@ -112,7 +112,7 @@ void XFTextSpan::ToXml(IXFStream *pStrm)
{
XFContent
*
pContent
=
it
->
get
();
if
(
pContent
)
pContent
->
ToXml
(
pStrm
);
pContent
->
Do
ToXml
(
pStrm
);
}
pStrm
->
EndElement
(
"text:span"
);
...
...
@@ -135,7 +135,7 @@ void XFTextSpanStart::ToXml(IXFStream *pStrm)
{
XFContent
*
pContent
=
it
->
get
();
if
(
pContent
)
pContent
->
ToXml
(
pStrm
);
pContent
->
Do
ToXml
(
pStrm
);
}
}
void
XFTextSpanEnd
::
ToXml
(
IXFStream
*
pStrm
)
...
...
@@ -145,7 +145,7 @@ void XFTextSpanEnd::ToXml(IXFStream *pStrm)
{
XFContent
*
pContent
=
it
->
get
();
if
(
pContent
)
pContent
->
ToXml
(
pStrm
);
pContent
->
Do
ToXml
(
pStrm
);
}
pStrm
->
EndElement
(
"text:span"
);
}
...
...
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