LibreOffice Module sfx2 (master) 1
|
Object inspector tree handler. More...
#include <ObjectInspectorTreeHandler.hxx>
Public Member Functions | |
ObjectInspectorTreeHandler (std::unique_ptr< ObjectInspectorWidgets > &pObjectInspectorWidgets) | |
DECL_LINK (ExpandingHandlerInterfaces, const weld::TreeIter &, bool) | |
DECL_LINK (ExpandingHandlerServices, const weld::TreeIter &, bool) | |
DECL_LINK (ExpandingHandlerProperties, const weld::TreeIter &, bool) | |
DECL_LINK (ExpandingHandlerMethods, const weld::TreeIter &, bool) | |
DECL_LINK (SelectionChanged, weld::TreeView &, void) | |
DECL_LINK (PopupMenuHandler, const CommandEvent &, bool) | |
DECL_LINK (ToolbarButtonClicked, const OUString &, void) | |
DECL_LINK (NotebookEnterPage, const OUString &, void) | |
DECL_LINK (NotebookLeavePage, const OUString &, bool) | |
DECL_LINK (HeaderBarClick, int, void) | |
void | introspect (css::uno::Reference< css::uno::XInterface > const &xInterface) |
void | dispose () |
Private Member Functions | |
void | setSortFunction (std::unique_ptr< weld::TreeView > &pTreeView) |
sal_Int32 | compare (std::unique_ptr< weld::TreeView > &pTreeView, const weld::TreeIter &rLeft, const weld::TreeIter &rRight) |
void | appendInterfaces (css::uno::Reference< css::uno::XInterface > const &xInterface) |
Append interfaces to the "interfaces" tree view. More... | |
void | appendServices (css::uno::Reference< css::uno::XInterface > const &xInterface) |
Append services to the "services" tree view. More... | |
void | appendProperties (css::uno::Reference< css::uno::XInterface > const &xInterface) |
Append properties to the "properties" tree view. More... | |
void | appendMethods (css::uno::Reference< css::uno::XInterface > const &xInterface) |
Append methods to the "methods" tree view. More... | |
void | inspectObject (css::uno::Reference< css::uno::XInterface > const &xInterface) |
void | clearStack () |
void | addToStack (css::uno::Any const &rAny) |
css::uno::Any | popFromStack () |
void | updateBackButtonState () |
Static Private Member Functions | |
static void | clearObjectInspectorChildren (std::unique_ptr< weld::TreeView > &pTreeView, weld::TreeIter const &rParent) |
static void | handleExpanding (std::unique_ptr< weld::TreeView > &pTreeView, weld::TreeIter const &rParent) |
static void | clearAll (std::unique_ptr< weld::TreeView > &pTreeView) |
Deletes all the node objects in a tree view. More... | |
Private Attributes | |
std::unique_ptr< ObjectInspectorWidgets > & | mpObjectInspectorWidgets |
std::deque< css::uno::Any > | maInspectionStack |
css::uno::Reference< css::uno::XComponentContext > | mxContext |
comphelper::string::NaturalStringSorter | mxSorter |
Object inspector tree handler.
Handles the object inspector part of DevTools - mainly interaction between UI objects that consist of the object inspector.
Definition at line 32 of file ObjectInspectorTreeHandler.hxx.
ObjectInspectorTreeHandler::ObjectInspectorTreeHandler | ( | std::unique_ptr< ObjectInspectorWidgets > & | pObjectInspectorWidgets | ) |
Definition at line 931 of file ObjectInspectorTreeHandler.cxx.
References getLocale(), getProcessComponentContext(), LINK, mpObjectInspectorWidgets, mxContext, and setSortFunction().
|
private |
Definition at line 1330 of file ObjectInspectorTreeHandler.cxx.
References maInspectionStack, and updateBackButtonState().
Referenced by introspect().
|
private |
Append interfaces to the "interfaces" tree view.
Definition at line 1259 of file ObjectInspectorTreeHandler.cxx.
References mpObjectInspectorWidgets, and mxContext.
|
private |
Append methods to the "methods" tree view.
Definition at line 1301 of file ObjectInspectorTreeHandler.cxx.
References mpObjectInspectorWidgets, mxContext, xIntrospection, and xMethod.
|
private |
Append properties to the "properties" tree view.
Definition at line 1292 of file ObjectInspectorTreeHandler.cxx.
References mpObjectInspectorWidgets, and mxContext.
|
private |
Append services to the "services" tree view.
Definition at line 1277 of file ObjectInspectorTreeHandler.cxx.
References aServiceNames, and mpObjectInspectorWidgets.
|
staticprivate |
Deletes all the node objects in a tree view.
Definition at line 1246 of file ObjectInspectorTreeHandler.cxx.
Referenced by dispose().
|
staticprivate |
Definition at line 1222 of file ObjectInspectorTreeHandler.cxx.
References clearObjectInspectorChildren().
Referenced by clearObjectInspectorChildren(), and handleExpanding().
|
private |
Definition at line 1323 of file ObjectInspectorTreeHandler.cxx.
References maInspectionStack, and updateBackButtonState().
Referenced by introspect().
|
private |
Definition at line 1011 of file ObjectInspectorTreeHandler.cxx.
References comphelper::string::NaturalStringSorter::compare(), and mxSorter.
Referenced by setSortFunction().
ObjectInspectorTreeHandler::DECL_LINK | ( | ExpandingHandlerInterfaces | , |
const weld::TreeIter & | , | ||
bool | |||
) |
ObjectInspectorTreeHandler::DECL_LINK | ( | ExpandingHandlerMethods | , |
const weld::TreeIter & | , | ||
bool | |||
) |
ObjectInspectorTreeHandler::DECL_LINK | ( | ExpandingHandlerProperties | , |
const weld::TreeIter & | , | ||
bool | |||
) |
ObjectInspectorTreeHandler::DECL_LINK | ( | ExpandingHandlerServices | , |
const weld::TreeIter & | , | ||
bool | |||
) |
ObjectInspectorTreeHandler::DECL_LINK | ( | HeaderBarClick | , |
int | , | ||
void | |||
) |
ObjectInspectorTreeHandler::DECL_LINK | ( | NotebookEnterPage | , |
const OUString & | , | ||
void | |||
) |
ObjectInspectorTreeHandler::DECL_LINK | ( | NotebookLeavePage | , |
const OUString & | , | ||
bool | |||
) |
ObjectInspectorTreeHandler::DECL_LINK | ( | PopupMenuHandler | , |
const CommandEvent & | , | ||
bool | |||
) |
ObjectInspectorTreeHandler::DECL_LINK | ( | SelectionChanged | , |
weld::TreeView & | , | ||
void | |||
) |
ObjectInspectorTreeHandler::DECL_LINK | ( | ToolbarButtonClicked | , |
const OUString & | , | ||
void | |||
) |
void ObjectInspectorTreeHandler::dispose | ( | void | ) |
Definition at line 1376 of file ObjectInspectorTreeHandler.cxx.
References clearAll(), and mpObjectInspectorWidgets.
Referenced by DevelopmentToolDockingWindow::dispose().
|
staticprivate |
Definition at line 1023 of file ObjectInspectorTreeHandler.cxx.
References clearObjectInspectorChildren().
|
private |
Definition at line 1346 of file ObjectInspectorTreeHandler.cxx.
References aImplementationName, and mpObjectInspectorWidgets.
Referenced by introspect().
void ObjectInspectorTreeHandler::introspect | ( | css::uno::Reference< css::uno::XInterface > const & | xInterface | ) |
Definition at line 1369 of file ObjectInspectorTreeHandler.cxx.
References addToStack(), clearStack(), and inspectObject().
Referenced by DevelopmentToolDockingWindow::changeToCurrentSelection(), DevelopmentToolDockingWindow::DevelopmentToolDockingWindow(), and DevelopmentToolDockingWindow::updateSelection().
|
private |
Definition at line 1337 of file ObjectInspectorTreeHandler.cxx.
References maInspectionStack, and updateBackButtonState().
|
private |
Definition at line 1003 of file ObjectInspectorTreeHandler.cxx.
References compare().
Referenced by ObjectInspectorTreeHandler().
|
private |
Definition at line 1317 of file ObjectInspectorTreeHandler.cxx.
References maInspectionStack, and mpObjectInspectorWidgets.
Referenced by addToStack(), clearStack(), and popFromStack().
|
private |
Definition at line 39 of file ObjectInspectorTreeHandler.hxx.
Referenced by addToStack(), clearStack(), popFromStack(), and updateBackButtonState().
|
private |
Definition at line 35 of file ObjectInspectorTreeHandler.hxx.
Referenced by appendInterfaces(), appendMethods(), appendProperties(), appendServices(), dispose(), inspectObject(), ObjectInspectorTreeHandler(), and updateBackButtonState().
|
private |
Definition at line 42 of file ObjectInspectorTreeHandler.hxx.
Referenced by appendInterfaces(), appendMethods(), and appendProperties().
|
private |
Definition at line 45 of file ObjectInspectorTreeHandler.hxx.
Referenced by compare().