LibreOffice Module reportdesign (master) 1
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
rptui::OGroupsSortingDialog Class Reference

#include <GroupsSorting.hxx>

Inheritance diagram for rptui::OGroupsSortingDialog:
[legend]
Collaboration diagram for rptui::OGroupsSortingDialog:
[legend]

Public Member Functions

 OGroupsSortingDialog (weld::Window *pParent, bool _bReadOnly, ::rptui::OReportController *_pController)
 
virtual ~OGroupsSortingDialog () override
 
void UpdateData ()
 
- Public Member Functions inherited from weld::GenericDialogController
 GenericDialogController (weld::Widget *pParent, const OUString &rUIFile, const OUString &rDialogId, bool bMobile=false)
 
virtual DialoggetDialog () override
 
virtual ~GenericDialogController () COVERITY_NOEXCEPT_FALSE override
 
- Public Member Functions inherited from weld::DialogController
virtual DialoggetDialog ()=0
 
const DialoggetConstDialog () const
 
virtual short run ()
 
void set_title (const OUString &rTitle)
 
OUString get_title () const
 
void set_help_id (const OUString &rHelpId)
 
OUString get_help_id () const
 
void response (int nResponse)
 
virtual ~DialogController () COVERITY_NOEXCEPT_FALSE
 
- 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 _propertyChanged (const css::beans::PropertyChangeEvent &_rEvent) override
 
- Protected Member Functions inherited from comphelper::OPropertyChangeListener
void disposeAdapter ()
 

Private Member Functions

 DECL_LINK (OnWidgetFocusLost, weld::Widget &, void)
 
 DECL_LINK (OnWidgetFocusGot, weld::Widget &, void)
 
 DECL_LINK (OnControlFocusGot, LinkParamNone *, void)
 
 DECL_LINK (LBChangeHdl, weld::ComboBox &, void)
 
 DECL_LINK (OnFormatAction, const OUString &, void)
 
css::uno::Reference< css::report::XGroups > & getGroups ()
 returns the groups More...
 
css::uno::Reference< css::report::XGroup > getGroup (sal_Int32 _nPos)
 
void DisplayData (sal_Int32 _nRow)
 updates the listboxes with the new group properties More...
 
void SaveData (sal_Int32 _nRow)
 saves the values from the listboxes into the group at position _nRow More...
 
bool isReadOnly () const
 returns <TRUE> when the dialog should be read only More...
 
sal_Int32 getColumnDataType (const OUString &_sColumnName)
 returns the data type for the given column name More...
 
void displayGroup (const css::uno::Reference< css::report::XGroup > &_xGroup)
 display the group props More...
 
void checkButtons (sal_Int32 _nRow)
 enables or disables the up and down button More...
 
void fillColumns ()
 clears the m_xColumns member and reset the fields More...
 
 OGroupsSortingDialog (OGroupsSortingDialog const &)=delete
 
void operator= (OGroupsSortingDialog const &)=delete
 

Private Attributes

::rptui::OReportControllerm_pController
 
::rtl::Reference< comphelper::OPropertyChangeMultiplexerm_pCurrentGroupListener
 
::rtl::Reference< comphelper::OPropertyChangeMultiplexerm_pReportListener
 
css::uno::Reference< css::report::XGroups > m_xGroups
 
css::uno::Reference< css::container::XNameAccess > m_xColumns
 
bool m_bReadOnly
 
std::unique_ptr< weld::Toolbarm_xToolBox
 
std::unique_ptr< weld::Widgetm_xProperties
 
std::unique_ptr< weld::ComboBoxm_xOrderLst
 
std::unique_ptr< weld::ComboBoxm_xHeaderLst
 
std::unique_ptr< weld::ComboBoxm_xFooterLst
 
std::unique_ptr< weld::ComboBoxm_xGroupOnLst
 
std::unique_ptr< weld::SpinButtonm_xGroupIntervalEd
 
std::unique_ptr< weld::ComboBoxm_xKeepTogetherLst
 
std::unique_ptr< weld::Labelm_xHelpWindow
 
std::unique_ptr< weld::Containerm_xBox
 
css::uno::Reference< css::awt::XWindow > m_xTableCtrlParent
 
VclPtr< OFieldExpressionControlm_xFieldExpression
 

Friends

class OFieldExpressionControl
 

Additional Inherited Members

- Static Public Member Functions inherited from weld::DialogController
static bool runAsync (const std::shared_ptr< DialogController > &rController, const std::function< void(sal_Int32)> &)
 
- Protected Attributes inherited from weld::GenericDialogController
std::unique_ptr< weld::Builderm_xBuilder
 
std::shared_ptr< weld::Dialogm_xDialog
 
- Protected Attributes inherited from cppu::BaseMutex
mutable::osl::Mutex m_aMutex
 

Detailed Description

Definition at line 45 of file GroupsSorting.hxx.

Constructor & Destructor Documentation

◆ OGroupsSortingDialog() [1/2]

rptui::OGroupsSortingDialog::OGroupsSortingDialog ( OGroupsSortingDialog const &  )
privatedelete

◆ OGroupsSortingDialog() [2/2]

rptui::OGroupsSortingDialog::OGroupsSortingDialog ( weld::Window pParent,
bool  _bReadOnly,
::rptui::OReportController _pController 
)

◆ ~OGroupsSortingDialog()

rptui::OGroupsSortingDialog::~OGroupsSortingDialog ( )
overridevirtual

Member Function Documentation

◆ _propertyChanged()

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

Implements comphelper::OPropertyChangeListener.

Definition at line 1041 of file GroupsSorting.cxx.

References displayGroup(), and fillColumns().

◆ checkButtons()

void rptui::OGroupsSortingDialog::checkButtons ( sal_Int32  _nRow)
private

enables or disables the up and down button

Parameters
_nRowthe row which will be active

Definition at line 1144 of file GroupsSorting.cxx.

References m_xFieldExpression, m_xGroups, m_xToolBox, and NO_GROUP.

Referenced by DisplayData().

◆ DECL_LINK() [1/5]

rptui::OGroupsSortingDialog::DECL_LINK ( LBChangeHdl  ,
weld::ComboBox ,
void   
)
private

◆ DECL_LINK() [2/5]

rptui::OGroupsSortingDialog::DECL_LINK ( OnControlFocusGot  ,
LinkParamNone ,
void   
)
private

◆ DECL_LINK() [3/5]

rptui::OGroupsSortingDialog::DECL_LINK ( OnFormatAction  ,
const OUString &  ,
void   
)
private

◆ DECL_LINK() [4/5]

rptui::OGroupsSortingDialog::DECL_LINK ( OnWidgetFocusGot  ,
weld::Widget ,
void   
)
private

◆ DECL_LINK() [5/5]

rptui::OGroupsSortingDialog::DECL_LINK ( OnWidgetFocusLost  ,
weld::Widget ,
void   
)
private

◆ DisplayData()

void rptui::OGroupsSortingDialog::DisplayData ( sal_Int32  _nRow)
private

◆ displayGroup()

void rptui::OGroupsSortingDialog::displayGroup ( const css::uno::Reference< css::report::XGroup > &  _xGroup)
private

◆ fillColumns()

void rptui::OGroupsSortingDialog::fillColumns ( )
private

clears the m_xColumns member and reset the fields

Definition at line 1050 of file GroupsSorting.cxx.

References rptui::OReportController::getColumns(), m_pController, m_xColumns, and m_xFieldExpression.

Referenced by _propertyChanged(), and getColumnDataType().

◆ getColumnDataType()

sal_Int32 rptui::OGroupsSortingDialog::getColumnDataType ( const OUString &  _sColumnName)
private

returns the data type for the given column name

Parameters
_sColumnName

Definition at line 911 of file GroupsSorting.cxx.

References fillColumns(), m_xColumns, nDataType, PROPERTY_TYPE, TOOLS_WARN_EXCEPTION, and xColumn.

Referenced by displayGroup().

◆ getGroup()

css::uno::Reference< css::report::XGroup > rptui::OGroupsSortingDialog::getGroup ( sal_Int32  _nPos)
inlineprivate

◆ getGroups()

css::uno::Reference< css::report::XGroups > & rptui::OGroupsSortingDialog::getGroups ( )
inlineprivate

◆ isReadOnly()

bool rptui::OGroupsSortingDialog::isReadOnly ( ) const
inlineprivate

returns <TRUE> when the dialog should be read only

Definition at line 103 of file GroupsSorting.hxx.

References m_bReadOnly.

Referenced by rptui::OFieldExpressionControl::IsDeleteAllowed(), rptui::OFieldExpressionControl::lateInit(), and rptui::OFieldExpressionControl::StartDrag().

◆ operator=()

void rptui::OGroupsSortingDialog::operator= ( OGroupsSortingDialog const &  )
privatedelete

◆ SaveData()

void rptui::OGroupsSortingDialog::SaveData ( sal_Int32  _nRow)
private

saves the values from the listboxes into the group at position _nRow

Parameters
_nRowthe group pos to store in

Definition at line 879 of file GroupsSorting.cxx.

References getGroup(), m_xFieldExpression, m_xFooterLst, m_xGroupIntervalEd, m_xGroupOnLst, m_xHeaderLst, m_xKeepTogetherLst, m_xOrderLst, and NO_GROUP.

Referenced by rptui::OFieldExpressionControl::CursorMoving().

◆ UpdateData()

void rptui::OGroupsSortingDialog::UpdateData ( )

Definition at line 847 of file GroupsSorting.cxx.

References DisplayData(), and m_xFieldExpression.

Friends And Related Function Documentation

◆ OFieldExpressionControl

friend class OFieldExpressionControl
friend

Definition at line 49 of file GroupsSorting.hxx.

Member Data Documentation

◆ m_bReadOnly

bool rptui::OGroupsSortingDialog::m_bReadOnly
private

Definition at line 56 of file GroupsSorting.hxx.

Referenced by isReadOnly().

◆ m_pController

::rptui::OReportController* rptui::OGroupsSortingDialog::m_pController
private

◆ m_pCurrentGroupListener

::rtl::Reference< comphelper::OPropertyChangeMultiplexer> rptui::OGroupsSortingDialog::m_pCurrentGroupListener
private

Definition at line 52 of file GroupsSorting.hxx.

Referenced by DisplayData(), and ~OGroupsSortingDialog().

◆ m_pReportListener

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

Definition at line 53 of file GroupsSorting.hxx.

Referenced by ~OGroupsSortingDialog().

◆ m_xBox

std::unique_ptr<weld::Container> rptui::OGroupsSortingDialog::m_xBox
private

Definition at line 67 of file GroupsSorting.hxx.

◆ m_xColumns

css::uno::Reference< css::container::XNameAccess > rptui::OGroupsSortingDialog::m_xColumns
private

Definition at line 55 of file GroupsSorting.hxx.

Referenced by fillColumns(), and getColumnDataType().

◆ m_xFieldExpression

VclPtr<OFieldExpressionControl> rptui::OGroupsSortingDialog::m_xFieldExpression
private

◆ m_xFooterLst

std::unique_ptr<weld::ComboBox> rptui::OGroupsSortingDialog::m_xFooterLst
private

Definition at line 62 of file GroupsSorting.hxx.

Referenced by displayGroup(), and SaveData().

◆ m_xGroupIntervalEd

std::unique_ptr<weld::SpinButton> rptui::OGroupsSortingDialog::m_xGroupIntervalEd
private

Definition at line 64 of file GroupsSorting.hxx.

Referenced by displayGroup(), and SaveData().

◆ m_xGroupOnLst

std::unique_ptr<weld::ComboBox> rptui::OGroupsSortingDialog::m_xGroupOnLst
private

Definition at line 63 of file GroupsSorting.hxx.

Referenced by displayGroup(), and SaveData().

◆ m_xGroups

css::uno::Reference< css::report::XGroups> rptui::OGroupsSortingDialog::m_xGroups
private

Definition at line 54 of file GroupsSorting.hxx.

Referenced by checkButtons(), getGroup(), and getGroups().

◆ m_xHeaderLst

std::unique_ptr<weld::ComboBox> rptui::OGroupsSortingDialog::m_xHeaderLst
private

Definition at line 61 of file GroupsSorting.hxx.

Referenced by displayGroup(), and SaveData().

◆ m_xHelpWindow

std::unique_ptr<weld::Label> rptui::OGroupsSortingDialog::m_xHelpWindow
private

Definition at line 66 of file GroupsSorting.hxx.

◆ m_xKeepTogetherLst

std::unique_ptr<weld::ComboBox> rptui::OGroupsSortingDialog::m_xKeepTogetherLst
private

Definition at line 65 of file GroupsSorting.hxx.

Referenced by displayGroup(), and SaveData().

◆ m_xOrderLst

std::unique_ptr<weld::ComboBox> rptui::OGroupsSortingDialog::m_xOrderLst
private

Definition at line 60 of file GroupsSorting.hxx.

Referenced by displayGroup(), and SaveData().

◆ m_xProperties

std::unique_ptr<weld::Widget> rptui::OGroupsSortingDialog::m_xProperties
private

Definition at line 59 of file GroupsSorting.hxx.

Referenced by DisplayData().

◆ m_xTableCtrlParent

css::uno::Reference<css::awt::XWindow> rptui::OGroupsSortingDialog::m_xTableCtrlParent
private

Definition at line 68 of file GroupsSorting.hxx.

Referenced by ~OGroupsSortingDialog().

◆ m_xToolBox

std::unique_ptr<weld::Toolbar> rptui::OGroupsSortingDialog::m_xToolBox
private

Definition at line 58 of file GroupsSorting.hxx.

Referenced by checkButtons().


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