module com { module sun { module star { module awt {
/** The XExtendedToolkit is an extension of the ::com::sun::star::awt::XToolkitinterface.Itbasically providesaccesstothreeeventbroadcasterswhichareusedforinstance inthecontextofaccessibility.Itis,however,notrestrictedto accessibility.
@sinceOOo1.1.2
*/
published interface XExtendedToolkit : ::com::sun::star::uno::XInterface
{
/** This function returns the number of currently existing top-level windows. @return Returnsthenumberoftop-levelwindows.Thisincludesall top-levelwindows,regardlessofwhethertheyareiconized, visible,oractive.
*/ long getTopWindowCount ();
/** Return a reference to the specified top-level window. Note that the numberoftop-levelwindowsmaychangebetweenacallto getTopWindowCount()andsuccessivecallstothis function. @paramnIndex Theindexshouldbeintheintervalfrom0uptobutnot includingthenumberoftop-levelwindowsasreturnedby getTopWindowCount(). @return Thereturnedvalueisavalidreferencetoatop-levelwindow. @throwsIndexOutOfBoundsException whenthespecifiedindexisoutsidethevalidrange.
*/
::com::sun::star::awt::XTopWindow getTopWindow ([in] long nIndex)
raises (::com::sun::star::lang::IndexOutOfBoundsException);
/** Return the currently active top-level window, i.e. which has currentlytheinputfocus. @return Thereturnedreferencemaybeemptywhennotop-levelwindowis active.
*/
::com::sun::star::awt::XTopWindow getActiveTopWindow ();
/** Add a new listener that is called for events that involve ::com::sun::star::awt::XTopWindow.Afterhaving obtainedthecurrentlistofexistingtop-levelwindowsyoucan keepthislistup-to-datebylisteningtoopenedorclosedtop-level windows.Waitforactivationsordeactivationsoftop-levelwindows tokeeptrackofthecurrentlyactiveframe. @paramxListener Ifthisisavalidreferenceitisinsertedintothelistof listeners.Itisthetaskofthecallertonotregisterthe samelistenertwice(otherwisethatlistenerwillbecalled twice.)
*/ void addTopWindowListener (
[in] ::com::sun::star::awt::XTopWindowListener xListener);
/** Remove the specified listener from the list of listeners. @paramxListener Ifthereferenceisemptythennothingwillbechanged.Ifthe listenerhasbeenregisteredtwice(ormore)thenallreferences willberemoved.
*/ void removeTopWindowListener (
[in] ::com::sun::star::awt::XTopWindowListener xListener);
/** Add a new listener that is called on ::com::sun::star::awt::KeyEvent.Everylisteneris giventheopportunitytoconsumetheevent,i.e.preventthenotyet calledlistenersfrombeingcalled. @paramxHandler Ifthisisavalidreferenceitisinsertedintothelistof handlers.Itisthetaskofthecallertonotregisterthe samehandlertwice(otherwisethatlistenerwillbecalled twice.)
*/ void addKeyHandler (
[in] ::com::sun::star::awt::XKeyHandler xHandler);
/** Remove the specified listener from the list of listeners. @paramxHandler Ifthereferenceisemptythennothingwillbechanged.Ifthe handlerhasbeenregisteredtwice(ormore)thenallreferences willberemoved.
*/ void removeKeyHandler (
[in] ::com::sun::star::awt::XKeyHandler xHandler);
/** Add a new listener that is called on ::com::sun::star::awt::FocusEvent.Usethisfocus broadcastertokeeptrackoftheobjectthatcurrentlyhastheinput focus. @paramxListener Ifthisisavalidreferenceitisinsertedintothelistof listeners.Itisthetaskofthecallertonotregisterthe samelistenertwice(otherwisethatlistenerwillbecalled twice.)
*/ void addFocusListener (
[in] ::com::sun::star::awt::XFocusListener xListener);
/** Remove the specified listener from the list of listeners. @paramxListener Ifthereferenceisemptythennothingwillbechanged.Ifthe listenerhasbeenregisteredtwice(ormore)thenallreferences willberemoved.
*/ void removeFocusListener (
[in] ::com::sun::star::awt::XFocusListener xListener);
/** Broadcasts the a focusGained on all registered focus listeners @paramsource Theobjectthathasgainedtheinputfocus.Itshouldimplement com::sun::star::accessibility::XAccessible.
*/ void fireFocusGained (
[in] ::com::sun::star::uno::XInterface source);
/** Broadcasts the a focusGained on all registered focus listeners @paramsource Theobjectthathaslosttheinputfocus.Itshouldimplement com::sun::star::accessibility::XAccessible.
*/ void fireFocusLost (
[in] ::com::sun::star::uno::XInterface source);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.