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