Kaydet (Commit) 3d784c4a authored tarafından Noel Grandin's avatar Noel Grandin

remove extra spaces around ::

just makes it harder to grep for methods

Change-Id: I0925db2f9284972fcf7e1e3adf90cbe21f69eb15
üst d31844da
......@@ -181,7 +181,7 @@ sal_Bool OPropertyArrayAggregationHelper::hasPropertyByName(const OUString& _rPr
}
const Property* OPropertyArrayAggregationHelper::findPropertyByName(const :: OUString& _rName ) const
const Property* OPropertyArrayAggregationHelper::findPropertyByName(const OUString& _rName ) const
{
return lcl_findPropertyByName( m_aProperties, _rName );
}
......
......@@ -5295,7 +5295,7 @@ bool SvxIconSelectorDialog::ImportGraphic( const OUString& aURL )
* The SvxIconReplacementDialog class
*
*******************************************************************************/
SvxIconReplacementDialog :: SvxIconReplacementDialog(
SvxIconReplacementDialog::SvxIconReplacementDialog(
vcl::Window *pWindow, const OUString& aMessage, bool /*bYestoAll*/ )
:
MessBox( pWindow, WB_DEF_YES, CUI_RES( RID_SVXSTR_REPLACE_ICON_CONFIRM ), CUI_RES( RID_SVXSTR_REPLACE_ICON_WARNING ) )
......@@ -5310,7 +5310,7 @@ MessBox( pWindow, WB_DEF_YES, CUI_RES( RID_SVXSTR_REPLACE_ICON_CONFIRM ), CUI_R
AddButton( StandardButtonType::Cancel, 4);
}
SvxIconReplacementDialog :: SvxIconReplacementDialog(
SvxIconReplacementDialog::SvxIconReplacementDialog(
vcl::Window *pWindow, const OUString& aMessage )
: MessBox( pWindow, WB_YES_NO_CANCEL, CUI_RES( RID_SVXSTR_REPLACE_ICON_CONFIRM ), CUI_RES( RID_SVXSTR_REPLACE_ICON_WARNING ) )
{
......@@ -5318,7 +5318,7 @@ SvxIconReplacementDialog :: SvxIconReplacementDialog(
SetMessText( ReplaceIconName( aMessage ));
}
OUString SvxIconReplacementDialog :: ReplaceIconName( const OUString& rMessage )
OUString SvxIconReplacementDialog::ReplaceIconName( const OUString& rMessage )
{
OUString name;
OUString message = CUI_RES( RID_SVXSTR_REPLACE_ICON_WARNING );
......@@ -5332,7 +5332,7 @@ OUString SvxIconReplacementDialog :: ReplaceIconName( const OUString& rMessage )
return name;
}
sal_uInt16 SvxIconReplacementDialog :: ShowDialog()
sal_uInt16 SvxIconReplacementDialog::ShowDialog()
{
this->Execute();
return ( this->GetCurButtonId() );
......
......@@ -170,10 +170,10 @@ public:
virtual void SAL_CALL setLoginTimeout( sal_Int32 seconds ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
virtual sal_Int32 SAL_CALL getLoginTimeout( ) throw(css::sdbc::SQLException, css::uno::RuntimeException, std::exception) override;
// :: css::sdb::XBookmarksSupplier
//::css::sdb::XBookmarksSupplier
virtual css::uno::Reference< css::container::XNameAccess > SAL_CALL getBookmarks( ) throw (css::uno::RuntimeException, std::exception) override;
// :: css::sdb::XQueryDefinitionsSupplier
//::css::sdb::XQueryDefinitionsSupplier
virtual css::uno::Reference< css::container::XNameAccess > SAL_CALL getQueryDefinitions( ) throw(css::uno::RuntimeException, std::exception) override;
// css::sdbc::XIsolatedConnection
......
......@@ -832,7 +832,7 @@ bool ODbTypeWizDialogSetup::SaveDatabaseDocument()
void ODbTypeWizDialogSetup::createUniqueFolderName(INetURLObject* pURL)
{
Reference< XSimpleFileAccess3 > xSimpleFileAccess(ucb::SimpleFileAccess::create(getORB()));
:: OUString sLastSegmentName = pURL->getName();
OUString sLastSegmentName = pURL->getName();
bool bFolderExists = true;
sal_Int32 i = 1;
while (bFolderExists)
......
......@@ -277,7 +277,7 @@ public:
// css::container::XChild
virtual css::uno::Reference<css::uno::XInterface> SAL_CALL getParent() throw ( css::uno::RuntimeException, std::exception) override { return OFormComponents::getParent(); }
virtual void SAL_CALL setParent(const css::uno::Reference<css::uno::XInterface>& Parent) throw ( :: css::lang::NoSupportException , css::uno::RuntimeException, std::exception) override;
virtual void SAL_CALL setParent(const css::uno::Reference<css::uno::XInterface>& Parent) throw (::css::lang::NoSupportException , css::uno::RuntimeException, std::exception) override;
// css::container::XNamed
virtual OUString SAL_CALL getName() throw(css::uno::RuntimeException, std::exception) override;
......
......@@ -314,7 +314,7 @@ void OGridControlModel::removeSelectionChangeListener(const Reference< XSelectio
}
// XGridColumnFactory
Reference<XPropertySet> SAL_CALL OGridControlModel::createColumn(const OUString& ColumnType) throw ( :: css::lang::IllegalArgumentException, css::uno::RuntimeException, std::exception)
Reference<XPropertySet> SAL_CALL OGridControlModel::createColumn(const OUString& ColumnType) throw (::css::lang::IllegalArgumentException, css::uno::RuntimeException, std::exception)
{
SolarMutexGuard g;
const Sequence< OUString >& rColumnTypes = frm::getColumnTypes();
......
......@@ -135,7 +135,7 @@ public:
virtual void SAL_CALL removeSelectionChangeListener(const css::uno::Reference< css::view::XSelectionChangeListener >& xListener) throw(css::uno::RuntimeException, std::exception) override;
// XGridColumnFactory
virtual css::uno::Reference< css::beans::XPropertySet> SAL_CALL createColumn(const OUString& ColumnType) throw ( :: css::lang::IllegalArgumentException, css::uno::RuntimeException, std::exception) override;
virtual css::uno::Reference< css::beans::XPropertySet> SAL_CALL createColumn(const OUString& ColumnType) throw (::css::lang::IllegalArgumentException, css::uno::RuntimeException, std::exception) override;
virtual css::uno::Sequence<OUString> SAL_CALL getColumnTypes() throw ( css::uno::RuntimeException, std::exception) override;
// XPersistObject
......
......@@ -223,7 +223,7 @@ void print_node( const LocaleNode* p, int depth=0 )
printf("\n");
}
void LocaleNode :: generateCode (const OFileWriter &of) const
void LocaleNode::generateCode (const OFileWriter &of) const
{
OUString aDTD = getAttr().getValueByName("versionDTD");
if ( aDTD != LOCALE_VERSION_DTD )
......@@ -1908,7 +1908,7 @@ bool isIso4217( const OUString& rStr )
;
}
void LCCurrencyNode :: generateCode (const OFileWriter &of) const
void LCCurrencyNode::generateCode (const OFileWriter &of) const
{
OUString useLocale = getAttr().getValueByName("ref");
if (!useLocale.isEmpty()) {
......
......@@ -83,9 +83,9 @@ namespace com { namespace sun { namespace star {
bool m_bCloneable;
protected:
static css::uno::Any ImplGetDefaultValueByHandle(sal_Int32 nHandle);
static css::uno::Any ImplGetDefaultValueByHandle(sal_Int32 nHandle);
css::uno::Any ImplGetPropertyValueByHandle(sal_Int32 nHandle) const;
void ImplSetPropertyValueByHandle(sal_Int32 nHandle, const :: css::uno::Any& aValue);
void ImplSetPropertyValueByHandle(sal_Int32 nHandle, const css::uno::Any& aValue);
protected:
/**
......
......@@ -28,8 +28,8 @@
#define _REG_ENSURE(c, f, l, m) \
do \
{ \
if (!(c) && :: osl_assertFailedLine(f, l, m)) \
:: osl_breakDebug(); \
if (!(c) && ::osl_assertFailedLine(f, l, m)) \
::osl_breakDebug(); \
} while (0)
......
......@@ -35,7 +35,7 @@
#include <rscrsc.hxx>
RscTypCont :: RscTypCont( RscError * pErrHdl,
RscTypCont::RscTypCont( RscError * pErrHdl,
RSCBYTEORDER_TYPE nOrder,
const OString& rSearchPath,
sal_uInt32 nFlagsP )
......@@ -166,7 +166,7 @@ void Pre_dtorTree( RscTop * pRscTop )
}
}
RscTypCont :: ~RscTypCont()
RscTypCont::~RscTypCont()
{
// delete all subtrees
aVersion.pClass->Destroy( aVersion );
......@@ -254,7 +254,7 @@ RscTop * RscTypCont::SearchType( Atom nId )
return NULL;
}
sal_uInt32 RscTypCont :: PutSysName( sal_uInt32 nRscTyp, char * pFileName,
sal_uInt32 RscTypCont::PutSysName( sal_uInt32 nRscTyp, char * pFileName,
sal_uInt32 nConst, sal_uInt32 nId, bool bFirst )
{
RscSysEntry *pSysEntry;
......@@ -297,7 +297,7 @@ sal_uInt32 RscTypCont :: PutSysName( sal_uInt32 nRscTyp, char * pFileName,
return pSysEntry->nKey;
}
void RscTypCont :: WriteInc( FILE * fOutput, sal_uLong lFileKey )
void RscTypCont::WriteInc( FILE * fOutput, sal_uLong lFileKey )
{
if( NOFILE_INDEX == lFileKey )
......@@ -395,7 +395,7 @@ IMPL_LINK_TYPED( RscEnumerateObj, CallBackWriteSrc, const NameNode&, rNode, void
}
}
void RscEnumerateObj :: WriteRcFile( RscWriteRc & rMem, FILE * fOut )
void RscEnumerateObj::WriteRcFile( RscWriteRc & rMem, FILE * fOut )
{
// structure definition from which the resource is built
/*
......@@ -504,7 +504,7 @@ ERRTYPE RscTypCont::WriteRc( WriteRcContext& rContext )
return aError;
}
void RscTypCont :: WriteSrc( FILE * fOutput, sal_uLong nFileKey,
void RscTypCont::WriteSrc( FILE * fOutput, sal_uLong nFileKey,
bool bName )
{
RscEnumerateRef aEnumRef( this, pRoot, fOutput );
......@@ -580,7 +580,7 @@ IMPL_LINK_TYPED( RscDel, Delete, const NameNode&, r, void )
pNode->pObjBiTree = pNode->GetObjNode()->DelObjNode( pNode, lFileKey );
}
void RscTypCont :: Delete( sal_uLong lFileKey )
void RscTypCont::Delete( sal_uLong lFileKey )
{
// delete resource instance
RscDel aDel( pRoot, lFileKey );
......
......@@ -50,7 +50,7 @@ bool RefNode::PutObjNode( ObjNode * pPutObject )
// if the node with the same name is in pObjBiTree,
// return NULL and no insert,
// if not return the pointer to the Object
ObjNode * RefNode :: GetObjNode( const RscId & rRscId )
ObjNode * RefNode::GetObjNode( const RscId & rRscId )
{
if( pObjBiTree )
return pObjBiTree->Search( rRscId );
......
......@@ -308,7 +308,7 @@ RSCINST RscIdRange::Create( RSCINST * pInst, const RSCINST & rDflt, bool bOwnCla
return aInst;
}
void RscIdRange :: Destroy( const RSCINST & rInst )
void RscIdRange::Destroy( const RSCINST & rInst )
{
reinterpret_cast<RscId *>(rInst.pData)->Destroy();
}
......@@ -419,7 +419,7 @@ void RscBool::WriteSrc( const RSCINST & rInst, FILE * fOutput,
fprintf( fOutput, "FALSE" );
}
RscBreakRange :: RscBreakRange( Atom nId, sal_uInt32 nTypeId )
RscBreakRange::RscBreakRange( Atom nId, sal_uInt32 nTypeId )
: RscRange( nId, nTypeId )
{
nOutRange = 0xFFFFFFFF;
......
......@@ -48,7 +48,7 @@ RSCINST RscTop::GetDefault()
return aDfltInst;
}
void RscTop :: Pre_dtor()
void RscTop::Pre_dtor()
{
if( aDfltInst.IsInst() )
{
......@@ -66,7 +66,7 @@ RscTop * RscTop::GetTypeClass() const
return NULL;
}
sal_uInt32 RscTop :: Size()
sal_uInt32 RscTop::Size()
{
if( pSuperClass )
return pSuperClass->Size();
......@@ -74,7 +74,7 @@ sal_uInt32 RscTop :: Size()
return 0;
}
ERRTYPE RscTop :: GetRef( const RSCINST & rInst, RscId * pRscId )
ERRTYPE RscTop::GetRef( const RSCINST & rInst, RscId * pRscId )
{
if( pSuperClass )
return pSuperClass->GetRef( rInst, pRscId );
......
......@@ -412,7 +412,7 @@ void RscCompiler::EndCompile()
}
}
ERRTYPE RscCompiler :: IncludeParser( sal_uLong lFileKey )
ERRTYPE RscCompiler::IncludeParser( sal_uLong lFileKey )
{
FILE * finput;
RscFile * pFName;
......@@ -455,7 +455,7 @@ ERRTYPE RscCompiler :: IncludeParser( sal_uLong lFileKey )
return aError;
}
ERRTYPE RscCompiler :: ParseOneFile( sal_uLong lFileKey,
ERRTYPE RscCompiler::ParseOneFile( sal_uLong lFileKey,
const RscCmdLine::OutputFile* pOutputFile,
const WriteRcContext* pContext )
{
......
......@@ -370,7 +370,7 @@ OString RscExpression::GetMacro()
return aLeft.makeStringAndClear();
}
RscFile :: RscFile()
RscFile::RscFile()
{
bLoaded = false;
bIncFile = false;
......@@ -378,7 +378,7 @@ RscFile :: RscFile()
bScanned = false;
}
RscFile :: ~RscFile()
RscFile::~RscFile()
{
for ( size_t i = 0, n = aDepLst.size(); i < n; ++i )
delete aDepLst[ i ];
......@@ -408,7 +408,7 @@ bool RscFile::Depend( sal_uLong lDepend, sal_uLong lFree )
return true;
}
bool RscFile :: InsertDependFile( sal_uLong lIncFile, size_t lPos )
bool RscFile::InsertDependFile( sal_uLong lIncFile, size_t lPos )
{
for ( size_t i = 0, n = aDepLst.size(); i < n; ++i )
{
......@@ -489,7 +489,7 @@ RscFileTab::RscFileTab()
{
}
RscFileTab :: ~RscFileTab()
RscFileTab::~RscFileTab()
{
aDefTree.Remove();
......@@ -502,7 +502,7 @@ RscFileTab :: ~RscFileTab()
};
}
sal_uLong RscFileTab :: Find( const OString& rName )
sal_uLong RscFileTab::Find( const OString& rName )
{
sal_uIntPtr aIndex = FirstIndex();
while( aIndex != UNIQUEINDEX_ENTRY_NOTFOUND && (Get(aIndex)->aFileName != rName) )
......@@ -635,7 +635,7 @@ RscDefine * RscFileTab::NewDef( sal_uLong lFileKey, const OString& rDefName,
return pDef;
}
void RscFileTab :: DeleteFileContext( sal_uLong lFileKey )
void RscFileTab::DeleteFileContext( sal_uLong lFileKey )
{
RscFile * pFName;
......@@ -652,7 +652,7 @@ void RscFileTab :: DeleteFileContext( sal_uLong lFileKey )
}
}
sal_uLong RscFileTab :: NewCodeFile( const OString& rName )
sal_uLong RscFileTab::NewCodeFile( const OString& rName )
{
sal_uLong lKey = Find( rName );
if( UNIQUEINDEX_ENTRY_NOTFOUND == lKey )
......@@ -666,7 +666,7 @@ sal_uLong RscFileTab :: NewCodeFile( const OString& rName )
return lKey;
}
sal_uLong RscFileTab :: NewIncFile(const OString& rName,
sal_uLong RscFileTab::NewIncFile(const OString& rName,
const OString& rPath)
{
sal_uLong lKey = Find( rName );
......
......@@ -153,18 +153,18 @@ char * ResponseFile( RscPtrPtr * ppCmd, char ** ppArgv, sal_uInt32 nArgc )
}
RscPtrPtr :: RscPtrPtr()
RscPtrPtr::RscPtrPtr()
{
nCount = 0;
pMem = NULL;
}
RscPtrPtr :: ~RscPtrPtr()
RscPtrPtr::~RscPtrPtr()
{
Reset();
}
void RscPtrPtr :: Reset()
void RscPtrPtr::Reset()
{
sal_uInt32 i;
......@@ -181,7 +181,7 @@ void RscPtrPtr :: Reset()
pMem = NULL;
}
sal_uInt32 RscPtrPtr :: Append( void * pBuffer )
sal_uInt32 RscPtrPtr::Append( void * pBuffer )
{
if( !pMem )
pMem = static_cast<void **>(rtl_allocateMemory( (nCount +1) * sizeof( void * ) ));
......@@ -193,7 +193,7 @@ sal_uInt32 RscPtrPtr :: Append( void * pBuffer )
return nCount++;
}
void * RscPtrPtr :: GetEntry( sal_uInt32 nEntry )
void * RscPtrPtr::GetEntry( sal_uInt32 nEntry )
{
if( nEntry < nCount )
return pMem[ nEntry ];
......@@ -218,13 +218,13 @@ RscWriteRc::RscWriteRc( RSCBYTEORDER_TYPE nOrder )
pMem = NULL;
}
RscWriteRc :: ~RscWriteRc()
RscWriteRc::~RscWriteRc()
{
if( pMem )
rtl_freeMemory( pMem );
}
sal_uInt32 RscWriteRc :: IncSize( sal_uInt32 nSize )
sal_uInt32 RscWriteRc::IncSize( sal_uInt32 nSize )
{
sal_uInt32 nOrigPos = nLen;
nLen += nSize;
......@@ -235,7 +235,7 @@ sal_uInt32 RscWriteRc :: IncSize( sal_uInt32 nSize )
return nOrigPos;
}
char * RscWriteRc :: GetPointer( sal_uInt32 nSize )
char * RscWriteRc::GetPointer( sal_uInt32 nSize )
{
if( !pMem )
{
......@@ -246,7 +246,7 @@ char * RscWriteRc :: GetPointer( sal_uInt32 nSize )
}
void RscWriteRc :: Put( sal_uInt16 nVal )
void RscWriteRc::Put( sal_uInt16 nVal )
{
sal_uInt32 nOldLen;
......@@ -254,7 +254,7 @@ void RscWriteRc :: Put( sal_uInt16 nVal )
PutAt( nOldLen, nVal );
}
void RscWriteRc :: PutUTF8( char * pStr )
void RscWriteRc::PutUTF8( char * pStr )
{
sal_uInt32 nStrLen = 0;
if( pStr )
......
......@@ -1247,7 +1247,7 @@ void SfxDockingWindow::ReleaseChildWindow_Impl()
and thus the behavior of his DockinWindow class when docking where the
called virtual method:
SfxDockingWindow :: CalcDockingSize (SfxChildAlignment eAlign)
SfxDockingWindow::CalcDockingSize (SfxChildAlignment eAlign)
is overridden (see below).
*/
......
......@@ -73,7 +73,7 @@ css::beans::Optional< css::uno::Any > getValue(OUString const & id) {
{
QFont aFixedFont;
QString aFontName;
:: OUString sFontName;
OUString sFontName;
aFixedFont = KGlobalSettings::fixedFont();
aFontName = aFixedFont.family();
......
......@@ -69,7 +69,7 @@ css::beans::Optional< css::uno::Any > getValue(OUString const & id) {
{
QFont aFixedFont;
QString aFontName;
:: OUString sFontName;
OUString sFontName;
aFixedFont = KGlobalSettings::fixedFont();
aFontName = aFixedFont.family();
......
......@@ -143,7 +143,7 @@ LocaleSet_t const & CContentReader::getLocale( const StyleName_t& Style )
if ( m_StyleMap.empty() )
return m_DefaultLocale;
StyleLocaleMap_t :: const_iterator style_Iter;
StyleLocaleMap_t::const_iterator style_Iter;
if ( ( style_Iter = m_StyleMap.find( Style ) ) == m_StyleMap.end( ) )
return m_DefaultLocale;
......
......@@ -174,7 +174,7 @@ bool SvEmbedTransferHelper::GetData( const css::datatransfer::DataFlavor& rFlavo
{
bRet = SetBitmapEx( m_pGraphic->GetBitmapEx(), rFlavor );
}
else if ( m_xObj.is() && :: svt::EmbeddedObjectRef::TryRunningState( m_xObj ) )
else if ( m_xObj.is() && ::svt::EmbeddedObjectRef::TryRunningState( m_xObj ) )
{
uno::Reference< datatransfer::XTransferable > xTransferable( m_xObj->getComponent(), uno::UNO_QUERY );
if ( xTransferable.is() )
......
......@@ -226,7 +226,7 @@
}
void OGeometryControlModel_Base::ImplSetPropertyValueByHandle(sal_Int32 nHandle, const :: com::sun::star::uno::Any& aValue)
void OGeometryControlModel_Base::ImplSetPropertyValueByHandle(sal_Int32 nHandle, const ::com::sun::star::uno::Any& aValue)
{
switch ( nHandle )
{
......
......@@ -28,38 +28,38 @@ using ::com::sun::star::lang::XSingleServiceFactory ;
using ::com::sun::star::xml::wrapper::XXMLElementWrapper ;
using ::com::sun::star::xml::crypto::XXMLEncryptionTemplate ;
XMLEncryptionTemplateImpl :: XMLEncryptionTemplateImpl( const Reference< XMultiServiceFactory >& aFactory )
XMLEncryptionTemplateImpl::XMLEncryptionTemplateImpl( const Reference< XMultiServiceFactory >& aFactory )
: m_xTemplate( NULL ),
m_xTarget( NULL ),
m_xServiceManager( aFactory ),
m_nStatus ( ::com::sun::star::xml::crypto::SecurityOperationStatus_UNKNOWN ) {
}
XMLEncryptionTemplateImpl :: ~XMLEncryptionTemplateImpl() {
XMLEncryptionTemplateImpl::~XMLEncryptionTemplateImpl() {
}
/* XXMLEncryptionTemplate */
void SAL_CALL XMLEncryptionTemplateImpl :: setTemplate( const Reference< XXMLElementWrapper >& aTemplate )
void SAL_CALL XMLEncryptionTemplateImpl::setTemplate( const Reference< XXMLElementWrapper >& aTemplate )
throw (com::sun::star::uno::RuntimeException, com::sun::star::lang::IllegalArgumentException, std::exception)
{
m_xTemplate = aTemplate ;
}
/* XXMLEncryptionTemplate */
Reference< XXMLElementWrapper > SAL_CALL XMLEncryptionTemplateImpl :: getTemplate()
Reference< XXMLElementWrapper > SAL_CALL XMLEncryptionTemplateImpl::getTemplate()
throw (com::sun::star::uno::RuntimeException, std::exception)
{
return m_xTemplate ;
}
/* XXMLEncryptionTemplate */
void SAL_CALL XMLEncryptionTemplateImpl :: setTarget( const Reference< XXMLElementWrapper >& aTarget )
void SAL_CALL XMLEncryptionTemplateImpl::setTarget( const Reference< XXMLElementWrapper >& aTarget )
throw( com::sun::star::lang::IllegalArgumentException, std::exception ) {
m_xTarget = aTarget ;
}
/* XXMLEncryptionTemplate */
Reference< XXMLElementWrapper > SAL_CALL XMLEncryptionTemplateImpl :: getTarget()
Reference< XXMLElementWrapper > SAL_CALL XMLEncryptionTemplateImpl::getTarget()
throw (com::sun::star::uno::RuntimeException, std::exception)
{
return m_xTarget ;
......@@ -79,12 +79,12 @@ void SAL_CALL XMLEncryptionTemplateImpl::setStatus(
}
/* XServiceInfo */
OUString SAL_CALL XMLEncryptionTemplateImpl :: getImplementationName() throw( RuntimeException, std::exception ) {
OUString SAL_CALL XMLEncryptionTemplateImpl::getImplementationName() throw( RuntimeException, std::exception ) {
return impl_getImplementationName() ;
}
/* XServiceInfo */
sal_Bool SAL_CALL XMLEncryptionTemplateImpl :: supportsService( const OUString& serviceName) throw( RuntimeException, std::exception ) {
sal_Bool SAL_CALL XMLEncryptionTemplateImpl::supportsService( const OUString& serviceName) throw( RuntimeException, std::exception ) {
Sequence< OUString > seqServiceNames = getSupportedServiceNames() ;
const OUString* pArray = seqServiceNames.getConstArray() ;
for( sal_Int32 i = 0 ; i < seqServiceNames.getLength() ; i ++ ) {
......@@ -95,28 +95,28 @@ sal_Bool SAL_CALL XMLEncryptionTemplateImpl :: supportsService( const OUString&
}
/* XServiceInfo */
Sequence< OUString > SAL_CALL XMLEncryptionTemplateImpl :: getSupportedServiceNames() throw( RuntimeException, std::exception ) {
Sequence< OUString > SAL_CALL XMLEncryptionTemplateImpl::getSupportedServiceNames() throw( RuntimeException, std::exception ) {
return impl_getSupportedServiceNames() ;
}
//Helper for XServiceInfo
Sequence< OUString > XMLEncryptionTemplateImpl :: impl_getSupportedServiceNames() {
Sequence< OUString > XMLEncryptionTemplateImpl::impl_getSupportedServiceNames() {
::osl::Guard< ::osl::Mutex > aGuard( ::osl::Mutex::getGlobalMutex() ) ;
Sequence< OUString > seqServiceNames( 1 ) ;
seqServiceNames[0] = "com.sun.star.xml.crypto.XMLEncryptionTemplate";
return seqServiceNames;
}
OUString XMLEncryptionTemplateImpl :: impl_getImplementationName() throw( RuntimeException ) {
OUString XMLEncryptionTemplateImpl::impl_getImplementationName() throw( RuntimeException ) {
return OUString("com.sun.star.xml.security.framework.XMLEncryptionTemplateImpl") ;
}
//Helper for registry
Reference< XInterface > SAL_CALL XMLEncryptionTemplateImpl :: impl_createInstance( const Reference< XMultiServiceFactory >& aServiceManager ) throw( RuntimeException ) {
Reference< XInterface > SAL_CALL XMLEncryptionTemplateImpl::impl_createInstance( const Reference< XMultiServiceFactory >& aServiceManager ) throw( RuntimeException ) {
return Reference< XInterface >( *new XMLEncryptionTemplateImpl( aServiceManager ) ) ;
}
Reference< XSingleServiceFactory > XMLEncryptionTemplateImpl :: impl_createFactory( const Reference< XMultiServiceFactory >& aServiceManager ) {
Reference< XSingleServiceFactory > XMLEncryptionTemplateImpl::impl_createFactory( const Reference< XMultiServiceFactory >& aServiceManager ) {
return ::cppu::createSingleFactory( aServiceManager , impl_getImplementationName() , impl_createInstance , impl_getSupportedServiceNames() ) ;
}
......
......@@ -29,37 +29,37 @@ using ::com::sun::star::lang::XSingleServiceFactory ;
using ::com::sun::star::xml::wrapper::XXMLElementWrapper ;
using ::com::sun::star::xml::crypto::XXMLSignatureTemplate ;
XMLSignatureTemplateImpl :: XMLSignatureTemplateImpl( const Reference< XMultiServiceFactory >& aFactory )
XMLSignatureTemplateImpl::XMLSignatureTemplateImpl( const Reference< XMultiServiceFactory >& aFactory )
:m_xTemplate( NULL ),
m_xServiceManager( aFactory ),
m_nStatus ( ::com::sun::star::xml::crypto::SecurityOperationStatus_UNKNOWN )
{
}
XMLSignatureTemplateImpl :: ~XMLSignatureTemplateImpl() {
XMLSignatureTemplateImpl::~XMLSignatureTemplateImpl() {
}
/* XXMLSignatureTemplate */
void SAL_CALL XMLSignatureTemplateImpl :: setTemplate( const Reference< XXMLElementWrapper >& aTemplate )
void SAL_CALL XMLSignatureTemplateImpl::setTemplate( const Reference< XXMLElementWrapper >& aTemplate )
throw( com::sun::star::uno::RuntimeException, com::sun::star::lang::IllegalArgumentException, std::exception)
{
m_xTemplate = aTemplate ;
}
/* XXMLSignatureTemplate */
Reference< XXMLElementWrapper > SAL_CALL XMLSignatureTemplateImpl :: getTemplate()
Reference< XXMLElementWrapper > SAL_CALL XMLSignatureTemplateImpl::getTemplate()
throw (com::sun::star::uno::RuntimeException, std::exception)
{
return m_xTemplate ;
}
void SAL_CALL XMLSignatureTemplateImpl :: setTarget( const ::com::sun::star::uno::Reference< ::com::sun::star::xml::wrapper::XXMLElementWrapper >& aXmlElement )
void SAL_CALL XMLSignatureTemplateImpl::setTarget( const ::com::sun::star::uno::Reference< ::com::sun::star::xml::wrapper::XXMLElementWrapper >& aXmlElement )
throw( com::sun::star::uno::RuntimeException, com::sun::star::lang::IllegalArgumentException, std::exception)
{
targets.push_back( aXmlElement );
}
::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::xml::wrapper::XXMLElementWrapper > > SAL_CALL XMLSignatureTemplateImpl :: getTargets()
::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::xml::wrapper::XXMLElementWrapper > > SAL_CALL XMLSignatureTemplateImpl::getTargets()
throw (com::sun::star::uno::RuntimeException, std::exception)
{
sal_Int32 length = targets.size();
......@@ -105,12 +105,12 @@ void SAL_CALL XMLSignatureTemplateImpl::setStatus(
}
/* XServiceInfo */
OUString SAL_CALL XMLSignatureTemplateImpl :: getImplementationName() throw( RuntimeException, std::exception ) {
OUString SAL_CALL XMLSignatureTemplateImpl::getImplementationName() throw( RuntimeException, std::exception ) {
return impl_getImplementationName() ;
}
/* XServiceInfo */
sal_Bool SAL_CALL XMLSignatureTemplateImpl :: supportsService( const OUString& serviceName) throw( RuntimeException, std::exception ) {
sal_Bool SAL_CALL XMLSignatureTemplateImpl::supportsService( const OUString& serviceName) throw( RuntimeException, std::exception ) {
Sequence< OUString > seqServiceNames = getSupportedServiceNames() ;
const OUString* pArray = seqServiceNames.getConstArray() ;
for( sal_Int32 i = 0 ; i < seqServiceNames.getLength() ; i ++ ) {
......@@ -121,28 +121,28 @@ sal_Bool SAL_CALL XMLSignatureTemplateImpl :: supportsService( const OUString& s
}
/* XServiceInfo */
Sequence< OUString > SAL_CALL XMLSignatureTemplateImpl :: getSupportedServiceNames() throw( RuntimeException, std::exception ) {
Sequence< OUString > SAL_CALL XMLSignatureTemplateImpl::getSupportedServiceNames() throw( RuntimeException, std::exception ) {
return impl_getSupportedServiceNames() ;
}
//Helper for XServiceInfo
Sequence< OUString > XMLSignatureTemplateImpl :: impl_getSupportedServiceNames() {
Sequence< OUString > XMLSignatureTemplateImpl::impl_getSupportedServiceNames() {
::osl::Guard< ::osl::Mutex > aGuard( ::osl::Mutex::getGlobalMutex() ) ;
Sequence< OUString > seqServiceNames( 1 ) ;
seqServiceNames[0] = "com.sun.star.xml.crypto.XMLSignatureTemplate";
return seqServiceNames ;
}
OUString XMLSignatureTemplateImpl :: impl_getImplementationName() throw( RuntimeException ) {
OUString XMLSignatureTemplateImpl::impl_getImplementationName() throw( RuntimeException ) {
return OUString("com.sun.star.xml.security.framework.XMLSignatureTemplateImpl") ;
}
//Helper for registry
Reference< XInterface > SAL_CALL XMLSignatureTemplateImpl :: impl_createInstance( const Reference< XMultiServiceFactory >& aServiceManager ) throw( RuntimeException ) {
Reference< XInterface > SAL_CALL XMLSignatureTemplateImpl::impl_createInstance( const Reference< XMultiServiceFactory >& aServiceManager ) throw( RuntimeException ) {
return Reference< XInterface >( *new XMLSignatureTemplateImpl( aServiceManager ) ) ;
}
Reference< XSingleServiceFactory > XMLSignatureTemplateImpl :: impl_createFactory( const Reference< XMultiServiceFactory >& aServiceManager ) {
Reference< XSingleServiceFactory > XMLSignatureTemplateImpl::impl_createFactory( const Reference< XMultiServiceFactory >& aServiceManager ) {
return ::cppu::createSingleFactory( aServiceManager , impl_getImplementationName() , impl_createInstance , impl_getSupportedServiceNames() ) ;
}
......
......@@ -26,31 +26,31 @@ using namespace ::com::sun::star::uno ;
using ::com::sun::star::security::XCertificateExtension ;
CertificateExtension_XmlSecImpl :: CertificateExtension_XmlSecImpl() :
CertificateExtension_XmlSecImpl::CertificateExtension_XmlSecImpl() :
m_critical( false ) ,
m_xExtnId() ,
m_xExtnValue()