#include "nsISupports.idl" #include "nsIDOMRange.idl" #include "nsIDOMWindow.idl" #include "nsIDOMDocument.idl" #include "nsIDOMElement.idl" #include "nsIDOMClientRectList.idl" interface nsIAquila; interface nsIAquilaFinder; interface nsIAquilaFinderMatch; interface nsIAquilaFinderPositions; interface nsIAquilaFinderPosition; interface nsIAquilaFinderIterator; interface nsIAquilaDocument; interface nsIAquilaWindow; [scriptable, uuid(14611cdd-f010-41ba-9008-be6840fa556e)] interface nsIAquila: nsISupports { readonly attribute nsIAquilaFinder finder; readonly attribute nsIAquilaDocument document; readonly attribute nsIAquilaWindow window; readonly attribute nsIAquila dispatcher; nsIAquila init ( in nsIDOMWindow aWindow ); nsIAquilaWindow refresh ( in nsIDOMWindow aWindow ); }; [scriptable, uuid(91fee154-9a82-4cbd-8d50-25b48240ee3e)] interface nsIAquilaFinder: nsISupports { readonly attribute long count; nsIAquilaFinder init ( in nsIAquila aAquila ); void find ( in string aWord ); nsIAquilaFinderMatch getMatch ( in long aI ); long getCurrentIndex ( ); nsIAquilaFinderMatch getCurrentMatch ( ); long previous ( in boolean aLoop ); long next ( in boolean aLoop ); nsIAquilaFinderMatch change ( in float aI ); boolean isCaseSensitive ( in string aStr ); void reset ( ); nsIAquilaFinderIterator getIterator ( ); nsIAquilaFinderIterator __iterator__ ( ); }; [scriptable, uuid(11349dc7-2c81-404f-abeb-ca1522bdcfad)] interface nsIAquilaFinderMatch: nsISupports { nsIAquilaFinderMatch init ( in nsIAquila aAquila, in string aWord, in nsIDOMRange aRange ); void delete ( ); void mark ( ); void unmark ( ); boolean isMarked ( ); nsIAquilaFinderPositions getPositions ( ); void scrollTo ( ); nsIAquilaFinderPositions __iterator__ ( ); string toString ( ); }; [scriptable, uuid(ae119859-1e05-4199-b3b8-ea694068607c)] interface nsIAquilaFinderPositions: nsISupports { nsIAquilaFinderPositions init ( in nsIAquila aAquila, in nsIDOMElement aElement ); void previous ( ); void next ( ); long key ( ); nsIAquilaFinderPosition current ( ); boolean valid ( ); nsIAquilaFinderPositions reset ( ); long count ( ); nsIAquilaFinderPosition getPosition ( in long aI ); }; [scriptable, uuid(633aa25c-b47a-4b17-8cdc-d8607a5c78b2)] interface nsIAquilaFinderPosition: nsISupports { nsIAquilaFinderPosition init ( in nsIAquila aAquila, in nsIDOMClientRect aRectangle ); boolean considereScroll ( in boolean aConsidere ); float getAbsoluteTop ( ); float getAbsoluteRight ( ); float getAbsoluteBottom ( ); float getAbsoluteLeft ( ); float getRelativeTop ( ); float getRelativeRight ( ); float getRelativeBottom ( ); float getRelativeLeft ( ); float getWidth ( ); float getHeight ( ); boolean isAbove ( ); boolean isRight ( ); boolean isBelow ( ); boolean isLeft ( ); boolean isVisible ( ); }; [scriptable, uuid(24c29fd9-2249-4937-b347-a17bf8f3a978)] interface nsIAquilaFinderIterator: nsISupports { nsIAquilaFinderIterator init ( in nsIAquila aAquila ); void previous ( ); void next ( ); long key ( ); nsIAquilaFinderMatch current ( ); boolean valid ( ); nsIAquilaFinderIterator reset ( ); long count ( ); }; [scriptable, uuid(f13643b1-73bd-40b9-9c99-28bac884ce12)] interface nsIAquilaDocument: nsISupports { readonly attribute nsIDOMDocument parent; nsIAquilaDocument init ( in nsIDOMWindow aWindow ); long getWidth ( ); long getHeight ( ); nsIAquilaDocument refresh ( in nsIDOMWindow aWindow ); }; [scriptable, uuid(d267e62e-cc52-4ca5-913a-22eff88c53ef)] interface nsIAquilaWindow: nsISupports { readonly attribute nsIDOMWindow parent; nsIAquilaWindow init ( in nsIDOMWindow aWindow ); long getWidth ( ); long getHeight ( ); long getTopShift ( ); long getLeftShift ( ); nsIAquilaWindow refresh ( in nsIDOMWindow aWindow ); };