summaryrefslogtreecommitdiff
path: root/embedserv
diff options
context:
space:
mode:
authorMikhail Voitenko <mav@openoffice.org>2003-03-26 09:56:51 +0000
committerMikhail Voitenko <mav@openoffice.org>2003-03-26 09:56:51 +0000
commit74d5462d024bbb66e74e9c9dc912110b918516b4 (patch)
treefdcbfbeb168e00e367706b77caf5305e704cf5a9 /embedserv
parent5c44484b924a3aa8a7b39a0f31413a307d57906b (diff)
#i2822# set the document mode to 'embedded'
Diffstat (limited to 'embedserv')
-rw-r--r--embedserv/source/embed/docholder.cxx13
1 files changed, 11 insertions, 2 deletions
diff --git a/embedserv/source/embed/docholder.cxx b/embedserv/source/embed/docholder.cxx
index bcf19ef457c0..f26463f97356 100644
--- a/embedserv/source/embed/docholder.cxx
+++ b/embedserv/source/embed/docholder.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: docholder.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: mav $ $Date: 2003-03-19 08:35:37 $
+ * last change: $Author: mav $ $Date: 2003-03-26 10:56:51 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -168,6 +168,15 @@ void DocumentHolder::SetDocument( const uno::Reference< frame::XModel >& xDoc )
uno::Reference< util::XCloseBroadcaster > xBroadcaster( m_xDocument, uno::UNO_QUERY );
if ( xBroadcaster.is() )
xBroadcaster->addCloseListener( (util::XCloseListener*)this );
+
+ if ( m_xDocument.is() )
+ {
+ // set the document mode to embedded
+ uno::Sequence< beans::PropertyValue > aSeq( 1 );
+ aSeq[0].Name = ::rtl::OUString::createFromAscii( "SetEmbedded" );
+ aSeq[0].Value <<= sal_True;
+ m_xDocument->attachResource( ::rtl::OUString(), aSeq );
+ }
}
void SAL_CALL DocumentHolder::disposing( const com::sun::star::lang::EventObject& aSource )