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
dc9cc46f
Kaydet (Commit)
dc9cc46f
authored
Haz 05, 2014
tarafından
Jan Holesovsky
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
writerfilter: Kill createAndSetParent and createAndSetParentRef.
Change-Id: Id212984b7f525e9aea2c390f181e68b5725aa20d
üst
028bd3f5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
75 deletions
+0
-75
OOXMLFastHelper.hxx
writerfilter/source/ooxml/OOXMLFastHelper.hxx
+0
-75
No files found.
writerfilter/source/ooxml/OOXMLFastHelper.hxx
Dosyayı görüntüle @
dc9cc46f
...
...
@@ -32,16 +32,9 @@ template <class T>
class
OOXMLFastHelper
{
public
:
static
css
::
uno
::
Reference
<
css
::
xml
::
sax
::
XFastContextHandler
>
createAndSetParent
(
OOXMLFastContextHandler
*
pHandler
,
sal_uInt32
nToken
,
Id
nId
);
static
css
::
uno
::
Reference
<
css
::
xml
::
sax
::
XFastContextHandler
>
createAndSetParentAndDefine
(
OOXMLFastContextHandler
*
pHandler
,
sal_uInt32
nToken
,
Id
nId
,
Id
nDefine
);
static
css
::
uno
::
Reference
<
css
::
xml
::
sax
::
XFastContextHandler
>
createAndSetParentRef
(
OOXMLFastContextHandler
*
pHandler
,
sal_uInt32
nToken
,
const
css
::
uno
::
Reference
<
css
::
xml
::
sax
::
XFastAttributeList
>
&
Attribs
);
static
void
newProperty
(
OOXMLFastContextHandler
*
pHandler
,
Id
nId
,
const
OUString
&
rValue
);
...
...
@@ -54,39 +47,6 @@ public:
const
css
::
uno
::
Reference
<
css
::
xml
::
sax
::
XFastAttributeList
>
&
Attribs
);
};
template
<
class
T
>
uno
::
Reference
<
css
::
xml
::
sax
::
XFastContextHandler
>
OOXMLFastHelper
<
T
>::
createAndSetParent
(
OOXMLFastContextHandler
*
pHandler
,
sal_uInt32
nToken
,
Id
nId
)
{
#ifdef DEBUG_HELPER
debug_logger
->
startElement
(
"helper.createAndSetParent"
);
debug_logger
->
attribute
(
"context"
,
pHandler
->
getType
());
debug_logger
->
attribute
(
"id"
,
(
*
QNameToString
::
Instance
())(
nId
));
#endif
OOXMLFastContextHandler
*
pTmp
=
new
T
(
pHandler
);
pTmp
->
setToken
(
nToken
);
pTmp
->
setId
(
nId
);
#ifdef DEBUG_CREATE
debug_logger
->
startElement
(
"createAndSetParent"
);
debug_logger
->
attribute
(
"context"
,
pHandler
->
getType
());
debug_logger
->
attribute
(
"token"
,
fastTokenToId
(
pTmp
->
getToken
()));
debug_logger
->
attribute
(
"id"
,
(
*
QNameToString
::
Instance
())(
nId
));
debug_logger
->
startElement
(
"created"
);
debug_logger
->
addTag
(
pTmp
->
toTag
());
debug_logger
->
endElement
(
"created"
);
debug_logger
->
endElement
(
"helper.createAndSetParent"
);
#endif
css
::
uno
::
Reference
<
css
::
xml
::
sax
::
XFastContextHandler
>
aResult
(
pTmp
);
return
aResult
;
}
template
<
class
T
>
uno
::
Reference
<
css
::
xml
::
sax
::
XFastContextHandler
>
OOXMLFastHelper
<
T
>::
createAndSetParentAndDefine
...
...
@@ -122,41 +82,6 @@ OOXMLFastHelper<T>::createAndSetParentAndDefine
return
aResult
;
}
template
<
class
T
>
uno
::
Reference
<
css
::
xml
::
sax
::
XFastContextHandler
>
OOXMLFastHelper
<
T
>::
createAndSetParentRef
(
OOXMLFastContextHandler
*
pHandler
,
sal_uInt32
nToken
,
const
css
::
uno
::
Reference
<
css
::
xml
::
sax
::
XFastAttributeList
>
&
Attribs
)
{
#ifdef DEBUG_HELPER
debug_logger
->
startElement
(
"helper.createAndSetParentRef"
);
debug_logger
->
attribute
(
"context"
,
pHandler
->
getType
());
debug_logger
->
attribute
(
"type"
,
fastTokenToId
(
nToken
));
#endif
boost
::
shared_ptr
<
OOXMLFastContextHandler
>
pTmp
(
new
T
(
pHandler
));
css
::
uno
::
Reference
<
css
::
xml
::
sax
::
XFastContextHandler
>
xChild
=
pTmp
->
createFastChildContext
(
nToken
,
Attribs
);
if
(
xChild
.
is
())
{
OOXMLFastContextHandler
*
pResult
=
dynamic_cast
<
OOXMLFastContextHandler
*>
(
xChild
.
get
());
pResult
->
setToken
(
nToken
);
pResult
->
setParent
(
pHandler
);
}
#ifdef DEBUG_HELPER
debug_logger
->
startElement
(
"created"
);
debug_logger
->
addTag
(
pTmp
->
toTag
());
debug_logger
->
endElement
(
"created"
);
debug_logger
->
endElement
(
"helper.createAndSetParentRef"
);
#endif
return
xChild
;
}
template
<
class
T
>
void
OOXMLFastHelper
<
T
>::
newProperty
(
OOXMLFastContextHandler
*
pHandler
,
Id
nId
,
...
...
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