Line data Source code
1 : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : /*
3 : * This file is part of the LibreOffice project.
4 : *
5 : * This Source Code Form is subject to the terms of the Mozilla Public
6 : * License, v. 2.0. If a copy of the MPL was not distributed with this
7 : * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 : *
9 : * This file incorporates work covered by the following license notice:
10 : *
11 : * Licensed to the Apache Software Foundation (ASF) under one or more
12 : * contributor license agreements. See the NOTICE file distributed
13 : * with this work for additional information regarding copyright
14 : * ownership. The ASF licenses this file to you under the Apache
15 : * License, Version 2.0 (the "License"); you may not use this file
16 : * except in compliance with the License. You may obtain a copy of
17 : * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 : */
19 :
20 : #ifndef _INC_COMMONEMBOBJ_HXX_
21 : #define _INC_COMMONEMBOBJ_HXX_
22 :
23 : #include <com/sun/star/uno/Sequence.hxx>
24 : #include <com/sun/star/uno/Reference.hxx>
25 : #include <com/sun/star/uno/Any.hxx>
26 : #include <com/sun/star/container/XChild.hpp>
27 : #include <com/sun/star/document/XStorageBasedDocument.hpp>
28 : #include <com/sun/star/embed/XEmbeddedObject.hpp>
29 : #include <com/sun/star/embed/XVisualObject.hpp>
30 : #include <com/sun/star/embed/XEmbedPersist.hpp>
31 : #include <com/sun/star/embed/XLinkageSupport.hpp>
32 : #include <com/sun/star/embed/XClassifiedObject.hpp>
33 : #include <com/sun/star/embed/XComponentSupplier.hpp>
34 : #include <com/sun/star/embed/XInplaceObject.hpp>
35 : #include <com/sun/star/embed/XStateChangeBroadcaster.hpp>
36 : #include <com/sun/star/awt/XWindow.hpp>
37 : #include <com/sun/star/awt/Rectangle.hpp>
38 : #include <com/sun/star/document/XEventBroadcaster.hpp>
39 : #include <com/sun/star/util/XCloseable.hpp>
40 : #include <com/sun/star/chart2/XDefaultSizeTransmitter.hpp>
41 : #include <cppuhelper/weak.hxx>
42 :
43 : namespace com { namespace sun { namespace star {
44 : namespace embed {
45 : class XStorage;
46 : }
47 : namespace lang {
48 : class XMultiServiceFactory;
49 : }
50 : namespace util {
51 : class XCloseListener;
52 : }
53 : namespace beans {
54 : struct PropertyValue;
55 : struct NamedValue;
56 : }
57 : }}}
58 :
59 : namespace cppu {
60 : class OMultiTypeInterfaceContainerHelper;
61 : }
62 :
63 : namespace comphelper {
64 : class NamedValueCollection;
65 : }
66 :
67 : #define NUM_SUPPORTED_STATES 5
68 : // #define NUM_SUPPORTED_VERBS 5
69 :
70 : #include "docholder.hxx"
71 :
72 : class Interceptor;
73 :
74 : class OCommonEmbeddedObject : public ::com::sun::star::embed::XEmbeddedObject
75 : , public ::com::sun::star::embed::XEmbedPersist
76 : , public ::com::sun::star::embed::XLinkageSupport
77 : , public ::com::sun::star::embed::XInplaceObject
78 : , public ::com::sun::star::container::XChild
79 : , public ::com::sun::star::chart2::XDefaultSizeTransmitter
80 : , public ::cppu::OWeakObject
81 : {
82 : protected:
83 : ::osl::Mutex m_aMutex;
84 :
85 : DocumentHolder* m_pDocHolder;
86 :
87 : ::cppu::OMultiTypeInterfaceContainerHelper* m_pInterfaceContainer;
88 :
89 : sal_Bool m_bReadOnly;
90 :
91 : sal_Bool m_bDisposed;
92 : sal_Bool m_bClosed;
93 :
94 : sal_Int32 m_nObjectState;
95 : sal_Int32 m_nTargetState; // should be -1 exept during state changing
96 : sal_Int32 m_nUpdateMode;
97 :
98 : ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > m_xFactory;
99 :
100 : ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > m_aDocMediaDescriptor;
101 :
102 : ::com::sun::star::uno::Sequence< sal_Int8 > m_aClassID;
103 : ::rtl::OUString m_aClassName;
104 :
105 : ::rtl::OUString m_aDocServiceName;
106 : ::rtl::OUString m_aPresetFilterName;
107 :
108 : sal_Int64 m_nMiscStatus;
109 :
110 : ::com::sun::star::uno::Sequence< ::com::sun::star::embed::VerbDescriptor > m_aObjectVerbs;
111 :
112 : ::com::sun::star::uno::Sequence< sal_Int32 > m_aAcceptedStates;
113 : ::com::sun::star::uno::Sequence< sal_Int32 > m_pIntermediateStatesSeqs[NUM_SUPPORTED_STATES][NUM_SUPPORTED_STATES];
114 : ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< sal_Int32 > > m_aVerbTable;
115 :
116 : ::com::sun::star::uno::Reference< ::com::sun::star::embed::XEmbeddedClient > m_xClientSite;
117 :
118 : ::rtl::OUString m_aContainerName;
119 : ::rtl::OUString m_aDefaultParentBaseURL;
120 : ::rtl::OUString m_aModuleName;
121 : sal_Bool m_bEmbeddedScriptSupport;
122 : sal_Bool m_bDocumentRecoverySupport;
123 :
124 : Interceptor* m_pInterceptor;
125 :
126 : // following information will be used between SaveAs and SaveCompleted
127 : sal_Bool m_bWaitSaveCompleted;
128 : ::rtl::OUString m_aNewEntryName;
129 : ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage > m_xNewParentStorage;
130 : ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage > m_xNewObjectStorage;
131 : ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > m_aNewDocMediaDescriptor;
132 :
133 : ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow > m_xClientWindow; // ???
134 : ::com::sun::star::awt::Rectangle m_aOwnRectangle;
135 : ::com::sun::star::awt::Rectangle m_aClipRectangle;
136 :
137 : sal_Bool m_bIsLink;
138 :
139 : // embedded object related stuff
140 : ::rtl::OUString m_aEntryName;
141 : ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage > m_xParentStorage;
142 : ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage > m_xObjectStorage;
143 : ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage > m_xRecoveryStorage;
144 :
145 : // link related stuff
146 : ::rtl::OUString m_aLinkURL;
147 : ::rtl::OUString m_aLinkFilterName;
148 : sal_Bool m_bLinkHasPassword;
149 : ::rtl::OUString m_aLinkPassword;
150 :
151 : ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > m_xParent;
152 :
153 : sal_Bool m_bHasClonedSize; // the object has cached size
154 : ::com::sun::star::awt::Size m_aClonedSize;
155 : sal_Int32 m_nClonedMapUnit;
156 : ::com::sun::star::awt::Size m_aDefaultSizeForChart_In_100TH_MM;//#i103460# charts do not necessaryly have an own size within ODF files, in this case they need to use the size settings from the surrounding frame, which is made available with this member
157 :
158 : private:
159 : void CommonInit_Impl( const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::NamedValue >& aObjectProps );
160 :
161 : void LinkInit_Impl( const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::NamedValue >& aObjectProps,
162 : const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& aMediaDescr,
163 : const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& aObjectDescr );
164 :
165 :
166 : void SwitchOwnPersistence(
167 : const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xNewParentStorage,
168 : const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xNewObjectStorage,
169 : const ::rtl::OUString& aNewName );
170 :
171 : void SwitchOwnPersistence(
172 : const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xNewParentStorage,
173 : const ::rtl::OUString& aNewName );
174 :
175 476 : ::rtl::OUString GetDocumentServiceName() const { return m_aDocServiceName; }
176 286 : ::rtl::OUString GetPresetFilterName() const { return m_aPresetFilterName; }
177 :
178 : ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream >
179 : StoreDocumentToTempStream_Impl( sal_Int32 nStorageFormat,
180 : const ::rtl::OUString& aBaseURL,
181 : const ::rtl::OUString& aHierarchName );
182 :
183 : sal_Int32 ConvertVerbToState_Impl( sal_Int32 nVerb );
184 :
185 : void Deactivate();
186 :
187 : void StateChangeNotification_Impl( sal_Bool bBeforeChange, sal_Int32 nOldState, sal_Int32 nNewState,::osl::ResettableMutexGuard& _rGuard );
188 :
189 : void SwitchStateTo_Impl( sal_Int32 nNextState );
190 :
191 : ::com::sun::star::uno::Sequence< sal_Int32 > GetIntermediateStatesSequence_Impl( sal_Int32 nNewState );
192 :
193 : ::rtl::OUString GetFilterName( sal_Int32 nVersion ) const;
194 : ::com::sun::star::uno::Reference< ::com::sun::star::util::XCloseable > LoadDocumentFromStorage_Impl();
195 :
196 : ::com::sun::star::uno::Reference< ::com::sun::star::util::XCloseable > LoadLink_Impl();
197 :
198 : ::com::sun::star::uno::Reference< ::com::sun::star::util::XCloseable > InitNewDocument_Impl();
199 :
200 : void StoreDocToStorage_Impl( const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xStorage,
201 : sal_Int32 nStorageVersion,
202 : const ::rtl::OUString& aBaseURL,
203 : const ::rtl::OUString& aHierarchName,
204 : sal_Bool bAttachToStorage );
205 :
206 : void SwitchDocToStorage_Impl(
207 : const ::com::sun::star::uno::Reference< ::com::sun::star::document::XStorageBasedDocument >& xDoc,
208 : const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xStorage );
209 :
210 : void FillDefaultLoadArgs_Impl(
211 : const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& i_rxStorage,
212 : ::comphelper::NamedValueCollection& o_rLoadArgs
213 : ) const;
214 :
215 : void EmbedAndReparentDoc_Impl(
216 : const ::com::sun::star::uno::Reference< ::com::sun::star::util::XCloseable >& i_rxDocument
217 : ) const;
218 :
219 : ::com::sun::star::uno::Reference< ::com::sun::star::util::XCloseable > CreateDocFromMediaDescr_Impl(
220 : const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& aMedDescr );
221 :
222 : ::com::sun::star::uno::Reference< ::com::sun::star::util::XCloseable > CreateTempDocFromLink_Impl();
223 :
224 : ::rtl::OUString GetBaseURL_Impl() const;
225 : ::rtl::OUString GetBaseURLFrom_Impl(
226 : const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& lArguments,
227 : const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& lObjArgs );
228 :
229 : public:
230 : OCommonEmbeddedObject(
231 : const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& xFactory,
232 : const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::NamedValue >& aObjectProps );
233 :
234 : // no persistance for linked objects, so the descriptors are provided in constructor
235 : OCommonEmbeddedObject(
236 : const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& xFactory,
237 : const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::NamedValue >& aObjectProps,
238 : const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& aMediaDescr,
239 : const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& aObjectDescr );
240 :
241 : virtual ~OCommonEmbeddedObject();
242 :
243 : void SaveObject_Impl();
244 :
245 : void requestPositioning( const ::com::sun::star::awt::Rectangle& aRect );
246 :
247 : // not a real listener and should not be
248 : void PostEvent_Impl( const ::rtl::OUString& aEventName );
249 :
250 : // XInterface
251 :
252 : virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type& rType )
253 : throw( ::com::sun::star::uno::RuntimeException ) ;
254 :
255 : virtual void SAL_CALL acquire()
256 : throw();
257 :
258 : virtual void SAL_CALL release()
259 : throw();
260 :
261 : // XTypeProvider
262 :
263 : virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes()
264 : throw( ::com::sun::star::uno::RuntimeException ) ;
265 :
266 : virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId()
267 : throw( ::com::sun::star::uno::RuntimeException ) ;
268 :
269 : // XEmbeddedObject
270 :
271 : virtual void SAL_CALL changeState( sal_Int32 nNewState )
272 : throw ( ::com::sun::star::embed::UnreachableStateException,
273 : ::com::sun::star::embed::WrongStateException,
274 : ::com::sun::star::uno::Exception,
275 : ::com::sun::star::uno::RuntimeException );
276 :
277 : virtual ::com::sun::star::uno::Sequence< sal_Int32 > SAL_CALL getReachableStates()
278 : throw ( ::com::sun::star::embed::WrongStateException,
279 : ::com::sun::star::uno::RuntimeException );
280 :
281 : virtual sal_Int32 SAL_CALL getCurrentState()
282 : throw ( ::com::sun::star::embed::WrongStateException,
283 : ::com::sun::star::uno::RuntimeException );
284 :
285 : virtual void SAL_CALL doVerb( sal_Int32 nVerbID )
286 : throw ( ::com::sun::star::lang::IllegalArgumentException,
287 : ::com::sun::star::embed::WrongStateException,
288 : ::com::sun::star::embed::UnreachableStateException,
289 : ::com::sun::star::uno::Exception,
290 : ::com::sun::star::uno::RuntimeException );
291 :
292 : virtual ::com::sun::star::uno::Sequence< ::com::sun::star::embed::VerbDescriptor > SAL_CALL getSupportedVerbs()
293 : throw ( ::com::sun::star::embed::WrongStateException,
294 : ::com::sun::star::uno::RuntimeException );
295 :
296 : virtual void SAL_CALL setClientSite(
297 : const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XEmbeddedClient >& xClient )
298 : throw ( ::com::sun::star::embed::WrongStateException,
299 : ::com::sun::star::uno::RuntimeException );
300 :
301 : virtual ::com::sun::star::uno::Reference< ::com::sun::star::embed::XEmbeddedClient > SAL_CALL getClientSite()
302 : throw ( ::com::sun::star::embed::WrongStateException,
303 : ::com::sun::star::uno::RuntimeException );
304 :
305 : virtual void SAL_CALL update()
306 : throw ( ::com::sun::star::embed::WrongStateException,
307 : ::com::sun::star::uno::Exception,
308 : ::com::sun::star::uno::RuntimeException );
309 :
310 : virtual void SAL_CALL setUpdateMode( sal_Int32 nMode )
311 : throw ( ::com::sun::star::embed::WrongStateException,
312 : ::com::sun::star::uno::RuntimeException );
313 :
314 : virtual sal_Int64 SAL_CALL getStatus( sal_Int64 nAspect )
315 : throw ( ::com::sun::star::embed::WrongStateException,
316 : ::com::sun::star::uno::RuntimeException );
317 :
318 : virtual void SAL_CALL setContainerName( const ::rtl::OUString& sName )
319 : throw ( ::com::sun::star::uno::RuntimeException );
320 :
321 :
322 : // XVisualObject
323 :
324 : virtual void SAL_CALL setVisualAreaSize( sal_Int64 nAspect, const ::com::sun::star::awt::Size& aSize )
325 : throw ( ::com::sun::star::lang::IllegalArgumentException,
326 : ::com::sun::star::embed::WrongStateException,
327 : ::com::sun::star::uno::Exception,
328 : ::com::sun::star::uno::RuntimeException );
329 :
330 : virtual ::com::sun::star::awt::Size SAL_CALL getVisualAreaSize( sal_Int64 nAspect )
331 : throw ( ::com::sun::star::lang::IllegalArgumentException,
332 : ::com::sun::star::embed::WrongStateException,
333 : ::com::sun::star::uno::Exception,
334 : ::com::sun::star::uno::RuntimeException );
335 :
336 : virtual ::com::sun::star::embed::VisualRepresentation SAL_CALL getPreferredVisualRepresentation( ::sal_Int64 nAspect )
337 : throw ( ::com::sun::star::lang::IllegalArgumentException,
338 : ::com::sun::star::embed::WrongStateException,
339 : ::com::sun::star::uno::Exception,
340 : ::com::sun::star::uno::RuntimeException );
341 :
342 : virtual sal_Int32 SAL_CALL getMapUnit( sal_Int64 nAspect )
343 : throw ( ::com::sun::star::uno::Exception,
344 : ::com::sun::star::uno::RuntimeException);
345 :
346 : // XEmbedPersist
347 :
348 : virtual void SAL_CALL setPersistentEntry(
349 : const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xStorage,
350 : const ::rtl::OUString& sEntName,
351 : sal_Int32 nEntryConnectionMode,
352 : const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& lArguments,
353 : const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& lObjArgs )
354 : throw ( ::com::sun::star::lang::IllegalArgumentException,
355 : ::com::sun::star::embed::WrongStateException,
356 : ::com::sun::star::io::IOException,
357 : ::com::sun::star::uno::Exception,
358 : ::com::sun::star::uno::RuntimeException );
359 :
360 : virtual void SAL_CALL storeToEntry( const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xStorage, const ::rtl::OUString& sEntName, const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& lArguments, const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& lObjArgs )
361 : throw ( ::com::sun::star::lang::IllegalArgumentException,
362 : ::com::sun::star::embed::WrongStateException,
363 : ::com::sun::star::io::IOException,
364 : ::com::sun::star::uno::Exception,
365 : ::com::sun::star::uno::RuntimeException );
366 :
367 : virtual void SAL_CALL storeAsEntry(
368 : const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xStorage,
369 : const ::rtl::OUString& sEntName,
370 : const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& lArguments,
371 : const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& lObjArgs )
372 : throw ( ::com::sun::star::lang::IllegalArgumentException,
373 : ::com::sun::star::embed::WrongStateException,
374 : ::com::sun::star::io::IOException,
375 : ::com::sun::star::uno::Exception,
376 : ::com::sun::star::uno::RuntimeException );
377 :
378 : virtual void SAL_CALL saveCompleted( sal_Bool bUseNew )
379 : throw ( ::com::sun::star::embed::WrongStateException,
380 : ::com::sun::star::uno::Exception,
381 : ::com::sun::star::uno::RuntimeException );
382 :
383 : virtual sal_Bool SAL_CALL hasEntry()
384 : throw ( ::com::sun::star::embed::WrongStateException,
385 : ::com::sun::star::uno::RuntimeException );
386 :
387 : virtual ::rtl::OUString SAL_CALL getEntryName()
388 : throw ( ::com::sun::star::embed::WrongStateException,
389 : ::com::sun::star::uno::RuntimeException );
390 :
391 : // XLinkageSupport
392 :
393 : virtual void SAL_CALL breakLink( const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xStorage,
394 : const ::rtl::OUString& sEntName )
395 : throw ( ::com::sun::star::lang::IllegalArgumentException,
396 : ::com::sun::star::embed::WrongStateException,
397 : ::com::sun::star::io::IOException,
398 : ::com::sun::star::uno::Exception,
399 : ::com::sun::star::uno::RuntimeException );
400 :
401 : virtual sal_Bool SAL_CALL isLink()
402 : throw ( ::com::sun::star::embed::WrongStateException,
403 : ::com::sun::star::uno::RuntimeException);
404 :
405 : virtual ::rtl::OUString SAL_CALL getLinkURL()
406 : throw ( ::com::sun::star::embed::WrongStateException,
407 : ::com::sun::star::uno::Exception,
408 : ::com::sun::star::uno::RuntimeException);
409 :
410 :
411 : // XCommonEmbedPersist
412 :
413 : virtual void SAL_CALL storeOwn()
414 : throw ( ::com::sun::star::embed::WrongStateException,
415 : ::com::sun::star::io::IOException,
416 : ::com::sun::star::uno::Exception,
417 : ::com::sun::star::uno::RuntimeException );
418 :
419 : virtual sal_Bool SAL_CALL isReadonly()
420 : throw ( ::com::sun::star::embed::WrongStateException,
421 : ::com::sun::star::uno::RuntimeException );
422 :
423 : virtual void SAL_CALL reload(
424 : const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& lArguments,
425 : const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& lObjArgs )
426 : throw ( ::com::sun::star::lang::IllegalArgumentException,
427 : ::com::sun::star::embed::WrongStateException,
428 : ::com::sun::star::io::IOException,
429 : ::com::sun::star::uno::Exception,
430 : ::com::sun::star::uno::RuntimeException );
431 :
432 :
433 : // XInplaceObject
434 :
435 : virtual void SAL_CALL setObjectRectangles( const ::com::sun::star::awt::Rectangle& aPosRect,
436 : const ::com::sun::star::awt::Rectangle& aClipRect )
437 : throw ( ::com::sun::star::embed::WrongStateException,
438 : ::com::sun::star::uno::Exception,
439 : ::com::sun::star::uno::RuntimeException );
440 :
441 : virtual void SAL_CALL enableModeless( sal_Bool bEnable )
442 : throw ( ::com::sun::star::embed::WrongStateException,
443 : ::com::sun::star::uno::Exception,
444 : ::com::sun::star::uno::RuntimeException );
445 :
446 : virtual void SAL_CALL translateAccelerators(
447 : const ::com::sun::star::uno::Sequence< ::com::sun::star::awt::KeyEvent >& aKeys )
448 : throw ( ::com::sun::star::embed::WrongStateException,
449 : ::com::sun::star::uno::RuntimeException );
450 :
451 : // XClassifiedObject
452 :
453 : virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getClassID()
454 : throw ( ::com::sun::star::uno::RuntimeException );
455 :
456 : virtual ::rtl::OUString SAL_CALL getClassName()
457 : throw ( ::com::sun::star::uno::RuntimeException );
458 :
459 : virtual void SAL_CALL setClassInfo(
460 : const ::com::sun::star::uno::Sequence< sal_Int8 >& aClassID, const ::rtl::OUString& aClassName )
461 : throw ( ::com::sun::star::lang::NoSupportException,
462 : ::com::sun::star::uno::RuntimeException );
463 :
464 :
465 : // XComponentSupplier
466 :
467 : virtual ::com::sun::star::uno::Reference< ::com::sun::star::util::XCloseable > SAL_CALL getComponent()
468 : throw ( ::com::sun::star::uno::RuntimeException );
469 :
470 : // XStateChangeBroadcaster
471 : virtual void SAL_CALL addStateChangeListener( const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStateChangeListener >& xListener ) throw (::com::sun::star::uno::RuntimeException);
472 : virtual void SAL_CALL removeStateChangeListener( const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStateChangeListener >& xListener ) throw (::com::sun::star::uno::RuntimeException);
473 :
474 : // XCloseable
475 :
476 : virtual void SAL_CALL close( sal_Bool DeliverOwnership )
477 : throw ( ::com::sun::star::util::CloseVetoException,
478 : ::com::sun::star::uno::RuntimeException );
479 :
480 : virtual void SAL_CALL addCloseListener(
481 : const ::com::sun::star::uno::Reference< ::com::sun::star::util::XCloseListener >& Listener )
482 : throw ( ::com::sun::star::uno::RuntimeException );
483 :
484 : virtual void SAL_CALL removeCloseListener(
485 : const ::com::sun::star::uno::Reference< ::com::sun::star::util::XCloseListener >& Listener )
486 : throw ( ::com::sun::star::uno::RuntimeException );
487 :
488 : // XEventBroadcaster
489 : virtual void SAL_CALL addEventListener(
490 : const ::com::sun::star::uno::Reference< ::com::sun::star::document::XEventListener >& Listener )
491 : throw ( ::com::sun::star::uno::RuntimeException );
492 :
493 : virtual void SAL_CALL removeEventListener(
494 : const ::com::sun::star::uno::Reference< ::com::sun::star::document::XEventListener >& Listener )
495 : throw ( ::com::sun::star::uno::RuntimeException );
496 :
497 : // XChild
498 : virtual ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL getParent( ) throw (::com::sun::star::uno::RuntimeException);
499 : virtual void SAL_CALL setParent( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& Parent ) throw (::com::sun::star::lang::NoSupportException, ::com::sun::star::uno::RuntimeException);
500 :
501 : // XDefaultSizeTransmitter
502 : //#i103460# charts do not necessaryly have an own size within ODF files, in this case they need to use the size settings from the surrounding frame, which is made available with this method
503 : virtual void SAL_CALL setDefaultSize( const ::com::sun::star::awt::Size& rSize_100TH_MM ) throw (::com::sun::star::uno::RuntimeException);
504 : };
505 :
506 : #endif
507 :
508 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|