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 OString &rDialogId, bool bMobile=false)
 
virtual DialoggetDialog () override
 
virtual ~GenericDialogController () COVERITY_NOEXCEPT_FALSE override
 
- Public Member Functions inherited from weld::DialogController
const DialoggetConstDialog () const
 
virtual short run ()
 
void set_title (const OUString &rTitle)
 
OUString get_title () const
 
void set_help_id (const OString &rHelpId)
 
OString 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 _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 ()
 
void setAdapter (OPropertyChangeMultiplexer *_pAdapter)
 

Private Member Functions

 DECL_LINK (OnWidgetFocusLost, weld::Widget &, void)
 
 DECL_LINK (OnWidgetFocusGot, weld::Widget &, void)
 
 DECL_LINK (OnControlFocusGot, weld::Widget &, void)
 
 DECL_LINK (LBChangeHdl, weld::ComboBox &, void)
 
 DECL_LINK (OnFormatAction, const OString &, 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 47 of file GroupsSorting.hxx.

Constructor & Destructor Documentation

rptui::OGroupsSortingDialog::OGroupsSortingDialog ( OGroupsSortingDialog const &  )
privatedelete
rptui::OGroupsSortingDialog::OGroupsSortingDialog ( weld::Window pParent,
bool  _bReadOnly,
::rptui::OReportController _pController 
)
rptui::OGroupsSortingDialog::~OGroupsSortingDialog ( )
overridevirtual

Member Function Documentation

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

Implements comphelper::OPropertyChangeListener.

Definition at line 1042 of file GroupsSorting.cxx.

References displayGroup(), and fillColumns().

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 1145 of file GroupsSorting.cxx.

References m_xFieldExpression, m_xGroups, m_xToolBox, and NO_GROUP.

Referenced by DisplayData().

rptui::OGroupsSortingDialog::DECL_LINK ( OnWidgetFocusLost  ,
weld::Widget ,
void   
)
private
rptui::OGroupsSortingDialog::DECL_LINK ( OnWidgetFocusGot  ,
weld::Widget ,
void   
)
private
rptui::OGroupsSortingDialog::DECL_LINK ( OnControlFocusGot  ,
weld::Widget ,
void   
)
private
rptui::OGroupsSortingDialog::DECL_LINK ( LBChangeHdl  ,
weld::ComboBox ,
void   
)
private
rptui::OGroupsSortingDialog::DECL_LINK ( OnFormatAction  ,
const OString &  ,
void   
)
private
void rptui::OGroupsSortingDialog::DisplayData ( sal_Int32  _nRow)
private
void rptui::OGroupsSortingDialog::displayGroup ( const css::uno::Reference< css::report::XGroup > &  _xGroup)
private
void rptui::OGroupsSortingDialog::fillColumns ( )
private

clears the m_xColumns member and reset the fields

Definition at line 1051 of file GroupsSorting.cxx.

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

Referenced by _propertyChanged(), and getColumnDataType().

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

returns the data type for the given column name

Parameters
_sColumnName

Definition at line 908 of file GroupsSorting.cxx.

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

Referenced by displayGroup().

css::uno::Reference< css::report::XGroup> rptui::OGroupsSortingDialog::getGroup ( sal_Int32  _nPos)
inlineprivate
css::uno::Reference< css::report::XGroups>& rptui::OGroupsSortingDialog::getGroups ( )
inlineprivate
bool rptui::OGroupsSortingDialog::isReadOnly ( ) const
inlineprivate

returns <TRUE> when the dialog should be read only

Definition at line 105 of file GroupsSorting.hxx.

References m_bReadOnly.

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

void rptui::OGroupsSortingDialog::operator= ( OGroupsSortingDialog const &  )
privatedelete
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 876 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().

void rptui::OGroupsSortingDialog::UpdateData ( )

Definition at line 844 of file GroupsSorting.cxx.

References DisplayData(), and m_xFieldExpression.

Friends And Related Function Documentation

friend class OFieldExpressionControl
friend

Definition at line 51 of file GroupsSorting.hxx.

Member Data Documentation

bool rptui::OGroupsSortingDialog::m_bReadOnly
private

Definition at line 58 of file GroupsSorting.hxx.

Referenced by isReadOnly().

::rptui::OReportController* rptui::OGroupsSortingDialog::m_pController
private
::rtl::Reference< comphelper::OPropertyChangeMultiplexer> rptui::OGroupsSortingDialog::m_pCurrentGroupListener
private

Definition at line 54 of file GroupsSorting.hxx.

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

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

Definition at line 55 of file GroupsSorting.hxx.

Referenced by ~OGroupsSortingDialog().

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

Definition at line 69 of file GroupsSorting.hxx.

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

Definition at line 57 of file GroupsSorting.hxx.

Referenced by fillColumns(), and getColumnDataType().

VclPtr<OFieldExpressionControl> rptui::OGroupsSortingDialog::m_xFieldExpression
private
std::unique_ptr<weld::ComboBox> rptui::OGroupsSortingDialog::m_xFooterLst
private

Definition at line 64 of file GroupsSorting.hxx.

Referenced by displayGroup(), and SaveData().

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

Definition at line 66 of file GroupsSorting.hxx.

Referenced by displayGroup(), and SaveData().

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

Definition at line 65 of file GroupsSorting.hxx.

Referenced by displayGroup(), and SaveData().

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

Definition at line 56 of file GroupsSorting.hxx.

Referenced by checkButtons(), and getGroups().

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

Definition at line 63 of file GroupsSorting.hxx.

Referenced by displayGroup(), and SaveData().

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

Definition at line 68 of file GroupsSorting.hxx.

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

Definition at line 67 of file GroupsSorting.hxx.

Referenced by displayGroup(), and SaveData().

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

Definition at line 62 of file GroupsSorting.hxx.

Referenced by displayGroup(), and SaveData().

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

Definition at line 61 of file GroupsSorting.hxx.

Referenced by DisplayData().

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

Definition at line 70 of file GroupsSorting.hxx.

Referenced by ~OGroupsSortingDialog().

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

Definition at line 60 of file GroupsSorting.hxx.

Referenced by checkButtons().


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