loplugin:unusedfields in xmlscript,xmlsecurity
Change-Id: I5239766f2105fb1a7823215a4ffe48891e000c3d
This commit is contained in:
@@ -124,7 +124,6 @@ struct DialogImport
|
|||||||
css::uno::Reference< css::container::XNameContainer > _xDialogModel;
|
css::uno::Reference< css::container::XNameContainer > _xDialogModel;
|
||||||
css::uno::Reference< css::lang::XMultiServiceFactory > _xDialogModelFactory;
|
css::uno::Reference< css::lang::XMultiServiceFactory > _xDialogModelFactory;
|
||||||
css::uno::Reference< css::frame::XModel > _xDoc;
|
css::uno::Reference< css::frame::XModel > _xDoc;
|
||||||
css::uno::Reference< css::script::XLibraryContainer > _xScriptLibraryContainer;
|
|
||||||
|
|
||||||
sal_Int32 XMLNS_DIALOGS_UID, XMLNS_SCRIPT_UID;
|
sal_Int32 XMLNS_DIALOGS_UID, XMLNS_SCRIPT_UID;
|
||||||
|
|
||||||
|
@@ -65,9 +65,8 @@ namespace xmlscript
|
|||||||
|
|
||||||
// XMLBasicExporterBase
|
// XMLBasicExporterBase
|
||||||
|
|
||||||
XMLBasicExporterBase::XMLBasicExporterBase( const Reference< XComponentContext >& rxContext, bool bOasis )
|
XMLBasicExporterBase::XMLBasicExporterBase( bool bOasis )
|
||||||
:m_xContext( rxContext )
|
:m_bOasis( bOasis )
|
||||||
,m_bOasis( bOasis )
|
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -364,8 +363,8 @@ sal_Bool XMLBasicExporterBase::filter( const Sequence< beans::PropertyValue >& /
|
|||||||
|
|
||||||
// XMLBasicExporter
|
// XMLBasicExporter
|
||||||
|
|
||||||
XMLBasicExporter::XMLBasicExporter( const Reference< XComponentContext >& rxContext )
|
XMLBasicExporter::XMLBasicExporter()
|
||||||
:XMLBasicExporterBase( rxContext, false )
|
:XMLBasicExporterBase( false )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -387,8 +386,8 @@ sal_Bool XMLBasicExporterBase::filter( const Sequence< beans::PropertyValue >& /
|
|||||||
|
|
||||||
// XMLOasisBasicExporter
|
// XMLOasisBasicExporter
|
||||||
|
|
||||||
XMLOasisBasicExporter::XMLOasisBasicExporter( const Reference< XComponentContext >& rxContext )
|
XMLOasisBasicExporter::XMLOasisBasicExporter()
|
||||||
:XMLBasicExporterBase( rxContext, true )
|
:XMLBasicExporterBase( true )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -411,15 +410,15 @@ sal_Bool XMLBasicExporterBase::filter( const Sequence< beans::PropertyValue >& /
|
|||||||
// component operations
|
// component operations
|
||||||
|
|
||||||
Reference< XInterface > SAL_CALL create_XMLBasicExporter(
|
Reference< XInterface > SAL_CALL create_XMLBasicExporter(
|
||||||
Reference< XComponentContext > const & xContext )
|
Reference< XComponentContext > const & )
|
||||||
{
|
{
|
||||||
return static_cast< lang::XTypeProvider * >( new XMLBasicExporter( xContext ) );
|
return static_cast< lang::XTypeProvider * >( new XMLBasicExporter );
|
||||||
}
|
}
|
||||||
|
|
||||||
Reference< XInterface > SAL_CALL create_XMLOasisBasicExporter(
|
Reference< XInterface > SAL_CALL create_XMLOasisBasicExporter(
|
||||||
Reference< XComponentContext > const & xContext )
|
Reference< XComponentContext > const & )
|
||||||
{
|
{
|
||||||
return static_cast< lang::XTypeProvider * >( new XMLOasisBasicExporter( xContext ) );
|
return static_cast< lang::XTypeProvider * >( new XMLOasisBasicExporter );
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace xmlscript
|
} // namespace xmlscript
|
||||||
|
@@ -43,14 +43,12 @@ namespace xmlscript
|
|||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
::osl::Mutex m_aMutex;
|
::osl::Mutex m_aMutex;
|
||||||
css::uno::Reference< css::uno::XComponentContext > m_xContext;
|
|
||||||
css::uno::Reference< css::xml::sax::XDocumentHandler > m_xHandler;
|
css::uno::Reference< css::xml::sax::XDocumentHandler > m_xHandler;
|
||||||
css::uno::Reference< css::frame::XModel > m_xModel;
|
css::uno::Reference< css::frame::XModel > m_xModel;
|
||||||
bool m_bOasis;
|
bool m_bOasis;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
XMLBasicExporterBase(
|
XMLBasicExporterBase(bool bOasis );
|
||||||
const css::uno::Reference< css::uno::XComponentContext >& rxContext, bool bOasis );
|
|
||||||
virtual ~XMLBasicExporterBase();
|
virtual ~XMLBasicExporterBase();
|
||||||
|
|
||||||
// XServiceInfo
|
// XServiceInfo
|
||||||
@@ -77,8 +75,7 @@ namespace xmlscript
|
|||||||
class XMLBasicExporter : public XMLBasicExporterBase
|
class XMLBasicExporter : public XMLBasicExporterBase
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
explicit XMLBasicExporter(
|
explicit XMLBasicExporter();
|
||||||
const css::uno::Reference< css::uno::XComponentContext >& rxContext );
|
|
||||||
virtual ~XMLBasicExporter();
|
virtual ~XMLBasicExporter();
|
||||||
|
|
||||||
// XServiceInfo
|
// XServiceInfo
|
||||||
@@ -93,8 +90,7 @@ namespace xmlscript
|
|||||||
class XMLOasisBasicExporter : public XMLBasicExporterBase
|
class XMLOasisBasicExporter : public XMLBasicExporterBase
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
explicit XMLOasisBasicExporter(
|
explicit XMLOasisBasicExporter();
|
||||||
const css::uno::Reference< css::uno::XComponentContext >& rxContext );
|
|
||||||
virtual ~XMLOasisBasicExporter();
|
virtual ~XMLOasisBasicExporter();
|
||||||
|
|
||||||
// XServiceInfo
|
// XServiceInfo
|
||||||
|
@@ -28,10 +28,9 @@ using ::com::sun::star::lang::XSingleServiceFactory ;
|
|||||||
using ::com::sun::star::xml::wrapper::XXMLElementWrapper ;
|
using ::com::sun::star::xml::wrapper::XXMLElementWrapper ;
|
||||||
using ::com::sun::star::xml::crypto::XXMLEncryptionTemplate ;
|
using ::com::sun::star::xml::crypto::XXMLEncryptionTemplate ;
|
||||||
|
|
||||||
XMLEncryptionTemplateImpl::XMLEncryptionTemplateImpl( const Reference< XMultiServiceFactory >& aFactory )
|
XMLEncryptionTemplateImpl::XMLEncryptionTemplateImpl()
|
||||||
: m_xTemplate( nullptr ),
|
: m_xTemplate( nullptr ),
|
||||||
m_xTarget( nullptr ),
|
m_xTarget( nullptr ),
|
||||||
m_xServiceManager( aFactory ),
|
|
||||||
m_nStatus ( ::com::sun::star::xml::crypto::SecurityOperationStatus_UNKNOWN ) {
|
m_nStatus ( ::com::sun::star::xml::crypto::SecurityOperationStatus_UNKNOWN ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -111,8 +110,8 @@ OUString XMLEncryptionTemplateImpl::impl_getImplementationName() throw( RuntimeE
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Helper for registry
|
//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 >& ) throw( RuntimeException ) {
|
||||||
return Reference< XInterface >( *new XMLEncryptionTemplateImpl( aServiceManager ) ) ;
|
return Reference< XInterface >( *new XMLEncryptionTemplateImpl ) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
Reference< XSingleServiceFactory > XMLEncryptionTemplateImpl::impl_createFactory( const Reference< XMultiServiceFactory >& aServiceManager ) {
|
Reference< XSingleServiceFactory > XMLEncryptionTemplateImpl::impl_createFactory( const Reference< XMultiServiceFactory >& aServiceManager ) {
|
||||||
|
@@ -39,14 +39,13 @@ class XMLEncryptionTemplateImpl : public ::cppu::WeakImplHelper<
|
|||||||
::com::sun::star::lang::XServiceInfo >
|
::com::sun::star::lang::XServiceInfo >
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
::com::sun::star::uno::Reference< ::com::sun::star::xml::wrapper::XXMLElementWrapper > m_xTemplate ;
|
::com::sun::star::uno::Reference< ::com::sun::star::xml::wrapper::XXMLElementWrapper > m_xTemplate;
|
||||||
::com::sun::star::uno::Reference< ::com::sun::star::xml::wrapper::XXMLElementWrapper > m_xTarget ;
|
::com::sun::star::uno::Reference< ::com::sun::star::xml::wrapper::XXMLElementWrapper > m_xTarget;
|
||||||
::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > m_xServiceManager ;
|
|
||||||
::com::sun::star::xml::crypto::SecurityOperationStatus m_nStatus;
|
::com::sun::star::xml::crypto::SecurityOperationStatus m_nStatus;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit XMLEncryptionTemplateImpl( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& aFactory ) ;
|
explicit XMLEncryptionTemplateImpl();
|
||||||
virtual ~XMLEncryptionTemplateImpl() ;
|
virtual ~XMLEncryptionTemplateImpl();
|
||||||
|
|
||||||
//Methods from XXMLEncryptionTemplate
|
//Methods from XXMLEncryptionTemplate
|
||||||
virtual void SAL_CALL setTemplate(
|
virtual void SAL_CALL setTemplate(
|
||||||
|
@@ -29,9 +29,8 @@ using ::com::sun::star::lang::XSingleServiceFactory ;
|
|||||||
using ::com::sun::star::xml::wrapper::XXMLElementWrapper ;
|
using ::com::sun::star::xml::wrapper::XXMLElementWrapper ;
|
||||||
using ::com::sun::star::xml::crypto::XXMLSignatureTemplate ;
|
using ::com::sun::star::xml::crypto::XXMLSignatureTemplate ;
|
||||||
|
|
||||||
XMLSignatureTemplateImpl::XMLSignatureTemplateImpl( const Reference< XMultiServiceFactory >& aFactory )
|
XMLSignatureTemplateImpl::XMLSignatureTemplateImpl()
|
||||||
:m_xTemplate( nullptr ),
|
:m_xTemplate( nullptr ),
|
||||||
m_xServiceManager( aFactory ),
|
|
||||||
m_nStatus ( ::com::sun::star::xml::crypto::SecurityOperationStatus_UNKNOWN )
|
m_nStatus ( ::com::sun::star::xml::crypto::SecurityOperationStatus_UNKNOWN )
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
@@ -137,8 +136,8 @@ OUString XMLSignatureTemplateImpl::impl_getImplementationName() throw( RuntimeEx
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Helper for registry
|
//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 >& ) throw( RuntimeException ) {
|
||||||
return Reference< XInterface >( *new XMLSignatureTemplateImpl( aServiceManager ) ) ;
|
return Reference< XInterface >( *new XMLSignatureTemplateImpl ) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
Reference< XSingleServiceFactory > XMLSignatureTemplateImpl::impl_createFactory( const Reference< XMultiServiceFactory >& aServiceManager ) {
|
Reference< XSingleServiceFactory > XMLSignatureTemplateImpl::impl_createFactory( const Reference< XMultiServiceFactory >& aServiceManager ) {
|
||||||
|
@@ -40,15 +40,14 @@ class XMLSignatureTemplateImpl : public ::cppu::WeakImplHelper<
|
|||||||
::com::sun::star::lang::XServiceInfo >
|
::com::sun::star::lang::XServiceInfo >
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
::com::sun::star::uno::Reference< ::com::sun::star::xml::wrapper::XXMLElementWrapper > m_xTemplate ;
|
::com::sun::star::uno::Reference< ::com::sun::star::xml::wrapper::XXMLElementWrapper > m_xTemplate;
|
||||||
::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > m_xServiceManager ;
|
|
||||||
std::vector< ::com::sun::star::uno::Reference< ::com::sun::star::xml::wrapper::XXMLElementWrapper > > targets;
|
std::vector< ::com::sun::star::uno::Reference< ::com::sun::star::xml::wrapper::XXMLElementWrapper > > targets;
|
||||||
::com::sun::star::uno::Reference< ::com::sun::star::xml::crypto::XUriBinding > m_xUriBinding;
|
::com::sun::star::uno::Reference< ::com::sun::star::xml::crypto::XUriBinding > m_xUriBinding;
|
||||||
::com::sun::star::xml::crypto::SecurityOperationStatus m_nStatus;
|
::com::sun::star::xml::crypto::SecurityOperationStatus m_nStatus;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit XMLSignatureTemplateImpl( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& aFactory ) ;
|
explicit XMLSignatureTemplateImpl();
|
||||||
virtual ~XMLSignatureTemplateImpl() ;
|
virtual ~XMLSignatureTemplateImpl();
|
||||||
|
|
||||||
//Methods from XXMLSignatureTemplate
|
//Methods from XXMLSignatureTemplate
|
||||||
virtual void SAL_CALL setTemplate(
|
virtual void SAL_CALL setTemplate(
|
||||||
|
@@ -61,7 +61,6 @@ private:
|
|||||||
std::list< PK11SymKey* > m_tSymKeyList ;
|
std::list< PK11SymKey* > m_tSymKeyList ;
|
||||||
std::list< SECKEYPublicKey* > m_tPubKeyList ;
|
std::list< SECKEYPublicKey* > m_tPubKeyList ;
|
||||||
std::list< SECKEYPrivateKey* > m_tPriKeyList ;
|
std::list< SECKEYPrivateKey* > m_tPriKeyList ;
|
||||||
::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > m_xServiceManager ;
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
SecurityEnvironment_NssImpl();
|
SecurityEnvironment_NssImpl();
|
||||||
|
@@ -43,7 +43,7 @@ using ::com::sun::star::xml::crypto::XXMLEncryptionTemplate ;
|
|||||||
using ::com::sun::star::xml::crypto::XXMLSecurityContext ;
|
using ::com::sun::star::xml::crypto::XXMLSecurityContext ;
|
||||||
using ::com::sun::star::xml::crypto::XMLEncryptionException ;
|
using ::com::sun::star::xml::crypto::XMLEncryptionException ;
|
||||||
|
|
||||||
XMLEncryption_NssImpl::XMLEncryption_NssImpl( const Reference< XMultiServiceFactory >& aFactory ) : m_xServiceManager( aFactory ) {
|
XMLEncryption_NssImpl::XMLEncryption_NssImpl() {
|
||||||
}
|
}
|
||||||
|
|
||||||
XMLEncryption_NssImpl::~XMLEncryption_NssImpl() {
|
XMLEncryption_NssImpl::~XMLEncryption_NssImpl() {
|
||||||
@@ -342,8 +342,8 @@ OUString XMLEncryption_NssImpl::impl_getImplementationName() throw( RuntimeExcep
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Helper for registry
|
//Helper for registry
|
||||||
Reference< XInterface > SAL_CALL XMLEncryption_NssImpl::impl_createInstance( const Reference< XMultiServiceFactory >& aServiceManager ) throw( RuntimeException ) {
|
Reference< XInterface > SAL_CALL XMLEncryption_NssImpl::impl_createInstance( const Reference< XMultiServiceFactory >& ) throw( RuntimeException ) {
|
||||||
return Reference< XInterface >( *new XMLEncryption_NssImpl( aServiceManager ) ) ;
|
return Reference< XInterface >( *new XMLEncryption_NssImpl ) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
Reference< XSingleServiceFactory > XMLEncryption_NssImpl::impl_createFactory( const Reference< XMultiServiceFactory >& aServiceManager ) {
|
Reference< XSingleServiceFactory > XMLEncryption_NssImpl::impl_createFactory( const Reference< XMultiServiceFactory >& aServiceManager ) {
|
||||||
|
@@ -38,11 +38,8 @@ class XMLEncryption_NssImpl : public ::cppu::WeakImplHelper<
|
|||||||
::com::sun::star::xml::crypto::XXMLEncryption ,
|
::com::sun::star::xml::crypto::XXMLEncryption ,
|
||||||
::com::sun::star::lang::XServiceInfo >
|
::com::sun::star::lang::XServiceInfo >
|
||||||
{
|
{
|
||||||
private:
|
|
||||||
::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > m_xServiceManager ;
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit XMLEncryption_NssImpl(const css::uno::Reference<css::lang::XMultiServiceFactory >& rFactory);
|
explicit XMLEncryption_NssImpl();
|
||||||
virtual ~XMLEncryption_NssImpl() ;
|
virtual ~XMLEncryption_NssImpl() ;
|
||||||
|
|
||||||
//Methods from XXMLEncryption
|
//Methods from XXMLEncryption
|
||||||
|
@@ -47,7 +47,7 @@ using ::com::sun::star::xml::crypto::XXMLSecurityContext ;
|
|||||||
using ::com::sun::star::xml::crypto::XUriBinding ;
|
using ::com::sun::star::xml::crypto::XUriBinding ;
|
||||||
using ::com::sun::star::xml::crypto::XMLSignatureException ;
|
using ::com::sun::star::xml::crypto::XMLSignatureException ;
|
||||||
|
|
||||||
XMLSignature_NssImpl::XMLSignature_NssImpl( const Reference< XMultiServiceFactory >& aFactory ) : m_xServiceManager( aFactory ) {
|
XMLSignature_NssImpl::XMLSignature_NssImpl() {
|
||||||
}
|
}
|
||||||
|
|
||||||
XMLSignature_NssImpl::~XMLSignature_NssImpl() {
|
XMLSignature_NssImpl::~XMLSignature_NssImpl() {
|
||||||
@@ -305,8 +305,8 @@ OUString XMLSignature_NssImpl::impl_getImplementationName() throw( RuntimeExcept
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Helper for registry
|
//Helper for registry
|
||||||
Reference< XInterface > SAL_CALL XMLSignature_NssImpl::impl_createInstance( const Reference< XMultiServiceFactory >& aServiceManager ) throw( RuntimeException ) {
|
Reference< XInterface > SAL_CALL XMLSignature_NssImpl::impl_createInstance( const Reference< XMultiServiceFactory >& ) throw( RuntimeException ) {
|
||||||
return Reference< XInterface >( *new XMLSignature_NssImpl( aServiceManager ) ) ;
|
return Reference< XInterface >( *new XMLSignature_NssImpl ) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
Reference< XSingleServiceFactory > XMLSignature_NssImpl::impl_createFactory( const Reference< XMultiServiceFactory >& aServiceManager ) {
|
Reference< XSingleServiceFactory > XMLSignature_NssImpl::impl_createFactory( const Reference< XMultiServiceFactory >& aServiceManager ) {
|
||||||
|
@@ -38,11 +38,8 @@ class XMLSignature_NssImpl : public ::cppu::WeakImplHelper<
|
|||||||
::com::sun::star::xml::crypto::XXMLSignature ,
|
::com::sun::star::xml::crypto::XXMLSignature ,
|
||||||
::com::sun::star::lang::XServiceInfo >
|
::com::sun::star::lang::XServiceInfo >
|
||||||
{
|
{
|
||||||
private:
|
|
||||||
::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > m_xServiceManager ;
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit XMLSignature_NssImpl(const css::uno::Reference<css::lang::XMultiServiceFactory>& rFactory);
|
explicit XMLSignature_NssImpl();
|
||||||
virtual ~XMLSignature_NssImpl() ;
|
virtual ~XMLSignature_NssImpl() ;
|
||||||
|
|
||||||
//Methods from XXMLSignature
|
//Methods from XXMLSignature
|
||||||
|
Reference in New Issue
Block a user