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
4a625120
Kaydet (Commit)
4a625120
authored
Tem 23, 2012
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
oox::formulaimport::XmlStream: allow avoiding XFastAttributeList
Change-Id: Iba0ad5ae72920f27e8a443a043c5891b102aee98
üst
b8b792ba
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
1 deletion
+22
-1
importutils.hxx
oox/inc/oox/mathml/importutils.hxx
+6
-1
importutils.cxx
oox/source/mathml/importutils.cxx
+16
-0
No files found.
oox/inc/oox/mathml/importutils.hxx
Dosyayı görüntüle @
4a625120
...
@@ -133,6 +133,7 @@ public:
...
@@ -133,6 +133,7 @@ public:
struct
OOX_DLLPUBLIC
AttributeList
struct
OOX_DLLPUBLIC
AttributeList
{
{
bool
hasAttribute
(
int
token
)
const
;
bool
hasAttribute
(
int
token
)
const
;
OUString
&
operator
[]
(
int
token
);
rtl
::
OUString
attribute
(
int
token
,
const
rtl
::
OUString
&
def
=
rtl
::
OUString
())
const
;
rtl
::
OUString
attribute
(
int
token
,
const
rtl
::
OUString
&
def
=
rtl
::
OUString
())
const
;
bool
attribute
(
int
token
,
bool
def
)
const
;
bool
attribute
(
int
token
,
bool
def
)
const
;
sal_Unicode
attribute
(
int
token
,
sal_Unicode
def
)
const
;
sal_Unicode
attribute
(
int
token
,
sal_Unicode
def
)
const
;
...
@@ -148,6 +149,8 @@ public:
...
@@ -148,6 +149,8 @@ public:
Tag
(
int
token
=
XML_TOKEN_INVALID
,
Tag
(
int
token
=
XML_TOKEN_INVALID
,
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
xml
::
sax
::
XFastAttributeList
>&
attributes
=
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
xml
::
sax
::
XFastAttributeList
>
(),
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
xml
::
sax
::
XFastAttributeList
>&
attributes
=
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
xml
::
sax
::
XFastAttributeList
>
(),
const
rtl
::
OUString
&
text
=
rtl
::
OUString
());
const
rtl
::
OUString
&
text
=
rtl
::
OUString
());
Tag
(
int
token
,
const
AttributeList
&
attribs
);
int
token
;
///< tag type, or XML_TOKEN_INVALID
int
token
;
///< tag type, or XML_TOKEN_INVALID
AttributeList
attributes
;
AttributeList
attributes
;
rtl
::
OUString
text
;
rtl
::
OUString
text
;
...
@@ -236,7 +239,9 @@ class OOX_DLLPUBLIC XmlStreamBuilder
...
@@ -236,7 +239,9 @@ class OOX_DLLPUBLIC XmlStreamBuilder
{
{
public
:
public
:
void
appendOpeningTag
(
int
token
,
void
appendOpeningTag
(
int
token
,
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
xml
::
sax
::
XFastAttributeList
>&
attributes
);
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
xml
::
sax
::
XFastAttributeList
>&
attributes
=
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
xml
::
sax
::
XFastAttributeList
>
());
void
appendOpeningTag
(
int
token
,
const
AttributeList
&
attribs
);
void
appendClosingTag
(
int
token
);
void
appendClosingTag
(
int
token
);
// appends the characters after the last appended token
// appends the characters after the last appended token
void
appendCharacters
(
const
rtl
::
OUString
&
characters
);
void
appendCharacters
(
const
rtl
::
OUString
&
characters
);
...
...
oox/source/mathml/importutils.cxx
Dosyayı görüntüle @
4a625120
...
@@ -114,6 +114,11 @@ static OUString tokenToString( int token )
...
@@ -114,6 +114,11 @@ static OUString tokenToString( int token )
}
// namespace
}
// namespace
OUString
&
XmlStream
::
AttributeList
::
operator
[]
(
int
token
)
{
return
attrs
[
token
];
}
rtl
::
OUString
XmlStream
::
AttributeList
::
attribute
(
int
token
,
const
rtl
::
OUString
&
def
)
const
rtl
::
OUString
XmlStream
::
AttributeList
::
attribute
(
int
token
,
const
rtl
::
OUString
&
def
)
const
{
{
std
::
map
<
int
,
rtl
::
OUString
>::
const_iterator
find
=
attrs
.
find
(
token
);
std
::
map
<
int
,
rtl
::
OUString
>::
const_iterator
find
=
attrs
.
find
(
token
);
...
@@ -165,6 +170,12 @@ XmlStream::Tag::Tag( int t, const uno::Reference< xml::sax::XFastAttributeList >
...
@@ -165,6 +170,12 @@ XmlStream::Tag::Tag( int t, const uno::Reference< xml::sax::XFastAttributeList >
{
{
}
}
XmlStream
::
Tag
::
Tag
(
int
t
,
const
AttributeList
&
a
)
:
token
(
t
)
,
attributes
(
a
)
{
}
XmlStream
::
Tag
::
operator
bool
()
const
XmlStream
::
Tag
::
operator
bool
()
const
{
{
...
@@ -337,6 +348,11 @@ void XmlStreamBuilder::appendOpeningTag( int token, const uno::Reference< xml::s
...
@@ -337,6 +348,11 @@ void XmlStreamBuilder::appendOpeningTag( int token, const uno::Reference< xml::s
tags
.
push_back
(
Tag
(
OPENING
(
token
),
attrs
));
tags
.
push_back
(
Tag
(
OPENING
(
token
),
attrs
));
}
}
void
XmlStreamBuilder
::
appendOpeningTag
(
int
token
,
const
AttributeList
&
attrs
)
{
tags
.
push_back
(
Tag
(
OPENING
(
token
),
attrs
));
}
void
XmlStreamBuilder
::
appendClosingTag
(
int
token
)
void
XmlStreamBuilder
::
appendClosingTag
(
int
token
)
{
{
tags
.
push_back
(
Tag
(
CLOSING
(
token
)));
tags
.
push_back
(
Tag
(
CLOSING
(
token
)));
...
...
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