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
d39f1358
Kaydet (Commit)
d39f1358
authored
Şub 24, 2014
tarafından
Jan Holesovsky
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
OUString -> const OUString&, Sequence<> -> const Sequence<>&
Change-Id: I5d17a04fe0a3051374d75d9c989d95377f18c79d
üst
08d1f22e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
+12
-12
docxattributeoutput.cxx
sw/source/filter/ww8/docxattributeoutput.cxx
+11
-11
docxhelper.hxx
sw/source/filter/ww8/docxhelper.hxx
+1
-1
No files found.
sw/source/filter/ww8/docxattributeoutput.cxx
Dosyayı görüntüle @
d39f1358
...
@@ -1183,12 +1183,12 @@ const NameToId constNameToIdMapping[] =
...
@@ -1183,12 +1183,12 @@ const NameToId constNameToIdMapping[] =
{
OUString
(
"lumMod"
),
FSNS
(
XML_w14
,
XML_lumMod
)
},
{
OUString
(
"lumMod"
),
FSNS
(
XML_w14
,
XML_lumMod
)
},
};
};
boost
::
optional
<
sal_Int32
>
lclGetElementIdForName
(
OUString
a
Name
)
boost
::
optional
<
sal_Int32
>
lclGetElementIdForName
(
const
OUString
&
r
Name
)
{
{
sal_Int32
aLength
=
sizeof
(
constNameToIdMapping
)
/
sizeof
(
NameToId
);
sal_Int32
aLength
=
sizeof
(
constNameToIdMapping
)
/
sizeof
(
NameToId
);
for
(
sal_Int32
i
=
0
;
i
<
aLength
;
++
i
)
for
(
sal_Int32
i
=
0
;
i
<
aLength
;
++
i
)
{
{
if
(
a
Name
==
constNameToIdMapping
[
i
].
maName
)
if
(
r
Name
==
constNameToIdMapping
[
i
].
maName
)
{
{
return
constNameToIdMapping
[
i
].
maId
;
return
constNameToIdMapping
[
i
].
maId
;
}
}
...
@@ -1196,16 +1196,16 @@ boost::optional<sal_Int32> lclGetElementIdForName(OUString aName)
...
@@ -1196,16 +1196,16 @@ boost::optional<sal_Int32> lclGetElementIdForName(OUString aName)
return
boost
::
optional
<
sal_Int32
>
();
return
boost
::
optional
<
sal_Int32
>
();
}
}
void
lclProcessRecursiveGrabBag
(
sal_Int32
aElementId
,
c
ss
::
uno
::
Sequence
<
css
::
beans
::
PropertyValue
>
a
Elements
,
sax_fastparser
::
FSHelperPtr
pSerializer
)
void
lclProcessRecursiveGrabBag
(
sal_Int32
aElementId
,
c
onst
css
::
uno
::
Sequence
<
css
::
beans
::
PropertyValue
>&
r
Elements
,
sax_fastparser
::
FSHelperPtr
pSerializer
)
{
{
css
::
uno
::
Sequence
<
css
::
beans
::
PropertyValue
>
aAttributes
;
css
::
uno
::
Sequence
<
css
::
beans
::
PropertyValue
>
aAttributes
;
FastAttributeList
*
pAttributes
=
pSerializer
->
createAttrList
();
FastAttributeList
*
pAttributes
=
pSerializer
->
createAttrList
();
for
(
sal_Int32
j
=
0
;
j
<
a
Elements
.
getLength
();
++
j
)
for
(
sal_Int32
j
=
0
;
j
<
r
Elements
.
getLength
();
++
j
)
{
{
if
(
a
Elements
[
j
].
Name
==
"attributes"
)
if
(
r
Elements
[
j
].
Name
==
"attributes"
)
{
{
a
Elements
[
j
].
Value
>>=
aAttributes
;
r
Elements
[
j
].
Value
>>=
aAttributes
;
}
}
}
}
...
@@ -1232,14 +1232,14 @@ void lclProcessRecursiveGrabBag(sal_Int32 aElementId, css::uno::Sequence<css::be
...
@@ -1232,14 +1232,14 @@ void lclProcessRecursiveGrabBag(sal_Int32 aElementId, css::uno::Sequence<css::be
pSerializer
->
startElement
(
aElementId
,
xAttributesList
);
pSerializer
->
startElement
(
aElementId
,
xAttributesList
);
for
(
sal_Int32
j
=
0
;
j
<
a
Elements
.
getLength
();
++
j
)
for
(
sal_Int32
j
=
0
;
j
<
r
Elements
.
getLength
();
++
j
)
{
{
css
::
uno
::
Sequence
<
css
::
beans
::
PropertyValue
>
aSumElements
;
css
::
uno
::
Sequence
<
css
::
beans
::
PropertyValue
>
aSumElements
;
boost
::
optional
<
sal_Int32
>
aSubElementId
=
lclGetElementIdForName
(
a
Elements
[
j
].
Name
);
boost
::
optional
<
sal_Int32
>
aSubElementId
=
lclGetElementIdForName
(
r
Elements
[
j
].
Name
);
if
(
aSubElementId
)
if
(
aSubElementId
)
{
{
a
Elements
[
j
].
Value
>>=
aSumElements
;
r
Elements
[
j
].
Value
>>=
aSumElements
;
lclProcessRecursiveGrabBag
(
*
aSubElementId
,
aSumElements
,
pSerializer
);
lclProcessRecursiveGrabBag
(
*
aSubElementId
,
aSumElements
,
pSerializer
);
}
}
}
}
...
@@ -2759,9 +2759,9 @@ void DocxAttributeOutput::StartStyles()
...
@@ -2759,9 +2759,9 @@ void DocxAttributeOutput::StartStyles()
LatentStyles
();
LatentStyles
();
}
}
sal_Int32
DocxStringGetToken
(
DocxStringTokenMap
const
*
pMap
,
OUString
a
Name
)
sal_Int32
DocxStringGetToken
(
DocxStringTokenMap
const
*
pMap
,
const
OUString
&
r
Name
)
{
{
OString
sName
=
OUStringToOString
(
a
Name
,
RTL_TEXTENCODING_UTF8
);
OString
sName
=
OUStringToOString
(
r
Name
,
RTL_TEXTENCODING_UTF8
);
while
(
pMap
->
pToken
)
while
(
pMap
->
pToken
)
{
{
if
(
sName
==
pMap
->
pToken
)
if
(
sName
==
pMap
->
pToken
)
...
...
sw/source/filter/ww8/docxhelper.hxx
Dosyayı görüntüle @
d39f1358
...
@@ -18,7 +18,7 @@ struct DocxStringTokenMap
...
@@ -18,7 +18,7 @@ struct DocxStringTokenMap
sal_Int32
nToken
;
sal_Int32
nToken
;
};
};
sal_Int32
DocxStringGetToken
(
DocxStringTokenMap
const
*
pMap
,
OUString
a
Name
);
sal_Int32
DocxStringGetToken
(
DocxStringTokenMap
const
*
pMap
,
const
OUString
&
r
Name
);
#endif // INCLUDED_SW_SOURCE_FILTER_WW8_DOCXHELPER_HXX
#endif // INCLUDED_SW_SOURCE_FILTER_WW8_DOCXHELPER_HXX
...
...
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