Kaydet (Commit) 96be522e authored tarafından Michael Stahl's avatar Michael Stahl

remove pointless SfxBaseModel::setDocumentProperties()

üst c9e2f8ff
...@@ -1512,7 +1512,6 @@ protected: ...@@ -1512,7 +1512,6 @@ protected:
/* returns true if the document signatures are valid, otherwise false */ /* returns true if the document signatures are valid, otherwise false */
sal_Bool hasValidSignatures() const; sal_Bool hasValidSignatures() const;
void setDocumentProperties( const ::com::sun::star::uno::Reference< ::com::sun::star::document::XDocumentProperties >& );
//________________________________________________________________________________________________________ //________________________________________________________________________________________________________
// private methods // private methods
//________________________________________________________________________________________________________ //________________________________________________________________________________________________________
......
...@@ -910,16 +910,6 @@ IMPL_SfxBaseModel_DataContainer::impl_setDocumentProperties( ...@@ -910,16 +910,6 @@ IMPL_SfxBaseModel_DataContainer::impl_setDocumentProperties(
xMB->addModifyListener(new SfxDocInfoListener_Impl(*m_pObjectShell)); xMB->addModifyListener(new SfxDocInfoListener_Impl(*m_pObjectShell));
} }
void
SfxBaseModel::setDocumentProperties( const uno::Reference< document::XDocumentProperties >& rxNewDocProps )
{
// object already disposed?
::SolarMutexGuard aGuard;
if ( impl_isDisposed() )
throw lang::DisposedException();
m_pData->impl_setDocumentProperties(rxNewDocProps);
}
// document::XDocumentPropertiesSupplier: // document::XDocumentPropertiesSupplier:
uno::Reference< document::XDocumentProperties > SAL_CALL uno::Reference< document::XDocumentProperties > SAL_CALL
SfxBaseModel::getDocumentProperties() SfxBaseModel::getDocumentProperties()
......
...@@ -384,9 +384,6 @@ SwXTextDocument::SwXTextDocument(SwDocShell* pShell) : ...@@ -384,9 +384,6 @@ SwXTextDocument::SwXTextDocument(SwDocShell* pShell) :
m_pPrintUIOptions( NULL ), m_pPrintUIOptions( NULL ),
m_pRenderData( NULL ) m_pRenderData( NULL )
{ {
uno::Reference< document::XDocumentProperties > xWriterProps( ::comphelper::getProcessServiceFactory()->createInstance( DEFINE_CONST_UNICODE("com.sun.star.writer.DocumentProperties") ), uno::UNO_QUERY_THROW);
SfxBaseModel::setDocumentProperties( xWriterProps );
} }
SwXTextDocument::~SwXTextDocument() SwXTextDocument::~SwXTextDocument()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment