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
3aa99295
Kaydet (Commit)
3aa99295
authored
Eyl 20, 2014
tarafından
Tomaž Vajngerl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
html: add applyEvents to HTML output
Change-Id: I8cc2d752673254c0f23f63030a8fa7d4d288c0a9
üst
4bc2d7c3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
0 deletions
+26
-0
htmlout.hxx
include/svtools/htmlout.hxx
+1
-0
htmlout.cxx
svtools/source/svhtml/htmlout.cxx
+25
-0
No files found.
include/svtools/htmlout.hxx
Dosyayı görüntüle @
3aa99295
...
@@ -109,6 +109,7 @@ struct HTMLOutFuncs
...
@@ -109,6 +109,7 @@ struct HTMLOutFuncs
struct
HtmlWriterHelper
struct
HtmlWriterHelper
{
{
SVT_DLLPUBLIC
static
void
applyColor
(
HtmlWriter
&
rHtmlWriter
,
const
OString
&
aAttributeName
,
const
Color
&
rColor
);
SVT_DLLPUBLIC
static
void
applyColor
(
HtmlWriter
&
rHtmlWriter
,
const
OString
&
aAttributeName
,
const
Color
&
rColor
);
SVT_DLLPUBLIC
static
void
applyEvents
(
HtmlWriter
&
rHtmlWriter
,
const
SvxMacroTableDtor
&
rMacroTable
,
const
HTMLOutEvent
*
pEventTable
,
bool
bOutStarBasic
);
};
};
#endif
#endif
...
...
svtools/source/svhtml/htmlout.cxx
Dosyayı görüntüle @
3aa99295
...
@@ -1001,4 +1001,29 @@ void HtmlWriterHelper::applyColor(HtmlWriter& rHtmlWriter, const OString &aAttri
...
@@ -1001,4 +1001,29 @@ void HtmlWriterHelper::applyColor(HtmlWriter& rHtmlWriter, const OString &aAttri
rHtmlWriter
.
attribute
(
aAttributeName
,
sBuffer
.
makeStringAndClear
());
rHtmlWriter
.
attribute
(
aAttributeName
,
sBuffer
.
makeStringAndClear
());
}
}
void
HtmlWriterHelper
::
applyEvents
(
HtmlWriter
&
rHtmlWriter
,
const
SvxMacroTableDtor
&
rMacroTable
,
const
HTMLOutEvent
*
pEventTable
,
bool
bOutStarBasic
)
{
sal_uInt16
i
=
0
;
while
(
pEventTable
[
i
].
pBasicName
||
pEventTable
[
i
].
pJavaName
)
{
const
SvxMacro
*
pMacro
=
rMacroTable
.
Get
(
pEventTable
[
i
].
nEvent
);
if
(
pMacro
&&
pMacro
->
HasMacro
()
&&
(
JAVASCRIPT
==
pMacro
->
GetScriptType
()
||
bOutStarBasic
))
{
const
sal_Char
*
pAttributeName
=
NULL
;
if
(
STARBASIC
==
pMacro
->
GetScriptType
())
pAttributeName
=
pEventTable
[
i
].
pBasicName
;
else
pAttributeName
=
pEventTable
[
i
].
pJavaName
;
if
(
pAttributeName
)
{
rHtmlWriter
.
attribute
(
pAttributeName
,
OUStringToOString
(
pMacro
->
GetMacName
(),
RTL_TEXTENCODING_UTF8
));
}
}
i
++
;
}
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
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