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
928d86d8
Kaydet (Commit)
928d86d8
authored
May 06, 2013
tarafından
Philipp Riemer
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fdo#62475 - remove ASCII art
üst
e8eab43e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
60 deletions
+18
-60
unoexe.cxx
cpputools/source/unoexe/unoexe.cxx
+9
-36
tdservice.cxx
stoc/source/registry_tdprovider/tdservice.cxx
+9
-24
No files found.
cpputools/source/unoexe/unoexe.cxx
Dosyayı görüntüle @
928d86d8
...
@@ -59,19 +59,17 @@ using namespace com::sun::star::connection;
...
@@ -59,19 +59,17 @@ using namespace com::sun::star::connection;
using
namespace
com
::
sun
::
star
::
bridge
;
using
namespace
com
::
sun
::
star
::
bridge
;
using
namespace
com
::
sun
::
star
::
container
;
using
namespace
com
::
sun
::
star
::
container
;
namespace
unoexe
namespace
unoexe
{
{
static
sal_Bool
s_quiet
=
false
;
static
sal_Bool
s_quiet
=
false
;
//--------------------------------------------------------------------------------------------------
static
inline
void
out
(
const
sal_Char
*
pText
)
static
inline
void
out
(
const
sal_Char
*
pText
)
{
{
if
(
!
s_quiet
)
if
(
!
s_quiet
)
fprintf
(
stderr
,
"%s"
,
pText
);
fprintf
(
stderr
,
"%s"
,
pText
);
}
}
//--------------------------------------------------------------------------------------------------
static
inline
void
out
(
const
OUString
&
rText
)
static
inline
void
out
(
const
OUString
&
rText
)
{
{
if
(
!
s_quiet
)
if
(
!
s_quiet
)
...
@@ -81,7 +79,6 @@ static inline void out( const OUString & rText )
...
@@ -81,7 +79,6 @@ static inline void out( const OUString & rText )
}
}
}
}
//--------------------------------------------------------------------------------------------------
static
const
char
arUsingText
[]
=
static
const
char
arUsingText
[]
=
"
\n
using:
\n\n
"
"
\n
using:
\n\n
"
"uno [-c ComponentImplementationName -l LocationUrl | -s ServiceName]
\n
"
"uno [-c ComponentImplementationName -l LocationUrl | -s ServiceName]
\n
"
...
@@ -90,7 +87,6 @@ static const char arUsingText[] =
...
@@ -90,7 +87,6 @@ static const char arUsingText[] =
" [--quiet]
\n
"
" [--quiet]
\n
"
" [-- Argument1 Argument2 ...]
\n
"
;
" [-- Argument1 Argument2 ...]
\n
"
;
//--------------------------------------------------------------------------------------------------
static
sal_Bool
readOption
(
OUString
*
pValue
,
const
sal_Char
*
pOpt
,
static
sal_Bool
readOption
(
OUString
*
pValue
,
const
sal_Char
*
pOpt
,
sal_uInt32
*
pnIndex
,
const
OUString
&
aArg
)
sal_uInt32
*
pnIndex
,
const
OUString
&
aArg
)
throw
(
RuntimeException
)
throw
(
RuntimeException
)
...
@@ -147,7 +143,7 @@ static sal_Bool readOption( OUString * pValue, const sal_Char * pOpt,
...
@@ -147,7 +143,7 @@ static sal_Bool readOption( OUString * pValue, const sal_Char * pOpt,
}
}
return
sal_False
;
return
sal_False
;
}
}
//--------------------------------------------------------------------------------------------------
static
sal_Bool
readOption
(
sal_Bool
*
pbOpt
,
const
sal_Char
*
pOpt
,
static
sal_Bool
readOption
(
sal_Bool
*
pbOpt
,
const
sal_Char
*
pOpt
,
sal_uInt32
*
pnIndex
,
const
OUString
&
aArg
)
sal_uInt32
*
pnIndex
,
const
OUString
&
aArg
)
{
{
...
@@ -167,13 +163,6 @@ static sal_Bool readOption( sal_Bool * pbOpt, const sal_Char * pOpt,
...
@@ -167,13 +163,6 @@ static sal_Bool readOption( sal_Bool * pbOpt, const sal_Char * pOpt,
return
sal_False
;
return
sal_False
;
}
}
//##################################################################################################
//##################################################################################################
//##################################################################################################
//--------------------------------------------------------------------------------------------------
template
<
class
T
>
template
<
class
T
>
void
createInstance
(
void
createInstance
(
Reference
<
T
>
&
rxOut
,
Reference
<
T
>
&
rxOut
,
...
@@ -246,7 +235,7 @@ void createInstance(
...
@@ -246,7 +235,7 @@ void createInstance(
throw
RuntimeException
(
buf
.
makeStringAndClear
(),
Reference
<
XInterface
>
()
);
throw
RuntimeException
(
buf
.
makeStringAndClear
(),
Reference
<
XInterface
>
()
);
}
}
}
}
//--------------------------------------------------------------------------------------------------
static
Reference
<
XInterface
>
loadComponent
(
static
Reference
<
XInterface
>
loadComponent
(
const
Reference
<
XComponentContext
>
&
xContext
,
const
Reference
<
XComponentContext
>
&
xContext
,
const
OUString
&
rImplName
,
const
OUString
&
rLocation
)
const
OUString
&
rImplName
,
const
OUString
&
rLocation
)
...
@@ -331,13 +320,6 @@ static Reference< XInterface > loadComponent(
...
@@ -331,13 +320,6 @@ static Reference< XInterface > loadComponent(
}
}
}
}
//##################################################################################################
//##################################################################################################
//##################################################################################################
//==================================================================================================
class
OInstanceProvider
class
OInstanceProvider
:
public
WeakImplHelper1
<
XInstanceProvider
>
:
public
WeakImplHelper1
<
XInstanceProvider
>
{
{
...
@@ -374,7 +356,7 @@ public:
...
@@ -374,7 +356,7 @@ public:
virtual
Reference
<
XInterface
>
SAL_CALL
getInstance
(
const
OUString
&
rName
)
virtual
Reference
<
XInterface
>
SAL_CALL
getInstance
(
const
OUString
&
rName
)
throw
(
NoSuchElementException
,
RuntimeException
);
throw
(
NoSuchElementException
,
RuntimeException
);
};
};
//__________________________________________________________________________________________________
inline
Reference
<
XInterface
>
OInstanceProvider
::
createInstance
()
inline
Reference
<
XInterface
>
OInstanceProvider
::
createInstance
()
throw
(
Exception
)
throw
(
Exception
)
{
{
...
@@ -391,7 +373,7 @@ inline Reference< XInterface > OInstanceProvider::createInstance()
...
@@ -391,7 +373,7 @@ inline Reference< XInterface > OInstanceProvider::createInstance()
return
xRet
;
return
xRet
;
}
}
//__________________________________________________________________________________________________
Reference
<
XInterface
>
OInstanceProvider
::
getInstance
(
const
OUString
&
rName
)
Reference
<
XInterface
>
OInstanceProvider
::
getInstance
(
const
OUString
&
rName
)
throw
(
NoSuchElementException
,
RuntimeException
)
throw
(
NoSuchElementException
,
RuntimeException
)
{
{
...
@@ -438,7 +420,6 @@ Reference< XInterface > OInstanceProvider::getInstance( const OUString & rName )
...
@@ -438,7 +420,6 @@ Reference< XInterface > OInstanceProvider::getInstance( const OUString & rName )
throw
NoSuchElementException
(
buf
.
makeStringAndClear
(),
Reference
<
XInterface
>
()
);
throw
NoSuchElementException
(
buf
.
makeStringAndClear
(),
Reference
<
XInterface
>
()
);
}
}
//==================================================================================================
struct
ODisposingListener
:
public
WeakImplHelper1
<
XEventListener
>
struct
ODisposingListener
:
public
WeakImplHelper1
<
XEventListener
>
{
{
Condition
cDisposed
;
Condition
cDisposed
;
...
@@ -447,16 +428,15 @@ struct ODisposingListener : public WeakImplHelper1< XEventListener >
...
@@ -447,16 +428,15 @@ struct ODisposingListener : public WeakImplHelper1< XEventListener >
virtual
void
SAL_CALL
disposing
(
const
EventObject
&
rEvt
)
virtual
void
SAL_CALL
disposing
(
const
EventObject
&
rEvt
)
throw
(
RuntimeException
);
throw
(
RuntimeException
);
//----------------------------------------------------------------------------------------------
static
void
waitFor
(
const
Reference
<
XComponent
>
&
xComp
);
static
void
waitFor
(
const
Reference
<
XComponent
>
&
xComp
);
};
};
//__________________________________________________________________________________________________
void
ODisposingListener
::
disposing
(
const
EventObject
&
)
void
ODisposingListener
::
disposing
(
const
EventObject
&
)
throw
(
RuntimeException
)
throw
(
RuntimeException
)
{
{
cDisposed
.
set
();
cDisposed
.
set
();
}
}
//--------------------------------------------------------------------------------------------------
void
ODisposingListener
::
waitFor
(
const
Reference
<
XComponent
>
&
xComp
)
void
ODisposingListener
::
waitFor
(
const
Reference
<
XComponent
>
&
xComp
)
{
{
ODisposingListener
*
pListener
=
new
ODisposingListener
();
ODisposingListener
*
pListener
=
new
ODisposingListener
();
...
@@ -466,13 +446,6 @@ void ODisposingListener::waitFor( const Reference< XComponent > & xComp )
...
@@ -466,13 +446,6 @@ void ODisposingListener::waitFor( const Reference< XComponent > & xComp )
pListener
->
cDisposed
.
wait
();
pListener
->
cDisposed
.
wait
();
}
}
//##################################################################################################
//##################################################################################################
//##################################################################################################
//##################################################################################################
}
// namespace unoexe
}
// namespace unoexe
using
namespace
unoexe
;
using
namespace
unoexe
;
...
@@ -497,7 +470,7 @@ SAL_IMPLEMENT_MAIN()
...
@@ -497,7 +470,7 @@ SAL_IMPLEMENT_MAIN()
sal_Bool
bSingleAccept
=
sal_False
;
sal_Bool
bSingleAccept
=
sal_False
;
sal_Bool
bSingleInstance
=
sal_False
;
sal_Bool
bSingleInstance
=
sal_False
;
//
#### read command line arguments #########################################################
//
read command line arguments
sal_uInt32
nPos
=
0
;
sal_uInt32
nPos
=
0
;
// read up to arguments
// read up to arguments
...
@@ -559,7 +532,7 @@ SAL_IMPLEMENT_MAIN()
...
@@ -559,7 +532,7 @@ SAL_IMPLEMENT_MAIN()
xContext
=
defaultBootstrap_InitialComponentContext
();
xContext
=
defaultBootstrap_InitialComponentContext
();
//
#### accept, instanciate, etc. ###########################################################
//
accept, instanciate, etc.
if
(
!
aUnoUrl
.
isEmpty
())
// accepting connections
if
(
!
aUnoUrl
.
isEmpty
())
// accepting connections
{
{
...
...
stoc/source/registry_tdprovider/tdservice.cxx
Dosyayı görüntüle @
928d86d8
...
@@ -71,11 +71,8 @@ private:
...
@@ -71,11 +71,8 @@ private:
namespace
stoc_rdbtdp
namespace
stoc_rdbtdp
{
{
//==================================================================================================
// PropertyTypeDescriptionImpl
//
// class PropertyTypeDescriptionImpl
//
//==================================================================================================
class
PropertyTypeDescriptionImpl
:
public
WeakImplHelper1
<
XPropertyTypeDescription
>
class
PropertyTypeDescriptionImpl
:
public
WeakImplHelper1
<
XPropertyTypeDescription
>
{
{
OUString
_aName
;
OUString
_aName
;
...
@@ -103,19 +100,18 @@ public:
...
@@ -103,19 +100,18 @@ public:
throw
(
RuntimeException
);
throw
(
RuntimeException
);
};
};
//__________________________________________________________________________________________________
// virtual
// virtual
PropertyTypeDescriptionImpl
::~
PropertyTypeDescriptionImpl
()
{}
PropertyTypeDescriptionImpl
::~
PropertyTypeDescriptionImpl
()
{}
// XTypeDescription
// XTypeDescription
//__________________________________________________________________________________________________
// virtual
// virtual
TypeClass
PropertyTypeDescriptionImpl
::
getTypeClass
()
TypeClass
PropertyTypeDescriptionImpl
::
getTypeClass
()
throw
(
RuntimeException
)
throw
(
RuntimeException
)
{
{
return
TypeClass_PROPERTY
;
return
TypeClass_PROPERTY
;
}
}
//__________________________________________________________________________________________________
// virtual
// virtual
OUString
PropertyTypeDescriptionImpl
::
getName
()
OUString
PropertyTypeDescriptionImpl
::
getName
()
throw
(
RuntimeException
)
throw
(
RuntimeException
)
...
@@ -124,7 +120,7 @@ OUString PropertyTypeDescriptionImpl::getName()
...
@@ -124,7 +120,7 @@ OUString PropertyTypeDescriptionImpl::getName()
}
}
// XPropertyTypeDescription
// XPropertyTypeDescription
//__________________________________________________________________________________________________
// virtual
// virtual
sal_Int16
SAL_CALL
PropertyTypeDescriptionImpl
::
getPropertyFlags
()
sal_Int16
SAL_CALL
PropertyTypeDescriptionImpl
::
getPropertyFlags
()
throw
(
RuntimeException
)
throw
(
RuntimeException
)
...
@@ -132,7 +128,6 @@ sal_Int16 SAL_CALL PropertyTypeDescriptionImpl::getPropertyFlags()
...
@@ -132,7 +128,6 @@ sal_Int16 SAL_CALL PropertyTypeDescriptionImpl::getPropertyFlags()
return
_nFlags
;
return
_nFlags
;
}
}
//__________________________________________________________________________________________________
// virtual
// virtual
Reference
<
XTypeDescription
>
SAL_CALL
Reference
<
XTypeDescription
>
SAL_CALL
PropertyTypeDescriptionImpl
::
getPropertyTypeDescription
()
PropertyTypeDescriptionImpl
::
getPropertyTypeDescription
()
...
@@ -141,25 +136,20 @@ PropertyTypeDescriptionImpl::getPropertyTypeDescription()
...
@@ -141,25 +136,20 @@ PropertyTypeDescriptionImpl::getPropertyTypeDescription()
return
_xTD
;
return
_xTD
;
}
}
//==================================================================================================
// ServiceTypeDescriptionImpl
//
// ServiceTypeDescriptionImpl implementation
//
//==================================================================================================
//__________________________________________________________________________________________________
// virtual
// virtual
ServiceTypeDescriptionImpl
::~
ServiceTypeDescriptionImpl
()
{}
ServiceTypeDescriptionImpl
::~
ServiceTypeDescriptionImpl
()
{}
// XTypeDescription
// XTypeDescription
//__________________________________________________________________________________________________
// virtual
// virtual
TypeClass
ServiceTypeDescriptionImpl
::
getTypeClass
()
TypeClass
ServiceTypeDescriptionImpl
::
getTypeClass
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
)
{
{
return
TypeClass_SERVICE
;
return
TypeClass_SERVICE
;
}
}
//__________________________________________________________________________________________________
// virtual
// virtual
OUString
ServiceTypeDescriptionImpl
::
getName
()
OUString
ServiceTypeDescriptionImpl
::
getName
()
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
)
throw
(
::
com
::
sun
::
star
::
uno
::
RuntimeException
)
...
@@ -168,7 +158,7 @@ OUString ServiceTypeDescriptionImpl::getName()
...
@@ -168,7 +158,7 @@ OUString ServiceTypeDescriptionImpl::getName()
}
}
// XServiceTypeDescription
// XServiceTypeDescription
//__________________________________________________________________________________________________
// virtual
// virtual
Sequence
<
Reference
<
XServiceTypeDescription
>
>
SAL_CALL
Sequence
<
Reference
<
XServiceTypeDescription
>
>
SAL_CALL
ServiceTypeDescriptionImpl
::
getMandatoryServices
()
ServiceTypeDescriptionImpl
::
getMandatoryServices
()
...
@@ -178,7 +168,6 @@ ServiceTypeDescriptionImpl::getMandatoryServices()
...
@@ -178,7 +168,6 @@ ServiceTypeDescriptionImpl::getMandatoryServices()
return
_aMandatoryServices
;
return
_aMandatoryServices
;
}
}
//__________________________________________________________________________________________________
// virtual
// virtual
Sequence
<
Reference
<
XServiceTypeDescription
>
>
SAL_CALL
Sequence
<
Reference
<
XServiceTypeDescription
>
>
SAL_CALL
ServiceTypeDescriptionImpl
::
getOptionalServices
()
ServiceTypeDescriptionImpl
::
getOptionalServices
()
...
@@ -188,7 +177,6 @@ ServiceTypeDescriptionImpl::getOptionalServices()
...
@@ -188,7 +177,6 @@ ServiceTypeDescriptionImpl::getOptionalServices()
return
_aOptionalServices
;
return
_aOptionalServices
;
}
}
//__________________________________________________________________________________________________
// virtual
// virtual
Sequence
<
Reference
<
XInterfaceTypeDescription
>
>
SAL_CALL
Sequence
<
Reference
<
XInterfaceTypeDescription
>
>
SAL_CALL
ServiceTypeDescriptionImpl
::
getMandatoryInterfaces
()
ServiceTypeDescriptionImpl
::
getMandatoryInterfaces
()
...
@@ -198,7 +186,6 @@ ServiceTypeDescriptionImpl::getMandatoryInterfaces()
...
@@ -198,7 +186,6 @@ ServiceTypeDescriptionImpl::getMandatoryInterfaces()
return
_aMandatoryInterfaces
;
return
_aMandatoryInterfaces
;
}
}
//__________________________________________________________________________________________________
// virtual
// virtual
Sequence
<
Reference
<
XInterfaceTypeDescription
>
>
SAL_CALL
Sequence
<
Reference
<
XInterfaceTypeDescription
>
>
SAL_CALL
ServiceTypeDescriptionImpl
::
getOptionalInterfaces
()
ServiceTypeDescriptionImpl
::
getOptionalInterfaces
()
...
@@ -208,7 +195,6 @@ ServiceTypeDescriptionImpl::getOptionalInterfaces()
...
@@ -208,7 +195,6 @@ ServiceTypeDescriptionImpl::getOptionalInterfaces()
return
_aOptionalInterfaces
;
return
_aOptionalInterfaces
;
}
}
//__________________________________________________________________________________________________
// virtual
// virtual
Sequence
<
Reference
<
XPropertyTypeDescription
>
>
SAL_CALL
Sequence
<
Reference
<
XPropertyTypeDescription
>
>
SAL_CALL
ServiceTypeDescriptionImpl
::
getProperties
()
ServiceTypeDescriptionImpl
::
getProperties
()
...
@@ -348,7 +334,6 @@ ServiceTypeDescriptionImpl::getConstructors() throw (RuntimeException) {
...
@@ -348,7 +334,6 @@ ServiceTypeDescriptionImpl::getConstructors() throw (RuntimeException) {
return
*
_pCtors
;
return
*
_pCtors
;
}
}
//__________________________________________________________________________________________________
void
ServiceTypeDescriptionImpl
::
getReferences
()
void
ServiceTypeDescriptionImpl
::
getReferences
()
throw
(
RuntimeException
)
throw
(
RuntimeException
)
{
{
...
...
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