LibreOffice Module reportdesign (master) 1
|
#include <GroupsSorting.hxx>
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 Dialog * | getDialog () override |
virtual | ~GenericDialogController () COVERITY_NOEXCEPT_FALSE override |
Public Member Functions inherited from weld::DialogController | |
virtual Dialog * | getDialog ()=0 |
const Dialog * | getConstDialog () 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::OReportController * | m_pController |
::rtl::Reference< comphelper::OPropertyChangeMultiplexer > | m_pCurrentGroupListener |
::rtl::Reference< comphelper::OPropertyChangeMultiplexer > | m_pReportListener |
css::uno::Reference< css::report::XGroups > | m_xGroups |
css::uno::Reference< css::container::XNameAccess > | m_xColumns |
bool | m_bReadOnly |
std::unique_ptr< weld::Toolbar > | m_xToolBox |
std::unique_ptr< weld::Widget > | m_xProperties |
std::unique_ptr< weld::ComboBox > | m_xOrderLst |
std::unique_ptr< weld::ComboBox > | m_xHeaderLst |
std::unique_ptr< weld::ComboBox > | m_xFooterLst |
std::unique_ptr< weld::ComboBox > | m_xGroupOnLst |
std::unique_ptr< weld::SpinButton > | m_xGroupIntervalEd |
std::unique_ptr< weld::ComboBox > | m_xKeepTogetherLst |
std::unique_ptr< weld::Label > | m_xHelpWindow |
std::unique_ptr< weld::Container > | m_xBox |
css::uno::Reference< css::awt::XWindow > | m_xTableCtrlParent |
VclPtr< OFieldExpressionControl > | m_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::Builder > | m_xBuilder |
std::shared_ptr< weld::Dialog > | m_xDialog |
Protected Attributes inherited from cppu::BaseMutex | |
mutable::osl::Mutex | m_aMutex |
Definition at line 45 of file GroupsSorting.hxx.
|
privatedelete |
rptui::OGroupsSortingDialog::OGroupsSortingDialog | ( | weld::Window * | pParent, |
bool | _bReadOnly, | ||
::rptui::OReportController * | _pController | ||
) |
|
overridevirtual |
Definition at line 837 of file GroupsSorting.cxx.
References m_pCurrentGroupListener, m_pReportListener, m_xFieldExpression, and m_xTableCtrlParent.
|
overrideprotectedvirtual |
Implements comphelper::OPropertyChangeListener.
Definition at line 1041 of file GroupsSorting.cxx.
References displayGroup(), and fillColumns().
|
private |
enables or disables the up and down button
_nRow | the 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().
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
updates the listboxes with the new group properties
_nRow | the new group pos |
Definition at line 856 of file GroupsSorting.cxx.
References checkButtons(), displayGroup(), getGroup(), m_pCurrentGroupListener, m_xFieldExpression, m_xProperties, NO_GROUP, comphelper::OPropertyChangeListener::OPropertyChangeMultiplexer, PROPERTY_FOOTERON, and PROPERTY_HEADERON.
Referenced by rptui::OFieldExpressionControl::CursorMoving(), rptui::OFieldExpressionControl::DeleteRows(), rptui::OFieldExpressionControl::SaveModified(), and UpdateData().
|
private |
display the group props
_xGroup | the group to display |
Definition at line 1056 of file GroupsSorting.cxx.
References bReadOnly, getColumnDataType(), i, dbaui::DBSubComponentController::isEditable(), m_pController, m_xFooterLst, m_xGroupIntervalEd, m_xGroupOnLst, m_xHeaderLst, m_xKeepTogetherLst, m_xOrderLst, nDataType, nPos, RptResId(), and SAL_N_ELEMENTS.
Referenced by _propertyChanged(), and DisplayData().
|
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().
|
private |
returns the data type for the given column name
_sColumnName |
Definition at line 911 of file GroupsSorting.cxx.
References fillColumns(), m_xColumns, nDataType, PROPERTY_TYPE, TOOLS_WARN_EXCEPTION, and xColumn.
Referenced by displayGroup().
|
inlineprivate |
Definition at line 85 of file GroupsSorting.hxx.
References _nPos, and m_xGroups.
Referenced by rptui::OFieldExpressionControl::DeleteRows(), DisplayData(), rptui::OFieldExpressionControl::GetCellText(), rptui::OFieldExpressionControl::GetRowStatus(), SaveData(), and rptui::OFieldExpressionControl::SaveModified().
|
inlineprivate |
returns the groups
Definition at line 83 of file GroupsSorting.hxx.
References m_xGroups.
Referenced by rptui::OFieldExpressionControl::AcceptDrop(), rptui::OFieldExpressionControl::dispose(), rptui::OFieldExpressionControl::fillSelectedGroups(), rptui::OFieldExpressionControl::lateInit(), rptui::OFieldExpressionControl::moveGroups(), and rptui::OFieldExpressionControl::SaveModified().
|
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().
|
privatedelete |
|
private |
saves the values from the listboxes into the group at position _nRow
_nRow | the 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().
void rptui::OGroupsSortingDialog::UpdateData | ( | ) |
Definition at line 847 of file GroupsSorting.cxx.
References DisplayData(), and m_xFieldExpression.
|
friend |
Definition at line 49 of file GroupsSorting.hxx.
|
private |
Definition at line 56 of file GroupsSorting.hxx.
Referenced by isReadOnly().
|
private |
Definition at line 51 of file GroupsSorting.hxx.
Referenced by rptui::OFieldExpressionControl::DeleteRows(), displayGroup(), fillColumns(), rptui::OFieldExpressionControl::GetController(), rptui::OFieldExpressionControl::moveGroups(), and rptui::OFieldExpressionControl::SaveModified().
|
private |
Definition at line 52 of file GroupsSorting.hxx.
Referenced by DisplayData(), and ~OGroupsSortingDialog().
|
private |
Definition at line 53 of file GroupsSorting.hxx.
Referenced by ~OGroupsSortingDialog().
|
private |
Definition at line 67 of file GroupsSorting.hxx.
|
private |
Definition at line 55 of file GroupsSorting.hxx.
Referenced by fillColumns(), and getColumnDataType().
|
private |
Definition at line 69 of file GroupsSorting.hxx.
Referenced by checkButtons(), DisplayData(), fillColumns(), SaveData(), UpdateData(), and ~OGroupsSortingDialog().
|
private |
Definition at line 62 of file GroupsSorting.hxx.
Referenced by displayGroup(), and SaveData().
|
private |
Definition at line 64 of file GroupsSorting.hxx.
Referenced by displayGroup(), and SaveData().
|
private |
Definition at line 63 of file GroupsSorting.hxx.
Referenced by displayGroup(), and SaveData().
|
private |
Definition at line 54 of file GroupsSorting.hxx.
Referenced by checkButtons(), getGroup(), and getGroups().
|
private |
Definition at line 61 of file GroupsSorting.hxx.
Referenced by displayGroup(), and SaveData().
|
private |
Definition at line 66 of file GroupsSorting.hxx.
|
private |
Definition at line 65 of file GroupsSorting.hxx.
Referenced by displayGroup(), and SaveData().
|
private |
Definition at line 60 of file GroupsSorting.hxx.
Referenced by displayGroup(), and SaveData().
|
private |
Definition at line 59 of file GroupsSorting.hxx.
Referenced by DisplayData().
|
private |
Definition at line 68 of file GroupsSorting.hxx.
Referenced by ~OGroupsSortingDialog().
|
private |
Definition at line 58 of file GroupsSorting.hxx.
Referenced by checkButtons().