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
1a115037
Kaydet (Commit)
1a115037
authored
May 30, 2011
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
add polymorphic support
üst
62751cea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
55 additions
and
27 deletions
+55
-27
cpputype.cxx
codemaker/source/cppumaker/cpputype.cxx
+55
-27
No files found.
codemaker/source/cppumaker/cpputype.cxx
Dosyayı görüntüle @
1a115037
...
@@ -594,9 +594,11 @@ void CppuType::dumpNormalGetCppuType(FileStream& o)
...
@@ -594,9 +594,11 @@ void CppuType::dumpNormalGetCppuType(FileStream& o)
void
CppuType
::
dumpComprehensiveGetCppuType
(
FileStream
&
o
)
void
CppuType
::
dumpComprehensiveGetCppuType
(
FileStream
&
o
)
{
{
if
(
codemaker
::
cppumaker
::
dumpNamespaceOpen
(
o
,
m_typeName
,
false
))
{
if
(
!
isPolymorphic
())
o
<<
" namespace detail {
\n\n
"
;
codemaker
::
cppumaker
::
dumpNamespaceOpen
(
o
,
m_typeName
,
false
);
}
else
o
<<
"namespace cppu { "
;
o
<<
" namespace detail {
\n\n
"
;
OString
sType
=
m_typeName
.
copy
(
m_typeName
.
lastIndexOf
(
'/'
)
+
1
);
OString
sType
=
m_typeName
.
copy
(
m_typeName
.
lastIndexOf
(
'/'
)
+
1
);
OString
sStaticTypeClass
=
"the"
+
sType
+
"Type"
;
OString
sStaticTypeClass
=
"the"
+
sType
+
"Type"
;
...
@@ -701,9 +703,12 @@ void CppuType::dumpComprehensiveGetCppuType(FileStream& o)
...
@@ -701,9 +703,12 @@ void CppuType::dumpComprehensiveGetCppuType(FileStream& o)
dec
();
dec
();
o
<<
indent
()
<<
"};
\n\n
"
;
o
<<
indent
()
<<
"};
\n\n
"
;
if
(
codemaker
::
cppumaker
::
dumpNamespaceClose
(
o
,
m_typeName
,
false
))
{
if
(
!
isPolymorphic
())
o
<<
" }
\n\n
"
;
codemaker
::
cppumaker
::
dumpNamespaceClose
(
o
,
m_typeName
,
false
);
}
else
o
<<
" }"
;
o
<<
" }
\n\n
"
;
dumpGetCppuTypePreamble
(
o
);
dumpGetCppuTypePreamble
(
o
);
o
<<
indent
()
<<
"return detail::"
<<
sStaticTypeClass
<<
"::get();
\n
"
;
o
<<
indent
()
<<
"return detail::"
<<
sStaticTypeClass
<<
"::get();
\n
"
;
...
@@ -1529,9 +1534,11 @@ void InterfaceType::dumpNormalGetCppuType(FileStream& o)
...
@@ -1529,9 +1534,11 @@ void InterfaceType::dumpNormalGetCppuType(FileStream& o)
void
InterfaceType
::
dumpComprehensiveGetCppuType
(
FileStream
&
o
)
void
InterfaceType
::
dumpComprehensiveGetCppuType
(
FileStream
&
o
)
{
{
if
(
codemaker
::
cppumaker
::
dumpNamespaceOpen
(
o
,
m_typeName
,
false
))
{
if
(
!
isPolymorphic
())
o
<<
" namespace detail {
\n\n
"
;
codemaker
::
cppumaker
::
dumpNamespaceOpen
(
o
,
m_typeName
,
false
);
}
else
o
<<
"namespace cppu { "
;
o
<<
" namespace detail {
\n\n
"
;
OString
sType
=
m_typeName
.
copy
(
m_typeName
.
lastIndexOf
(
'/'
)
+
1
);
OString
sType
=
m_typeName
.
copy
(
m_typeName
.
lastIndexOf
(
'/'
)
+
1
);
OString
sStaticTypeClass
=
"the"
+
sType
+
"Type"
;
OString
sStaticTypeClass
=
"the"
+
sType
+
"Type"
;
...
@@ -1641,9 +1648,11 @@ void InterfaceType::dumpComprehensiveGetCppuType(FileStream& o)
...
@@ -1641,9 +1648,11 @@ void InterfaceType::dumpComprehensiveGetCppuType(FileStream& o)
dec
();
dec
();
o
<<
indent
()
<<
"};
\n\n
"
;
o
<<
indent
()
<<
"};
\n\n
"
;
if
(
codemaker
::
cppumaker
::
dumpNamespaceClose
(
o
,
m_typeName
,
false
))
{
if
(
!
isPolymorphic
())
o
<<
" }
\n\n
"
;
codemaker
::
cppumaker
::
dumpNamespaceClose
(
o
,
m_typeName
,
false
);
}
else
o
<<
" }"
;
o
<<
" }
\n\n
"
;
dumpGetCppuTypePreamble
(
o
);
dumpGetCppuTypePreamble
(
o
);
o
<<
indent
()
<<
"return detail::"
<<
sStaticTypeClass
<<
"::get();
\n
"
;
o
<<
indent
()
<<
"return detail::"
<<
sStaticTypeClass
<<
"::get();
\n
"
;
...
@@ -2803,13 +2812,23 @@ void StructureType::dumpNormalGetCppuType(FileStream & out) {
...
@@ -2803,13 +2812,23 @@ void StructureType::dumpNormalGetCppuType(FileStream & out) {
void
StructureType
::
dumpComprehensiveGetCppuType
(
FileStream
&
out
)
void
StructureType
::
dumpComprehensiveGetCppuType
(
FileStream
&
out
)
{
{
if
(
codemaker
::
cppumaker
::
dumpNamespaceOpen
(
out
,
m_typeName
,
false
))
{
if
(
!
isPolymorphic
())
out
<<
" namespace detail {
\n\n
"
;
codemaker
::
cppumaker
::
dumpNamespaceOpen
(
out
,
m_typeName
,
false
);
}
else
out
<<
"namespace cppu { "
;
out
<<
" namespace detail {
\n\n
"
;
OString
sType
=
m_typeName
.
copy
(
m_typeName
.
lastIndexOf
(
'/'
)
+
1
);
OString
sType
=
m_typeName
.
copy
(
m_typeName
.
lastIndexOf
(
'/'
)
+
1
);
OString
sStaticTypeClass
=
"the"
+
sType
+
"Type"
;
OString
sStaticTypeClass
=
"the"
+
sType
+
"Type"
;
out
<<
indent
()
<<
"struct "
<<
sStaticTypeClass
<<
" : public rtl::StaticWithInit< ::com::sun::star::uno::Type, "
<<
sStaticTypeClass
<<
" >
\n
"
;
out
<<
indent
();
if
(
isPolymorphic
())
dumpTemplateHead
(
out
);
out
<<
"struct "
<<
sStaticTypeClass
<<
" : public rtl::StaticWithInit< ::com::sun::star::uno::Type, "
;
out
<<
sStaticTypeClass
;
if
(
isPolymorphic
())
dumpTemplateParameters
(
out
);
out
<<
" >
\n
"
;
out
<<
indent
()
<<
"{
\n
"
;
out
<<
indent
()
<<
"{
\n
"
;
inc
();
inc
();
out
<<
indent
()
<<
"::com::sun::star::uno::Type operator()() const
\n
"
;
out
<<
indent
()
<<
"::com::sun::star::uno::Type operator()() const
\n
"
;
...
@@ -2947,12 +2966,17 @@ void StructureType::dumpComprehensiveGetCppuType(FileStream & out)
...
@@ -2947,12 +2966,17 @@ void StructureType::dumpComprehensiveGetCppuType(FileStream & out)
dec
();
dec
();
out
<<
indent
()
<<
"};
\n
"
;
out
<<
indent
()
<<
"};
\n
"
;
if
(
codemaker
::
cppumaker
::
dumpNamespaceClose
(
out
,
m_typeName
,
false
))
{
if
(
!
isPolymorphic
())
out
<<
" }
\n\n
"
;
codemaker
::
cppumaker
::
dumpNamespaceClose
(
out
,
m_typeName
,
false
);
}
else
out
<<
" }"
;
out
<<
" }
\n\n
"
;
dumpGetCppuTypePreamble
(
out
);
dumpGetCppuTypePreamble
(
out
);
out
<<
indent
()
<<
"return detail::"
<<
sStaticTypeClass
<<
"::get();
\n
"
;
out
<<
indent
()
<<
"return detail::"
<<
sStaticTypeClass
;
if
(
isPolymorphic
())
dumpTemplateParameters
(
out
);
out
<<
"::get();
\n
"
;
dumpGetCppuTypePostamble
(
out
);
dumpGetCppuTypePostamble
(
out
);
}
}
...
@@ -3046,7 +3070,7 @@ void StructureType::addComprehensiveGetCppuTypeIncludes(
...
@@ -3046,7 +3070,7 @@ void StructureType::addComprehensiveGetCppuTypeIncludes(
{
{
includes
.
addType
();
includes
.
addType
();
includes
.
addCppuUnotypeHxx
();
includes
.
addCppuUnotypeHxx
();
includes
.
add
OslDoublecheckedlockingH
();
includes
.
add
RtlInstanceHxx
();
includes
.
addOslMutexHxx
();
includes
.
addOslMutexHxx
();
includes
.
addRtlUstringH
();
includes
.
addRtlUstringH
();
includes
.
addRtlUstringHxx
();
includes
.
addRtlUstringHxx
();
...
@@ -3613,9 +3637,11 @@ void EnumType::dumpNormalGetCppuType(FileStream& o)
...
@@ -3613,9 +3637,11 @@ void EnumType::dumpNormalGetCppuType(FileStream& o)
void
EnumType
::
dumpComprehensiveGetCppuType
(
FileStream
&
o
)
void
EnumType
::
dumpComprehensiveGetCppuType
(
FileStream
&
o
)
{
{
if
(
codemaker
::
cppumaker
::
dumpNamespaceOpen
(
o
,
m_typeName
,
false
))
{
if
(
!
isPolymorphic
())
o
<<
" namespace detail {
\n\n
"
;
codemaker
::
cppumaker
::
dumpNamespaceOpen
(
o
,
m_typeName
,
false
);
}
else
o
<<
"namespace cppu { "
;
o
<<
" namespace detail {
\n\n
"
;
OString
sType
=
m_typeName
.
copy
(
m_typeName
.
lastIndexOf
(
'/'
)
+
1
);
OString
sType
=
m_typeName
.
copy
(
m_typeName
.
lastIndexOf
(
'/'
)
+
1
);
OString
sStaticTypeClass
=
"the"
+
sType
+
"Type"
;
OString
sStaticTypeClass
=
"the"
+
sType
+
"Type"
;
...
@@ -3685,9 +3711,11 @@ void EnumType::dumpComprehensiveGetCppuType(FileStream& o)
...
@@ -3685,9 +3711,11 @@ void EnumType::dumpComprehensiveGetCppuType(FileStream& o)
dec
();
dec
();
o
<<
indent
()
<<
"};
\n\n
"
;
o
<<
indent
()
<<
"};
\n\n
"
;
if
(
codemaker
::
cppumaker
::
dumpNamespaceClose
(
o
,
m_typeName
,
false
))
{
if
(
!
isPolymorphic
())
o
<<
" }
\n\n
"
;
codemaker
::
cppumaker
::
dumpNamespaceClose
(
o
,
m_typeName
,
false
);
}
else
o
<<
" }"
;
o
<<
" }
\n\n
"
;
dumpGetCppuTypePreamble
(
o
);
dumpGetCppuTypePreamble
(
o
);
o
<<
indent
()
<<
"return detail::"
<<
sStaticTypeClass
<<
"::get();
\n
"
;
o
<<
indent
()
<<
"return detail::"
<<
sStaticTypeClass
<<
"::get();
\n
"
;
...
...
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