20#ifndef INCLUDED_REPORTDESIGN_SOURCE_UI_DLG_CONDITION_HXX
21#define INCLUDED_REPORTDESIGN_SOURCE_UI_DLG_CONDITION_HXX
25#include <com/sun/star/report/XFormatCondition.hpp>
38 class OReportController;
39 class IConditionalFormatAction;
50 ConditionField(
Condition* pParent, std::unique_ptr<weld::Entry> xSubEdit, std::unique_ptr<weld::Button> xFormula);
116 void setCondition(
const css::uno::Reference< css::report::XFormatCondition >& _xCondition);
121 void fillFormatCondition(
const css::uno::Reference< css::report::XFormatCondition >& _xCondition);
126 void updateToolbar(
const css::uno::Reference< css::report::XReportControlFormat >& _xCondition);
176 return sal::static_int_cast<ComparisonOperation>(
m_xOperationList->get_active());
ConditionColorWrapper(Condition *pControl, sal_uInt16 nSlotId)
void operator()(const OUString &rCommand, const NamedColor &rColor)
DECL_LINK(OnFormula, weld::Button &, void)
OUString get_text() const
std::unique_ptr< weld::Entry > m_xSubEdit
void set_visible(bool bShow)
std::unique_ptr< weld::Button > m_xFormula
void set_text(const OUString &rText)
ConditionField(Condition *pParent, std::unique_ptr< weld::Entry > xSubEdit, std::unique_ptr< weld::Button > xFormula)
std::unique_ptr< weld::ComboBox > m_xConditionType
ConditionType impl_getCurrentConditionType() const
void updateToolbar(const css::uno::Reference< css::report::XReportControlFormat > &_xCondition)
updates the toolbar _xCondition the destination
std::unique_ptr< weld::Toolbar > m_xActions
void SetBackgroundDropdownClick()
void fillFormatCondition(const css::uno::Reference< css::report::XFormatCondition > &_xCondition)
fills from the control _xCondition the destination
ConditionalExpressions m_aConditionalExpressions
Condition(weld::Container *pParent, weld::Window *pDialog, IConditionalFormatAction &rAction, ::rptui::OReportController &rController)
std::unique_ptr< weld::Label > m_xOperandGlue
ConditionColorWrapper m_aBackColorWrapper
void setConditionIndex(size_t _nCondIndex, size_t _nCondCount)
tells the condition its new index within the dialog's condition array
DECL_LINK(OnTypeSelected, weld::ComboBox &, void)
std::unique_ptr< weld::Label > m_xHeader
size_t getConditionIndex() const
returns the condition's index within the dialog's condition array
void setCondition(const css::uno::Reference< css::report::XFormatCondition > &_xCondition)
sets the props at the control
Size get_preferred_size() const
ComparisonOperation impl_getCurrentComparisonOperation() const
std::unique_ptr< weld::ComboBox > m_xOperationList
std::unique_ptr< weld::CustomWeld > m_xPreview
std::unique_ptr< ConditionField > m_xCondLHS
void impl_layoutOperands()
DECL_LINK(OnFormatAction, const OUString &, void)
std::unique_ptr< weld::Container > m_xContainer
::rptui::OReportController & m_rController
void SetForegroundDropdownClick()
std::unique_ptr< weld::Builder > m_xBuilder
void ApplyCommand(sal_uInt16 _nCommandId, const NamedColor &rNamedColor)
forward to the parent class
std::unique_ptr< weld::Button > m_xMoveDown
void impl_setCondition(const OUString &_rConditionFormula)
SvxFontPrevWindow m_aPreview
std::unique_ptr< ColorWindow > m_xForeColorFloat
::rptui::OReportController & getController() const
bool isEmpty() const
determines whether the condition is actually empty
css::uno::Reference< css::awt::XWindow > GetXWindow() const
std::unique_ptr< ConditionField > m_xCondRHS
ColorStatus m_aColorStatus
std::shared_ptr< PaletteManager > m_xPaletteManager
std::unique_ptr< ColorWindow > m_xBackColorFloat
std::unique_ptr< weld::Button > m_xAddCondition
std::unique_ptr< weld::Button > m_xRemoveCondition
std::unique_ptr< weld::Button > m_xMoveUp
static sal_uInt16 mapToolbarItemToSlotId(std::u16string_view rItemId)
weld::Widget * get_widget() const
DECL_LINK(OnConditionAction, weld::Button &, void)
DECL_LINK(OnOperationSelected, weld::ComboBox &, void)
ConditionColorWrapper m_aForeColorWrapper
IConditionalFormatAction & m_rAction
virtual css::uno::Reference< css::awt::XWindow > GetXWindow()=0
::std::map< ComparisonOperation, PConditionalExpression > ConditionalExpressions