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
df344855
Kaydet (Commit)
df344855
authored
Eyl 14, 2014
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Use oox::getNamespace()
Change-Id: I43df705a6cf5371ee495336d9dbe2b87020cf0e0
üst
1ebbb8bc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
7 deletions
+4
-7
OOXMLFastContextHandler.cxx
writerfilter/source/ooxml/OOXMLFastContextHandler.cxx
+2
-5
factoryimpl.py
writerfilter/source/ooxml/factoryimpl.py
+2
-2
No files found.
writerfilter/source/ooxml/OOXMLFastContextHandler.cxx
Dosyayı görüntüle @
df344855
...
@@ -1797,9 +1797,8 @@ OOXMLFastContextHandlerShape::lcl_createFastChildContext
...
@@ -1797,9 +1797,8 @@ OOXMLFastContextHandlerShape::lcl_createFastChildContext
bool
bGroupShape
=
Element
==
Token_t
(
NMSP_vml
|
XML_group
);
bool
bGroupShape
=
Element
==
Token_t
(
NMSP_vml
|
XML_group
);
// drawingML version also counts as a group shape.
// drawingML version also counts as a group shape.
bGroupShape
|=
mrShapeContext
->
getStartToken
()
==
Token_t
(
NMSP_wpg
|
XML_wgp
);
bGroupShape
|=
mrShapeContext
->
getStartToken
()
==
Token_t
(
NMSP_wpg
|
XML_wgp
);
sal_uInt32
nNamespace
=
Element
&
0xffff0000
;
switch
(
nNamespace
)
switch
(
oox
::
getNamespace
(
Element
)
)
{
{
case
NMSP_doc
:
case
NMSP_doc
:
case
NMSP_vmlWord
:
case
NMSP_vmlWord
:
...
@@ -1977,9 +1976,7 @@ OOXMLFastContextHandlerWrapper::lcl_createFastChildContext
...
@@ -1977,9 +1976,7 @@ OOXMLFastContextHandlerWrapper::lcl_createFastChildContext
{
{
uno
::
Reference
<
xml
::
sax
::
XFastContextHandler
>
xResult
;
uno
::
Reference
<
xml
::
sax
::
XFastContextHandler
>
xResult
;
Id
nNameSpace
=
Element
&
0xffff0000
;
bool
bInNamespaces
=
mMyNamespaces
.
find
(
oox
::
getNamespace
(
Element
))
!=
mMyNamespaces
.
end
();
bool
bInNamespaces
=
mMyNamespaces
.
find
(
nNameSpace
)
!=
mMyNamespaces
.
end
();
bool
bInTokens
=
mMyTokens
.
find
(
Element
)
!=
mMyTokens
.
end
(
);
bool
bInTokens
=
mMyTokens
.
find
(
Element
)
!=
mMyTokens
.
end
(
);
// We have methods to _add_ individual tokens or whole namespaces to be
// We have methods to _add_ individual tokens or whole namespaces to be
...
...
writerfilter/source/ooxml/factoryimpl.py
Dosyayı görüntüle @
df344855
...
@@ -64,7 +64,7 @@ def getFactoryForNamespace(model):
...
@@ -64,7 +64,7 @@ def getFactoryForNamespace(model):
{
{
OOXMLFactory_ns::Pointer_t pResult;
OOXMLFactory_ns::Pointer_t pResult;
switch (
nId & 0xffff0000
)
switch (
oox::getNamespace(nId)
)
{"""
)
{"""
)
for
namespace
in
[
ns
.
getAttribute
(
"name"
)
for
ns
in
model
.
getElementsByTagName
(
"namespace"
)]:
for
namespace
in
[
ns
.
getAttribute
(
"name"
)
for
ns
in
model
.
getElementsByTagName
(
"namespace"
)]:
...
@@ -122,7 +122,7 @@ std::string fastTokenToId(sal_uInt32 nToken)
...
@@ -122,7 +122,7 @@ std::string fastTokenToId(sal_uInt32 nToken)
std::string sResult;
std::string sResult;
switch (
nToken & 0xffff0000
)
switch (
oox::getNamespace(nToken)
)
{"""
)
{"""
)
aliases
=
[]
aliases
=
[]
...
...
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