From 0540a120071550facf5f8222b80fcc6a95287240 Mon Sep 17 00:00:00 2001 From: Oliver Bolte Date: Tue, 15 Mar 2005 09:10:17 +0000 Subject: INTEGRATION: CWS maybeb (1.2.134); FILE MERGED 2005/01/24 17:44:05 abi 1.2.134.3: new parameter 2005/01/20 21:51:20 abi 1.2.134.2: RESYNC: (1.2-1.3); FILE MERGED 2004/12/17 14:01:55 abi 1.2.134.1: #i33293# input stream to old position --- sfx2/source/appl/linksrc.cxx | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/sfx2/source/appl/linksrc.cxx b/sfx2/source/appl/linksrc.cxx index c3dfb0b352b8..efac74ddb014 100644 --- a/sfx2/source/appl/linksrc.cxx +++ b/sfx2/source/appl/linksrc.cxx @@ -2,9 +2,9 @@ * * $RCSfile: linksrc.cxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: rt $ $Date: 2005-01-11 13:27:40 $ + * last change: $Author: obo $ $Date: 2005-03-15 10:10:17 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -197,6 +197,9 @@ struct SvLinkSource_Impl String aDataMimeType; SvLinkSourceTimer * pTimer; ULONG nTimeout; + com::sun::star::uno::Reference + m_xInputStreamToLoadFrom; + sal_Bool m_bIsReadOnly; SvLinkSource_Impl() : pTimer( 0 ), nTimeout( 3000 ) {} ~SvLinkSource_Impl(); @@ -219,6 +222,20 @@ SvLinkSource::~SvLinkSource() delete pImpl; } + +SvLinkSource::StreamToLoadFrom SvLinkSource::getStreamToLoadFrom() +{ + return StreamToLoadFrom( + pImpl->m_xInputStreamToLoadFrom, + pImpl->m_bIsReadOnly); +} + +void SvLinkSource::setStreamToLoadFrom(const com::sun::star::uno::Reference& xInputStream,sal_Bool bIsReadOnly ) +{ + pImpl->m_xInputStreamToLoadFrom = xInputStream; + pImpl->m_bIsReadOnly = bIsReadOnly; +} + void SvLinkSource::Closed() { SvLinkSource_EntryIter_Impl aIter( pImpl->aArr ); -- cgit