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
12088021
Kaydet (Commit)
12088021
authored
Ock 26, 2012
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
ByteString->rtl::OString
üst
5cc2997f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
116 additions
and
110 deletions
+116
-110
basobj.hxx
idl/inc/basobj.hxx
+4
-4
bastype.hxx
idl/inc/bastype.hxx
+21
-9
command.hxx
idl/inc/command.hxx
+1
-5
module.hxx
idl/inc/module.hxx
+4
-4
object.hxx
idl/inc/object.hxx
+11
-10
slot.hxx
idl/inc/slot.hxx
+14
-14
types.hxx
idl/inc/types.hxx
+7
-7
basobj.cxx
idl/source/objects/basobj.cxx
+1
-1
bastype.cxx
idl/source/objects/bastype.cxx
+7
-10
module.cxx
idl/source/objects/module.cxx
+17
-17
object.cxx
idl/source/objects/object.cxx
+23
-23
slot.cxx
idl/source/objects/slot.cxx
+0
-0
types.cxx
idl/source/objects/types.cxx
+0
-0
command.cxx
idl/source/prj/command.cxx
+1
-1
database.cxx
idl/source/prj/database.cxx
+5
-5
No files found.
idl/inc/basobj.hxx
Dosyayı görüntüle @
12088021
...
@@ -183,7 +183,7 @@ public:
...
@@ -183,7 +183,7 @@ public:
const
SvString
&
GetName
()
const
const
SvString
&
GetName
()
const
{
{
return
(
!
aRef
.
Is
()
return
(
!
aRef
.
Is
()
||
SvMetaName
::
GetName
().
getString
().
Len
()
)
||
!
SvMetaName
::
GetName
().
getString
().
isEmpty
()
)
?
SvMetaName
::
GetName
()
?
SvMetaName
::
GetName
()
:
aRef
->
GetName
();
:
aRef
->
GetName
();
}
}
...
@@ -191,7 +191,7 @@ public:
...
@@ -191,7 +191,7 @@ public:
const
SvString
&
GetHelpText
()
const
const
SvString
&
GetHelpText
()
const
{
{
return
(
!
aRef
.
Is
()
return
(
!
aRef
.
Is
()
||
SvMetaName
::
GetHelpText
().
getString
().
Len
()
)
||
!
SvMetaName
::
GetHelpText
().
getString
().
isEmpty
()
)
?
SvMetaName
::
GetHelpText
()
?
SvMetaName
::
GetHelpText
()
:
aRef
->
GetHelpText
();
:
aRef
->
GetHelpText
();
}
}
...
@@ -199,7 +199,7 @@ public:
...
@@ -199,7 +199,7 @@ public:
const
SvString
&
GetConfigName
()
const
const
SvString
&
GetConfigName
()
const
{
{
return
(
!
aRef
.
Is
()
return
(
!
aRef
.
Is
()
||
SvMetaName
::
GetConfigName
().
getString
().
Len
()
)
||
!
SvMetaName
::
GetConfigName
().
getString
().
isEmpty
()
)
?
SvMetaName
::
GetConfigName
()
?
SvMetaName
::
GetConfigName
()
:
aRef
->
GetConfigName
();
:
aRef
->
GetConfigName
();
}
}
...
@@ -207,7 +207,7 @@ public:
...
@@ -207,7 +207,7 @@ public:
const
SvString
&
GetDescription
()
const
const
SvString
&
GetDescription
()
const
{
{
return
(
!
aRef
.
Is
()
return
(
!
aRef
.
Is
()
||
SvMetaName
::
GetDescription
().
getString
().
Len
()
)
||
!
SvMetaName
::
GetDescription
().
getString
().
isEmpty
()
)
?
SvMetaName
::
GetDescription
()
?
SvMetaName
::
GetDescription
()
:
aRef
->
GetDescription
();
:
aRef
->
GetDescription
();
}
}
...
...
idl/inc/bastype.hxx
Dosyayı görüntüle @
12088021
...
@@ -152,30 +152,33 @@ public:
...
@@ -152,30 +152,33 @@ public:
sal_Bool
ReadSvIdl
(
SvStringHashEntry
*
pName
,
SvTokenStream
&
rInStm
);
sal_Bool
ReadSvIdl
(
SvStringHashEntry
*
pName
,
SvTokenStream
&
rInStm
);
sal_Bool
WriteSvIdl
(
SvStringHashEntry
*
pName
,
SvStream
&
rOutStm
);
sal_Bool
WriteSvIdl
(
SvStringHashEntry
*
pName
,
SvStream
&
rOutStm
);
ByteString
GetSvIdlString
(
SvStringHashEntry
*
pName
);
rtl
::
OString
GetSvIdlString
(
SvStringHashEntry
*
pName
);
};
};
class
SvIdentifier
class
SvIdentifier
{
{
private
:
private
:
Byte
String
m_aStr
;
rtl
::
O
String
m_aStr
;
public
:
public
:
SvIdentifier
()
SvIdentifier
()
{
{
}
}
void
setString
(
const
ByteString
&
rStr
)
void
setString
(
const
rtl
::
OString
&
rStr
)
{
{
m_aStr
=
rStr
;
m_aStr
=
rStr
;
}
}
const
Byte
String
&
getString
()
const
const
rtl
::
O
String
&
getString
()
const
{
{
return
m_aStr
;
return
m_aStr
;
}
}
friend
SvStream
&
operator
<<
(
SvStream
&
,
const
SvIdentifier
&
);
friend
SvStream
&
operator
<<
(
SvStream
&
,
const
SvIdentifier
&
);
friend
SvStream
&
operator
>>
(
SvStream
&
,
SvIdentifier
&
);
friend
SvStream
&
operator
>>
(
SvStream
&
,
SvIdentifier
&
);
sal_Bool
IsSet
()
const
{
return
m_aStr
.
Len
()
!=
0
;
}
sal_Bool
IsSet
()
const
{
return
!
m_aStr
.
isEmpty
();
}
sal_Bool
ReadSvIdl
(
SvStringHashEntry
*
pName
,
SvTokenStream
&
rInStm
);
sal_Bool
ReadSvIdl
(
SvStringHashEntry
*
pName
,
SvTokenStream
&
rInStm
);
sal_Bool
WriteSvIdl
(
SvStringHashEntry
*
pName
,
SvStream
&
rOutStm
,
sal_Bool
WriteSvIdl
(
SvStringHashEntry
*
pName
,
SvStream
&
rOutStm
,
sal_uInt16
nTab
);
sal_uInt16
nTab
);
...
@@ -207,12 +210,21 @@ public:
...
@@ -207,12 +210,21 @@ public:
class
SvString
class
SvString
{
{
private
:
private
:
Byte
String
m_aStr
;
rtl
::
O
String
m_aStr
;
public
:
public
:
SvString
()
{}
SvString
()
{}
void
setString
(
const
ByteString
&
rStr
)
{
m_aStr
=
rStr
;
}
void
setString
(
const
rtl
::
OString
&
rStr
)
const
ByteString
&
getString
()
const
{
return
m_aStr
;
}
{
sal_Bool
IsSet
()
const
{
return
m_aStr
.
Len
()
!=
0
;
}
m_aStr
=
rStr
;
}
const
rtl
::
OString
&
getString
()
const
{
return
m_aStr
;
}
sal_Bool
IsSet
()
const
{
return
!
m_aStr
.
isEmpty
();
}
friend
SvStream
&
operator
<<
(
SvStream
&
,
const
SvString
&
);
friend
SvStream
&
operator
<<
(
SvStream
&
,
const
SvString
&
);
friend
SvStream
&
operator
>>
(
SvStream
&
,
SvString
&
);
friend
SvStream
&
operator
>>
(
SvStream
&
,
SvString
&
);
...
...
idl/inc/command.hxx
Dosyayı görüntüle @
12088021
...
@@ -33,12 +33,8 @@
...
@@ -33,12 +33,8 @@
#include <rtl/ustring.hxx>
#include <rtl/ustring.hxx>
#include <vector>
#include <vector>
#ifndef STRING_LIST
#define STRING_LIST
typedef
::
std
::
vector
<
String
*
>
StringList
;
typedef
::
std
::
vector
<
String
*
>
StringList
;
#endif
typedef
::
std
::
vector
<
rtl
::
OString
*
>
ByteStringList
;
typedef
::
std
::
vector
<
ByteString
*
>
ByteStringList
;
class
SvCommand
class
SvCommand
{
{
...
...
idl/inc/module.hxx
Dosyayı görüntüle @
12088021
...
@@ -68,12 +68,12 @@ public:
...
@@ -68,12 +68,12 @@ public:
SvMetaModule
();
SvMetaModule
();
const
String
&
GetIdlFileName
()
const
{
return
aIdlFileName
;
}
const
String
&
GetIdlFileName
()
const
{
return
aIdlFileName
;
}
const
ByteString
&
GetModulePrefix
()
const
{
return
aModulePrefix
.
getString
();
}
const
rtl
::
OString
&
GetModulePrefix
()
const
{
return
aModulePrefix
.
getString
();
}
virtual
sal_Bool
SetName
(
const
ByteString
&
rName
,
SvIdlDataBase
*
=
NULL
);
virtual
sal_Bool
SetName
(
const
ByteString
&
rName
,
SvIdlDataBase
*
=
NULL
);
const
ByteString
&
GetHelpFileName
()
const
{
return
aHelpFileName
.
getString
();
}
const
rtl
::
OString
&
GetHelpFileName
()
const
{
return
aHelpFileName
.
getString
();
}
const
ByteString
&
GetTypeLibFileName
()
const
{
return
aTypeLibFile
.
getString
();
}
const
rtl
::
OString
&
GetTypeLibFileName
()
const
{
return
aTypeLibFile
.
getString
();
}
const
SvMetaAttributeMemberList
&
GetAttrList
()
const
{
return
aAttrList
;
}
const
SvMetaAttributeMemberList
&
GetAttrList
()
const
{
return
aAttrList
;
}
const
SvMetaTypeMemberList
&
GetTypeList
()
const
{
return
aTypeList
;
}
const
SvMetaTypeMemberList
&
GetTypeList
()
const
{
return
aTypeList
;
}
...
...
idl/inc/object.hxx
Dosyayı görüntüle @
12088021
...
@@ -36,11 +36,12 @@
...
@@ -36,11 +36,12 @@
struct
SvSlotElement
struct
SvSlotElement
{
{
SvMetaSlotRef
xSlot
;
SvMetaSlotRef
xSlot
;
ByteString
aPrefix
;
rtl
::
OString
aPrefix
;
SvSlotElement
(
SvMetaSlot
*
pS
,
const
ByteString
&
rPrefix
)
SvSlotElement
(
SvMetaSlot
*
pS
,
const
rtl
::
OString
&
rPrefix
)
:
xSlot
(
pS
)
:
xSlot
(
pS
)
,
aPrefix
(
rPrefix
)
,
aPrefix
(
rPrefix
)
{}
{
}
};
};
typedef
std
::
vector
<
SvSlotElement
*
>
SvSlotElementList
;
typedef
std
::
vector
<
SvSlotElement
*
>
SvSlotElementList
;
...
@@ -51,15 +52,15 @@ SV_DECL_REF(SvMetaClass)
...
@@ -51,15 +52,15 @@ SV_DECL_REF(SvMetaClass)
class
SvClassElement
:
public
SvPersistBase
class
SvClassElement
:
public
SvPersistBase
{
{
SvBOOL
aAutomation
;
SvBOOL
aAutomation
;
ByteString
aPrefix
;
rtl
::
OString
aPrefix
;
SvMetaClassRef
xClass
;
SvMetaClassRef
xClass
;
public
:
public
:
SV_DECL_PERSIST1
(
SvClassElement
,
SvPersistBase
,
1
)
SV_DECL_PERSIST1
(
SvClassElement
,
SvPersistBase
,
1
)
SvClassElement
();
SvClassElement
();
void
SetPrefix
(
const
ByteString
&
rPrefix
)
void
SetPrefix
(
const
rtl
::
OString
&
rPrefix
)
{
aPrefix
=
rPrefix
;
}
{
aPrefix
=
rPrefix
;
}
const
ByteString
&
GetPrefix
()
const
const
rtl
::
OString
&
GetPrefix
()
const
{
return
aPrefix
;
}
{
return
aPrefix
;
}
void
SetAutomation
(
sal_Bool
rAutomation
)
void
SetAutomation
(
sal_Bool
rAutomation
)
...
@@ -88,14 +89,14 @@ class SvMetaClass : public SvMetaType
...
@@ -88,14 +89,14 @@ class SvMetaClass : public SvMetaType
sal_Bool
TestAttribute
(
SvIdlDataBase
&
rBase
,
SvTokenStream
&
rInStm
,
sal_Bool
TestAttribute
(
SvIdlDataBase
&
rBase
,
SvTokenStream
&
rInStm
,
SvMetaAttribute
&
rAttr
)
const
;
SvMetaAttribute
&
rAttr
)
const
;
void
WriteSlotStubs
(
const
ByteString
&
rShellName
,
void
WriteSlotStubs
(
const
rtl
::
OString
&
rShellName
,
SvSlotElementList
&
rSlotList
,
SvSlotElementList
&
rSlotList
,
ByteStringList
&
rList
,
ByteStringList
&
rList
,
SvStream
&
rOutStm
);
SvStream
&
rOutStm
);
sal_uInt16
WriteSlotParamArray
(
SvIdlDataBase
&
rBase
,
sal_uInt16
WriteSlotParamArray
(
SvIdlDataBase
&
rBase
,
SvSlotElementList
&
rSlotList
,
SvSlotElementList
&
rSlotList
,
SvStream
&
rOutStm
);
SvStream
&
rOutStm
);
sal_uInt16
WriteSlots
(
const
ByteString
&
rShellName
,
sal_uInt16
nCount
,
sal_uInt16
WriteSlots
(
const
rtl
::
OString
&
rShellName
,
sal_uInt16
nCount
,
SvSlotElementList
&
rSlotList
,
SvSlotElementList
&
rSlotList
,
SvIdlDataBase
&
rBase
,
SvIdlDataBase
&
rBase
,
SvStream
&
rOutStm
);
SvStream
&
rOutStm
);
...
...
idl/inc/slot.hxx
Dosyayı görüntüle @
12088021
...
@@ -78,11 +78,11 @@ class SvMetaSlot : public SvMetaAttribute
...
@@ -78,11 +78,11 @@ class SvMetaSlot : public SvMetaAttribute
SvMetaEnumValue
*
pEnumValue
;
SvMetaEnumValue
*
pEnumValue
;
SvString
aUnoName
;
SvString
aUnoName
;
void
WriteSlot
(
const
ByteString
&
rShellName
,
void
WriteSlot
(
const
rtl
::
OString
&
rShellName
,
sal_uInt16
nCount
,
const
ByteString
&
rSlotId
,
sal_uInt16
nCount
,
const
rtl
::
OString
&
rSlotId
,
SvSlotElementList
&
rList
,
SvSlotElementList
&
rList
,
size_t
nStart
,
size_t
nStart
,
const
ByteString
&
rPrefix
,
const
rtl
::
OString
&
rPrefix
,
SvIdlDataBase
&
rBase
,
SvStream
&
rOutStm
);
SvIdlDataBase
&
rBase
,
SvStream
&
rOutStm
);
virtual
void
Write
(
SvIdlDataBase
&
rBase
,
virtual
void
Write
(
SvIdlDataBase
&
rBase
,
SvStream
&
rOutStm
,
sal_uInt16
nTab
,
SvStream
&
rOutStm
,
sal_uInt16
nTab
,
...
@@ -192,12 +192,12 @@ public:
...
@@ -192,12 +192,12 @@ public:
SvMetaAttribute
*
GetMethod
()
const
;
SvMetaAttribute
*
GetMethod
()
const
;
SvMetaType
*
GetSlotType
()
const
;
SvMetaType
*
GetSlotType
()
const
;
sal_Bool
GetHasCoreId
()
const
;
sal_Bool
GetHasCoreId
()
const
;
const
ByteString
&
GetGroupId
()
const
;
const
rtl
::
OString
&
GetGroupId
()
const
;
const
ByteString
&
GetConfigId
()
const
;
const
rtl
::
OString
&
GetConfigId
()
const
;
const
ByteString
&
GetExecMethod
()
const
;
const
rtl
::
OString
&
GetExecMethod
()
const
;
const
ByteString
&
GetStateMethod
()
const
;
const
rtl
::
OString
&
GetStateMethod
()
const
;
const
ByteString
&
GetDefault
()
const
;
const
rtl
::
OString
&
GetDefault
()
const
;
const
ByteString
&
GetDisableFlags
()
const
;
const
rtl
::
OString
&
GetDisableFlags
()
const
;
sal_Bool
GetPseudoSlots
()
const
;
sal_Bool
GetPseudoSlots
()
const
;
sal_Bool
GetCachable
()
const
;
sal_Bool
GetCachable
()
const
;
sal_Bool
GetVolatile
()
const
;
sal_Bool
GetVolatile
()
const
;
...
@@ -214,8 +214,8 @@ public:
...
@@ -214,8 +214,8 @@ public:
sal_Bool
GetRecordAbsolute
()
const
;
sal_Bool
GetRecordAbsolute
()
const
;
sal_Bool
GetHasDialog
()
const
;
sal_Bool
GetHasDialog
()
const
;
const
ByteString
&
GetPseudoPrefix
()
const
;
const
rtl
::
OString
&
GetPseudoPrefix
()
const
;
const
ByteString
&
GetUnoName
()
const
;
const
rtl
::
OString
&
GetUnoName
()
const
;
sal_Bool
GetMenuConfig
()
const
;
sal_Bool
GetMenuConfig
()
const
;
sal_Bool
GetToolBoxConfig
()
const
;
sal_Bool
GetToolBoxConfig
()
const
;
sal_Bool
GetStatusBarConfig
()
const
;
sal_Bool
GetStatusBarConfig
()
const
;
...
@@ -247,14 +247,14 @@ public:
...
@@ -247,14 +247,14 @@ public:
SvStream
&
rOutStm
,
sal_uInt16
nTab
);
SvStream
&
rOutStm
,
sal_uInt16
nTab
);
virtual
void
Insert
(
SvSlotElementList
&
,
const
ByteString
&
rPrefix
,
virtual
void
Insert
(
SvSlotElementList
&
,
const
ByteString
&
rPrefix
,
SvIdlDataBase
&
);
SvIdlDataBase
&
);
void
WriteSlotStubs
(
const
ByteString
&
rShellName
,
void
WriteSlotStubs
(
const
rtl
::
OString
&
rShellName
,
ByteStringList
&
rList
,
ByteStringList
&
rList
,
SvStream
&
rOutStm
);
SvStream
&
rOutStm
);
sal_uInt16
WriteSlotMap
(
const
ByteString
&
rShellName
,
sal_uInt16
WriteSlotMap
(
const
rtl
::
OString
&
rShellName
,
sal_uInt16
nCount
,
sal_uInt16
nCount
,
SvSlotElementList
&
,
SvSlotElementList
&
,
size_t
nStart
,
size_t
nStart
,
const
ByteString
&
,
const
rtl
::
OString
&
,
SvIdlDataBase
&
rBase
,
SvIdlDataBase
&
rBase
,
SvStream
&
rOutStm
);
SvStream
&
rOutStm
);
sal_uInt16
WriteSlotParamArray
(
SvIdlDataBase
&
rBase
,
sal_uInt16
WriteSlotParamArray
(
SvIdlDataBase
&
rBase
,
...
...
idl/inc/types.hxx
Dosyayı görüntüle @
12088021
...
@@ -211,12 +211,12 @@ public:
...
@@ -211,12 +211,12 @@ public:
void
SetBasicName
(
const
ByteString
&
rName
)
void
SetBasicName
(
const
ByteString
&
rName
)
{
aBasicName
.
setString
(
rName
);
}
{
aBasicName
.
setString
(
rName
);
}
const
ByteString
&
GetBasicName
()
const
;
const
rtl
::
OString
&
GetBasicName
()
const
;
ByteString
GetBasicPostfix
()
const
;
rtl
::
OString
GetBasicPostfix
()
const
;
const
ByteString
&
GetSvName
()
const
;
const
rtl
::
OString
&
GetSvName
()
const
;
const
ByteString
&
GetSbxName
()
const
;
const
rtl
::
OString
&
GetSbxName
()
const
;
const
ByteString
&
GetOdlName
()
const
;
const
rtl
::
OString
&
GetOdlName
()
const
;
const
ByteString
&
GetCName
()
const
;
const
rtl
::
OString
&
GetCName
()
const
;
char
GetParserChar
()
const
{
return
cParserChar
;
}
char
GetParserChar
()
const
{
return
cParserChar
;
}
virtual
sal_Bool
SetName
(
const
ByteString
&
rName
,
SvIdlDataBase
*
=
NULL
);
virtual
sal_Bool
SetName
(
const
ByteString
&
rName
,
SvIdlDataBase
*
=
NULL
);
...
@@ -227,7 +227,7 @@ public:
...
@@ -227,7 +227,7 @@ public:
SvStream
&
rOutStm
,
sal_uInt16
nTab
);
SvStream
&
rOutStm
,
sal_uInt16
nTab
);
virtual
void
Write
(
SvIdlDataBase
&
rBase
,
SvStream
&
rOutStm
,
sal_uInt16
nTab
,
virtual
void
Write
(
SvIdlDataBase
&
rBase
,
SvStream
&
rOutStm
,
sal_uInt16
nTab
,
WriteType
,
WriteAttribute
=
0
);
WriteType
,
WriteAttribute
=
0
);
ByteString
GetCString
()
const
;
rtl
::
OString
GetCString
()
const
;
void
WriteSvIdlType
(
SvIdlDataBase
&
rBase
,
SvStream
&
rOutStm
,
sal_uInt16
nTab
);
void
WriteSvIdlType
(
SvIdlDataBase
&
rBase
,
SvStream
&
rOutStm
,
sal_uInt16
nTab
);
void
WriteOdlType
(
SvIdlDataBase
&
rBase
,
SvStream
&
rOutStm
,
sal_uInt16
nTab
);
void
WriteOdlType
(
SvIdlDataBase
&
rBase
,
SvStream
&
rOutStm
,
sal_uInt16
nTab
);
void
AppendParserString
(
ByteString
&
rString
);
void
AppendParserString
(
ByteString
&
rString
);
...
...
idl/source/objects/basobj.cxx
Dosyayı görüntüle @
12088021
...
@@ -389,7 +389,7 @@ void SvMetaName::WriteAttributes( SvIdlDataBase &, SvStream & rOutStm,
...
@@ -389,7 +389,7 @@ void SvMetaName::WriteAttributes( SvIdlDataBase &, SvStream & rOutStm,
if
(
GetHelpText
().
IsSet
()
)
if
(
GetHelpText
().
IsSet
()
)
{
{
WriteTab
(
rOutStm
,
nTab
);
WriteTab
(
rOutStm
,
nTab
);
rOutStm
<<
"helpstring(
\"
"
<<
GetHelpText
().
getString
().
GetBuffe
r
()
<<
"
\"
),"
<<
endl
;
rOutStm
<<
"helpstring(
\"
"
<<
GetHelpText
().
getString
().
getSt
r
()
<<
"
\"
),"
<<
endl
;
}
}
if
(
GetHelpContext
().
IsSet
()
)
if
(
GetHelpContext
().
IsSet
()
)
{
{
...
...
idl/source/objects/bastype.cxx
Dosyayı görüntüle @
12088021
...
@@ -175,18 +175,15 @@ sal_Bool SvBOOL::WriteSvIdl( SvStringHashEntry * pName, SvStream & rOutStm )
...
@@ -175,18 +175,15 @@ sal_Bool SvBOOL::WriteSvIdl( SvStringHashEntry * pName, SvStream & rOutStm )
return
sal_True
;
return
sal_True
;
}
}
Byte
String
SvBOOL
::
GetSvIdlString
(
SvStringHashEntry
*
pName
)
rtl
::
O
String
SvBOOL
::
GetSvIdlString
(
SvStringHashEntry
*
pName
)
{
{
if
(
nVal
)
if
(
nVal
)
return
pName
->
GetName
();
return
pName
->
GetName
();
else
{
ByteString
aTmp
(
pName
->
GetName
()
);
aTmp
+=
"(FALSE)"
;
return
aTmp
;
}
}
return
rtl
::
OStringBuffer
(
pName
->
GetName
()).
append
(
RTL_CONSTASCII_STRINGPARAM
(
"(FALSE)"
)).
makeStringAndClear
();
}
sal_Bool
SvIdentifier
::
ReadSvIdl
(
SvStringHashEntry
*
pName
,
SvTokenStream
&
rInStm
)
sal_Bool
SvIdentifier
::
ReadSvIdl
(
SvStringHashEntry
*
pName
,
SvTokenStream
&
rInStm
)
{
{
...
@@ -220,7 +217,7 @@ sal_Bool SvIdentifier::WriteSvIdl( SvStringHashEntry * pName,
...
@@ -220,7 +217,7 @@ sal_Bool SvIdentifier::WriteSvIdl( SvStringHashEntry * pName,
sal_uInt16
/*nTab */
)
sal_uInt16
/*nTab */
)
{
{
rOutStm
<<
pName
->
GetName
().
GetBuffer
()
<<
'('
;
rOutStm
<<
pName
->
GetName
().
GetBuffer
()
<<
'('
;
rOutStm
<<
getString
().
GetBuffe
r
()
<<
')'
;
rOutStm
<<
getString
().
getSt
r
()
<<
')'
;
return
sal_True
;
return
sal_True
;
}
}
...
@@ -335,7 +332,7 @@ sal_Bool SvString::WriteSvIdl( SvStringHashEntry * pName, SvStream & rOutStm,
...
@@ -335,7 +332,7 @@ sal_Bool SvString::WriteSvIdl( SvStringHashEntry * pName, SvStream & rOutStm,
sal_uInt16
/*nTab */
)
sal_uInt16
/*nTab */
)
{
{
rOutStm
<<
pName
->
GetName
().
GetBuffer
()
<<
"(
\"
"
;
rOutStm
<<
pName
->
GetName
().
GetBuffer
()
<<
"(
\"
"
;
rOutStm
<<
m_aStr
.
GetBuffe
r
()
<<
"
\"
)"
;
rOutStm
<<
m_aStr
.
getSt
r
()
<<
"
\"
)"
;
return
sal_True
;
return
sal_True
;
}
}
...
...
idl/source/objects/module.cxx
Dosyayı görüntüle @
12088021
...
@@ -141,7 +141,7 @@ void SvMetaModule::ReadAttributesSvIdl( SvIdlDataBase & rBase,
...
@@ -141,7 +141,7 @@ void SvMetaModule::ReadAttributesSvIdl( SvIdlDataBase & rBase,
if
(
aSlotIdFile
.
ReadSvIdl
(
SvHash_SlotIdFile
(),
rInStm
)
)
if
(
aSlotIdFile
.
ReadSvIdl
(
SvHash_SlotIdFile
(),
rInStm
)
)
{
{
sal_uInt32
nTokPos
=
rInStm
.
Tell
();
sal_uInt32
nTokPos
=
rInStm
.
Tell
();
if
(
!
rBase
.
ReadIdFile
(
String
::
CreateFromAscii
(
aSlotIdFile
.
getString
().
GetBuffe
r
()
)
)
)
if
(
!
rBase
.
ReadIdFile
(
String
::
CreateFromAscii
(
aSlotIdFile
.
getString
().
getSt
r
()
)
)
)
{
{
rtl
::
OStringBuffer
aStr
(
RTL_CONSTASCII_STRINGPARAM
(
"cannot read file: "
));
rtl
::
OStringBuffer
aStr
(
RTL_CONSTASCII_STRINGPARAM
(
"cannot read file: "
));
aStr
.
append
(
aSlotIdFile
.
getString
());
aStr
.
append
(
aSlotIdFile
.
getString
());
...
@@ -160,21 +160,21 @@ void SvMetaModule::WriteAttributesSvIdl( SvIdlDataBase & rBase,
...
@@ -160,21 +160,21 @@ void SvMetaModule::WriteAttributesSvIdl( SvIdlDataBase & rBase,
sal_uInt16
nTab
)
sal_uInt16
nTab
)
{
{
SvMetaExtern
::
WriteAttributesSvIdl
(
rBase
,
rOutStm
,
nTab
);
SvMetaExtern
::
WriteAttributesSvIdl
(
rBase
,
rOutStm
,
nTab
);
if
(
aTypeLibFile
.
getString
().
Len
()
||
aSlotIdFile
.
getString
().
Len
()
||
aTypeLibFile
.
getString
().
Len
()
)
if
(
!
aTypeLibFile
.
getString
().
isEmpty
()
||
!
aSlotIdFile
.
getString
().
isEmpty
()
||
!
aTypeLibFile
.
getString
().
isEmpty
()
)
{
{
if
(
aHelpFileName
.
getString
().
Len
()
)
if
(
!
aHelpFileName
.
getString
().
isEmpty
()
)
{
{
WriteTab
(
rOutStm
,
nTab
);
WriteTab
(
rOutStm
,
nTab
);
aHelpFileName
.
WriteSvIdl
(
SvHash_HelpFile
(),
rOutStm
,
nTab
+
1
);
aHelpFileName
.
WriteSvIdl
(
SvHash_HelpFile
(),
rOutStm
,
nTab
+
1
);
rOutStm
<<
';'
<<
endl
;
rOutStm
<<
';'
<<
endl
;
}
}
if
(
aSlotIdFile
.
getString
().
Len
()
)
if
(
!
aSlotIdFile
.
getString
().
isEmpty
()
)
{
{
WriteTab
(
rOutStm
,
nTab
);
WriteTab
(
rOutStm
,
nTab
);
aSlotIdFile
.
WriteSvIdl
(
SvHash_SlotIdFile
(),
rOutStm
,
nTab
+
1
);
aSlotIdFile
.
WriteSvIdl
(
SvHash_SlotIdFile
(),
rOutStm
,
nTab
+
1
);
rOutStm
<<
';'
<<
endl
;
rOutStm
<<
';'
<<
endl
;
}
}
if
(
aTypeLibFile
.
getString
().
Len
()
)
if
(
!
aTypeLibFile
.
getString
().
isEmpty
()
)
{
{
WriteTab
(
rOutStm
,
nTab
);
WriteTab
(
rOutStm
,
nTab
);
aTypeLibFile
.
WriteSvIdl
(
SvHash_TypeLibFile
(),
rOutStm
,
nTab
+
1
);
aTypeLibFile
.
WriteSvIdl
(
SvHash_TypeLibFile
(),
rOutStm
,
nTab
+
1
);
...
@@ -400,12 +400,12 @@ void SvMetaModule::WriteAttributes( SvIdlDataBase & rBase,
...
@@ -400,12 +400,12 @@ void SvMetaModule::WriteAttributes( SvIdlDataBase & rBase,
WriteType
nT
,
WriteAttribute
nA
)
WriteType
nT
,
WriteAttribute
nA
)
{
{
SvMetaExtern
::
WriteAttributes
(
rBase
,
rOutStm
,
nTab
,
nT
,
nA
);
SvMetaExtern
::
WriteAttributes
(
rBase
,
rOutStm
,
nTab
,
nT
,
nA
);
if
(
aHelpFileName
.
getString
().
Len
()
)
if
(
!
aHelpFileName
.
getString
().
isEmpty
()
)
{
{
WriteTab
(
rOutStm
,
nTab
);
WriteTab
(
rOutStm
,
nTab
);
rOutStm
<<
"// class SvMetaModule"
<<
endl
;
rOutStm
<<
"// class SvMetaModule"
<<
endl
;
WriteTab
(
rOutStm
,
nTab
);
WriteTab
(
rOutStm
,
nTab
);
rOutStm
<<
"helpfile(
\"
"
<<
aHelpFileName
.
getString
().
GetBuffe
r
()
<<
"
\"
);"
<<
endl
;
rOutStm
<<
"helpfile(
\"
"
<<
aHelpFileName
.
getString
().
getSt
r
()
<<
"
\"
);"
<<
endl
;
}
}
}
}
...
@@ -417,15 +417,15 @@ void SvMetaModule::Write( SvIdlDataBase & rBase, SvStream & rOutStm,
...
@@ -417,15 +417,15 @@ void SvMetaModule::Write( SvIdlDataBase & rBase, SvStream & rOutStm,
{
{
case
WRITE_ODL
:
case
WRITE_ODL
:
{
{
if
(
aSlotIdFile
.
getString
().
Len
()
)
if
(
!
aSlotIdFile
.
getString
().
isEmpty
()
)
{
{
WriteTab
(
rOutStm
,
nTab
);
WriteTab
(
rOutStm
,
nTab
);
rOutStm
<<
"#include
\"
"
<<
aSlotIdFile
.
getString
().
GetBuffe
r
()
<<
'"'
<<
endl
<<
endl
;
rOutStm
<<
"#include
\"
"
<<
aSlotIdFile
.
getString
().
getSt
r
()
<<
'"'
<<
endl
<<
endl
;
}
}
SvMetaExtern
::
Write
(
rBase
,
rOutStm
,
nTab
,
nT
,
nA
);
SvMetaExtern
::
Write
(
rBase
,
rOutStm
,
nTab
,
nT
,
nA
);
rOutStm
<<
endl
;
rOutStm
<<
endl
;
WriteTab
(
rOutStm
,
nTab
);
WriteTab
(
rOutStm
,
nTab
);
rOutStm
<<
"library "
<<
GetName
().
getString
().
GetBuffe
r
()
<<
endl
;
rOutStm
<<
"library "
<<
GetName
().
getString
().
getSt
r
()
<<
endl
;
WriteTab
(
rOutStm
,
nTab
);
WriteTab
(
rOutStm
,
nTab
);
rOutStm
<<
'{'
<<
endl
;
rOutStm
<<
'{'
<<
endl
;
WriteTab
(
rOutStm
,
nTab
);
WriteTab
(
rOutStm
,
nTab
);
...
@@ -450,7 +450,7 @@ void SvMetaModule::Write( SvIdlDataBase & rBase, SvStream & rOutStm,
...
@@ -450,7 +450,7 @@ void SvMetaModule::Write( SvIdlDataBase & rBase, SvStream & rOutStm,
case
WRITE_DOCU
:
case
WRITE_DOCU
:
{
{
rOutStm
<<
"SvIDL interface documentation"
<<
endl
<<
endl
;
rOutStm
<<
"SvIDL interface documentation"
<<
endl
<<
endl
;
rOutStm
<<
"<MODULE>"
<<
endl
<<
GetName
().
getString
().
GetBuffe
r
()
<<
endl
;
rOutStm
<<
"<MODULE>"
<<
endl
<<
GetName
().
getString
().
getSt
r
()
<<
endl
;
WriteDescription
(
rOutStm
);
WriteDescription
(
rOutStm
);
rOutStm
<<
"</MODULE>"
<<
endl
<<
endl
;
rOutStm
<<
"</MODULE>"
<<
endl
<<
endl
;
...
@@ -460,10 +460,10 @@ void SvMetaModule::Write( SvIdlDataBase & rBase, SvStream & rOutStm,
...
@@ -460,10 +460,10 @@ void SvMetaModule::Write( SvIdlDataBase & rBase, SvStream & rOutStm,
SvMetaClass
*
pClass
=
aClassList
.
GetObject
(
n
);
SvMetaClass
*
pClass
=
aClassList
.
GetObject
(
n
);
if
(
!
pClass
->
IsShell
()
)
if
(
!
pClass
->
IsShell
()
)
{
{
rOutStm
<<
pClass
->
GetName
().
getString
().
GetBuffe
r
();
rOutStm
<<
pClass
->
GetName
().
getString
().
getSt
r
();
SvMetaClass
*
pSC
=
pClass
->
GetSuperClass
();
SvMetaClass
*
pSC
=
pClass
->
GetSuperClass
();
if
(
pSC
)
if
(
pSC
)
rOutStm
<<
" : "
<<
pSC
->
GetName
().
getString
().
GetBuffe
r
();
rOutStm
<<
" : "
<<
pSC
->
GetName
().
getString
().
getSt
r
();
// imported classes
// imported classes
const
SvClassElementMemberList
&
rClassList
=
pClass
->
GetClassList
();
const
SvClassElementMemberList
&
rClassList
=
pClass
->
GetClassList
();
...
@@ -471,11 +471,11 @@ void SvMetaModule::Write( SvIdlDataBase & rBase, SvStream & rOutStm,
...
@@ -471,11 +471,11 @@ void SvMetaModule::Write( SvIdlDataBase & rBase, SvStream & rOutStm,
{
{
rOutStm
<<
" ( "
;
rOutStm
<<
" ( "
;
for
(
sal_uLong
m
=
0
;
m
<
rClassList
.
Count
();
m
++
)
for
(
sal_uLong
m
=
0
;
m
<
rClassList
.
Count
();
++
m
)
{
{
SvClassElement
*
pEle
=
rClassList
.
GetObject
(
m
);
SvClassElement
*
pEle
=
rClassList
.
GetObject
(
m
);
SvMetaClass
*
pCl
=
pEle
->
GetClass
();
SvMetaClass
*
pCl
=
pEle
->
GetClass
();
rOutStm
<<
pCl
->
GetName
().
getString
().
GetBuffe
r
();
rOutStm
<<
pCl
->
GetName
().
getString
().
getSt
r
();
if
(
m
+
1
==
rClassList
.
Count
()
)
if
(
m
+
1
==
rClassList
.
Count
()
)
rOutStm
<<
" )"
;
rOutStm
<<
" )"
;
else
else
...
@@ -510,8 +510,8 @@ void SvMetaModule::Write( SvIdlDataBase & rBase, SvStream & rOutStm,
...
@@ -510,8 +510,8 @@ void SvMetaModule::Write( SvIdlDataBase & rBase, SvStream & rOutStm,
void
SvMetaModule
::
WriteSrc
(
SvIdlDataBase
&
rBase
,
SvStream
&
rOutStm
,
void
SvMetaModule
::
WriteSrc
(
SvIdlDataBase
&
rBase
,
SvStream
&
rOutStm
,
Table
*
pTable
)
Table
*
pTable
)
{
{
if
(
aSlotIdFile
.
getString
().
Len
()
)
if
(
!
aSlotIdFile
.
getString
().
isEmpty
()
)
rOutStm
<<
"//#include <"
<<
aSlotIdFile
.
getString
().
GetBuffe
r
()
<<
'>'
<<
endl
;
rOutStm
<<
"//#include <"
<<
aSlotIdFile
.
getString
().
getSt
r
()
<<
'>'
<<
endl
;
for
(
sal_uLong
n
=
0
;
n
<
aClassList
.
Count
();
n
++
)
for
(
sal_uLong
n
=
0
;
n
<
aClassList
.
Count
();
n
++
)
{
{
aClassList
.
GetObject
(
n
)
->
WriteSrc
(
rBase
,
rOutStm
,
pTable
);
aClassList
.
GetObject
(
n
)
->
WriteSrc
(
rBase
,
rOutStm
,
pTable
);
...
...
idl/source/objects/object.cxx
Dosyayı görüntüle @
12088021
...
@@ -67,7 +67,7 @@ void SvClassElement::Save( SvPersistStream & rStm )
...
@@ -67,7 +67,7 @@ void SvClassElement::Save( SvPersistStream & rStm )
// create mask
// create mask
sal_uInt8
nMask
=
0
;
sal_uInt8
nMask
=
0
;
if
(
aAutomation
.
IsSet
()
)
nMask
|=
0x1
;
if
(
aAutomation
.
IsSet
()
)
nMask
|=
0x1
;
if
(
aPrefix
.
Len
()
)
nMask
|=
0x2
;
if
(
!
aPrefix
.
isEmpty
()
)
nMask
|=
0x2
;
if
(
xClass
.
Is
()
)
nMask
|=
0x4
;
if
(
xClass
.
Is
()
)
nMask
|=
0x4
;
// write data
// write data
...
@@ -276,12 +276,12 @@ void SvMetaClass::WriteContextSvIdl
...
@@ -276,12 +276,12 @@ void SvMetaClass::WriteContextSvIdl
SvClassElement
*
pEle
=
aClassList
.
GetObject
(
n
);
SvClassElement
*
pEle
=
aClassList
.
GetObject
(
n
);
WriteTab
(
rOutStm
,
nTab
);
WriteTab
(
rOutStm
,
nTab
);
rOutStm
<<
SvHash_import
()
->
GetName
().
GetBuffer
()
<<
' '
rOutStm
<<
SvHash_import
()
->
GetName
().
GetBuffer
()
<<
' '
<<
pEle
->
GetPrefix
().
GetBuffe
r
();
<<
pEle
->
GetPrefix
().
getSt
r
();
if
(
pEle
->
GetAutomation
()
)
if
(
pEle
->
GetAutomation
()
)
rOutStm
<<
" [ "
<<
SvHash_Automation
()
->
GetName
().
GetBuffer
()
rOutStm
<<
" [ "
<<
SvHash_Automation
()
->
GetName
().
GetBuffer
()
<<
" ]"
;
<<
" ]"
;
if
(
pEle
->
GetPrefix
().
Len
()
)
if
(
!
pEle
->
GetPrefix
().
isEmpty
()
)
rOutStm
<<
' '
<<
pEle
->
GetPrefix
().
GetBuffe
r
();
rOutStm
<<
' '
<<
pEle
->
GetPrefix
().
getSt
r
();
rOutStm
<<
';'
<<
endl
;
rOutStm
<<
';'
<<
endl
;
}
}
}
}
...
@@ -322,7 +322,7 @@ sal_Bool SvMetaClass::TestAttribute( SvIdlDataBase & rBase, SvTokenStream & rInS
...
@@ -322,7 +322,7 @@ sal_Bool SvMetaClass::TestAttribute( SvIdlDataBase & rBase, SvTokenStream & rInS
if
(
!
rAttr
.
GetRef
()
&&
rAttr
.
IsA
(
TYPE
(
SvMetaSlot
)
)
)
if
(
!
rAttr
.
GetRef
()
&&
rAttr
.
IsA
(
TYPE
(
SvMetaSlot
)
)
)
{
{
OSL_FAIL
(
"Neuer Slot : "
);
OSL_FAIL
(
"Neuer Slot : "
);
OSL_FAIL
(
rAttr
.
GetSlotId
().
getString
().
GetBuffe
r
()
);
OSL_FAIL
(
rAttr
.
GetSlotId
().
getString
().
getSt
r
()
);
}
}
for
(
sal_uLong
n
=
0
;
n
<
aAttrList
.
Count
();
n
++
)
for
(
sal_uLong
n
=
0
;
n
<
aAttrList
.
Count
();
n
++
)
...
@@ -334,9 +334,9 @@ sal_Bool SvMetaClass::TestAttribute( SvIdlDataBase & rBase, SvTokenStream & rInS
...
@@ -334,9 +334,9 @@ sal_Bool SvMetaClass::TestAttribute( SvIdlDataBase & rBase, SvTokenStream & rInS
if
(
pS
->
GetSlotId
().
GetValue
()
!=
rAttr
.
GetSlotId
().
GetValue
()
)
if
(
pS
->
GetSlotId
().
GetValue
()
!=
rAttr
.
GetSlotId
().
GetValue
()
)
{
{
OSL_FAIL
(
"Gleicher Name in MetaClass : "
);
OSL_FAIL
(
"Gleicher Name in MetaClass : "
);
OSL_FAIL
(
pS
->
GetName
().
getString
().
GetBuffe
r
()
);
OSL_FAIL
(
pS
->
GetName
().
getString
().
getSt
r
()
);
OSL_FAIL
(
pS
->
GetSlotId
().
getString
().
GetBuffe
r
()
);
OSL_FAIL
(
pS
->
GetSlotId
().
getString
().
getSt
r
()
);
OSL_FAIL
(
rAttr
.
GetSlotId
().
getString
().
GetBuffe
r
()
);
OSL_FAIL
(
rAttr
.
GetSlotId
().
getString
().
getSt
r
()
);
rtl
::
OStringBuffer
aStr
(
RTL_CONSTASCII_STRINGPARAM
(
"Attribute's "
));
rtl
::
OStringBuffer
aStr
(
RTL_CONSTASCII_STRINGPARAM
(
"Attribute's "
));
aStr
.
append
(
pS
->
GetName
().
getString
());
aStr
.
append
(
pS
->
GetName
().
getString
());
...
@@ -355,8 +355,8 @@ sal_Bool SvMetaClass::TestAttribute( SvIdlDataBase & rBase, SvTokenStream & rInS
...
@@ -355,8 +355,8 @@ sal_Bool SvMetaClass::TestAttribute( SvIdlDataBase & rBase, SvTokenStream & rInS
OSL_FAIL
(
"Gleiche Id in MetaClass : "
);
OSL_FAIL
(
"Gleiche Id in MetaClass : "
);
OSL_FAIL
(
rtl
::
OString
::
valueOf
(
static_cast
<
sal_Int32
>
(
OSL_FAIL
(
rtl
::
OString
::
valueOf
(
static_cast
<
sal_Int32
>
(
pS
->
GetSlotId
().
GetValue
())).
getStr
());
pS
->
GetSlotId
().
GetValue
())).
getStr
());
OSL_FAIL
(
pS
->
GetSlotId
().
getString
().
GetBuffe
r
()
);
OSL_FAIL
(
pS
->
GetSlotId
().
getString
().
getSt
r
()
);
OSL_FAIL
(
rAttr
.
GetSlotId
().
getString
().
GetBuffe
r
()
);
OSL_FAIL
(
rAttr
.
GetSlotId
().
getString
().
getSt
r
()
);
rtl
::
OStringBuffer
aStr
(
RTL_CONSTASCII_STRINGPARAM
(
"Attribute "
));
rtl
::
OStringBuffer
aStr
(
RTL_CONSTASCII_STRINGPARAM
(
"Attribute "
));
aStr
.
append
(
pS
->
GetName
().
getString
());
aStr
.
append
(
pS
->
GetName
().
getString
());
...
@@ -380,7 +380,7 @@ void SvMetaClass::WriteSvIdl( SvIdlDataBase & rBase, SvStream & rOutStm,
...
@@ -380,7 +380,7 @@ void SvMetaClass::WriteSvIdl( SvIdlDataBase & rBase, SvStream & rOutStm,
{
{
WriteHeaderSvIdl
(
rBase
,
rOutStm
,
nTab
);
WriteHeaderSvIdl
(
rBase
,
rOutStm
,
nTab
);
if
(
aSuperClass
.
Is
()
)
if
(
aSuperClass
.
Is
()
)
rOutStm
<<
" : "
<<
aSuperClass
->
GetName
().
getString
().
GetBuffe
r
();
rOutStm
<<
" : "
<<
aSuperClass
->
GetName
().
getString
().
getSt
r
();
rOutStm
<<
endl
;
rOutStm
<<
endl
;
SvMetaName
::
WriteSvIdl
(
rBase
,
rOutStm
,
nTab
);
SvMetaName
::
WriteSvIdl
(
rBase
,
rOutStm
,
nTab
);
rOutStm
<<
endl
;
rOutStm
<<
endl
;
...
@@ -407,7 +407,7 @@ void SvMetaClass::Write( SvIdlDataBase & rBase, SvStream & rOutStm,
...
@@ -407,7 +407,7 @@ void SvMetaClass::Write( SvIdlDataBase & rBase, SvStream & rOutStm,
case
WRITE_DOCU
:
case
WRITE_DOCU
:
{
{
rOutStm
<<
"<INTERFACE>"
<<
endl
rOutStm
<<
"<INTERFACE>"
<<
endl
<<
GetName
().
getString
().
GetBuffe
r
();
<<
GetName
().
getString
().
getSt
r
();
if
(
GetAutomation
()
)
if
(
GetAutomation
()
)
rOutStm
<<
" ( Automation ) "
;
rOutStm
<<
" ( Automation ) "
;
rOutStm
<<
endl
;
rOutStm
<<
endl
;
...
@@ -451,7 +451,7 @@ sal_uInt16 SvMetaClass::WriteSlotParamArray( SvIdlDataBase & rBase,
...
@@ -451,7 +451,7 @@ sal_uInt16 SvMetaClass::WriteSlotParamArray( SvIdlDataBase & rBase,
return
nCount
;
return
nCount
;
}
}
sal_uInt16
SvMetaClass
::
WriteSlots
(
const
ByteString
&
rShellName
,
sal_uInt16
SvMetaClass
::
WriteSlots
(
const
rtl
::
OString
&
rShellName
,
sal_uInt16
nCount
,
SvSlotElementList
&
rSlotList
,
sal_uInt16
nCount
,
SvSlotElementList
&
rSlotList
,
SvIdlDataBase
&
rBase
,
SvIdlDataBase
&
rBase
,
SvStream
&
rOutStm
)
SvStream
&
rOutStm
)
...
@@ -514,7 +514,7 @@ void SvMetaClass::InsertSlots( SvSlotElementList& rList, std::vector<sal_uLong>&
...
@@ -514,7 +514,7 @@ void SvMetaClass::InsertSlots( SvSlotElementList& rList, std::vector<sal_uLong>&
SvClassElement
*
pEle
=
aClassList
.
GetObject
(
n
);
SvClassElement
*
pEle
=
aClassList
.
GetObject
(
n
);
SvMetaClass
*
pCl
=
pEle
->
GetClass
();
SvMetaClass
*
pCl
=
pEle
->
GetClass
();
rtl
::
OStringBuffer
rPre
(
rPrefix
);
rtl
::
OStringBuffer
rPre
(
rPrefix
);
if
(
rPre
.
getLength
()
&&
pEle
->
GetPrefix
().
Len
()
)
if
(
rPre
.
getLength
()
&&
pEle
->
GetPrefix
().
getLength
()
)
rPre
.
append
(
'.'
);
rPre
.
append
(
'.'
);
rPre
.
append
(
pEle
->
GetPrefix
());
rPre
.
append
(
pEle
->
GetPrefix
());
...
@@ -553,7 +553,7 @@ void SvMetaClass::FillClasses( SvMetaClassList & rList )
...
@@ -553,7 +553,7 @@ void SvMetaClass::FillClasses( SvMetaClassList & rList )
}
}
void
SvMetaClass
::
WriteSlotStubs
(
const
ByteString
&
rShellName
,
void
SvMetaClass
::
WriteSlotStubs
(
const
rtl
::
OString
&
rShellName
,
SvSlotElementList
&
rSlotList
,
SvSlotElementList
&
rSlotList
,
ByteStringList
&
rList
,
ByteStringList
&
rList
,
SvStream
&
rOutStm
)
SvStream
&
rOutStm
)
...
@@ -571,10 +571,10 @@ void SvMetaClass::WriteSfx( SvIdlDataBase & rBase, SvStream & rOutStm )
...
@@ -571,10 +571,10 @@ void SvMetaClass::WriteSfx( SvIdlDataBase & rBase, SvStream & rOutStm )
{
{
WriteStars
(
rOutStm
);
WriteStars
(
rOutStm
);
// define class
// define class
rOutStm
<<
"#ifdef "
<<
GetName
().
getString
().
GetBuffe
r
()
<<
endl
;
rOutStm
<<
"#ifdef "
<<
GetName
().
getString
().
getSt
r
()
<<
endl
;
rOutStm
<<
"#undef ShellClass"
<<
endl
;
rOutStm
<<
"#undef ShellClass"
<<
endl
;
rOutStm
<<
"#undef "
<<
GetName
().
getString
().
GetBuffe
r
()
<<
endl
;
rOutStm
<<
"#undef "
<<
GetName
().
getString
().
getSt
r
()
<<
endl
;
rOutStm
<<
"#define ShellClass "
<<
GetName
().
getString
().
GetBuffe
r
()
<<
endl
;
rOutStm
<<
"#define ShellClass "
<<
GetName
().
getString
().
getSt
r
()
<<
endl
;
// no slotmaps get written for interfaces
// no slotmaps get written for interfaces
if
(
!
IsShell
()
)
if
(
!
IsShell
()
)
...
@@ -583,7 +583,7 @@ void SvMetaClass::WriteSfx( SvIdlDataBase & rBase, SvStream & rOutStm )
...
@@ -583,7 +583,7 @@ void SvMetaClass::WriteSfx( SvIdlDataBase & rBase, SvStream & rOutStm )
return
;
return
;
}
}
// write parameter array
// write parameter array
rOutStm
<<
"SFX_ARGUMENTMAP("
<<
GetName
().
getString
().
GetBuffe
r
()
<<
')'
<<
endl
rOutStm
<<
"SFX_ARGUMENTMAP("
<<
GetName
().
getString
().
getSt
r
()
<<
')'
<<
endl
<<
'{'
<<
endl
;
<<
'{'
<<
endl
;
std
::
vector
<
sal_uLong
>
aSuperList
;
std
::
vector
<
sal_uLong
>
aSuperList
;
...
@@ -620,7 +620,7 @@ void SvMetaClass::WriteSfx( SvIdlDataBase & rBase, SvStream & rOutStm )
...
@@ -620,7 +620,7 @@ void SvMetaClass::WriteSfx( SvIdlDataBase & rBase, SvStream & rOutStm )
rOutStm
<<
endl
;
rOutStm
<<
endl
;
// write slotmap
// write slotmap
rOutStm
<<
"SFX_SLOTMAP_ARG("
<<
GetName
().
getString
().
GetBuffe
r
()
<<
')'
<<
endl
rOutStm
<<
"SFX_SLOTMAP_ARG("
<<
GetName
().
getString
().
getSt
r
()
<<
')'
<<
endl
<<
'{'
<<
endl
;
<<
'{'
<<
endl
;
// write all attributes
// write all attributes
...
@@ -631,7 +631,7 @@ void SvMetaClass::WriteSfx( SvIdlDataBase & rBase, SvStream & rOutStm )
...
@@ -631,7 +631,7 @@ void SvMetaClass::WriteSfx( SvIdlDataBase & rBase, SvStream & rOutStm )
{
{
// at least one dummy
// at least one dummy
WriteTab
(
rOutStm
,
1
);
WriteTab
(
rOutStm
,
1
);
rOutStm
<<
"SFX_SLOT_ARG("
<<
GetName
().
getString
().
GetBuffe
r
()
rOutStm
<<
"SFX_SLOT_ARG("
<<
GetName
().
getString
().
getSt
r
()
<<
", 0, 0, "
<<
", 0, 0, "
<<
"SFX_STUB_PTR_EXEC_NONE,"
<<
"SFX_STUB_PTR_EXEC_NONE,"
<<
"SFX_STUB_PTR_STATE_NONE,"
<<
"SFX_STUB_PTR_STATE_NONE,"
...
@@ -679,7 +679,7 @@ void SvMetaClass::WriteHxx( SvIdlDataBase &, SvStream & rOutStm, sal_uInt16 )
...
@@ -679,7 +679,7 @@ void SvMetaClass::WriteHxx( SvIdlDataBase &, SvStream & rOutStm, sal_uInt16 )
const
char
*
pSup
=
aSuperName
.
getStr
();
const
char
*
pSup
=
aSuperName
.
getStr
();
rOutStm
rOutStm
<<
"class "
<<
GetSvName
().
GetBuffe
r
()
<<
"class "
<<
GetSvName
().
getSt
r
()
<<
": public "
<<
pSup
<<
endl
<<
": public "
<<
pSup
<<
endl
<<
'{'
<<
endl
<<
'{'
<<
endl
<<
"protected:"
<<
endl
<<
"protected:"
<<
endl
...
@@ -732,7 +732,7 @@ void SvMetaClass::WriteCxx( SvIdlDataBase &, SvStream & rOutStm, sal_uInt16 )
...
@@ -732,7 +732,7 @@ void SvMetaClass::WriteCxx( SvIdlDataBase &, SvStream & rOutStm, sal_uInt16 )
<<
"
\t
sal_uInt16 * pMajor,"
<<
endl
<<
"
\t
sal_uInt16 * pMajor,"
<<
endl
<<
"
\t
sal_uInt16 * pMinor ) const"
<<
endl
;
<<
"
\t
sal_uInt16 * pMinor ) const"
<<
endl
;
rOutStm
<<
'{'
<<
endl
rOutStm
<<
'{'
<<
endl
<<
"
\t
*pName =
\"
"
<<
pMod
->
GetTypeLibFileName
().
GetBuffe
r
()
<<
"
\"
;"
<<
endl
<<
"
\t
*pName =
\"
"
<<
pMod
->
GetTypeLibFileName
().
getSt
r
()
<<
"
\"
;"
<<
endl
<<
"
\t
*pMajor = "
<<
"
\t
*pMajor = "
<<
rtl
::
OString
::
valueOf
(
static_cast
<
sal_Int32
>
(
pMod
->
GetVersion
().
GetMajorVersion
())).
getStr
()
<<
rtl
::
OString
::
valueOf
(
static_cast
<
sal_Int32
>
(
pMod
->
GetVersion
().
GetMajorVersion
())).
getStr
()
<<
';'
<<
endl
<<
';'
<<
endl
...
...
idl/source/objects/slot.cxx
Dosyayı görüntüle @
12088021
This diff is collapsed.
Click to expand it.
idl/source/objects/types.cxx
Dosyayı görüntüle @
12088021
This diff is collapsed.
Click to expand it.
idl/source/prj/command.cxx
Dosyayı görüntüle @
12088021
...
@@ -375,7 +375,7 @@ SvCommand::SvCommand( int argc, char ** argv )
...
@@ -375,7 +375,7 @@ SvCommand::SvCommand( int argc, char ** argv )
SvCommand
::~
SvCommand
()
SvCommand
::~
SvCommand
()
{
{
// release
Byte
String list
// release String list
for
(
size_t
i
=
0
,
n
=
aInFileList
.
size
();
i
<
n
;
++
i
)
for
(
size_t
i
=
0
,
n
=
aInFileList
.
size
();
i
<
n
;
++
i
)
delete
aInFileList
[
i
];
delete
aInFileList
[
i
];
aInFileList
.
clear
();
aInFileList
.
clear
();
...
...
idl/source/prj/database.cxx
Dosyayı görüntüle @
12088021
...
@@ -88,7 +88,7 @@ SvMetaTypeMemberList & SvIdlDataBase::GetTypeList()
...
@@ -88,7 +88,7 @@ SvMetaTypeMemberList & SvIdlDataBase::GetTypeList()
SvMetaModule
*
SvIdlDataBase
::
GetModule
(
const
rtl
::
OString
&
rName
)
SvMetaModule
*
SvIdlDataBase
::
GetModule
(
const
rtl
::
OString
&
rName
)
{
{
for
(
sal_uLong
n
=
0
;
n
<
aModuleList
.
Count
();
n
++
)
for
(
sal_uLong
n
=
0
;
n
<
aModuleList
.
Count
();
n
++
)
if
(
aModuleList
.
GetObject
(
n
)
->
GetName
().
getString
().
E
quals
(
rName
)
)
if
(
aModuleList
.
GetObject
(
n
)
->
GetName
().
getString
().
e
quals
(
rName
)
)
return
aModuleList
.
GetObject
(
n
);
return
aModuleList
.
GetObject
(
n
);
return
NULL
;
return
NULL
;
}
}
...
@@ -411,12 +411,12 @@ SvMetaType * SvIdlDataBase::ReadKnownType( SvTokenStream & rInStm )
...
@@ -411,12 +411,12 @@ SvMetaType * SvIdlDataBase::ReadKnownType( SvTokenStream & rInStm )
if
(
pTok
->
IsIdentifier
()
)
if
(
pTok
->
IsIdentifier
()
)
{
{
Byte
String
aName
=
pTok
->
GetString
();
rtl
::
O
String
aName
=
pTok
->
GetString
();
SvMetaTypeMemberList
&
rList
=
GetTypeList
();
SvMetaTypeMemberList
&
rList
=
GetTypeList
();
SvMetaType
*
pType
=
rList
.
First
();
SvMetaType
*
pType
=
rList
.
First
();
while
(
pType
)
while
(
pType
)
{
{
if
(
pType
->
GetName
().
getString
()
==
aName
)
if
(
pType
->
GetName
().
getString
()
.
equals
(
aName
)
)
break
;
break
;
pType
=
rList
.
Next
();
pType
=
rList
.
Next
();
}
}
...
@@ -485,7 +485,7 @@ SvMetaAttribute * SvIdlDataBase::ReadKnownAttr
...
@@ -485,7 +485,7 @@ SvMetaAttribute * SvIdlDataBase::ReadKnownAttr
for
(
sal_uLong
i
=
0
;
i
<
aAttrList
.
Count
();
i
++
)
for
(
sal_uLong
i
=
0
;
i
<
aAttrList
.
Count
();
i
++
)
{
{
SvMetaAttribute
*
pAttr
=
aAttrList
.
GetObject
(
i
);
SvMetaAttribute
*
pAttr
=
aAttrList
.
GetObject
(
i
);
if
(
pAttr
->
GetSlotId
().
getString
()
==
pTok
->
GetString
(
)
)
if
(
pAttr
->
GetSlotId
().
getString
()
.
equals
(
pTok
->
GetString
()
)
)
return
pAttr
;
return
pAttr
;
}
}
}
}
...
@@ -528,7 +528,7 @@ SvMetaClass * SvIdlDataBase::ReadKnownClass( SvTokenStream & rInStm )
...
@@ -528,7 +528,7 @@ SvMetaClass * SvIdlDataBase::ReadKnownClass( SvTokenStream & rInStm )
for
(
sal_uLong
n
=
0
;
n
<
aClassList
.
Count
();
n
++
)
for
(
sal_uLong
n
=
0
;
n
<
aClassList
.
Count
();
n
++
)
{
{
SvMetaClass
*
pClass
=
aClassList
.
GetObject
(
n
);
SvMetaClass
*
pClass
=
aClassList
.
GetObject
(
n
);
if
(
pClass
->
GetName
().
getString
()
==
pTok
->
GetString
(
)
)
if
(
pClass
->
GetName
().
getString
()
.
equals
(
pTok
->
GetString
()
)
)
return
pClass
;
return
pClass
;
}
}
...
...
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