diff options
author | Noel Grandin <noel@peralex.com> | 2015-04-07 14:16:06 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-04-09 06:44:49 +0000 |
commit | 4cca0169aad7297763beaaabf9e356a40725312d (patch) | |
tree | e550df8cc02acbbb208fbecac3167f62dc1520af /ucb/source/ucp/tdoc | |
parent | cfab2fd725276e99fb6fa8b619ca5b2ac3bd025a (diff) |
loplugin:staticmethods
Change-Id: I2177e424d54dc2b5e26b7bbfe073b524e9cc5bab
Reviewed-on: https://gerrit.libreoffice.org/15187
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'ucb/source/ucp/tdoc')
-rw-r--r-- | ucb/source/ucp/tdoc/tdoc_docmgr.hxx | 15 | ||||
-rw-r--r-- | ucb/source/ucp/tdoc/tdoc_provider.cxx | 2 |
2 files changed, 6 insertions, 11 deletions
diff --git a/ucb/source/ucp/tdoc/tdoc_docmgr.hxx b/ucb/source/ucp/tdoc/tdoc_docmgr.hxx index f71f0c78086e..9d445ec12c55 100644 --- a/ucb/source/ucp/tdoc/tdoc_docmgr.hxx +++ b/ucb/source/ucp/tdoc/tdoc_docmgr.hxx @@ -138,8 +138,7 @@ namespace tdoc_ucp { com::sun::star::uno::Reference< com::sun::star::embed::XStorage > queryStorage( const OUString & rDocId ); - OUString - queryDocumentId( + static OUString queryDocumentId( const com::sun::star::uno::Reference< com::sun::star::frame::XModel > & xModel ); @@ -155,18 +154,15 @@ namespace tdoc_ucp { private: void buildDocumentsList(); - bool - isOfficeDocument( + bool isOfficeDocument( const com::sun::star::uno::Reference< com::sun::star::uno::XInterface > & xDoc ); - bool - isDocumentPreview( + static bool isDocumentPreview( const com::sun::star::uno::Reference< com::sun::star::frame::XModel > & xModel ); - bool - isWithoutOrInTopLevelFrame( + static bool isWithoutOrInTopLevelFrame( const com::sun::star::uno::Reference< com::sun::star::frame::XModel > & xModel ); @@ -175,8 +171,7 @@ namespace tdoc_ucp { const com::sun::star::uno::Reference< com::sun::star::frame::XModel > & xModel ); - bool - isHelpDocument( + static bool isHelpDocument( const com::sun::star::uno::Reference< com::sun::star::frame::XModel > & xModel ); diff --git a/ucb/source/ucp/tdoc/tdoc_provider.cxx b/ucb/source/ucp/tdoc/tdoc_provider.cxx index cce79c3e7ad0..f0ed1286602b 100644 --- a/ucb/source/ucp/tdoc/tdoc_provider.cxx +++ b/ucb/source/ucp/tdoc/tdoc_provider.cxx @@ -175,7 +175,7 @@ ContentProvider::createDocumentContent( // model -> id -> content identifier -> queryContent if ( m_xDocsMgr.is() ) { - OUString aDocId = m_xDocsMgr->queryDocumentId( Model ); + OUString aDocId = tdoc_ucp::OfficeDocumentsManager::queryDocumentId( Model ); if ( !aDocId.isEmpty() ) { OUStringBuffer aBuffer; |