1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #ifndef _INC_OLEEMBOBJ_HXX_
21 #define _INC_OLEEMBOBJ_HXX_
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/embed/XEmbeddedObject.hpp>
27 #include <com/sun/star/embed/XInplaceObject.hpp>
28 #include <com/sun/star/embed/XVisualObject.hpp>
29 #include <com/sun/star/embed/XEmbedPersist.hpp>
30 #include <com/sun/star/embed/XLinkageSupport.hpp>
31 #include <com/sun/star/embed/XClassifiedObject.hpp>
32 #include <com/sun/star/embed/XComponentSupplier.hpp>
33 #include <com/sun/star/embed/VerbDescriptor.hpp>
34 #include <com/sun/star/document/XEventBroadcaster.hpp>
35 #include <com/sun/star/container/XChild.hpp>
36 #include <com/sun/star/util/XCloseable.hpp>
37 #include <com/sun/star/util/XCloseListener.hpp>
38 #include <cppuhelper/implbase5.hxx>
40 #include <osl/thread.h>
43 class OMultiTypeInterfaceContainerHelper
;
46 class VerbExecutionController
48 // the following mutex is allowed to be locked only for variables initialization, so no deadlock can be caused
49 ::osl::Mutex m_aVerbExecutionMutex
;
51 sal_Bool m_bVerbExecutionInProgress
;
53 oslThreadIdentifier m_nVerbExecutionThreadIdentifier
;
54 sal_Bool m_bChangedOnVerbExecution
;
57 sal_Bool m_bWasEverActive
;
58 sal_Int32 m_nNotificationLock
;
62 VerbExecutionController()
63 : m_bVerbExecutionInProgress( sal_False
)
65 , m_nVerbExecutionThreadIdentifier( 0 )
66 , m_bChangedOnVerbExecution( sal_False
)
68 , m_bWasEverActive( sal_False
)
69 , m_nNotificationLock( 0 )
72 void StartControlExecution();
73 sal_Bool
EndControlExecution_WasModified();
74 void ModificationNotificationIsDone();
76 void LockNotification();
77 void UnlockNotification();
79 // no need to lock anything to check the value of the numeric members
80 sal_Bool
CanDoNotification() { return ( !m_bVerbExecutionInProgress
&& !m_bWasEverActive
&& !m_nNotificationLock
); }
81 // ... or to change it
82 void ObjectIsActive() { m_bWasEverActive
= sal_True
; }
85 class VerbExecutionControllerGuard
87 VerbExecutionController
& m_rController
;
90 VerbExecutionControllerGuard( VerbExecutionController
& rController
)
91 : m_rController( rController
)
93 m_rController
.LockNotification();
96 ~VerbExecutionControllerGuard()
98 m_rController
.UnlockNotification();
105 class OleEmbeddedObject
: public ::cppu::WeakImplHelper5
106 < ::com::sun::star::embed::XEmbeddedObject
107 , ::com::sun::star::embed::XEmbedPersist
108 , ::com::sun::star::embed::XLinkageSupport
109 , ::com::sun::star::embed::XInplaceObject
110 , ::com::sun::star::container::XChild
>
112 friend class OleComponent
;
114 ::osl::Mutex m_aMutex
;
116 OleComponent
* m_pOleComponent
;
118 ::cppu::OMultiTypeInterfaceContainerHelper
* m_pInterfaceContainer
;
120 sal_Bool m_bReadOnly
;
122 sal_Int32 m_bDisposed
;
123 sal_Int32 m_nObjectState
;
124 sal_Int32 m_nTargetState
;
125 sal_Int32 m_nUpdateMode
;
127 ::com::sun::star::uno::Reference
< ::com::sun::star::lang::XMultiServiceFactory
> m_xFactory
;
129 ::com::sun::star::uno::Sequence
< sal_Int8
> m_aClassID
;
130 OUString m_aClassName
;
132 ::com::sun::star::uno::Reference
< ::com::sun::star::embed::XEmbeddedClient
> m_xClientSite
;
134 OUString m_aContainerName
;
136 ::com::sun::star::uno::Reference
< ::com::sun::star::util::XCloseListener
> m_xClosePreventer
;
138 sal_Bool m_bWaitSaveCompleted
;
139 sal_Bool m_bNewVisReplInStream
;
140 ::com::sun::star::uno::Reference
< ::com::sun::star::io::XStream
> m_xNewCachedVisRepl
;
141 OUString m_aNewEntryName
;
142 ::com::sun::star::uno::Reference
< ::com::sun::star::embed::XStorage
> m_xNewParentStorage
;
143 ::com::sun::star::uno::Reference
< ::com::sun::star::io::XStream
> m_xNewObjectStream
;
144 sal_Bool m_bStoreLoaded
;
146 ::com::sun::star::uno::Reference
< ::com::sun::star::io::XStream
> m_xCachedVisualRepresentation
;
147 sal_Bool m_bVisReplInitialized
;
148 sal_Bool m_bVisReplInStream
;
149 sal_Bool m_bStoreVisRepl
;
153 // TODO/LATER: may need to cache more than one aspect in future
154 sal_Bool m_bHasCachedSize
; // the object has cached size
155 ::com::sun::star::awt::Size m_aCachedSize
;
156 sal_Int64 m_nCachedAspect
;
158 sal_Bool m_bHasSizeToSet
; // the object has cached size that should be set to OLE component
159 ::com::sun::star::awt::Size m_aSizeToSet
; // this size might be different from the cached one ( scaling is applied )
160 sal_Int64 m_nAspectToSet
;
163 // cache the status of the object
164 // TODO/LATER: may need to cache more than one aspect in future
165 sal_Bool m_bGotStatus
;
167 sal_Int64 m_nStatusAspect
;
169 // embedded object related stuff
170 OUString m_aEntryName
;
171 ::com::sun::star::uno::Reference
< ::com::sun::star::embed::XStorage
> m_xParentStorage
;
172 ::com::sun::star::uno::Reference
< ::com::sun::star::io::XStream
> m_xObjectStream
;
174 // link related stuff
175 OUString m_aLinkURL
; // ???
177 // points to own view provider if the object has no server
178 OwnView_Impl
* m_pOwnView
;
180 // whether the object should be initialized from clipboard in case of default initialization
181 sal_Bool m_bFromClipboard
;
185 OUString m_aTempDumpURL
;
188 // the following member is used during verb execution to detect whether the verb execution modifies the object
189 VerbExecutionController m_aVerbExecutionController
;
191 // if the following member is set, the object works in wrapper mode
192 ::com::sun::star::uno::Reference
< ::com::sun::star::embed::XEmbeddedObject
> m_xWrappedObject
;
193 sal_Bool m_bTriedConversion
;
195 ::com::sun::star::uno::Reference
< ::com::sun::star::uno::XInterface
> m_xParent
;
199 ::com::sun::star::uno::Reference
< ::com::sun::star::io::XStream
> TryToGetAcceptableFormat_Impl(
200 const ::com::sun::star::uno::Reference
< ::com::sun::star::io::XStream
>& xStream
)
201 throw ( ::com::sun::star::uno::Exception
);
203 ::com::sun::star::uno::Reference
< ::com::sun::star::io::XStream
> GetNewFilledTempStream_Impl(
204 const ::com::sun::star::uno::Reference
< ::com::sun::star::io::XInputStream
>& xInStream
)
205 throw( ::com::sun::star::io::IOException
);
207 void SwitchComponentToRunningState_Impl();
209 void MakeEventListenerNotification_Impl( const OUString
& aEventName
);
211 void StateChangeNotification_Impl( sal_Bool bBeforeChange
, sal_Int32 nOldState
, sal_Int32 nNewState
);
212 ::com::sun::star::uno::Reference
< ::com::sun::star::io::XOutputStream
> GetStreamForSaving();
215 ::com::sun::star::uno::Sequence
< sal_Int32
> GetIntermediateVerbsSequence_Impl( sal_Int32 nNewState
);
217 ::com::sun::star::uno::Sequence
< sal_Int32
> GetReachableStatesList_Impl(
218 const ::com::sun::star::uno::Sequence
< ::com::sun::star::embed::VerbDescriptor
>& aVerbList
);
221 void CloseComponent();
224 void SwitchOwnPersistence(
225 const ::com::sun::star::uno::Reference
< ::com::sun::star::embed::XStorage
>& xNewParentStorage
,
226 const ::com::sun::star::uno::Reference
< ::com::sun::star::io::XStream
>& xNewObjectStream
,
227 const OUString
& aNewName
);
229 void SwitchOwnPersistence(
230 const ::com::sun::star::uno::Reference
< ::com::sun::star::embed::XStorage
>& xNewParentStorage
,
231 const OUString
& aNewName
);
233 void GetRidOfComponent();
235 void StoreToLocation_Impl(
236 const ::com::sun::star::uno::Reference
< ::com::sun::star::embed::XStorage
>& xStorage
,
237 const OUString
& sEntName
,
238 const ::com::sun::star::uno::Sequence
< ::com::sun::star::beans::PropertyValue
>& lObjArgs
,
240 throw ( ::com::sun::star::uno::Exception
);
242 void StoreObjectToStream( ::com::sun::star::uno::Reference
< ::com::sun::star::io::XOutputStream
> xOutStream
)
243 throw ( ::com::sun::star::uno::Exception
);
245 void InsertVisualCache_Impl(
246 const ::com::sun::star::uno::Reference
< ::com::sun::star::io::XStream
>& xTargetStream
,
247 const ::com::sun::star::uno::Reference
< ::com::sun::star::io::XStream
>& xCachedVisualRepresentation
)
248 throw ( ::com::sun::star::uno::Exception
);
250 void RemoveVisualCache_Impl( const ::com::sun::star::uno::Reference
< ::com::sun::star::io::XStream
>& xTargetStream
)
251 throw ( ::com::sun::star::uno::Exception
);
253 void SetVisReplInStream( sal_Bool bExists
);
254 sal_Bool
HasVisReplInStream();
256 ::com::sun::star::embed::VisualRepresentation
GetVisualRepresentationInNativeFormat_Impl(
257 const ::com::sun::star::uno::Reference
< ::com::sun::star::io::XStream
> xCachedVisRepr
)
258 throw ( ::com::sun::star::uno::Exception
);
260 ::com::sun::star::uno::Reference
< ::com::sun::star::io::XStream
> TryToRetrieveCachedVisualRepresentation_Impl(
261 const ::com::sun::star::uno::Reference
< ::com::sun::star::io::XStream
>& xStream
,
262 sal_Bool bAllowRepair50
= sal_False
)
265 sal_Bool
SaveObject_Impl();
266 sal_Bool
OnShowWindow_Impl( sal_Bool bShow
);
267 void CreateOleComponent_Impl( OleComponent
* pOleComponent
= NULL
);
268 void CreateOleComponentAndLoad_Impl( OleComponent
* pOleComponent
= NULL
);
269 void CreateOleComponentFromClipboard_Impl( OleComponent
* pOleComponent
= NULL
);
271 void SetObjectIsLink_Impl( sal_Bool bIsLink
) { m_bIsLink
= bIsLink
; }
274 OUString
CreateTempURLEmpty_Impl();
275 OUString
GetTempURL_Impl();
277 OUString
GetContainerName_Impl() { return m_aContainerName
; }
279 // the following 4 methods are related to switch to wrapping mode
280 void MoveListeners();
281 ::com::sun::star::uno::Reference
< ::com::sun::star::embed::XStorage
> CreateTemporarySubstorage( OUString
& o_aStorageName
);
282 OUString
MoveToTemporarySubstream();
283 sal_Bool
TryToConvertToOOo();
286 // in case a new object must be created the class ID must be specified
287 OleEmbeddedObject( const ::com::sun::star::uno::Reference
< ::com::sun::star::lang::XMultiServiceFactory
>& xFactory
,
288 const ::com::sun::star::uno::Sequence
< sal_Int8
>& aClassID
,
289 const OUString
& aClassName
);
291 // in case object will be loaded from a persistent entry or from a file the class ID will be detected on loading
292 // factory can do it for OOo objects, but for OLE objects OS dependent code is required
293 OleEmbeddedObject( const ::com::sun::star::uno::Reference
< ::com::sun::star::lang::XMultiServiceFactory
>& xFactory
,
296 // this constructor let object be initialized from clipboard
297 OleEmbeddedObject( const ::com::sun::star::uno::Reference
< ::com::sun::star::lang::XMultiServiceFactory
>& xFactory
);
300 virtual ~OleEmbeddedObject();
303 void OnIconChanged_Impl();
304 void OnViewChanged_Impl();
305 void OnClosed_Impl();
310 virtual void SAL_CALL
changeState( sal_Int32 nNewState
)
311 throw ( ::com::sun::star::embed::UnreachableStateException
,
312 ::com::sun::star::embed::WrongStateException
,
313 ::com::sun::star::uno::Exception
,
314 ::com::sun::star::uno::RuntimeException
);
316 virtual ::com::sun::star::uno::Sequence
< sal_Int32
> SAL_CALL
getReachableStates()
317 throw ( ::com::sun::star::embed::WrongStateException
,
318 ::com::sun::star::uno::RuntimeException
);
320 virtual sal_Int32 SAL_CALL
getCurrentState()
321 throw ( ::com::sun::star::embed::WrongStateException
,
322 ::com::sun::star::uno::RuntimeException
);
324 virtual void SAL_CALL
doVerb( sal_Int32 nVerbID
)
325 throw ( ::com::sun::star::lang::IllegalArgumentException
,
326 ::com::sun::star::embed::WrongStateException
,
327 ::com::sun::star::embed::UnreachableStateException
,
328 ::com::sun::star::uno::Exception
,
329 ::com::sun::star::uno::RuntimeException
);
331 virtual ::com::sun::star::uno::Sequence
< ::com::sun::star::embed::VerbDescriptor
> SAL_CALL
getSupportedVerbs()
332 throw ( ::com::sun::star::embed::WrongStateException
,
333 ::com::sun::star::uno::RuntimeException
);
335 virtual void SAL_CALL
setClientSite(
336 const ::com::sun::star::uno::Reference
< ::com::sun::star::embed::XEmbeddedClient
>& xClient
)
337 throw ( ::com::sun::star::embed::WrongStateException
,
338 ::com::sun::star::uno::RuntimeException
);
340 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::embed::XEmbeddedClient
> SAL_CALL
getClientSite()
341 throw ( ::com::sun::star::embed::WrongStateException
,
342 ::com::sun::star::uno::RuntimeException
);
344 virtual void SAL_CALL
update()
345 throw ( ::com::sun::star::embed::WrongStateException
,
346 ::com::sun::star::uno::Exception
,
347 ::com::sun::star::uno::RuntimeException
);
349 virtual void SAL_CALL
setUpdateMode( sal_Int32 nMode
)
350 throw ( ::com::sun::star::embed::WrongStateException
,
351 ::com::sun::star::uno::RuntimeException
);
353 virtual sal_Int64 SAL_CALL
getStatus( sal_Int64 nAspect
)
354 throw ( ::com::sun::star::embed::WrongStateException
,
355 ::com::sun::star::uno::RuntimeException
);
357 virtual void SAL_CALL
setContainerName( const OUString
& sName
)
358 throw ( ::com::sun::star::uno::RuntimeException
);
363 virtual void SAL_CALL
setVisualAreaSize( sal_Int64 nAspect
, const ::com::sun::star::awt::Size
& aSize
)
364 throw ( ::com::sun::star::lang::IllegalArgumentException
,
365 ::com::sun::star::embed::WrongStateException
,
366 ::com::sun::star::uno::Exception
,
367 ::com::sun::star::uno::RuntimeException
);
369 virtual ::com::sun::star::awt::Size SAL_CALL
getVisualAreaSize( sal_Int64 nAspect
)
370 throw ( ::com::sun::star::lang::IllegalArgumentException
,
371 ::com::sun::star::embed::WrongStateException
,
372 ::com::sun::star::uno::Exception
,
373 ::com::sun::star::uno::RuntimeException
);
375 virtual ::com::sun::star::embed::VisualRepresentation SAL_CALL
getPreferredVisualRepresentation( ::sal_Int64 nAspect
)
376 throw ( ::com::sun::star::lang::IllegalArgumentException
,
377 ::com::sun::star::embed::WrongStateException
,
378 ::com::sun::star::uno::Exception
,
379 ::com::sun::star::uno::RuntimeException
);
381 virtual sal_Int32 SAL_CALL
getMapUnit( sal_Int64 nAspect
)
382 throw ( ::com::sun::star::uno::Exception
,
383 ::com::sun::star::uno::RuntimeException
);
388 virtual void SAL_CALL
setPersistentEntry(
389 const ::com::sun::star::uno::Reference
< ::com::sun::star::embed::XStorage
>& xStorage
,
390 const OUString
& sEntName
,
391 sal_Int32 nEntryConnectionMode
,
392 const ::com::sun::star::uno::Sequence
< ::com::sun::star::beans::PropertyValue
>& lArguments
,
393 const ::com::sun::star::uno::Sequence
< ::com::sun::star::beans::PropertyValue
>& lObjArgs
)
394 throw ( ::com::sun::star::lang::IllegalArgumentException
,
395 ::com::sun::star::embed::WrongStateException
,
396 ::com::sun::star::io::IOException
,
397 ::com::sun::star::uno::Exception
,
398 ::com::sun::star::uno::RuntimeException
);
400 virtual void SAL_CALL
storeToEntry( const ::com::sun::star::uno::Reference
< ::com::sun::star::embed::XStorage
>& xStorage
, const 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
)
401 throw ( ::com::sun::star::lang::IllegalArgumentException
,
402 ::com::sun::star::embed::WrongStateException
,
403 ::com::sun::star::io::IOException
,
404 ::com::sun::star::uno::Exception
,
405 ::com::sun::star::uno::RuntimeException
);
407 virtual void SAL_CALL
storeAsEntry(
408 const ::com::sun::star::uno::Reference
< ::com::sun::star::embed::XStorage
>& xStorage
,
409 const OUString
& sEntName
,
410 const ::com::sun::star::uno::Sequence
< ::com::sun::star::beans::PropertyValue
>& lArguments
,
411 const ::com::sun::star::uno::Sequence
< ::com::sun::star::beans::PropertyValue
>& lObjArgs
)
412 throw ( ::com::sun::star::lang::IllegalArgumentException
,
413 ::com::sun::star::embed::WrongStateException
,
414 ::com::sun::star::io::IOException
,
415 ::com::sun::star::uno::Exception
,
416 ::com::sun::star::uno::RuntimeException
);
418 virtual void SAL_CALL
saveCompleted( sal_Bool bUseNew
)
419 throw ( ::com::sun::star::embed::WrongStateException
,
420 ::com::sun::star::uno::Exception
,
421 ::com::sun::star::uno::RuntimeException
);
423 virtual sal_Bool SAL_CALL
hasEntry()
424 throw ( ::com::sun::star::embed::WrongStateException
,
425 ::com::sun::star::uno::RuntimeException
);
427 virtual OUString SAL_CALL
getEntryName()
428 throw ( ::com::sun::star::embed::WrongStateException
,
429 ::com::sun::star::uno::RuntimeException
);
433 virtual void SAL_CALL
breakLink( const ::com::sun::star::uno::Reference
< ::com::sun::star::embed::XStorage
>& xStorage
,
434 const OUString
& sEntName
)
435 throw ( ::com::sun::star::lang::IllegalArgumentException
,
436 ::com::sun::star::embed::WrongStateException
,
437 ::com::sun::star::io::IOException
,
438 ::com::sun::star::uno::Exception
,
439 ::com::sun::star::uno::RuntimeException
);
441 virtual sal_Bool SAL_CALL
isLink()
442 throw ( ::com::sun::star::embed::WrongStateException
,
443 ::com::sun::star::uno::RuntimeException
);
445 virtual OUString SAL_CALL
getLinkURL()
446 throw ( ::com::sun::star::embed::WrongStateException
,
447 ::com::sun::star::uno::Exception
,
448 ::com::sun::star::uno::RuntimeException
);
450 // XCommonEmbedPersist
451 virtual void SAL_CALL
storeOwn()
452 throw ( ::com::sun::star::embed::WrongStateException
,
453 ::com::sun::star::io::IOException
,
454 ::com::sun::star::uno::Exception
,
455 ::com::sun::star::uno::RuntimeException
);
457 virtual sal_Bool SAL_CALL
isReadonly()
458 throw ( ::com::sun::star::embed::WrongStateException
,
459 ::com::sun::star::uno::RuntimeException
);
461 virtual void SAL_CALL
reload(
462 const ::com::sun::star::uno::Sequence
< ::com::sun::star::beans::PropertyValue
>& lArguments
,
463 const ::com::sun::star::uno::Sequence
< ::com::sun::star::beans::PropertyValue
>& lObjArgs
)
464 throw ( ::com::sun::star::lang::IllegalArgumentException
,
465 ::com::sun::star::embed::WrongStateException
,
466 ::com::sun::star::io::IOException
,
467 ::com::sun::star::uno::Exception
,
468 ::com::sun::star::uno::RuntimeException
);
472 virtual ::com::sun::star::uno::Sequence
< sal_Int8
> SAL_CALL
getClassID()
473 throw ( ::com::sun::star::uno::RuntimeException
);
475 virtual OUString SAL_CALL
getClassName()
476 throw ( ::com::sun::star::uno::RuntimeException
);
478 virtual void SAL_CALL
setClassInfo(
479 const ::com::sun::star::uno::Sequence
< sal_Int8
>& aClassID
, const OUString
& aClassName
)
480 throw ( ::com::sun::star::lang::NoSupportException
,
481 ::com::sun::star::uno::RuntimeException
);
483 // XStateChangeBroadcaster
484 virtual void SAL_CALL
addStateChangeListener( const ::com::sun::star::uno::Reference
< ::com::sun::star::embed::XStateChangeListener
>& xListener
) throw (::com::sun::star::uno::RuntimeException
);
485 virtual void SAL_CALL
removeStateChangeListener( const ::com::sun::star::uno::Reference
< ::com::sun::star::embed::XStateChangeListener
>& xListener
) throw (::com::sun::star::uno::RuntimeException
);
488 // XComponentSupplier
490 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::util::XCloseable
> SAL_CALL
getComponent()
491 throw ( ::com::sun::star::uno::RuntimeException
);
495 virtual void SAL_CALL
close( sal_Bool DeliverOwnership
)
496 throw ( ::com::sun::star::util::CloseVetoException
,
497 ::com::sun::star::uno::RuntimeException
);
499 virtual void SAL_CALL
addCloseListener(
500 const ::com::sun::star::uno::Reference
< ::com::sun::star::util::XCloseListener
>& Listener
)
501 throw ( ::com::sun::star::uno::RuntimeException
);
503 virtual void SAL_CALL
removeCloseListener(
504 const ::com::sun::star::uno::Reference
< ::com::sun::star::util::XCloseListener
>& Listener
)
505 throw ( ::com::sun::star::uno::RuntimeException
);
508 virtual void SAL_CALL
addEventListener(
509 const ::com::sun::star::uno::Reference
< ::com::sun::star::document::XEventListener
>& Listener
)
510 throw ( ::com::sun::star::uno::RuntimeException
);
512 virtual void SAL_CALL
removeEventListener(
513 const ::com::sun::star::uno::Reference
< ::com::sun::star::document::XEventListener
>& Listener
)
514 throw ( ::com::sun::star::uno::RuntimeException
);
516 // XInplaceObject ( only for wrapping scenario here )
518 virtual void SAL_CALL
setObjectRectangles( const ::com::sun::star::awt::Rectangle
& aPosRect
,
519 const ::com::sun::star::awt::Rectangle
& aClipRect
)
520 throw ( ::com::sun::star::embed::WrongStateException
,
521 ::com::sun::star::uno::Exception
,
522 ::com::sun::star::uno::RuntimeException
);
524 virtual void SAL_CALL
enableModeless( sal_Bool bEnable
)
525 throw ( ::com::sun::star::embed::WrongStateException
,
526 ::com::sun::star::uno::Exception
,
527 ::com::sun::star::uno::RuntimeException
);
529 virtual void SAL_CALL
translateAccelerators(
530 const ::com::sun::star::uno::Sequence
< ::com::sun::star::awt::KeyEvent
>& aKeys
)
531 throw ( ::com::sun::star::embed::WrongStateException
,
532 ::com::sun::star::uno::RuntimeException
);
534 // XChild ( only for wrapping scenario here )
535 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::uno::XInterface
> SAL_CALL
getParent( ) throw (::com::sun::star::uno::RuntimeException
);
536 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
);
542 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */