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
d8075d15
Kaydet (Commit)
d8075d15
authored
Mar 15, 2014
tarafından
Tomaž Vajngerl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sw html: use scoped_ptr in htmlatr
Change-Id: I54eb81b3dff76881fc6ed79aca1df6f9687083f8
üst
2039fbdd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
12 deletions
+13
-12
htmlatr.cxx
sw/source/filter/html/htmlatr.cxx
+13
-12
No files found.
sw/source/filter/html/htmlatr.cxx
Dosyayı görüntüle @
d8075d15
...
@@ -74,7 +74,9 @@
...
@@ -74,7 +74,9 @@
#include <numrule.hxx>
#include <numrule.hxx>
#include <rtl/strbuf.hxx>
#include <rtl/strbuf.hxx>
using
namespace
::
com
::
sun
::
star
;
#include <boost/scoped_ptr.hpp>
using
namespace
css
;
HTMLOutEvent
aAnchorEventTable
[]
=
HTMLOutEvent
aAnchorEventTable
[]
=
{
{
...
@@ -197,7 +199,7 @@ sal_uInt16 SwHTMLWriter::GetCSS1ScriptForScriptType( sal_uInt16 nScriptType )
...
@@ -197,7 +199,7 @@ sal_uInt16 SwHTMLWriter::GetCSS1ScriptForScriptType( sal_uInt16 nScriptType )
struct
SwHTMLTxtCollOutputInfo
struct
SwHTMLTxtCollOutputInfo
{
{
OString
aToken
;
// auszugendens End-Token
OString
aToken
;
// auszugendens End-Token
SfxItemSet
*
pItemSet
;
// harte Attributierung
boost
::
scoped_ptr
<
SfxItemSet
>
pItemSet
;
// harte Attributierung
sal_Bool
bInNumBulList
;
// in einer Aufzaehlungs-Liste;
sal_Bool
bInNumBulList
;
// in einer Aufzaehlungs-Liste;
sal_Bool
bParaPossible
;
// ein </P> darf zusaetzlich ausgegeben werden
sal_Bool
bParaPossible
;
// ein </P> darf zusaetzlich ausgegeben werden
...
@@ -205,7 +207,7 @@ struct SwHTMLTxtCollOutputInfo
...
@@ -205,7 +207,7 @@ struct SwHTMLTxtCollOutputInfo
sal_Bool
bOutDiv
;
// write a </DIV>
sal_Bool
bOutDiv
;
// write a </DIV>
SwHTMLTxtCollOutputInfo
()
:
SwHTMLTxtCollOutputInfo
()
:
pItemSet
(
0
),
pItemSet
(
NULL
),
bInNumBulList
(
sal_False
),
bInNumBulList
(
sal_False
),
bParaPossible
(
sal_False
),
bParaPossible
(
sal_False
),
bOutPara
(
sal_False
),
bOutPara
(
sal_False
),
...
@@ -220,7 +222,6 @@ struct SwHTMLTxtCollOutputInfo
...
@@ -220,7 +222,6 @@ struct SwHTMLTxtCollOutputInfo
SwHTMLTxtCollOutputInfo
::~
SwHTMLTxtCollOutputInfo
()
SwHTMLTxtCollOutputInfo
::~
SwHTMLTxtCollOutputInfo
()
{
{
delete
pItemSet
;
}
}
SwHTMLFmtInfo
::
SwHTMLFmtInfo
(
const
SwFmt
*
pF
,
SwDoc
*
pDoc
,
SwDoc
*
pTemplate
,
SwHTMLFmtInfo
::
SwHTMLFmtInfo
(
const
SwFmt
*
pF
,
SwDoc
*
pDoc
,
SwDoc
*
pTemplate
,
...
@@ -585,17 +586,17 @@ void OutHTML_SwFmt( Writer& rWrt, const SwFmt& rFmt,
...
@@ -585,17 +586,17 @@ void OutHTML_SwFmt( Writer& rWrt, const SwFmt& rFmt,
// Falls noetig, die harte Attributierung der Vorlage uebernehmen
// Falls noetig, die harte Attributierung der Vorlage uebernehmen
if
(
pFmtInfo
->
pItemSet
)
if
(
pFmtInfo
->
pItemSet
)
{
{
OSL_ENSURE
(
!
rInfo
.
pItemSet
,
"Wo kommt der Item-Set her?"
);
OSL_ENSURE
(
!
rInfo
.
pItemSet
.
get
()
,
"Wo kommt der Item-Set her?"
);
rInfo
.
pItemSet
=
new
SfxItemSet
(
*
pFmtInfo
->
pItemSet
);
rInfo
.
pItemSet
.
reset
(
new
SfxItemSet
(
*
pFmtInfo
->
pItemSet
)
);
}
}
// und noch die harte Attributierung des Absatzes dazunehmen
// und noch die harte Attributierung des Absatzes dazunehmen
if
(
pNodeItemSet
)
if
(
pNodeItemSet
)
{
{
if
(
rInfo
.
pItemSet
)
if
(
rInfo
.
pItemSet
.
get
()
)
rInfo
.
pItemSet
->
Put
(
*
pNodeItemSet
);
rInfo
.
pItemSet
->
Put
(
*
pNodeItemSet
);
else
else
rInfo
.
pItemSet
=
new
SfxItemSet
(
*
pNodeItemSet
);
rInfo
.
pItemSet
.
reset
(
new
SfxItemSet
(
*
pNodeItemSet
)
);
}
}
// den unteren Absatz-Abstand brauchen wir noch
// den unteren Absatz-Abstand brauchen wir noch
...
@@ -616,10 +617,10 @@ void OutHTML_SwFmt( Writer& rWrt, const SwFmt& rFmt,
...
@@ -616,10 +617,10 @@ void OutHTML_SwFmt( Writer& rWrt, const SwFmt& rFmt,
else
else
aULSpaceItem
.
SetUpper
(
rHWrt
.
nHeaderFooterSpace
);
aULSpaceItem
.
SetUpper
(
rHWrt
.
nHeaderFooterSpace
);
if
(
!
rInfo
.
pItemSet
)
if
(
!
rInfo
.
pItemSet
.
get
()
)
rInfo
.
pItemSet
=
new
SfxItemSet
(
{
*
rFmt
.
GetAttrSet
().
GetPool
(),
rInfo
.
pItemSet
.
reset
(
new
SfxItemSet
(
*
rFmt
.
GetAttrSet
().
GetPool
(),
RES_UL_SPACE
,
RES_UL_SPACE
));
RES_UL_SPACE
,
RES_UL_SPACE
);
}
rInfo
.
pItemSet
->
Put
(
aULSpaceItem
);
rInfo
.
pItemSet
->
Put
(
aULSpaceItem
);
}
}
rHWrt
.
bOutHeader
=
sal_False
;
rHWrt
.
bOutHeader
=
sal_False
;
...
...
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