diff options
Diffstat (limited to 'sd/source/ui/annotations/annotationmanagerimpl.hxx')
-rw-r--r-- | sd/source/ui/annotations/annotationmanagerimpl.hxx | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/sd/source/ui/annotations/annotationmanagerimpl.hxx b/sd/source/ui/annotations/annotationmanagerimpl.hxx index cf0cd20a9163..01a6cd6b3586 100644 --- a/sd/source/ui/annotations/annotationmanagerimpl.hxx +++ b/sd/source/ui/annotations/annotationmanagerimpl.hxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -50,34 +50,34 @@ typedef std::vector< rtl::Reference< AnnotationTag > > AnnotationTagVector; namespace tools { class EventMultiplexerEvent; -} +} typedef ::cppu::WeakComponentImplHelper1 < com::sun::star::document::XEventListener > AnnotationManagerImplBase; - + class AnnotationManagerImpl : private ::cppu::BaseMutex, public AnnotationManagerImplBase { public: AnnotationManagerImpl( ViewShellBase& rViewShellBase ); - + void init(); // WeakComponentImplHelper1 virtual void SAL_CALL disposing (); - + // XEventListener virtual void SAL_CALL notifyEvent( const ::com::sun::star::document::EventObject& Event ) throw (::com::sun::star::uno::RuntimeException); virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) throw (::com::sun::star::uno::RuntimeException); - // + // void ExecuteAnnotation (SfxRequest& rRequest); void GetAnnotationState (SfxItemSet& rItemSet); - + void ExecuteInsertAnnotation(SfxRequest& rReq); - void ExecuteDeleteAnnotation(SfxRequest& rReq); + void ExecuteDeleteAnnotation(SfxRequest& rReq); void ExecuteReplyToAnnotation(SfxRequest& rReq); - + void SelectNextAnnotation(bool bForeward); void SelectAnnotation( ::com::sun::star::uno::Reference< ::com::sun::star::office::XAnnotation > xAnnotation, bool bEdit = FALSE ); @@ -89,16 +89,16 @@ public: void DeleteAllAnnotations(); void ExecuteAnnotationContextMenu( ::com::sun::star::uno::Reference< ::com::sun::star::office::XAnnotation > xAnnotation, ::Window* pParent, const Rectangle& rContextRect, bool bButtonMenu = false ); - + Color GetColorDark(sal_uInt16 aAuthorIndex); Color GetColorLight(sal_uInt16 aAuthorIndex); Color GetColor(sal_uInt16 aAuthorIndex); - + // callbacks - void onTagSelected( AnnotationTag& rTag ); + void onTagSelected( AnnotationTag& rTag ); void onTagDeselected( AnnotationTag& rTag ); - + void onSelectionChanged(); void addListener(); @@ -116,18 +116,18 @@ public: SdPage* GetNextPage( SdPage* pPage, bool bForeward ); SdPage* GetFirstPage(); SdPage* GetLastPage(); - + SdPage* GetCurrentPage(); SdDrawDocument* GetDoc() { return mpDoc; } - + void ShowAnnotations(bool bShow); - + private: ViewShellBase& mrBase; SdDrawDocument* mpDoc; - - AnnotationTagVector maTagVector; + + AnnotationTagVector maTagVector; ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XDrawView > mxView; ::com::sun::star::uno::Reference< ::com::sun::star::office::XAnnotationAccess > mxCurrentPage; |