xref: /AOO41X/main/ucb/source/ucp/tdoc/tdoc_content.hxx (revision cdf0e10c4e3984b49a9502b011690b615761d4a3)
1*cdf0e10cSrcweir /*************************************************************************
2*cdf0e10cSrcweir  *
3*cdf0e10cSrcweir  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4*cdf0e10cSrcweir  *
5*cdf0e10cSrcweir  * Copyright 2000, 2010 Oracle and/or its affiliates.
6*cdf0e10cSrcweir  *
7*cdf0e10cSrcweir  * OpenOffice.org - a multi-platform office productivity suite
8*cdf0e10cSrcweir  *
9*cdf0e10cSrcweir  * This file is part of OpenOffice.org.
10*cdf0e10cSrcweir  *
11*cdf0e10cSrcweir  * OpenOffice.org is free software: you can redistribute it and/or modify
12*cdf0e10cSrcweir  * it under the terms of the GNU Lesser General Public License version 3
13*cdf0e10cSrcweir  * only, as published by the Free Software Foundation.
14*cdf0e10cSrcweir  *
15*cdf0e10cSrcweir  * OpenOffice.org is distributed in the hope that it will be useful,
16*cdf0e10cSrcweir  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17*cdf0e10cSrcweir  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18*cdf0e10cSrcweir  * GNU Lesser General Public License version 3 for more details
19*cdf0e10cSrcweir  * (a copy is included in the LICENSE file that accompanied this code).
20*cdf0e10cSrcweir  *
21*cdf0e10cSrcweir  * You should have received a copy of the GNU Lesser General Public License
22*cdf0e10cSrcweir  * version 3 along with OpenOffice.org.  If not, see
23*cdf0e10cSrcweir  * <http://www.openoffice.org/license.html>
24*cdf0e10cSrcweir  * for a copy of the LGPLv3 License.
25*cdf0e10cSrcweir  *
26*cdf0e10cSrcweir  ************************************************************************/
27*cdf0e10cSrcweir 
28*cdf0e10cSrcweir #ifndef INCLUDED_TDOC_CONTENT_HXX
29*cdf0e10cSrcweir #define INCLUDED_TDOC_CONTENT_HXX
30*cdf0e10cSrcweir 
31*cdf0e10cSrcweir #include <ucbhelper/contenthelper.hxx>
32*cdf0e10cSrcweir #include <com/sun/star/task/DocumentPasswordRequest.hpp>
33*cdf0e10cSrcweir #include <com/sun/star/ucb/XContentCreator.hpp>
34*cdf0e10cSrcweir #include <com/sun/star/ucb/CommandFailedException.hpp>
35*cdf0e10cSrcweir #include "tdoc_provider.hxx"
36*cdf0e10cSrcweir 
37*cdf0e10cSrcweir #define NO_STREAM_CREATION_WITHIN_DOCUMENT_ROOT 1
38*cdf0e10cSrcweir 
39*cdf0e10cSrcweir namespace com { namespace sun { namespace star {
40*cdf0e10cSrcweir     namespace sdbc  { class XRow; }
41*cdf0e10cSrcweir     namespace io    { class XInputStream; class XOutputStream; }
42*cdf0e10cSrcweir     namespace beans { struct PropertyValue; }
43*cdf0e10cSrcweir     namespace ucb   { struct OpenCommandArgument2; struct TransferInfo;
44*cdf0e10cSrcweir                       struct ContentInfo; }
45*cdf0e10cSrcweir } } }
46*cdf0e10cSrcweir 
47*cdf0e10cSrcweir namespace tdoc_ucp
48*cdf0e10cSrcweir {
49*cdf0e10cSrcweir 
50*cdf0e10cSrcweir //=========================================================================
51*cdf0e10cSrcweir 
52*cdf0e10cSrcweir #define TDOC_ROOT_CONTENT_SERVICE_NAME \
53*cdf0e10cSrcweir                 "com.sun.star.ucb.TransientDocumentsRootContent"
54*cdf0e10cSrcweir #define TDOC_DOCUMENT_CONTENT_SERVICE_NAME \
55*cdf0e10cSrcweir                 "com.sun.star.ucb.TransientDocumentsDocumentContent"
56*cdf0e10cSrcweir #define TDOC_FOLDER_CONTENT_SERVICE_NAME \
57*cdf0e10cSrcweir                 "com.sun.star.ucb.TransientDocumentsFolderContent"
58*cdf0e10cSrcweir #define TDOC_STREAM_CONTENT_SERVICE_NAME \
59*cdf0e10cSrcweir                 "com.sun.star.ucb.TransientDocumentsStreamContent"
60*cdf0e10cSrcweir 
61*cdf0e10cSrcweir //=========================================================================
62*cdf0e10cSrcweir 
63*cdf0e10cSrcweir enum ContentType { STREAM, FOLDER, DOCUMENT, ROOT };
64*cdf0e10cSrcweir 
65*cdf0e10cSrcweir class ContentProperties
66*cdf0e10cSrcweir {
67*cdf0e10cSrcweir public:
68*cdf0e10cSrcweir     ContentProperties()
69*cdf0e10cSrcweir     {}
70*cdf0e10cSrcweir 
71*cdf0e10cSrcweir     ContentProperties( const ContentType & rType, const rtl::OUString & rTitle )
72*cdf0e10cSrcweir     : m_eType( rType ),
73*cdf0e10cSrcweir       m_aContentType( rType == STREAM
74*cdf0e10cSrcweir         ? rtl::OUString::createFromAscii( TDOC_STREAM_CONTENT_TYPE )
75*cdf0e10cSrcweir         : rType == FOLDER
76*cdf0e10cSrcweir             ? rtl::OUString::createFromAscii( TDOC_FOLDER_CONTENT_TYPE )
77*cdf0e10cSrcweir             : rType == DOCUMENT
78*cdf0e10cSrcweir                 ? rtl::OUString::createFromAscii( TDOC_DOCUMENT_CONTENT_TYPE )
79*cdf0e10cSrcweir                 : rtl::OUString::createFromAscii( TDOC_ROOT_CONTENT_TYPE ) ),
80*cdf0e10cSrcweir       m_aTitle( rTitle )
81*cdf0e10cSrcweir     {}
82*cdf0e10cSrcweir 
83*cdf0e10cSrcweir     ContentType getType() const { return m_eType; }
84*cdf0e10cSrcweir 
85*cdf0e10cSrcweir     // Properties
86*cdf0e10cSrcweir 
87*cdf0e10cSrcweir     const rtl::OUString & getContentType() const { return m_aContentType; }
88*cdf0e10cSrcweir 
89*cdf0e10cSrcweir     bool getIsFolder()   const { return m_eType > STREAM; }
90*cdf0e10cSrcweir     bool getIsDocument() const { return !getIsFolder(); }
91*cdf0e10cSrcweir 
92*cdf0e10cSrcweir     const rtl::OUString & getTitle() const { return m_aTitle; }
93*cdf0e10cSrcweir     void setTitle( const rtl::OUString & rTitle ) { m_aTitle = rTitle; }
94*cdf0e10cSrcweir 
95*cdf0e10cSrcweir     com::sun::star::uno::Sequence< com::sun::star::ucb::ContentInfo >
96*cdf0e10cSrcweir     getCreatableContentsInfo() const;
97*cdf0e10cSrcweir 
98*cdf0e10cSrcweir     bool isContentCreator() const;
99*cdf0e10cSrcweir 
100*cdf0e10cSrcweir private:
101*cdf0e10cSrcweir     ContentType   m_eType;
102*cdf0e10cSrcweir     rtl::OUString m_aContentType;
103*cdf0e10cSrcweir     rtl::OUString m_aTitle;
104*cdf0e10cSrcweir };
105*cdf0e10cSrcweir 
106*cdf0e10cSrcweir //=========================================================================
107*cdf0e10cSrcweir 
108*cdf0e10cSrcweir class Content : public ::ucbhelper::ContentImplHelper,
109*cdf0e10cSrcweir                 public com::sun::star::ucb::XContentCreator
110*cdf0e10cSrcweir {
111*cdf0e10cSrcweir     enum ContentState { TRANSIENT,  // created via createNewContent,
112*cdf0e10cSrcweir                                         // but did not process "insert" yet
113*cdf0e10cSrcweir                         PERSISTENT, // processed "insert"
114*cdf0e10cSrcweir                         DEAD        // processed "delete" / document was closed
115*cdf0e10cSrcweir                       };
116*cdf0e10cSrcweir 
117*cdf0e10cSrcweir     ContentProperties m_aProps;
118*cdf0e10cSrcweir     ContentState      m_eState;
119*cdf0e10cSrcweir     ContentProvider*  m_pProvider;
120*cdf0e10cSrcweir 
121*cdf0e10cSrcweir private:
122*cdf0e10cSrcweir     Content( const com::sun::star::uno::Reference<
123*cdf0e10cSrcweir                 com::sun::star::lang::XMultiServiceFactory >& rxSMgr,
124*cdf0e10cSrcweir              ContentProvider* pProvider,
125*cdf0e10cSrcweir              const com::sun::star::uno::Reference<
126*cdf0e10cSrcweir                 com::sun::star::ucb::XContentIdentifier >& Identifier,
127*cdf0e10cSrcweir             const ContentProperties & rProps );
128*cdf0e10cSrcweir     Content( const com::sun::star::uno::Reference<
129*cdf0e10cSrcweir                 com::sun::star::lang::XMultiServiceFactory >& rxSMgr,
130*cdf0e10cSrcweir              ContentProvider* pProvider,
131*cdf0e10cSrcweir              const com::sun::star::uno::Reference<
132*cdf0e10cSrcweir                 com::sun::star::ucb::XContentIdentifier >& Identifier,
133*cdf0e10cSrcweir              const com::sun::star::ucb::ContentInfo& Info );
134*cdf0e10cSrcweir 
135*cdf0e10cSrcweir     virtual com::sun::star::uno::Sequence< com::sun::star::beans::Property >
136*cdf0e10cSrcweir     getProperties( const com::sun::star::uno::Reference<
137*cdf0e10cSrcweir                     com::sun::star::ucb::XCommandEnvironment > & xEnv );
138*cdf0e10cSrcweir     virtual com::sun::star::uno::Sequence< com::sun::star::ucb::CommandInfo >
139*cdf0e10cSrcweir     getCommands( const com::sun::star::uno::Reference<
140*cdf0e10cSrcweir                     com::sun::star::ucb::XCommandEnvironment > & xEnv );
141*cdf0e10cSrcweir     virtual ::rtl::OUString getParentURL();
142*cdf0e10cSrcweir 
143*cdf0e10cSrcweir     static bool hasData( ContentProvider* pProvider, const Uri & rUri );
144*cdf0e10cSrcweir     bool hasData( const Uri & rUri ) { return hasData( m_pProvider, rUri ); }
145*cdf0e10cSrcweir 
146*cdf0e10cSrcweir     static bool loadData( ContentProvider* pProvider,
147*cdf0e10cSrcweir                           const Uri & rUri,
148*cdf0e10cSrcweir                           ContentProperties& rProps );
149*cdf0e10cSrcweir     bool storeData( const com::sun::star::uno::Reference<
150*cdf0e10cSrcweir                         com::sun::star::io::XInputStream >& xData,
151*cdf0e10cSrcweir                     const com::sun::star::uno::Reference<
152*cdf0e10cSrcweir                         com::sun::star::ucb::XCommandEnvironment >& xEnv )
153*cdf0e10cSrcweir         throw ( ::com::sun::star::ucb::CommandFailedException,
154*cdf0e10cSrcweir                 ::com::sun::star::task::DocumentPasswordRequest );
155*cdf0e10cSrcweir     bool renameData( const com::sun::star::uno::Reference<
156*cdf0e10cSrcweir                         com::sun::star::ucb::XContentIdentifier >& xOldId,
157*cdf0e10cSrcweir                      const com::sun::star::uno::Reference<
158*cdf0e10cSrcweir                         com::sun::star::ucb::XContentIdentifier >& xNewId );
159*cdf0e10cSrcweir     bool removeData();
160*cdf0e10cSrcweir 
161*cdf0e10cSrcweir     bool copyData( const Uri & rSourceUri, const rtl::OUString & rNewName );
162*cdf0e10cSrcweir 
163*cdf0e10cSrcweir     ::com::sun::star::uno::Reference<
164*cdf0e10cSrcweir         ::com::sun::star::ucb::XContentIdentifier >
165*cdf0e10cSrcweir     makeNewIdentifier( const rtl::OUString& rTitle );
166*cdf0e10cSrcweir 
167*cdf0e10cSrcweir     typedef rtl::Reference< Content > ContentRef;
168*cdf0e10cSrcweir     typedef std::list< ContentRef > ContentRefList;
169*cdf0e10cSrcweir     void queryChildren( ContentRefList& rChildren );
170*cdf0e10cSrcweir 
171*cdf0e10cSrcweir     sal_Bool exchangeIdentity(
172*cdf0e10cSrcweir                 const ::com::sun::star::uno::Reference<
173*cdf0e10cSrcweir                         ::com::sun::star::ucb::XContentIdentifier >& xNewId	);
174*cdf0e10cSrcweir 
175*cdf0e10cSrcweir     ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XRow >
176*cdf0e10cSrcweir     getPropertyValues( const ::com::sun::star::uno::Sequence<
177*cdf0e10cSrcweir                             ::com::sun::star::beans::Property >& rProperties );
178*cdf0e10cSrcweir     ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >
179*cdf0e10cSrcweir     setPropertyValues(
180*cdf0e10cSrcweir             const ::com::sun::star::uno::Sequence<
181*cdf0e10cSrcweir                     ::com::sun::star::beans::PropertyValue >& rValues,
182*cdf0e10cSrcweir             const ::com::sun::star::uno::Reference<
183*cdf0e10cSrcweir                     ::com::sun::star::ucb::XCommandEnvironment > & xEnv )
184*cdf0e10cSrcweir         throw( ::com::sun::star::uno::Exception );
185*cdf0e10cSrcweir 
186*cdf0e10cSrcweir     com::sun::star::uno::Any
187*cdf0e10cSrcweir     open( const ::com::sun::star::ucb::OpenCommandArgument2& rArg,
188*cdf0e10cSrcweir           const ::com::sun::star::uno::Reference<
189*cdf0e10cSrcweir             ::com::sun::star::ucb::XCommandEnvironment >& xEnv )
190*cdf0e10cSrcweir         throw( ::com::sun::star::uno::Exception );
191*cdf0e10cSrcweir 
192*cdf0e10cSrcweir     void insert( const ::com::sun::star::uno::Reference<
193*cdf0e10cSrcweir                     ::com::sun::star::io::XInputStream >& xData,
194*cdf0e10cSrcweir                  sal_Int32 nNameClashResolve,
195*cdf0e10cSrcweir                  const ::com::sun::star::uno::Reference<
196*cdf0e10cSrcweir                     ::com::sun::star::ucb::XCommandEnvironment > & xEnv )
197*cdf0e10cSrcweir         throw( ::com::sun::star::uno::Exception );
198*cdf0e10cSrcweir 
199*cdf0e10cSrcweir     void destroy( sal_Bool bDeletePhysical,
200*cdf0e10cSrcweir                   const ::com::sun::star::uno::Reference<
201*cdf0e10cSrcweir                     ::com::sun::star::ucb::XCommandEnvironment > & xEnv )
202*cdf0e10cSrcweir         throw( ::com::sun::star::uno::Exception );
203*cdf0e10cSrcweir 
204*cdf0e10cSrcweir     void transfer( const ::com::sun::star::ucb::TransferInfo& rInfo,
205*cdf0e10cSrcweir                    const ::com::sun::star::uno::Reference<
206*cdf0e10cSrcweir                     ::com::sun::star::ucb::XCommandEnvironment > & xEnv )
207*cdf0e10cSrcweir         throw( ::com::sun::star::uno::Exception );
208*cdf0e10cSrcweir 
209*cdf0e10cSrcweir     static ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XRow >
210*cdf0e10cSrcweir     getPropertyValues( const ::com::sun::star::uno::Reference<
211*cdf0e10cSrcweir                         ::com::sun::star::lang::XMultiServiceFactory >& rSMgr,
212*cdf0e10cSrcweir                        const ::com::sun::star::uno::Sequence<
213*cdf0e10cSrcweir                         ::com::sun::star::beans::Property >& rProperties,
214*cdf0e10cSrcweir                        const ContentProperties& rData,
215*cdf0e10cSrcweir                        ContentProvider* pProvider,
216*cdf0e10cSrcweir                        const ::rtl::OUString& rContentId );
217*cdf0e10cSrcweir 
218*cdf0e10cSrcweir 
219*cdf0e10cSrcweir     static bool commitStorage(
220*cdf0e10cSrcweir         const com::sun::star::uno::Reference<
221*cdf0e10cSrcweir             com::sun::star::embed::XStorage > & xStorage );
222*cdf0e10cSrcweir 
223*cdf0e10cSrcweir     static bool closeOutputStream(
224*cdf0e10cSrcweir         const com::sun::star::uno::Reference<
225*cdf0e10cSrcweir             com::sun::star::io::XOutputStream > & xOut );
226*cdf0e10cSrcweir 
227*cdf0e10cSrcweir     ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream >
228*cdf0e10cSrcweir     getInputStream( const ::com::sun::star::uno::Reference<
229*cdf0e10cSrcweir                         ::com::sun::star::ucb::XCommandEnvironment > &
230*cdf0e10cSrcweir                             xEnv )
231*cdf0e10cSrcweir         throw ( ::com::sun::star::ucb::CommandFailedException,
232*cdf0e10cSrcweir                 ::com::sun::star::task::DocumentPasswordRequest );
233*cdf0e10cSrcweir 
234*cdf0e10cSrcweir     ::com::sun::star::uno::Reference< ::com::sun::star::io::XOutputStream >
235*cdf0e10cSrcweir     getTruncatedOutputStream(
236*cdf0e10cSrcweir         const ::com::sun::star::uno::Reference<
237*cdf0e10cSrcweir             ::com::sun::star::ucb::XCommandEnvironment > & xEnv )
238*cdf0e10cSrcweir         throw ( ::com::sun::star::ucb::CommandFailedException,
239*cdf0e10cSrcweir                 ::com::sun::star::task::DocumentPasswordRequest );
240*cdf0e10cSrcweir 
241*cdf0e10cSrcweir     ::com::sun::star::uno::Reference< ::com::sun::star::ucb::XContent >
242*cdf0e10cSrcweir     queryChildContent( const rtl::OUString & rRelativeChildUri );
243*cdf0e10cSrcweir 
244*cdf0e10cSrcweir     ::com::sun::star::uno::Reference< ::com::sun::star::io::XStream >
245*cdf0e10cSrcweir     getStream( const ::com::sun::star::uno::Reference<
246*cdf0e10cSrcweir                     ::com::sun::star::ucb::XCommandEnvironment > & xEnv )
247*cdf0e10cSrcweir         throw ( ::com::sun::star::ucb::CommandFailedException,
248*cdf0e10cSrcweir                 ::com::sun::star::task::DocumentPasswordRequest );
249*cdf0e10cSrcweir 
250*cdf0e10cSrcweir public:
251*cdf0e10cSrcweir     // Create existing content. Fail, if not already exists.
252*cdf0e10cSrcweir     static Content* create(
253*cdf0e10cSrcweir             const com::sun::star::uno::Reference<
254*cdf0e10cSrcweir                 com::sun::star::lang::XMultiServiceFactory >& rxSMgr,
255*cdf0e10cSrcweir             ContentProvider* pProvider,
256*cdf0e10cSrcweir             const com::sun::star::uno::Reference<
257*cdf0e10cSrcweir                 com::sun::star::ucb::XContentIdentifier >& Identifier );
258*cdf0e10cSrcweir 
259*cdf0e10cSrcweir     // Create new content. Fail, if already exists.
260*cdf0e10cSrcweir     static Content* create(
261*cdf0e10cSrcweir             const com::sun::star::uno::Reference<
262*cdf0e10cSrcweir                 com::sun::star::lang::XMultiServiceFactory >& rxSMgr,
263*cdf0e10cSrcweir             ContentProvider* pProvider,
264*cdf0e10cSrcweir             const com::sun::star::uno::Reference<
265*cdf0e10cSrcweir                 com::sun::star::ucb::XContentIdentifier >& Identifier,
266*cdf0e10cSrcweir             const com::sun::star::ucb::ContentInfo& Info );
267*cdf0e10cSrcweir 
268*cdf0e10cSrcweir     virtual ~Content();
269*cdf0e10cSrcweir 
270*cdf0e10cSrcweir     // XInterface
271*cdf0e10cSrcweir     XINTERFACE_DECL()
272*cdf0e10cSrcweir 
273*cdf0e10cSrcweir     // XTypeProvider
274*cdf0e10cSrcweir     XTYPEPROVIDER_DECL()
275*cdf0e10cSrcweir 
276*cdf0e10cSrcweir     // XServiceInfo
277*cdf0e10cSrcweir     virtual ::rtl::OUString SAL_CALL
278*cdf0e10cSrcweir     getImplementationName()
279*cdf0e10cSrcweir         throw( ::com::sun::star::uno::RuntimeException );
280*cdf0e10cSrcweir     virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL
281*cdf0e10cSrcweir     getSupportedServiceNames()
282*cdf0e10cSrcweir         throw( ::com::sun::star::uno::RuntimeException );
283*cdf0e10cSrcweir 
284*cdf0e10cSrcweir     // XContent
285*cdf0e10cSrcweir     virtual rtl::OUString SAL_CALL
286*cdf0e10cSrcweir     getContentType()
287*cdf0e10cSrcweir         throw( com::sun::star::uno::RuntimeException );
288*cdf0e10cSrcweir     virtual com::sun::star::uno::Reference<
289*cdf0e10cSrcweir                 com::sun::star::ucb::XContentIdentifier > SAL_CALL
290*cdf0e10cSrcweir     getIdentifier()
291*cdf0e10cSrcweir         throw( com::sun::star::uno::RuntimeException );
292*cdf0e10cSrcweir 
293*cdf0e10cSrcweir     // XCommandProcessor
294*cdf0e10cSrcweir     virtual com::sun::star::uno::Any SAL_CALL
295*cdf0e10cSrcweir     execute( const com::sun::star::ucb::Command& aCommand,
296*cdf0e10cSrcweir              sal_Int32 CommandId,
297*cdf0e10cSrcweir              const com::sun::star::uno::Reference<
298*cdf0e10cSrcweir                 com::sun::star::ucb::XCommandEnvironment >& Environment )
299*cdf0e10cSrcweir         throw( com::sun::star::uno::Exception,
300*cdf0e10cSrcweir                com::sun::star::ucb::CommandAbortedException,
301*cdf0e10cSrcweir                com::sun::star::uno::RuntimeException );
302*cdf0e10cSrcweir     virtual void SAL_CALL
303*cdf0e10cSrcweir     abort( sal_Int32 CommandId )
304*cdf0e10cSrcweir         throw( com::sun::star::uno::RuntimeException );
305*cdf0e10cSrcweir 
306*cdf0e10cSrcweir     //////////////////////////////////////////////////////////////////////
307*cdf0e10cSrcweir     // Additional interfaces
308*cdf0e10cSrcweir     //////////////////////////////////////////////////////////////////////
309*cdf0e10cSrcweir 
310*cdf0e10cSrcweir     // XContentCreator
311*cdf0e10cSrcweir     virtual com::sun::star::uno::Sequence<
312*cdf0e10cSrcweir                 com::sun::star::ucb::ContentInfo > SAL_CALL
313*cdf0e10cSrcweir     queryCreatableContentsInfo()
314*cdf0e10cSrcweir         throw( com::sun::star::uno::RuntimeException );
315*cdf0e10cSrcweir     virtual com::sun::star::uno::Reference<
316*cdf0e10cSrcweir                 com::sun::star::ucb::XContent > SAL_CALL
317*cdf0e10cSrcweir     createNewContent( const com::sun::star::ucb::ContentInfo& Info )
318*cdf0e10cSrcweir         throw( com::sun::star::uno::RuntimeException );
319*cdf0e10cSrcweir 
320*cdf0e10cSrcweir     //////////////////////////////////////////////////////////////////////
321*cdf0e10cSrcweir     // Non-interface methods.
322*cdf0e10cSrcweir     //////////////////////////////////////////////////////////////////////
323*cdf0e10cSrcweir 
324*cdf0e10cSrcweir     static ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XRow >
325*cdf0e10cSrcweir     getPropertyValues( const ::com::sun::star::uno::Reference<
326*cdf0e10cSrcweir                         ::com::sun::star::lang::XMultiServiceFactory >& rSMgr,
327*cdf0e10cSrcweir                        const ::com::sun::star::uno::Sequence<
328*cdf0e10cSrcweir                         ::com::sun::star::beans::Property >& rProperties,
329*cdf0e10cSrcweir                        ContentProvider* pProvider,
330*cdf0e10cSrcweir                        const ::rtl::OUString& rContentId );
331*cdf0e10cSrcweir 
332*cdf0e10cSrcweir     void notifyDocumentClosed();
333*cdf0e10cSrcweir     void notifyChildRemoved( const rtl::OUString & rRelativeChildUri );
334*cdf0e10cSrcweir     void notifyChildInserted( const rtl::OUString & rRelativeChildUri );
335*cdf0e10cSrcweir 
336*cdf0e10cSrcweir     rtl::Reference< ContentProvider > getContentProvider() const
337*cdf0e10cSrcweir     { return rtl::Reference< ContentProvider >( m_pProvider ); }
338*cdf0e10cSrcweir };
339*cdf0e10cSrcweir 
340*cdf0e10cSrcweir } // namespace tdoc_ucp
341*cdf0e10cSrcweir 
342*cdf0e10cSrcweir #endif /* !INCLUDED_TDOC_CONTENT_HXX */
343