namespace com::sun::star { namespace accessibility { class XAccessibleComponent; } namespace document { class XShapeEventBroadcaster; } namespace frame { class XController; }
} namespace vcl { class Window; }
class SdrView;
namespace accessibility {
class IAccessibleViewForwarder;
/** This class bundles all information that is passed down the tree of accessibleshapessothateachshapehasaccesstothatinfo.
Therearebasicallyfourmembersthatcanbesetandqueried: <ul> <li>Themodelbroadcasterisusedforgettingnotifiedaboutshape changes.Usingthisbroadcastermakesinunnecessarytoregisterat eachshapeseparately.</li> <li>Theviewforwarderisresponsiblefortransformationbetween coordinatesystemsandforprovidingthevisibleareabothwithrespect toaspecificwindow.</li> <li>TheSdrViewisusedforcreatingaccessibleeditengines.</li> <li>TheWindowisusedforcreatingaccessibleeditengines.</li> </ul>
*/ class SVX_DLLPUBLIC AccessibleShapeTreeInfo
{ public: /** Use this constructor to create an empty object that is filled later withmoremeaningfuldata.
*/
AccessibleShapeTreeInfo();
/** Create a copy of the given shape info. @paramrInfo Theshapetreeinfoobjecttocopy.
*/
AccessibleShapeTreeInfo (const AccessibleShapeTreeInfo& rInfo);
/** Deprecated. Don't use this method.
*/ void SetDocumentWindow (const css::uno::Reference<
css::accessibility::XAccessibleComponent>& rxViewWindow);
/** Deprecated. Don't use this method.
*/ const css::uno::Reference<
css::accessibility::XAccessibleComponent>&
GetDocumentWindow() const { return mxDocumentWindow;}
/** Set a new broadcaster that sends events indicating shape changes. Thebroadcasterusuallyisorbelongstoadocumentmodel. @paramrxModelBroadcaster Thenewbroadcaster.Itreplacesthecurrentone.Anempty referencemaybepassedtounsetthebroadcaster
*/ void SetModelBroadcaster (const css::uno::Reference<
css::document::XShapeEventBroadcaster>& rxModelBroadcaster);
/** Return the current model broadcaster. @return Thereturnedreferencemaybeemptyifthebroadcasterhasnot beensetorhasbeensettoanemptyreference.
*/ const css::uno::Reference<
css::document::XShapeEventBroadcaster>&
GetModelBroadcaster() const { return mxModelBroadcaster;}
/** Set the view that will be used to construct SvxTextEditSources which inturnareusedtocreateaccessibleeditengines. @parampView ThenewSdrViewthatreplacesthecurrentone.ANULLpointer maybepassedtounsettheview.
*/ void SetSdrView (SdrView* pView);
/** Return the current SdrView. @return ThereturnedvaluemaybeNULL.
*/
SdrView* GetSdrView() const { return mpView;}
/** Set a new controller. This will usually but not necessarily correspondtotheSdrView. @paramrxController Thenewcontrollerthatreplacesthecurrentone.Anempty referencemaybepassedtounsetthecontroller.
*/ void SetController (const css::uno::Reference<
css::frame::XController>& rxController);
/** Return the currently set controller. @return Thereferencetothecurrentlysetcontrollermaybeempty.
*/ const css::uno::Reference<
css::frame::XController>&
GetController() const { return mxController;}
/** Set the window that is used to construct SvxTextEditSources which in turnisusedtocreateaccessibleeditengines.
*/ void SetWindow(vcl::Window* pWindow);
/** Return the current Window. @return ThereturnedvaluemaybeNULL.
*/
vcl::Window* GetWindow() const
{ return mpWindow.get();
}
/** The view forwarder allows the transformation between internal andpixelcoordinatesandcanbeaskedforthevisiblearea. @parampViewForwarder Thisviewforwarderreplacesthecurrentone.
*/ void SetViewForwarder (const IAccessibleViewForwarder* pViewForwarder);
/** Return the current view forwarder. @return ThereturnedpointermaybeNULL.
*/ const IAccessibleViewForwarder* GetViewForwarder() const { return mpViewForwarder;}
/** This view is necessary to construct an SvxTextEditSource which in turnisusedtocreateanaccessibleeditengine.
*/
SdrView* mpView;
/** The controller is used e.g. for obtaining the selected shapes.
*/
css::uno::Reference<
css::frame::XController> mxController;
/** This window is necessary to construct an SvxTextEditSource which in turnisusedtocreateanaccessibleeditengine.
*/
VclPtr<vcl::Window> mpWindow;
/** The view forwarder allows the transformation between internal andpixelcoordinatesandcanbeaskedforthevisiblearea.
*/ const IAccessibleViewForwarder* mpViewForwarder;
};
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.