Lines Matching refs:xAnnotation
111 extern TextApiObject* getTextApiObject( const Reference< XAnnotation >& xAnnotation );
157 OUString getAnnotationDateTimeString( const Reference< XAnnotation >& xAnnotation ) in getAnnotationDateTimeString() argument
160 if( xAnnotation.is() ) in getAnnotationDateTimeString()
164 com::sun::star::util::DateTime aDateTime( xAnnotation->getDateTime() ); in getAnnotationDateTimeString()
345 Reference< XAnnotation > xAnnotation; in ExecuteDeleteAnnotation() local
353 ( ( const SfxUnoAnyItem* ) pPoolItem )->GetValue() >>= xAnnotation; in ExecuteDeleteAnnotation()
357 if( !xAnnotation.is() ) in ExecuteDeleteAnnotation()
358 GetSelectedAnnotation( xAnnotation ); in ExecuteDeleteAnnotation()
360 DeleteAnnotation( xAnnotation ); in ExecuteDeleteAnnotation()
425 Reference< XAnnotation > xAnnotation; in InsertAnnotation() local
426 pPage->createAnnotation( xAnnotation ); in InsertAnnotation()
430 xAnnotation->setAuthor( aUserOptions.GetFullName() ); in InsertAnnotation()
433 xAnnotation->setDateTime( getCurrentDateTime() ); in InsertAnnotation()
437 xAnnotation->setPosition( aPos ); in InsertAnnotation()
443 SelectAnnotation( xAnnotation, true ); in InsertAnnotation()
451 Reference< XAnnotation > xAnnotation; in ExecuteReplyToAnnotation() local
457 ( ( const SfxUnoAnyItem* ) pPoolItem )->GetValue() >>= xAnnotation; in ExecuteReplyToAnnotation()
461 TextApiObject* pTextApi = getTextApiObject( xAnnotation ); in ExecuteReplyToAnnotation()
470 OUString sAuthor( xAnnotation->getAuthor() ); in ExecuteReplyToAnnotation()
477 aStr.Append( String( getAnnotationDateTimeString( xAnnotation ) ) ); in ExecuteReplyToAnnotation()
507 xAnnotation->setAuthor( aUserOptions.GetFullName() ); in ExecuteReplyToAnnotation()
510 xAnnotation->setDateTime( getCurrentDateTime() ); in ExecuteReplyToAnnotation()
513 SelectAnnotation( xAnnotation, true ); in ExecuteReplyToAnnotation()
519 void AnnotationManagerImpl::DeleteAnnotation( Reference< XAnnotation > xAnnotation ) in DeleteAnnotation() argument
523 if( xAnnotation.is() && pPage ) in DeleteAnnotation()
528 pPage->removeAnnotation( xAnnotation ); in DeleteAnnotation()
552 Reference< XAnnotation > xAnnotation( *iter ); in DeleteAnnotationsByAuthor() local
553 if( xAnnotation->getAuthor() == sAuthor ) in DeleteAnnotationsByAuthor()
555 if( mxSelectedAnnotation == xAnnotation ) in DeleteAnnotationsByAuthor()
557 pPage->removeAnnotation( xAnnotation ); in DeleteAnnotationsByAuthor()
611 Reference< XAnnotation > xAnnotation; in GetAnnotationState() local
612 GetSelectedAnnotation( xAnnotation ); in GetAnnotationState()
614 if( !xAnnotation.is() || bReadOnly ) in GetAnnotationState()
775 …om::sun::star::uno::Reference< ::com::sun::star::office::XAnnotation > xAnnotation, bool bEdit /* … in SelectAnnotation() argument
777 mxSelectedAnnotation = xAnnotation; in SelectAnnotation()
781 if( (*iter)->GetAnnotation() == xAnnotation ) in SelectAnnotation()
793 …nnotation( ::com::sun::star::uno::Reference< ::com::sun::star::office::XAnnotation >& xAnnotation ) in GetSelectedAnnotation() argument
795 xAnnotation = mxSelectedAnnotation; in GetSelectedAnnotation()
879 Reference< XAnnotation > xAnnotation( xEnum->nextElement() ); in CreateTags() local
880 … Color aColor( GetColorLight( mpDoc->GetAnnotationAuthorIndex( xAnnotation->getAuthor() ) ) ); in CreateTags()
881 …xTag( new AnnotationTag( *this, *mrBase.GetMainViewShell()->GetView(), xAnnotation, aColor, nIndex… in CreateTags()
884 if( xAnnotation == mxSelectedAnnotation ) in CreateTags()
970 …tHelpText( ::com::sun::star::uno::Reference< ::com::sun::star::office::XAnnotation >& xAnnotation )
973 if( xAnnotation.is() )
975 OUString sAuthor( xAnnotation->getAuthor() );
982 sRet += getAnnotationDateTimeString( xAnnotation );
985 Reference< XText > xText( xAnnotation->getTextRange() );
994 void AnnotationManagerImpl::ExecuteAnnotationContextMenu( Reference< XAnnotation > xAnnotation, ::W… in ExecuteAnnotationContextMenu() argument
1011 OUString sAuthor( xAnnotation->getAuthor() ); in ExecuteAnnotationContextMenu()
1019 … pMenu->EnableItem( SID_DELETE_POSTIT, (xAnnotation.is() && !bReadOnly) ? sal_True : sal_False ); in ExecuteAnnotationContextMenu()
1094 const SfxUnoAnyItem aItem( SID_REPLYTO_POSTIT, Any( xAnnotation ) ); in ExecuteAnnotationContextMenu()
1100 const SfxUnoAnyItem aItem( SID_DELETE_POSTIT, Any( xAnnotation ) ); in ExecuteAnnotationContextMenu()