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
ba4276ef
Kaydet (Commit)
ba4276ef
authored
Agu 31, 2015
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
loplugin:stringconstant: OUStringBuffer: appendAscii -> append
Change-Id: I349e1b9e3ea81c0684c6234497b6d44b47666b09
üst
9320b960
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
84 additions
and
84 deletions
+84
-84
sbunoobj.cxx
basic/source/classes/sbunoobj.cxx
+81
-81
methods.cxx
basic/source/runtime/methods.cxx
+3
-3
No files found.
basic/source/classes/sbunoobj.cxx
Dosyayı görüntüle @
ba4276ef
...
@@ -292,25 +292,25 @@ namespace
...
@@ -292,25 +292,25 @@ namespace
{
{
while
(
_nLevel
--
>
0
)
while
(
_nLevel
--
>
0
)
{
{
_inout_rBuffer
.
append
Ascii
(
" "
);
_inout_rBuffer
.
append
(
" "
);
}
}
}
}
}
}
void
implAppendExceptionMsg
(
OUStringBuffer
&
_inout_rBuffer
,
const
Exception
&
_e
,
const
OUString
&
_rExceptionType
,
sal_Int32
_nLevel
)
void
implAppendExceptionMsg
(
OUStringBuffer
&
_inout_rBuffer
,
const
Exception
&
_e
,
const
OUString
&
_rExceptionType
,
sal_Int32
_nLevel
)
{
{
_inout_rBuffer
.
append
Ascii
(
"
\n
"
);
_inout_rBuffer
.
append
(
"
\n
"
);
lcl_indent
(
_inout_rBuffer
,
_nLevel
);
lcl_indent
(
_inout_rBuffer
,
_nLevel
);
_inout_rBuffer
.
append
Ascii
(
"Type: "
);
_inout_rBuffer
.
append
(
"Type: "
);
if
(
_rExceptionType
.
isEmpty
()
)
if
(
_rExceptionType
.
isEmpty
()
)
_inout_rBuffer
.
append
Ascii
(
"Unknown"
);
_inout_rBuffer
.
append
(
"Unknown"
);
else
else
_inout_rBuffer
.
append
(
_rExceptionType
);
_inout_rBuffer
.
append
(
_rExceptionType
);
_inout_rBuffer
.
append
Ascii
(
"
\n
"
);
_inout_rBuffer
.
append
(
"
\n
"
);
lcl_indent
(
_inout_rBuffer
,
_nLevel
);
lcl_indent
(
_inout_rBuffer
,
_nLevel
);
_inout_rBuffer
.
append
Ascii
(
"Message: "
);
_inout_rBuffer
.
append
(
"Message: "
);
_inout_rBuffer
.
append
(
_e
.
Message
);
_inout_rBuffer
.
append
(
_e
.
Message
);
}
}
...
@@ -414,7 +414,7 @@ void implHandleWrappedTargetException( const Any& _rWrappedTargetException )
...
@@ -414,7 +414,7 @@ void implHandleWrappedTargetException( const Any& _rWrappedTargetException )
implAppendExceptionMsg
(
aMessageBuf
,
aWrapped
,
aExamine
.
getValueTypeName
(),
nLevel
);
implAppendExceptionMsg
(
aMessageBuf
,
aWrapped
,
aExamine
.
getValueTypeName
(),
nLevel
);
if
(
aWrapped
.
TargetException
.
getValueTypeClass
()
==
TypeClass_EXCEPTION
)
if
(
aWrapped
.
TargetException
.
getValueTypeClass
()
==
TypeClass_EXCEPTION
)
// there is a next chain element
// there is a next chain element
aMessageBuf
.
append
Ascii
(
"
\n
TargetException:"
);
aMessageBuf
.
append
(
"
\n
TargetException:"
);
// next round
// next round
aExamine
=
aWrapped
.
TargetException
;
aExamine
=
aWrapped
.
TargetException
;
...
@@ -1579,7 +1579,7 @@ OUString Impl_GetInterfaceInfo( const Reference< XInterface >& x, const Referenc
...
@@ -1579,7 +1579,7 @@ OUString Impl_GetInterfaceInfo( const Reference< XInterface >& x, const Referenc
OUStringBuffer
aRetStr
;
OUStringBuffer
aRetStr
;
for
(
sal_uInt16
i
=
0
;
i
<
nRekLevel
;
i
++
)
for
(
sal_uInt16
i
=
0
;
i
<
nRekLevel
;
i
++
)
aRetStr
.
append
Ascii
(
" "
);
aRetStr
.
append
(
" "
);
aRetStr
.
append
(
xClass
->
getName
()
);
aRetStr
.
append
(
xClass
->
getName
()
);
OUString
aClassName
=
xClass
->
getName
();
OUString
aClassName
=
xClass
->
getName
();
Type
aClassType
(
xClass
->
getTypeClass
(),
aClassName
.
getStr
()
);
Type
aClassType
(
xClass
->
getTypeClass
(),
aClassName
.
getStr
()
);
...
@@ -1587,12 +1587,12 @@ OUString Impl_GetInterfaceInfo( const Reference< XInterface >& x, const Referenc
...
@@ -1587,12 +1587,12 @@ OUString Impl_GetInterfaceInfo( const Reference< XInterface >& x, const Referenc
// checking if the interface is really supported
// checking if the interface is really supported
if
(
!
x
->
queryInterface
(
aClassType
).
hasValue
()
)
if
(
!
x
->
queryInterface
(
aClassType
).
hasValue
()
)
{
{
aRetStr
.
append
Ascii
(
" (ERROR: Not really supported!)
\n
"
);
aRetStr
.
append
(
" (ERROR: Not really supported!)
\n
"
);
}
}
// Are there super interfaces?
// Are there super interfaces?
else
else
{
{
aRetStr
.
append
Ascii
(
"
\n
"
);
aRetStr
.
append
(
"
\n
"
);
// get the super interfaces
// get the super interfaces
Sequence
<
Reference
<
XIdlClass
>
>
aSuperClassSeq
=
xClass
->
getSuperclasses
();
Sequence
<
Reference
<
XIdlClass
>
>
aSuperClassSeq
=
xClass
->
getSuperclasses
();
...
@@ -1641,11 +1641,11 @@ OUString getDbgObjectName( SbUnoObject* pUnoObj )
...
@@ -1641,11 +1641,11 @@ OUString getDbgObjectName( SbUnoObject* pUnoObj )
OUStringBuffer
aRet
;
OUStringBuffer
aRet
;
if
(
aName
.
getLength
()
>
20
)
if
(
aName
.
getLength
()
>
20
)
{
{
aRet
.
append
Ascii
(
"
\n
"
);
aRet
.
append
(
"
\n
"
);
}
}
aRet
.
append
Ascii
(
"
\"
"
);
aRet
.
append
(
"
\"
"
);
aRet
.
append
(
aName
);
aRet
.
append
(
aName
);
aRet
.
append
Ascii
(
"
\"
:"
);
aRet
.
append
(
"
\"
:"
);
return
aRet
.
makeStringAndClear
();
return
aRet
.
makeStringAndClear
();
}
}
...
@@ -1770,7 +1770,7 @@ OUString Impl_GetSupportedInterfaces( SbUnoObject* pUnoObj )
...
@@ -1770,7 +1770,7 @@ OUString Impl_GetSupportedInterfaces( SbUnoObject* pUnoObj )
if
(
eType
!=
TypeClass_INTERFACE
)
if
(
eType
!=
TypeClass_INTERFACE
)
{
{
aRet
.
appendAscii
(
ID_DBG_SUPPORTEDINTERFACES
);
aRet
.
appendAscii
(
ID_DBG_SUPPORTEDINTERFACES
);
aRet
.
append
Ascii
(
" not available.
\n
(TypeClass is not TypeClass_INTERFACE)
\n
"
);
aRet
.
append
(
" not available.
\n
(TypeClass is not TypeClass_INTERFACE)
\n
"
);
}
}
else
else
{
{
...
@@ -1779,9 +1779,9 @@ OUString Impl_GetSupportedInterfaces( SbUnoObject* pUnoObj )
...
@@ -1779,9 +1779,9 @@ OUString Impl_GetSupportedInterfaces( SbUnoObject* pUnoObj )
Reference
<
XTypeProvider
>
xTypeProvider
(
x
,
UNO_QUERY
);
Reference
<
XTypeProvider
>
xTypeProvider
(
x
,
UNO_QUERY
);
aRet
.
append
Ascii
(
"Supported interfaces by object "
);
aRet
.
append
(
"Supported interfaces by object "
);
aRet
.
append
(
getDbgObjectName
(
pUnoObj
)
);
aRet
.
append
(
getDbgObjectName
(
pUnoObj
)
);
aRet
.
append
Ascii
(
"
\n
"
);
aRet
.
append
(
"
\n
"
);
if
(
xTypeProvider
.
is
()
)
if
(
xTypeProvider
.
is
()
)
{
{
// get the interfaces of the implementation
// get the interfaces of the implementation
...
@@ -1802,9 +1802,9 @@ OUString Impl_GetSupportedInterfaces( SbUnoObject* pUnoObj )
...
@@ -1802,9 +1802,9 @@ OUString Impl_GetSupportedInterfaces( SbUnoObject* pUnoObj )
typelib_TypeDescription
*
pTD
=
0
;
typelib_TypeDescription
*
pTD
=
0
;
rType
.
getDescription
(
&
pTD
);
rType
.
getDescription
(
&
pTD
);
aRet
.
append
Ascii
(
"*** ERROR: No IdlClass for type
\"
"
);
aRet
.
append
(
"*** ERROR: No IdlClass for type
\"
"
);
aRet
.
append
(
pTD
->
pTypeName
);
aRet
.
append
(
pTD
->
pTypeName
);
aRet
.
append
Ascii
(
"
\"\n
*** Please check type library
\n
"
);
aRet
.
append
(
"
\"\n
*** Please check type library
\n
"
);
}
}
}
}
}
}
...
@@ -1820,40 +1820,40 @@ OUString Dbg_SbxDataType2String( SbxDataType eType )
...
@@ -1820,40 +1820,40 @@ OUString Dbg_SbxDataType2String( SbxDataType eType )
OUStringBuffer
aRet
;
OUStringBuffer
aRet
;
switch
(
+
eType
)
switch
(
+
eType
)
{
{
case
SbxEMPTY
:
aRet
.
append
Ascii
(
"SbxEMPTY"
);
break
;
case
SbxEMPTY
:
aRet
.
append
(
"SbxEMPTY"
);
break
;
case
SbxNULL
:
aRet
.
append
Ascii
(
"SbxNULL"
);
break
;
case
SbxNULL
:
aRet
.
append
(
"SbxNULL"
);
break
;
case
SbxINTEGER
:
aRet
.
append
Ascii
(
"SbxINTEGER"
);
break
;
case
SbxINTEGER
:
aRet
.
append
(
"SbxINTEGER"
);
break
;
case
SbxLONG
:
aRet
.
append
Ascii
(
"SbxLONG"
);
break
;
case
SbxLONG
:
aRet
.
append
(
"SbxLONG"
);
break
;
case
SbxSINGLE
:
aRet
.
append
Ascii
(
"SbxSINGLE"
);
break
;
case
SbxSINGLE
:
aRet
.
append
(
"SbxSINGLE"
);
break
;
case
SbxDOUBLE
:
aRet
.
append
Ascii
(
"SbxDOUBLE"
);
break
;
case
SbxDOUBLE
:
aRet
.
append
(
"SbxDOUBLE"
);
break
;
case
SbxCURRENCY
:
aRet
.
append
Ascii
(
"SbxCURRENCY"
);
break
;
case
SbxCURRENCY
:
aRet
.
append
(
"SbxCURRENCY"
);
break
;
case
SbxDECIMAL
:
aRet
.
append
Ascii
(
"SbxDECIMAL"
);
break
;
case
SbxDECIMAL
:
aRet
.
append
(
"SbxDECIMAL"
);
break
;
case
SbxDATE
:
aRet
.
append
Ascii
(
"SbxDATE"
);
break
;
case
SbxDATE
:
aRet
.
append
(
"SbxDATE"
);
break
;
case
SbxSTRING
:
aRet
.
append
Ascii
(
"SbxSTRING"
);
break
;
case
SbxSTRING
:
aRet
.
append
(
"SbxSTRING"
);
break
;
case
SbxOBJECT
:
aRet
.
append
Ascii
(
"SbxOBJECT"
);
break
;
case
SbxOBJECT
:
aRet
.
append
(
"SbxOBJECT"
);
break
;
case
SbxERROR
:
aRet
.
append
Ascii
(
"SbxERROR"
);
break
;
case
SbxERROR
:
aRet
.
append
(
"SbxERROR"
);
break
;
case
SbxBOOL
:
aRet
.
append
Ascii
(
"SbxBOOL"
);
break
;
case
SbxBOOL
:
aRet
.
append
(
"SbxBOOL"
);
break
;
case
SbxVARIANT
:
aRet
.
append
Ascii
(
"SbxVARIANT"
);
break
;
case
SbxVARIANT
:
aRet
.
append
(
"SbxVARIANT"
);
break
;
case
SbxDATAOBJECT
:
aRet
.
append
Ascii
(
"SbxDATAOBJECT"
);
break
;
case
SbxDATAOBJECT
:
aRet
.
append
(
"SbxDATAOBJECT"
);
break
;
case
SbxCHAR
:
aRet
.
append
Ascii
(
"SbxCHAR"
);
break
;
case
SbxCHAR
:
aRet
.
append
(
"SbxCHAR"
);
break
;
case
SbxBYTE
:
aRet
.
append
Ascii
(
"SbxBYTE"
);
break
;
case
SbxBYTE
:
aRet
.
append
(
"SbxBYTE"
);
break
;
case
SbxUSHORT
:
aRet
.
append
Ascii
(
"SbxUSHORT"
);
break
;
case
SbxUSHORT
:
aRet
.
append
(
"SbxUSHORT"
);
break
;
case
SbxULONG
:
aRet
.
append
Ascii
(
"SbxULONG"
);
break
;
case
SbxULONG
:
aRet
.
append
(
"SbxULONG"
);
break
;
case
SbxSALINT64
:
aRet
.
append
Ascii
(
"SbxINT64"
);
break
;
case
SbxSALINT64
:
aRet
.
append
(
"SbxINT64"
);
break
;
case
SbxSALUINT64
:
aRet
.
append
Ascii
(
"SbxUINT64"
);
break
;
case
SbxSALUINT64
:
aRet
.
append
(
"SbxUINT64"
);
break
;
case
SbxINT
:
aRet
.
append
Ascii
(
"SbxINT"
);
break
;
case
SbxINT
:
aRet
.
append
(
"SbxINT"
);
break
;
case
SbxUINT
:
aRet
.
append
Ascii
(
"SbxUINT"
);
break
;
case
SbxUINT
:
aRet
.
append
(
"SbxUINT"
);
break
;
case
SbxVOID
:
aRet
.
append
Ascii
(
"SbxVOID"
);
break
;
case
SbxVOID
:
aRet
.
append
(
"SbxVOID"
);
break
;
case
SbxHRESULT
:
aRet
.
append
Ascii
(
"SbxHRESULT"
);
break
;
case
SbxHRESULT
:
aRet
.
append
(
"SbxHRESULT"
);
break
;
case
SbxPOINTER
:
aRet
.
append
Ascii
(
"SbxPOINTER"
);
break
;
case
SbxPOINTER
:
aRet
.
append
(
"SbxPOINTER"
);
break
;
case
SbxDIMARRAY
:
aRet
.
append
Ascii
(
"SbxDIMARRAY"
);
break
;
case
SbxDIMARRAY
:
aRet
.
append
(
"SbxDIMARRAY"
);
break
;
case
SbxCARRAY
:
aRet
.
append
Ascii
(
"SbxCARRAY"
);
break
;
case
SbxCARRAY
:
aRet
.
append
(
"SbxCARRAY"
);
break
;
case
SbxUSERDEF
:
aRet
.
append
Ascii
(
"SbxUSERDEF"
);
break
;
case
SbxUSERDEF
:
aRet
.
append
(
"SbxUSERDEF"
);
break
;
case
SbxLPSTR
:
aRet
.
append
Ascii
(
"SbxLPSTR"
);
break
;
case
SbxLPSTR
:
aRet
.
append
(
"SbxLPSTR"
);
break
;
case
SbxLPWSTR
:
aRet
.
append
Ascii
(
"SbxLPWSTR"
);
break
;
case
SbxLPWSTR
:
aRet
.
append
(
"SbxLPWSTR"
);
break
;
case
SbxCoreSTRING
:
aRet
.
append
Ascii
(
"SbxCoreSTRING"
);
break
;
case
SbxCoreSTRING
:
aRet
.
append
(
"SbxCoreSTRING"
);
break
;
case
SbxOBJECT
|
SbxARRAY
:
aRet
.
append
Ascii
(
"SbxARRAY"
);
break
;
case
SbxOBJECT
|
SbxARRAY
:
aRet
.
append
(
"SbxARRAY"
);
break
;
default:
aRet
.
append
Ascii
(
"Unknown Sbx-Type!"
);
break
;
default:
aRet
.
append
(
"Unknown Sbx-Type!"
);
break
;
}
}
return
aRet
.
makeStringAndClear
();
return
aRet
.
makeStringAndClear
();
}
}
...
@@ -1862,7 +1862,7 @@ OUString Dbg_SbxDataType2String( SbxDataType eType )
...
@@ -1862,7 +1862,7 @@ OUString Dbg_SbxDataType2String( SbxDataType eType )
OUString
Impl_DumpProperties
(
SbUnoObject
*
pUnoObj
)
OUString
Impl_DumpProperties
(
SbUnoObject
*
pUnoObj
)
{
{
OUStringBuffer
aRet
;
OUStringBuffer
aRet
;
aRet
.
append
Ascii
(
"Properties of object "
);
aRet
.
append
(
"Properties of object "
);
aRet
.
append
(
getDbgObjectName
(
pUnoObj
)
);
aRet
.
append
(
getDbgObjectName
(
pUnoObj
)
);
// analyse the Uno-Infos to recognise the arrays
// analyse the Uno-Infos to recognise the arrays
...
@@ -1875,7 +1875,7 @@ OUString Impl_DumpProperties( SbUnoObject* pUnoObj )
...
@@ -1875,7 +1875,7 @@ OUString Impl_DumpProperties( SbUnoObject* pUnoObj )
}
}
if
(
!
xAccess
.
is
()
)
if
(
!
xAccess
.
is
()
)
{
{
aRet
.
append
Ascii
(
"
\n
Unknown, no introspection available
\n
"
);
aRet
.
append
(
"
\n
Unknown, no introspection available
\n
"
);
return
aRet
.
makeStringAndClear
();
return
aRet
.
makeStringAndClear
();
}
}
...
@@ -1893,7 +1893,7 @@ OUString Impl_DumpProperties( SbUnoObject* pUnoObj )
...
@@ -1893,7 +1893,7 @@ OUString Impl_DumpProperties( SbUnoObject* pUnoObj )
{
{
OUStringBuffer
aPropStr
;
OUStringBuffer
aPropStr
;
if
(
(
i
%
nPropsPerLine
)
==
0
)
if
(
(
i
%
nPropsPerLine
)
==
0
)
aPropStr
.
append
Ascii
(
"
\n
"
);
aPropStr
.
append
(
"
\n
"
);
// output the type and name
// output the type and name
// Is it in Uno a sequence?
// Is it in Uno a sequence?
...
@@ -1920,14 +1920,14 @@ OUString Impl_DumpProperties( SbUnoObject* pUnoObj )
...
@@ -1920,14 +1920,14 @@ OUString Impl_DumpProperties( SbUnoObject* pUnoObj )
}
}
aPropStr
.
append
(
Dbg_SbxDataType2String
(
eType
)
);
aPropStr
.
append
(
Dbg_SbxDataType2String
(
eType
)
);
if
(
bMaybeVoid
)
if
(
bMaybeVoid
)
aPropStr
.
append
Ascii
(
"/void"
);
aPropStr
.
append
(
"/void"
);
aPropStr
.
append
Ascii
(
" "
);
aPropStr
.
append
(
" "
);
aPropStr
.
append
(
pVar
->
GetName
()
);
aPropStr
.
append
(
pVar
->
GetName
()
);
if
(
i
==
nPropCount
-
1
)
if
(
i
==
nPropCount
-
1
)
aPropStr
.
append
Ascii
(
"
\n
"
);
aPropStr
.
append
(
"
\n
"
);
else
else
aPropStr
.
append
Ascii
(
"; "
);
aPropStr
.
append
(
"; "
);
aRet
.
append
(
aPropStr
.
makeStringAndClear
()
);
aRet
.
append
(
aPropStr
.
makeStringAndClear
()
);
}
}
...
@@ -1939,7 +1939,7 @@ OUString Impl_DumpProperties( SbUnoObject* pUnoObj )
...
@@ -1939,7 +1939,7 @@ OUString Impl_DumpProperties( SbUnoObject* pUnoObj )
OUString
Impl_DumpMethods
(
SbUnoObject
*
pUnoObj
)
OUString
Impl_DumpMethods
(
SbUnoObject
*
pUnoObj
)
{
{
OUStringBuffer
aRet
;
OUStringBuffer
aRet
;
aRet
.
append
Ascii
(
"Methods of object "
);
aRet
.
append
(
"Methods of object "
);
aRet
.
append
(
getDbgObjectName
(
pUnoObj
)
);
aRet
.
append
(
getDbgObjectName
(
pUnoObj
)
);
// XIntrospectionAccess, so that the types of the parameter could be outputed
// XIntrospectionAccess, so that the types of the parameter could be outputed
...
@@ -1952,7 +1952,7 @@ OUString Impl_DumpMethods( SbUnoObject* pUnoObj )
...
@@ -1952,7 +1952,7 @@ OUString Impl_DumpMethods( SbUnoObject* pUnoObj )
}
}
if
(
!
xAccess
.
is
()
)
if
(
!
xAccess
.
is
()
)
{
{
aRet
.
append
Ascii
(
"
\n
Unknown, no introspection available
\n
"
);
aRet
.
append
(
"
\n
Unknown, no introspection available
\n
"
);
return
aRet
.
makeStringAndClear
();
return
aRet
.
makeStringAndClear
();
}
}
Sequence
<
Reference
<
XIdlMethod
>
>
methods
=
xAccess
->
getMethods
Sequence
<
Reference
<
XIdlMethod
>
>
methods
=
xAccess
->
getMethods
...
@@ -1963,7 +1963,7 @@ OUString Impl_DumpMethods( SbUnoObject* pUnoObj )
...
@@ -1963,7 +1963,7 @@ OUString Impl_DumpMethods( SbUnoObject* pUnoObj )
sal_uInt16
nMethodCount
=
pMethods
->
Count
();
sal_uInt16
nMethodCount
=
pMethods
->
Count
();
if
(
!
nMethodCount
)
if
(
!
nMethodCount
)
{
{
aRet
.
append
Ascii
(
"
\n
No methods found
\n
"
);
aRet
.
append
(
"
\n
No methods found
\n
"
);
return
aRet
.
makeStringAndClear
();
return
aRet
.
makeStringAndClear
();
}
}
sal_uInt16
nPropsPerLine
=
1
+
nMethodCount
/
30
;
sal_uInt16
nPropsPerLine
=
1
+
nMethodCount
/
30
;
...
@@ -1973,7 +1973,7 @@ OUString Impl_DumpMethods( SbUnoObject* pUnoObj )
...
@@ -1973,7 +1973,7 @@ OUString Impl_DumpMethods( SbUnoObject* pUnoObj )
if
(
pVar
)
if
(
pVar
)
{
{
if
(
(
i
%
nPropsPerLine
)
==
0
)
if
(
(
i
%
nPropsPerLine
)
==
0
)
aRet
.
append
Ascii
(
"
\n
"
);
aRet
.
append
(
"
\n
"
);
// address the method
// address the method
const
Reference
<
XIdlMethod
>&
rxMethod
=
pUnoMethods
[
i
];
const
Reference
<
XIdlMethod
>&
rxMethod
=
pUnoMethods
[
i
];
...
@@ -1988,9 +1988,9 @@ OUString Impl_DumpMethods( SbUnoObject* pUnoObj )
...
@@ -1988,9 +1988,9 @@ OUString Impl_DumpMethods( SbUnoObject* pUnoObj )
}
}
// output the name and the type
// output the name and the type
aRet
.
append
(
Dbg_SbxDataType2String
(
eType
)
);
aRet
.
append
(
Dbg_SbxDataType2String
(
eType
)
);
aRet
.
append
Ascii
(
" "
);
aRet
.
append
(
" "
);
aRet
.
append
(
pVar
->
GetName
()
);
aRet
.
append
(
pVar
->
GetName
()
);
aRet
.
append
Ascii
(
" ( "
);
aRet
.
append
(
" ( "
);
// the get-method mustn't have a parameter
// the get-method mustn't have a parameter
Sequence
<
Reference
<
XIdlClass
>
>
aParamsSeq
=
rxMethod
->
getParameterTypes
();
Sequence
<
Reference
<
XIdlClass
>
>
aParamsSeq
=
rxMethod
->
getParameterTypes
();
...
@@ -2003,18 +2003,18 @@ OUString Impl_DumpMethods( SbUnoObject* pUnoObj )
...
@@ -2003,18 +2003,18 @@ OUString Impl_DumpMethods( SbUnoObject* pUnoObj )
{
{
aRet
.
append
(
Dbg_SbxDataType2String
(
unoToSbxType
(
pParams
[
j
]
)
)
);
aRet
.
append
(
Dbg_SbxDataType2String
(
unoToSbxType
(
pParams
[
j
]
)
)
);
if
(
j
<
nParamCount
-
1
)
if
(
j
<
nParamCount
-
1
)
aRet
.
append
Ascii
(
", "
);
aRet
.
append
(
", "
);
}
}
}
}
else
else
aRet
.
append
Ascii
(
"void"
);
aRet
.
append
(
"void"
);
aRet
.
append
Ascii
(
" ) "
);
aRet
.
append
(
" ) "
);
if
(
i
==
nMethodCount
-
1
)
if
(
i
==
nMethodCount
-
1
)
aRet
.
append
Ascii
(
"
\n
"
);
aRet
.
append
(
"
\n
"
);
else
else
aRet
.
append
Ascii
(
"; "
);
aRet
.
append
(
"; "
);
}
}
}
}
return
aRet
.
makeStringAndClear
();
return
aRet
.
makeStringAndClear
();
...
@@ -4942,7 +4942,7 @@ Any SbUnoStructRefObject::getUnoAny()
...
@@ -4942,7 +4942,7 @@ Any SbUnoStructRefObject::getUnoAny()
OUString
SbUnoStructRefObject
::
Impl_DumpProperties
()
OUString
SbUnoStructRefObject
::
Impl_DumpProperties
()
{
{
OUStringBuffer
aRet
;
OUStringBuffer
aRet
;
aRet
.
append
Ascii
(
"Properties of object "
);
aRet
.
append
(
"Properties of object "
);
aRet
.
append
(
getDbgObjectName
()
);
aRet
.
append
(
getDbgObjectName
()
);
sal_uInt16
nPropCount
=
pProps
->
Count
();
sal_uInt16
nPropCount
=
pProps
->
Count
();
...
@@ -4955,7 +4955,7 @@ OUString SbUnoStructRefObject::Impl_DumpProperties()
...
@@ -4955,7 +4955,7 @@ OUString SbUnoStructRefObject::Impl_DumpProperties()
OUStringBuffer
aPropStr
;
OUStringBuffer
aPropStr
;
if
(
(
i
%
nPropsPerLine
)
==
0
)
if
(
(
i
%
nPropsPerLine
)
==
0
)
{
{
aPropStr
.
append
Ascii
(
"
\n
"
);
aPropStr
.
append
(
"
\n
"
);
}
}
// output the type and name
// output the type and name
// Is it in Uno a sequence?
// Is it in Uno a sequence?
...
@@ -4978,16 +4978,16 @@ OUString SbUnoStructRefObject::Impl_DumpProperties()
...
@@ -4978,16 +4978,16 @@ OUString SbUnoStructRefObject::Impl_DumpProperties()
}
}
aPropStr
.
append
(
Dbg_SbxDataType2String
(
eType
)
);
aPropStr
.
append
(
Dbg_SbxDataType2String
(
eType
)
);
aPropStr
.
append
Ascii
(
" "
);
aPropStr
.
append
(
" "
);
aPropStr
.
append
(
pVar
->
GetName
()
);
aPropStr
.
append
(
pVar
->
GetName
()
);
if
(
i
==
nPropCount
-
1
)
if
(
i
==
nPropCount
-
1
)
{
{
aPropStr
.
append
Ascii
(
"
\n
"
);
aPropStr
.
append
(
"
\n
"
);
}
}
else
else
{
{
aPropStr
.
append
Ascii
(
"; "
);
aPropStr
.
append
(
"; "
);
}
}
aRet
.
append
(
aPropStr
.
makeStringAndClear
()
);
aRet
.
append
(
aPropStr
.
makeStringAndClear
()
);
}
}
...
@@ -5019,7 +5019,7 @@ void SbUnoStructRefObject::Notify( SfxBroadcaster& rBC, const SfxHint& rHint )
...
@@ -5019,7 +5019,7 @@ void SbUnoStructRefObject::Notify( SfxBroadcaster& rBC, const SfxHint& rHint )
{
{
OUStringBuffer
aRet
;
OUStringBuffer
aRet
;
aRet
.
appendAscii
(
ID_DBG_SUPPORTEDINTERFACES
);
aRet
.
appendAscii
(
ID_DBG_SUPPORTEDINTERFACES
);
aRet
.
append
Ascii
(
" not available.
\n
(TypeClass is not TypeClass_INTERFACE)
\n
"
);
aRet
.
append
(
" not available.
\n
(TypeClass is not TypeClass_INTERFACE)
\n
"
);
pVar
->
PutString
(
aRet
.
makeStringAndClear
()
);
pVar
->
PutString
(
aRet
.
makeStringAndClear
()
);
}
}
...
@@ -5037,9 +5037,9 @@ void SbUnoStructRefObject::Notify( SfxBroadcaster& rBC, const SfxHint& rHint )
...
@@ -5037,9 +5037,9 @@ void SbUnoStructRefObject::Notify( SfxBroadcaster& rBC, const SfxHint& rHint )
// by now all properties must be established
// by now all properties must be established
implCreateAll
();
implCreateAll
();
OUStringBuffer
aRet
;
OUStringBuffer
aRet
;
aRet
.
append
Ascii
(
"Methods of object "
);
aRet
.
append
(
"Methods of object "
);
aRet
.
append
(
getDbgObjectName
()
);
aRet
.
append
(
getDbgObjectName
()
);
aRet
.
append
Ascii
(
"
\n
No methods found
\n
"
);
aRet
.
append
(
"
\n
No methods found
\n
"
);
pVar
->
PutString
(
aRet
.
makeStringAndClear
()
);
pVar
->
PutString
(
aRet
.
makeStringAndClear
()
);
}
}
return
;
return
;
...
@@ -5100,11 +5100,11 @@ OUString SbUnoStructRefObject::getDbgObjectName()
...
@@ -5100,11 +5100,11 @@ OUString SbUnoStructRefObject::getDbgObjectName()
OUStringBuffer
aRet
;
OUStringBuffer
aRet
;
if
(
aName
.
getLength
()
>
20
)
if
(
aName
.
getLength
()
>
20
)
{
{
aRet
.
append
Ascii
(
"
\n
"
);
aRet
.
append
(
"
\n
"
);
}
}
aRet
.
append
Ascii
(
"
\"
"
);
aRet
.
append
(
"
\"
"
);
aRet
.
append
(
aName
);
aRet
.
append
(
aName
);
aRet
.
append
Ascii
(
"
\"
:"
);
aRet
.
append
(
"
\"
:"
);
return
aRet
.
makeStringAndClear
();
return
aRet
.
makeStringAndClear
();
}
}
...
...
basic/source/runtime/methods.cxx
Dosyayı görüntüle @
ba4276ef
...
@@ -4854,16 +4854,16 @@ RTLFUNC(Partition)
...
@@ -4854,16 +4854,16 @@ RTLFUNC(Partition)
// appending the leading spaces for the lowervalue
// appending the leading spaces for the lowervalue
for
(
sal_Int32
i
=
(
nLen
-
nLen1
)
;
i
>
0
;
--
i
)
for
(
sal_Int32
i
=
(
nLen
-
nLen1
)
;
i
>
0
;
--
i
)
{
{
aRetStr
.
append
Ascii
(
" "
);
aRetStr
.
append
(
" "
);
}
}
}
}
aRetStr
.
append
(
aLowerValue
).
append
Ascii
(
":"
);
aRetStr
.
append
(
aLowerValue
).
append
(
":"
);
if
(
nLen
>
nLen2
)
if
(
nLen
>
nLen2
)
{
{
// appending the leading spaces for the uppervalue
// appending the leading spaces for the uppervalue
for
(
sal_Int32
i
=
(
nLen
-
nLen2
)
;
i
>
0
;
--
i
)
for
(
sal_Int32
i
=
(
nLen
-
nLen2
)
;
i
>
0
;
--
i
)
{
{
aRetStr
.
append
Ascii
(
" "
);
aRetStr
.
append
(
" "
);
}
}
}
}
aRetStr
.
append
(
aUpperValue
);
aRetStr
.
append
(
aUpperValue
);
...
...
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