LibreOffice Module reportdesign (master) 1
|
#include <Condition.hxx>
Public Member Functions | |
Condition (weld::Container *pParent, weld::Window *pDialog, IConditionalFormatAction &rAction, ::rptui::OReportController &rController) | |
~Condition () | |
void | setCondition (const css::uno::Reference< css::report::XFormatCondition > &_xCondition) |
sets the props at the control More... | |
void | fillFormatCondition (const css::uno::Reference< css::report::XFormatCondition > &_xCondition) |
fills from the control _xCondition the destination More... | |
void | updateToolbar (const css::uno::Reference< css::report::XReportControlFormat > &_xCondition) |
updates the toolbar _xCondition the destination More... | |
void | setConditionIndex (size_t _nCondIndex, size_t _nCondCount) |
tells the condition its new index within the dialog's condition array More... | |
size_t | getConditionIndex () const |
returns the condition's index within the dialog's condition array More... | |
bool | isEmpty () const |
determines whether the condition is actually empty More... | |
void | ApplyCommand (sal_uInt16 _nCommandId, const NamedColor &rNamedColor) |
forward to the parent class More... | |
::rptui::OReportController & | getController () const |
css::uno::Reference< css::awt::XWindow > | GetXWindow () const |
void | grab_focus () |
bool | has_focus () const |
Size | get_preferred_size () const |
weld::Widget * | get_widget () const |
Static Public Member Functions | |
static sal_uInt16 | mapToolbarItemToSlotId (std::u16string_view rItemId) |
Private Member Functions | |
void | SetBackgroundDropdownClick () |
void | SetForegroundDropdownClick () |
DECL_LINK (OnFormatAction, const OUString &, void) | |
DECL_LINK (OnConditionAction, weld::Button &, void) | |
void | impl_layoutOperands () |
ConditionType | impl_getCurrentConditionType () const |
ComparisonOperation | impl_getCurrentComparisonOperation () const |
void | impl_setCondition (const OUString &_rConditionFormula) |
DECL_LINK (OnTypeSelected, weld::ComboBox &, void) | |
DECL_LINK (OnOperationSelected, weld::ComboBox &, void) | |
Definition at line 70 of file Condition.hxx.
rptui::Condition::Condition | ( | weld::Container * | pParent, |
weld::Window * | pDialog, | ||
IConditionalFormatAction & | rAction, | ||
::rptui::OReportController & | rController | ||
) |
Definition at line 83 of file Condition.cxx.
References rptui::ConditionalExpressionFactory::getKnownConditionalExpressions(), LINK, m_aConditionalExpressions, m_rController, m_xActions, m_xAddCondition, m_xBuilder, m_xConditionType, m_xCondLHS, m_xCondRHS, m_xContainer, m_xContainer, m_xMoveDown, m_xMoveUp, m_xOperationList, m_xRemoveCondition, make_shared(), SetBackgroundDropdownClick(), and SetForegroundDropdownClick().
rptui::Condition::~Condition | ( | ) |
Definition at line 148 of file Condition.cxx.
void rptui::Condition::ApplyCommand | ( | sal_uInt16 | _nCommandId, |
const NamedColor & | rNamedColor | ||
) |
forward to the parent class
Definition at line 201 of file Condition.cxx.
References rptui::IConditionalFormatAction::applyCommand(), NamedColor::m_aColor, m_nCondIndex, and m_rAction.
Referenced by rptui::ConditionColorWrapper::operator()().
|
private |
|
private |
|
private |
|
private |
void rptui::Condition::fillFormatCondition | ( | const css::uno::Reference< css::report::XFormatCondition > & | _xCondition | ) |
fills from the control _xCondition the destination
Definition at line 336 of file Condition.cxx.
References rptui::eFieldValueComparison, eType, rptui::ReportFormula::Expression, rptui::ReportFormula::getBracketedFieldOrExpression(), rptui::ReportFormula::getCompleteFormula(), rptui::IConditionalFormatAction::getDataField(), impl_getCurrentComparisonOperation(), impl_getCurrentConditionType(), m_aConditionalExpressions, m_rAction, m_xCondLHS, and m_xCondRHS.
|
inline |
Definition at line 150 of file Condition.hxx.
References m_xContainer.
|
inline |
Definition at line 151 of file Condition.hxx.
References m_xContainer.
|
inline |
returns the condition's index within the dialog's condition array
Definition at line 132 of file Condition.hxx.
References m_nCondIndex.
|
inline |
Definition at line 142 of file Condition.hxx.
References m_rController.
|
inline |
Definition at line 146 of file Condition.hxx.
References weld::Window::GetXWindow(), and m_pDialog.
|
inline |
Definition at line 148 of file Condition.hxx.
References m_xContainer.
|
inline |
Definition at line 149 of file Condition.hxx.
References m_xContainer.
|
inlineprivate |
Definition at line 174 of file Condition.hxx.
References m_xOperationList.
Referenced by fillFormatCondition(), and impl_layoutOperands().
|
inlineprivate |
Definition at line 169 of file Condition.hxx.
References m_xConditionType.
Referenced by fillFormatCondition(), and impl_layoutOperands().
|
private |
Definition at line 216 of file Condition.cxx.
References rptui::eBetween, rptui::eExpression, rptui::eFieldValueComparison, rptui::eNotBetween, eType, impl_getCurrentComparisonOperation(), impl_getCurrentConditionType(), m_xCondRHS, m_xOperandGlue, and m_xOperationList.
Referenced by impl_setCondition().
|
private |
Definition at line 235 of file Condition.cxx.
References rptui::eBetween, rptui::eExpression, rptui::eFieldValueComparison, eType, rptui::ReportFormula::Expression, rptui::ReportFormula::getBracketedFieldOrExpression(), rptui::IConditionalFormatAction::getDataField(), rptui::ReportFormula::getExpression(), rptui::ReportFormula::getType(), impl_layoutOperands(), m_aConditionalExpressions, m_rAction, m_xConditionType, m_xCondLHS, m_xCondRHS, and m_xOperationList.
Referenced by setCondition().
bool rptui::Condition::isEmpty | ( | ) | const |
determines whether the condition is actually empty
Definition at line 371 of file Condition.cxx.
References m_xCondLHS.
|
static |
|
private |
Definition at line 152 of file Condition.cxx.
References m_aBackColorWrapper, m_aColorStatus, m_xActions, m_xBackColorFloat, and m_xPaletteManager.
Referenced by Condition().
void rptui::Condition::setCondition | ( | const css::uno::Reference< css::report::XFormatCondition > & | _xCondition | ) |
sets the props at the control
_xCondition | the source |
Definition at line 284 of file Condition.cxx.
References DBG_UNHANDLED_EXCEPTION, Exception, impl_setCondition(), and updateToolbar().
void rptui::Condition::setConditionIndex | ( | size_t | _nCondIndex, |
size_t | _nCondCount | ||
) |
tells the condition its new index within the dialog's condition array
Definition at line 359 of file Condition.cxx.
References m_nCondIndex, m_xHeader, m_xMoveDown, m_xMoveUp, and RptResId().
|
private |
Definition at line 167 of file Condition.cxx.
References m_aColorStatus, m_aForeColorWrapper, m_xActions, m_xForeColorFloat, and m_xPaletteManager.
Referenced by Condition().
void rptui::Condition::updateToolbar | ( | const css::uno::Reference< css::report::XReportControlFormat > & | _xCondition | ) |
updates the toolbar _xCondition the destination
Definition at line 305 of file Condition.cxx.
References ColorTransparency, o3tl::convert(), VCLUnoHelper::CreateFont(), DBG_UNHANDLED_EXCEPTION, Exception, Application::GetDefaultDevice(), rptui::OReportController::isFormatCommandEnabled(), m_aPreview, m_xActions, mapToolbarItemToSlotId(), o3tl::pt, SAL_N_ELEMENTS, SvxFontPrevWindow::SetFont(), SvxFontPrevWindow::SetTextLineColor(), and o3tl::twip.
Referenced by setCondition().
|
private |
Definition at line 74 of file Condition.hxx.
Referenced by SetBackgroundDropdownClick().
|
private |
Definition at line 73 of file Condition.hxx.
Referenced by SetBackgroundDropdownClick(), and SetForegroundDropdownClick().
|
private |
Definition at line 82 of file Condition.hxx.
Referenced by Condition(), fillFormatCondition(), and impl_setCondition().
|
private |
Definition at line 75 of file Condition.hxx.
Referenced by SetForegroundDropdownClick().
|
private |
Definition at line 84 of file Condition.hxx.
Referenced by updateToolbar().
|
private |
Definition at line 80 of file Condition.hxx.
Referenced by ApplyCommand(), getConditionIndex(), and setConditionIndex().
|
private |
Definition at line 85 of file Condition.hxx.
Referenced by GetXWindow().
|
private |
Definition at line 78 of file Condition.hxx.
Referenced by ApplyCommand(), fillFormatCondition(), and impl_setCondition().
|
private |
Definition at line 77 of file Condition.hxx.
Referenced by getController().
|
private |
Definition at line 94 of file Condition.hxx.
Referenced by Condition(), SetBackgroundDropdownClick(), SetForegroundDropdownClick(), and updateToolbar().
|
private |
Definition at line 98 of file Condition.hxx.
Referenced by Condition().
|
private |
Definition at line 100 of file Condition.hxx.
Referenced by SetBackgroundDropdownClick().
|
private |
Definition at line 86 of file Condition.hxx.
Referenced by Condition().
|
private |
Definition at line 89 of file Condition.hxx.
Referenced by Condition(), impl_getCurrentConditionType(), and impl_setCondition().
|
private |
Definition at line 91 of file Condition.hxx.
Referenced by Condition(), fillFormatCondition(), impl_setCondition(), and isEmpty().
|
private |
Definition at line 93 of file Condition.hxx.
Referenced by Condition(), fillFormatCondition(), impl_layoutOperands(), and impl_setCondition().
|
private |
Definition at line 87 of file Condition.hxx.
Referenced by Condition(), get_preferred_size(), get_widget(), grab_focus(), and has_focus().
|
private |
Definition at line 101 of file Condition.hxx.
Referenced by SetForegroundDropdownClick().
|
private |
Definition at line 88 of file Condition.hxx.
Referenced by setConditionIndex().
|
private |
Definition at line 97 of file Condition.hxx.
Referenced by Condition(), and setConditionIndex().
|
private |
Definition at line 96 of file Condition.hxx.
Referenced by Condition(), and setConditionIndex().
|
private |
Definition at line 92 of file Condition.hxx.
Referenced by impl_layoutOperands().
|
private |
Definition at line 90 of file Condition.hxx.
Referenced by Condition(), impl_getCurrentComparisonOperation(), impl_layoutOperands(), and impl_setCondition().
|
private |
Definition at line 72 of file Condition.hxx.
Referenced by SetBackgroundDropdownClick(), and SetForegroundDropdownClick().
|
private |
Definition at line 95 of file Condition.hxx.
|
private |
Definition at line 99 of file Condition.hxx.
Referenced by Condition().