[Poppler-bugs] [Bug 53589] [PATCH] Make 'additional actions' available in Annotation API of Qt4 frontend

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Aug 29 09:49:31 PDT 2012


https://bugs.freedesktop.org/show_bug.cgi?id=53589

--- Comment #6 from Albert Astals Cid <tsdgeos at terra.es> 2012-08-29 16:49:31 UTC ---
(In reply to comment #5)
> (In reply to comment #4)
> Hej Albert,
> 
> > ::: qt4/src/poppler-annotation.cc
> > @@ +518,5 @@
> > > +    ::LinkAction *linkAction = 0;
> > > +    if ( pdfAnnot->getType() == Annot::typeScreen )
> > > +        linkAction = static_cast<AnnotScreen*>( pdfAnnot )->getAdditionalAction( actionType );
> > > +    else if ( pdfAnnot->getType() == Annot::typeWidget )
> > > +        linkAction = static_cast<AnnotWidget*>( pdfAnnot )->getAdditionalAction( actionType );
> > 
> > Not sure if i prefer this else if to be just an else (because of the if at the
> > beginning of the question). What do you think?
> I have no preferences either... so shall I change it to a simple 'else'?

Yes, please

> 
> > > +/**
> > > + * \short Widget annotation.
> > > + *
> > > + * The widget annotation represents a widget (form field) on a page.
> > 
> > How are apps going to match the Poppler::WidgetAnnotation with the
> > Poppler::FormField so they can actually do something with the action?
> I have not thought about that yet, since it would be out of scope of this patch
> and can be added later on if somebody is implementing support for that.

I disagree with this, this is core of this patch.

You are adding an API that will give me the Link that has to be executed as
FocusOutAction of a Form. If there is no way to link that action to the other
way we return Forms, what's the point of it all?

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Poppler-bugs mailing list