fdo#62475 - remove ASCII art
This commit is contained in:
parent
e8eab43eeb
commit
928d86d8a2
@ -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 )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
|
||||||
static const char arUsingText[] =
|
static const char arUsingText[] =
|
||||||
"\nusing:\n\n"
|
"\nusing:\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[] =
|
|||||||
" [--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,
|
|||||||
}
|
}
|
||||||
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,
|
|||||||
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(
|
|||||||
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(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//##################################################################################################
|
|
||||||
//##################################################################################################
|
|
||||||
//##################################################################################################
|
|
||||||
|
|
||||||
|
|
||||||
//==================================================================================================
|
|
||||||
class OInstanceProvider
|
class OInstanceProvider
|
||||||
: public WeakImplHelper1< XInstanceProvider >
|
: public WeakImplHelper1< XInstanceProvider >
|
||||||
{
|
{
|
||||||
@ -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()
|
|||||||
|
|
||||||
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 )
|
|||||||
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 >
|
|||||||
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 )
|
|||||||
pListener->cDisposed.wait();
|
pListener->cDisposed.wait();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//##################################################################################################
|
|
||||||
//##################################################################################################
|
|
||||||
//##################################################################################################
|
|
||||||
|
|
||||||
|
|
||||||
//##################################################################################################
|
|
||||||
} // namespace unoexe
|
} // namespace unoexe
|
||||||
|
|
||||||
using namespace unoexe;
|
using namespace unoexe;
|
||||||
@ -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()
|
|||||||
|
|
||||||
xContext = defaultBootstrap_InitialComponentContext();
|
xContext = defaultBootstrap_InitialComponentContext();
|
||||||
|
|
||||||
//#### accept, instanciate, etc. ###########################################################
|
// accept, instanciate, etc.
|
||||||
|
|
||||||
if (!aUnoUrl.isEmpty()) // accepting connections
|
if (!aUnoUrl.isEmpty()) // accepting connections
|
||||||
{
|
{
|
||||||
|
@ -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:
|
|||||||
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()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 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()
|
|||||||
return _nFlags;
|
return _nFlags;
|
||||||
}
|
}
|
||||||
|
|
||||||
//__________________________________________________________________________________________________
|
|
||||||
// virtual
|
// virtual
|
||||||
Reference< XTypeDescription > SAL_CALL
|
Reference< XTypeDescription > SAL_CALL
|
||||||
PropertyTypeDescriptionImpl::getPropertyTypeDescription()
|
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()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// XServiceTypeDescription
|
// XServiceTypeDescription
|
||||||
//__________________________________________________________________________________________________
|
|
||||||
// virtual
|
// virtual
|
||||||
Sequence< Reference< XServiceTypeDescription > > SAL_CALL
|
Sequence< Reference< XServiceTypeDescription > > SAL_CALL
|
||||||
ServiceTypeDescriptionImpl::getMandatoryServices()
|
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()
|
|||||||
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()
|
|||||||
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()
|
|||||||
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) {
|
|||||||
return *_pCtors;
|
return *_pCtors;
|
||||||
}
|
}
|
||||||
|
|
||||||
//__________________________________________________________________________________________________
|
|
||||||
void ServiceTypeDescriptionImpl::getReferences()
|
void ServiceTypeDescriptionImpl::getReferences()
|
||||||
throw ( RuntimeException )
|
throw ( RuntimeException )
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user