LibreOffice Module sfx2 (master) 1
Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
ObjectInspectorTreeHandler Class Reference

Object inspector tree handler. More...

#include <ObjectInspectorTreeHandler.hxx>

Collaboration diagram for ObjectInspectorTreeHandler:
[legend]

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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ ObjectInspectorTreeHandler()

ObjectInspectorTreeHandler::ObjectInspectorTreeHandler ( std::unique_ptr< ObjectInspectorWidgets > &  pObjectInspectorWidgets)

Member Function Documentation

◆ addToStack()

void ObjectInspectorTreeHandler::addToStack ( css::uno::Any const &  rAny)
private

Definition at line 1330 of file ObjectInspectorTreeHandler.cxx.

References maInspectionStack, and updateBackButtonState().

Referenced by introspect().

◆ appendInterfaces()

void ObjectInspectorTreeHandler::appendInterfaces ( css::uno::Reference< css::uno::XInterface > const &  xInterface)
private

Append interfaces to the "interfaces" tree view.

Definition at line 1259 of file ObjectInspectorTreeHandler.cxx.

References mpObjectInspectorWidgets, and mxContext.

◆ appendMethods()

void ObjectInspectorTreeHandler::appendMethods ( css::uno::Reference< css::uno::XInterface > const &  xInterface)
private

Append methods to the "methods" tree view.

Definition at line 1301 of file ObjectInspectorTreeHandler.cxx.

References mpObjectInspectorWidgets, mxContext, xIntrospection, and xMethod.

◆ appendProperties()

void ObjectInspectorTreeHandler::appendProperties ( css::uno::Reference< css::uno::XInterface > const &  xInterface)
private

Append properties to the "properties" tree view.

Definition at line 1292 of file ObjectInspectorTreeHandler.cxx.

References mpObjectInspectorWidgets, and mxContext.

◆ appendServices()

void ObjectInspectorTreeHandler::appendServices ( css::uno::Reference< css::uno::XInterface > const &  xInterface)
private

Append services to the "services" tree view.

Definition at line 1277 of file ObjectInspectorTreeHandler.cxx.

References aServiceNames, and mpObjectInspectorWidgets.

◆ clearAll()

void ObjectInspectorTreeHandler::clearAll ( std::unique_ptr< weld::TreeView > &  pTreeView)
staticprivate

Deletes all the node objects in a tree view.

Definition at line 1246 of file ObjectInspectorTreeHandler.cxx.

Referenced by dispose().

◆ clearObjectInspectorChildren()

void ObjectInspectorTreeHandler::clearObjectInspectorChildren ( std::unique_ptr< weld::TreeView > &  pTreeView,
weld::TreeIter const &  rParent 
)
staticprivate

◆ clearStack()

void ObjectInspectorTreeHandler::clearStack ( )
private

Definition at line 1323 of file ObjectInspectorTreeHandler.cxx.

References maInspectionStack, and updateBackButtonState().

Referenced by introspect().

◆ compare()

sal_Int32 ObjectInspectorTreeHandler::compare ( std::unique_ptr< weld::TreeView > &  pTreeView,
const weld::TreeIter rLeft,
const weld::TreeIter rRight 
)
private

◆ DECL_LINK() [1/10]

ObjectInspectorTreeHandler::DECL_LINK ( ExpandingHandlerInterfaces  ,
const weld::TreeIter ,
bool   
)

◆ DECL_LINK() [2/10]

ObjectInspectorTreeHandler::DECL_LINK ( ExpandingHandlerMethods  ,
const weld::TreeIter ,
bool   
)

◆ DECL_LINK() [3/10]

ObjectInspectorTreeHandler::DECL_LINK ( ExpandingHandlerProperties  ,
const weld::TreeIter ,
bool   
)

◆ DECL_LINK() [4/10]

ObjectInspectorTreeHandler::DECL_LINK ( ExpandingHandlerServices  ,
const weld::TreeIter ,
bool   
)

◆ DECL_LINK() [5/10]

ObjectInspectorTreeHandler::DECL_LINK ( HeaderBarClick  ,
int  ,
void   
)

◆ DECL_LINK() [6/10]

ObjectInspectorTreeHandler::DECL_LINK ( NotebookEnterPage  ,
const OUString &  ,
void   
)

◆ DECL_LINK() [7/10]

ObjectInspectorTreeHandler::DECL_LINK ( NotebookLeavePage  ,
const OUString &  ,
bool   
)

◆ DECL_LINK() [8/10]

ObjectInspectorTreeHandler::DECL_LINK ( PopupMenuHandler  ,
const CommandEvent ,
bool   
)

◆ DECL_LINK() [9/10]

ObjectInspectorTreeHandler::DECL_LINK ( SelectionChanged  ,
weld::TreeView ,
void   
)

◆ DECL_LINK() [10/10]

ObjectInspectorTreeHandler::DECL_LINK ( ToolbarButtonClicked  ,
const OUString &  ,
void   
)

◆ dispose()

void ObjectInspectorTreeHandler::dispose ( void  )

◆ handleExpanding()

void ObjectInspectorTreeHandler::handleExpanding ( std::unique_ptr< weld::TreeView > &  pTreeView,
weld::TreeIter const &  rParent 
)
staticprivate

Definition at line 1023 of file ObjectInspectorTreeHandler.cxx.

References clearObjectInspectorChildren().

◆ inspectObject()

void ObjectInspectorTreeHandler::inspectObject ( css::uno::Reference< css::uno::XInterface > const &  xInterface)
private

Definition at line 1346 of file ObjectInspectorTreeHandler.cxx.

References aImplementationName, and mpObjectInspectorWidgets.

Referenced by introspect().

◆ introspect()

void ObjectInspectorTreeHandler::introspect ( css::uno::Reference< css::uno::XInterface > const &  xInterface)

◆ popFromStack()

css::uno::Any ObjectInspectorTreeHandler::popFromStack ( )
private

Definition at line 1337 of file ObjectInspectorTreeHandler.cxx.

References maInspectionStack, and updateBackButtonState().

◆ setSortFunction()

void ObjectInspectorTreeHandler::setSortFunction ( std::unique_ptr< weld::TreeView > &  pTreeView)
private

Definition at line 1003 of file ObjectInspectorTreeHandler.cxx.

References compare().

Referenced by ObjectInspectorTreeHandler().

◆ updateBackButtonState()

void ObjectInspectorTreeHandler::updateBackButtonState ( )
private

Member Data Documentation

◆ maInspectionStack

std::deque<css::uno::Any> ObjectInspectorTreeHandler::maInspectionStack
private

◆ mpObjectInspectorWidgets

std::unique_ptr<ObjectInspectorWidgets>& ObjectInspectorTreeHandler::mpObjectInspectorWidgets
private

◆ mxContext

css::uno::Reference<css::uno::XComponentContext> ObjectInspectorTreeHandler::mxContext
private

◆ mxSorter

comphelper::string::NaturalStringSorter ObjectInspectorTreeHandler::mxSorter
private

Definition at line 45 of file ObjectInspectorTreeHandler.hxx.

Referenced by compare().


The documentation for this class was generated from the following files: