summaryrefslogtreecommitdiff
path: root/ucb
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2004-12-23 08:41:33 +0000
committerVladimir Glazounov <vg@openoffice.org>2004-12-23 08:41:33 +0000
commit7a26caf28ca1d709ae44546a02dc94e0c522afa1 (patch)
tree2a5873f2d887359f890eb46b1e24e681be4d5e79 /ucb
parent389a9e013fb3819999a80587cce7728262364029 (diff)
INTEGRATION: CWS kso12 (1.5.6); FILE MERGED
2004/12/08 09:46:32 kso 1.5.6.1: #118624# - OfficeDocumentsManager::isOfficeDocument() now returns false for docs which do not implement css.document.XStorageBasedDocument. Issue number: Submitted by: Reviewed by:
Diffstat (limited to 'ucb')
-rw-r--r--ucb/source/ucp/tdoc/tdoc_docmgr.cxx10
1 files changed, 7 insertions, 3 deletions
diff --git a/ucb/source/ucp/tdoc/tdoc_docmgr.cxx b/ucb/source/ucp/tdoc/tdoc_docmgr.cxx
index 4a9f635ef1d8..9670870529b4 100644
--- a/ucb/source/ucp/tdoc/tdoc_docmgr.cxx
+++ b/ucb/source/ucp/tdoc/tdoc_docmgr.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: tdoc_docmgr.cxx,v $
*
- * $Revision: 1.5 $
+ * $Revision: 1.6 $
*
- * last change: $Author: rt $ $Date: 2004-11-09 15:33:49 $
+ * last change: $Author: vg $ $Date: 2004-12-23 09:41:33 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -58,7 +58,6 @@
*
*
************************************************************************/
-
/**************************************************************************
TODO
**************************************************************************
@@ -675,6 +674,11 @@ OfficeDocumentsManager::queryStorageTitle( const rtl::OUString & rDocId )
bool OfficeDocumentsManager::isOfficeDocument(
const uno::Reference< uno::XInterface > & xDoc )
{
+ uno::Reference< document::XStorageBasedDocument >
+ xStorageBasedDoc( xDoc, uno::UNO_QUERY );
+ if ( !xStorageBasedDoc.is() )
+ return false;
+
uno::Reference< frame::XModel > xModel( xDoc, uno::UNO_QUERY );
if ( xModel.is() )
{