19#ifndef INCLUDED_REPORTDESIGN_SOURCE_UI_INC_GROUPSSORTING_HXX
20#define INCLUDED_REPORTDESIGN_SOURCE_UI_INC_GROUPSSORTING_HXX
22#include <com/sun/star/report/XGroups.hpp>
23#include <com/sun/star/report/XGroup.hpp>
24#include <com/sun/star/container/XNameAccess.hpp>
29#include <osl/diagnose.h>
33 class OPropertyChangeMultiplexer;
37class OFieldExpressionControl;
38class OReportController;
54 css::uno::Reference< css::report::XGroups>
m_xGroups;
55 css::uno::Reference< css::container::XNameAccess >
m_xColumns;
67 std::unique_ptr<weld::Container>
m_xBox;
85 css::uno::Reference< css::report::XGroup>
getGroup(sal_Int32 _nPos)
87 OSL_ENSURE(
_nPos >= 0 && _nPos < m_xGroups->getCount(),
"Invalid count!");
88 return css::uno::Reference< css::report::XGroup>(
m_xGroups->getByIndex(
_nPos),css::uno::UNO_QUERY);
113 void displayGroup(
const css::uno::Reference< css::report::XGroup>& _xGroup);
128 virtual void _propertyChanged(
const css::beans::PropertyChangeEvent& _rEvent)
override;
void operator=(OGroupsSortingDialog const &)=delete
OGroupsSortingDialog(OGroupsSortingDialog const &)=delete
bool isReadOnly() const
returns <TRUE> when the dialog should be read only
::rptui::OReportController * m_pController
void SaveData(sal_Int32 _nRow)
saves the values from the listboxes into the group at position _nRow
std::unique_ptr< weld::Widget > m_xProperties
DECL_LINK(OnWidgetFocusLost, weld::Widget &, void)
std::unique_ptr< weld::Label > m_xHelpWindow
VclPtr< OFieldExpressionControl > m_xFieldExpression
std::unique_ptr< weld::ComboBox > m_xOrderLst
std::unique_ptr< weld::ComboBox > m_xGroupOnLst
virtual ~OGroupsSortingDialog() override
std::unique_ptr< weld::Toolbar > m_xToolBox
virtual void _propertyChanged(const css::beans::PropertyChangeEvent &_rEvent) override
std::unique_ptr< weld::SpinButton > m_xGroupIntervalEd
std::unique_ptr< weld::ComboBox > m_xKeepTogetherLst
void DisplayData(sal_Int32 _nRow)
updates the listboxes with the new group properties
css::uno::Reference< css::report::XGroup > getGroup(sal_Int32 _nPos)
css::uno::Reference< css::report::XGroups > m_xGroups
DECL_LINK(LBChangeHdl, weld::ComboBox &, void)
std::unique_ptr< weld::ComboBox > m_xFooterLst
std::unique_ptr< weld::Container > m_xBox
void fillColumns()
clears the m_xColumns member and reset the fields
void checkButtons(sal_Int32 _nRow)
enables or disables the up and down button
DECL_LINK(OnWidgetFocusGot, weld::Widget &, void)
DECL_LINK(OnControlFocusGot, LinkParamNone *, void)
css::uno::Reference< css::container::XNameAccess > m_xColumns
sal_Int32 getColumnDataType(const OUString &_sColumnName)
returns the data type for the given column name
std::unique_ptr< weld::ComboBox > m_xHeaderLst
void displayGroup(const css::uno::Reference< css::report::XGroup > &_xGroup)
display the group props
DECL_LINK(OnFormatAction, const OUString &, void)
css::uno::Reference< css::awt::XWindow > m_xTableCtrlParent
::rtl::Reference< comphelper::OPropertyChangeMultiplexer > m_pCurrentGroupListener
::rtl::Reference< comphelper::OPropertyChangeMultiplexer > m_pReportListener
css::uno::Reference< css::report::XGroups > & getGroups()
returns the groups
OGroupsSortingDialog(weld::Window *pParent, bool _bReadOnly, ::rptui::OReportController *_pController)