LibreOffice Module reportdesign (master) 1
Classes | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
rptui::NavigatorTree Class Reference
Inheritance diagram for rptui::NavigatorTree:
[legend]
Collaboration diagram for rptui::NavigatorTree:
[legend]

Classes

class  UserData
 

Public Member Functions

 NavigatorTree (std::unique_ptr< weld::TreeView >, OReportController &rController)
 
virtual ~NavigatorTree () override
 
 DECL_LINK (OnEntrySelDesel, weld::TreeView &, void)
 
 DECL_LINK (CommandHdl, const CommandEvent &, bool)
 
virtual void _selectionChanged (const lang::EventObject &aEvent) override
 
virtual void traverseReport (const uno::Reference< report::XReportDefinition > &xReport) override
 
virtual void traverseReportFunctions (const uno::Reference< report::XFunctions > &xFunctions) override
 
virtual void traverseReportHeader (const uno::Reference< report::XSection > &xSection) override
 
virtual void traverseReportFooter (const uno::Reference< report::XSection > &xSection) override
 
virtual void traversePageHeader (const uno::Reference< report::XSection > &xSection) override
 
virtual void traversePageFooter (const uno::Reference< report::XSection > &xSection) override
 
virtual void traverseGroups (const uno::Reference< report::XGroups > &xGroups) override
 
virtual void traverseGroup (const uno::Reference< report::XGroup > &xGroup) override
 
virtual void traverseGroupFunctions (const uno::Reference< report::XFunctions > &xFunctions) override
 
virtual void traverseGroupHeader (const uno::Reference< report::XSection > &xSection) override
 
virtual void traverseGroupFooter (const uno::Reference< report::XSection > &xSection) override
 
virtual void traverseDetail (const uno::Reference< report::XSection > &xSection) override
 
bool find (const uno::Reference< uno::XInterface > &xContent, weld::TreeIter &rIter)
 
void removeEntry (const weld::TreeIter &rEntry, bool bRemove=true)
 
void grab_focus ()
 
void set_text (const weld::TreeIter &rIter, const OUString &rStr)
 
void expand_row (const weld::TreeIter &rIter)
 
std::unique_ptr< weld::TreeItermake_iterator () const
 
int iter_n_children (const weld::TreeIter &rIter) const
 
- Public Member Functions inherited from reportdesign::ITraverseReport
virtual void traverseReport (const css::uno::Reference< css::report::XReportDefinition > &_xReport)=0
 
virtual void traverseReportFunctions (const css::uno::Reference< css::report::XFunctions > &_xFunctions)=0
 
virtual void traverseReportHeader (const css::uno::Reference< css::report::XSection > &_xSection)=0
 
virtual void traverseReportFooter (const css::uno::Reference< css::report::XSection > &_xSection)=0
 
virtual void traversePageHeader (const css::uno::Reference< css::report::XSection > &_xSection)=0
 
virtual void traversePageFooter (const css::uno::Reference< css::report::XSection > &_xSection)=0
 
virtual void traverseGroups (const css::uno::Reference< css::report::XGroups > &_xGroups)=0
 
virtual void traverseGroup (const css::uno::Reference< css::report::XGroup > &_xGroup)=0
 
virtual void traverseGroupFunctions (const css::uno::Reference< css::report::XFunctions > &_xFunctions)=0
 
virtual void traverseGroupHeader (const css::uno::Reference< css::report::XSection > &_xSection)=0
 
virtual void traverseGroupFooter (const css::uno::Reference< css::report::XSection > &_xSection)=0
 
virtual void traverseDetail (const css::uno::Reference< css::report::XSection > &_xSection)=0
 
- Public Member Functions inherited from comphelper::OSelectionChangeListener
virtual ~OSelectionChangeListener ()
 
virtual void _selectionChanged (const css::lang::EventObject &aEvent)=0
 
virtual void _disposing (const css::lang::EventObject &_rSource)
 
- Public Member Functions inherited from comphelper::OPropertyChangeListener
 OPropertyChangeListener (::osl::Mutex &_rMutex)
 
virtual ~OPropertyChangeListener ()
 
virtual void _propertyChanged (const css::beans::PropertyChangeEvent &_rEvent)=0
 
virtual void _disposing (const css::lang::EventObject &_rSource)
 

Protected Member Functions

virtual void _disposing (const lang::EventObject &_rSource) override
 
virtual void _propertyChanged (const beans::PropertyChangeEvent &_rEvent) override
 
void _elementInserted (const container::ContainerEvent &_rEvent)
 
void _elementRemoved (const container::ContainerEvent &Event)
 
void _elementReplaced (const container::ContainerEvent &_rEvent)
 
- Protected Member Functions inherited from reportdesign::ITraverseReport
 ~ITraverseReport ()
 
- Protected Member Functions inherited from comphelper::OPropertyChangeListener
void disposeAdapter ()
 
void setAdapter (OPropertyChangeMultiplexer *_pAdapter)
 

Private Member Functions

void insertEntry (const OUString &rName, const weld::TreeIter *pParent, const OUString &rImageId, int nPosition, const UserData *pData, weld::TreeIter &rRet)
 
void traverseSection (const uno::Reference< report::XSection > &xSection, const weld::TreeIter *pParent, const OUString &rImageId, int nPosition=-1)
 
void traverseFunctions (const uno::Reference< report::XFunctions > &xFunctions, const weld::TreeIter *pParent)
 

Private Attributes

std::unique_ptr< weld::TreeViewm_xTreeView
 
OReportControllerm_rController
 
std::unique_ptr< weld::TreeIterm_xMasterReport
 
::rtl::Reference< comphelper::OPropertyChangeMultiplexerm_pReportListener
 
::rtl::Reference< comphelper::OSelectionChangeMultiplexerm_pSelectionListener
 

Friends

class UserData
 

Additional Inherited Members

- Protected Attributes inherited from cppu::BaseMutex
mutable::osl::Mutex m_aMutex
 

Detailed Description

Definition at line 100 of file Navigator.cxx.

Constructor & Destructor Documentation

◆ NavigatorTree()

rptui::NavigatorTree::NavigatorTree ( std::unique_ptr< weld::TreeView xTreeView,
OReportController rController 
)

◆ ~NavigatorTree()

rptui::NavigatorTree::~NavigatorTree ( )
overridevirtual

Definition at line 230 of file Navigator.cxx.

References m_pReportListener, m_pSelectionListener, m_xTreeView, and pData.

Member Function Documentation

◆ _disposing()

void rptui::NavigatorTree::_disposing ( const lang::EventObject &  _rSource)
overrideprotectedvirtual

Definition at line 656 of file Navigator.cxx.

References find(), m_xTreeView, and removeEntry().

◆ _elementInserted()

void rptui::NavigatorTree::_elementInserted ( const container::ContainerEvent &  _rEvent)
protected

◆ _elementRemoved()

void rptui::NavigatorTree::_elementRemoved ( const container::ContainerEvent &  Event)
protected

Definition at line 627 of file Navigator.cxx.

References find(), m_xTreeView, and removeEntry().

◆ _elementReplaced()

void rptui::NavigatorTree::_elementReplaced ( const container::ContainerEvent &  _rEvent)
protected

Definition at line 640 of file Navigator.cxx.

References find(), m_xTreeView, pData, PROPERTY_NAME, and sName.

◆ _propertyChanged()

void rptui::NavigatorTree::_propertyChanged ( const beans::PropertyChangeEvent &  _rEvent)
overrideprotectedvirtual

◆ _selectionChanged()

void rptui::NavigatorTree::_selectionChanged ( const lang::EventObject &  aEvent)
overridevirtual

Definition at line 343 of file Navigator.cxx.

References aEvent, find(), m_pSelectionListener, and m_xTreeView.

◆ DECL_LINK() [1/2]

rptui::NavigatorTree::DECL_LINK ( CommandHdl  ,
const CommandEvent ,
bool   
)

◆ DECL_LINK() [2/2]

rptui::NavigatorTree::DECL_LINK ( OnEntrySelDesel  ,
weld::TreeView ,
void   
)

◆ expand_row()

void rptui::NavigatorTree::expand_row ( const weld::TreeIter rIter)
inline

Definition at line 191 of file Navigator.cxx.

References m_xTreeView.

◆ find()

bool rptui::NavigatorTree::find ( const uno::Reference< uno::XInterface > &  xContent,
weld::TreeIter rIter 
)

◆ grab_focus()

void rptui::NavigatorTree::grab_focus ( )
inline

Definition at line 184 of file Navigator.cxx.

References m_xTreeView.

◆ insertEntry()

void rptui::NavigatorTree::insertEntry ( const OUString &  rName,
const weld::TreeIter pParent,
const OUString &  rImageId,
int  nPosition,
const UserData pData,
weld::TreeIter rRet 
)
private

◆ iter_n_children()

int rptui::NavigatorTree::iter_n_children ( const weld::TreeIter rIter) const
inline

Definition at line 201 of file Navigator.cxx.

References m_xTreeView.

◆ make_iterator()

std::unique_ptr< weld::TreeIter > rptui::NavigatorTree::make_iterator ( ) const
inline

Definition at line 196 of file Navigator.cxx.

References m_xTreeView.

◆ removeEntry()

void rptui::NavigatorTree::removeEntry ( const weld::TreeIter rEntry,
bool  bRemove = true 
)

Definition at line 663 of file Navigator.cxx.

References m_xTreeView, and removeEntry().

Referenced by _disposing(), _elementRemoved(), and removeEntry().

◆ set_text()

void rptui::NavigatorTree::set_text ( const weld::TreeIter rIter,
const OUString &  rStr 
)
inline

Definition at line 186 of file Navigator.cxx.

References m_xTreeView.

◆ traverseDetail()

void rptui::NavigatorTree::traverseDetail ( const uno::Reference< report::XSection > &  xSection)
overridevirtual

Definition at line 547 of file Navigator.cxx.

References find(), m_xTreeView, and traverseSection().

◆ traverseFunctions()

void rptui::NavigatorTree::traverseFunctions ( const uno::Reference< report::XFunctions > &  xFunctions,
const weld::TreeIter pParent 
)
private

Definition at line 411 of file Navigator.cxx.

References i, insertEntry(), m_xTreeView, nCount, RptResId(), and UserData.

Referenced by traverseGroupFunctions(), and traverseReportFunctions().

◆ traverseGroup()

void rptui::NavigatorTree::traverseGroup ( const uno::Reference< report::XGroup > &  xGroup)
overridevirtual

Definition at line 506 of file Navigator.cxx.

References find(), rptui::getPositionInIndexAccess(), insertEntry(), and m_xTreeView.

◆ traverseGroupFooter()

void rptui::NavigatorTree::traverseGroupFooter ( const uno::Reference< report::XSection > &  xSection)
overridevirtual

Definition at line 537 of file Navigator.cxx.

References find(), m_xTreeView, and traverseSection().

◆ traverseGroupFunctions()

void rptui::NavigatorTree::traverseGroupFunctions ( const uno::Reference< report::XFunctions > &  xFunctions)
overridevirtual

Definition at line 518 of file Navigator.cxx.

References find(), m_xTreeView, and traverseFunctions().

◆ traverseGroupHeader()

void rptui::NavigatorTree::traverseGroupHeader ( const uno::Reference< report::XSection > &  xSection)
overridevirtual

Definition at line 527 of file Navigator.cxx.

References find(), m_xTreeView, and traverseSection().

◆ traverseGroups()

void rptui::NavigatorTree::traverseGroups ( const uno::Reference< report::XGroups > &  xGroups)
overridevirtual

Definition at line 496 of file Navigator.cxx.

References find(), insertEntry(), m_xTreeView, and RptResId().

◆ traversePageFooter()

void rptui::NavigatorTree::traversePageFooter ( const uno::Reference< report::XSection > &  xSection)
overridevirtual

Definition at line 487 of file Navigator.cxx.

References find(), m_xTreeView, and traverseSection().

◆ traversePageHeader()

void rptui::NavigatorTree::traversePageHeader ( const uno::Reference< report::XSection > &  xSection)
overridevirtual

Definition at line 478 of file Navigator.cxx.

References find(), m_xTreeView, and traverseSection().

◆ traverseReport()

void rptui::NavigatorTree::traverseReport ( const uno::Reference< report::XReportDefinition > &  xReport)
overridevirtual

Definition at line 445 of file Navigator.cxx.

References insertEntry(), m_xMasterReport, and m_xTreeView.

◆ traverseReportFooter()

void rptui::NavigatorTree::traverseReportFooter ( const uno::Reference< report::XSection > &  xSection)
overridevirtual

Definition at line 469 of file Navigator.cxx.

References find(), m_xTreeView, and traverseSection().

◆ traverseReportFunctions()

void rptui::NavigatorTree::traverseReportFunctions ( const uno::Reference< report::XFunctions > &  xFunctions)
overridevirtual

Definition at line 451 of file Navigator.cxx.

References find(), m_xTreeView, and traverseFunctions().

◆ traverseReportHeader()

void rptui::NavigatorTree::traverseReportHeader ( const uno::Reference< report::XSection > &  xSection)
overridevirtual

Definition at line 460 of file Navigator.cxx.

References find(), m_xTreeView, and traverseSection().

◆ traverseSection()

void rptui::NavigatorTree::traverseSection ( const uno::Reference< report::XSection > &  xSection,
const weld::TreeIter pParent,
const OUString &  rImageId,
int  nPosition = -1 
)
private

Friends And Related Function Documentation

◆ UserData

friend class UserData
friend

Definition at line 106 of file Navigator.cxx.

Referenced by _elementInserted(), traverseFunctions(), and traverseSection().

Member Data Documentation

◆ m_pReportListener

::rtl::Reference< comphelper::OPropertyChangeMultiplexer> rptui::NavigatorTree::m_pReportListener
private

Definition at line 136 of file Navigator.cxx.

Referenced by NavigatorTree(), and ~NavigatorTree().

◆ m_pSelectionListener

::rtl::Reference< comphelper::OSelectionChangeMultiplexer> rptui::NavigatorTree::m_pSelectionListener
private

Definition at line 137 of file Navigator.cxx.

Referenced by _selectionChanged(), NavigatorTree(), and ~NavigatorTree().

◆ m_rController

OReportController& rptui::NavigatorTree::m_rController
private

Definition at line 134 of file Navigator.cxx.

Referenced by NavigatorTree().

◆ m_xMasterReport

std::unique_ptr<weld::TreeIter> rptui::NavigatorTree::m_xMasterReport
private

Definition at line 135 of file Navigator.cxx.

Referenced by traverseReport(), and traverseSection().

◆ m_xTreeView

std::unique_ptr<weld::TreeView> rptui::NavigatorTree::m_xTreeView
private

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