23#include <com/sun/star/report/XFormattedField.hpp>
24#include <com/sun/star/awt/XVclWindowPeer.hpp>
45 :m_rReportController(_aController)
71 uno::Reference< report::XFormattedField > xControlModel( _rxComponent, uno::UNO_QUERY );
72 if ( xControlModel.is() )
74 OUString sDataField = xControlModel->getDataField();
76 if ( !sDataField.isEmpty() )
82 const OUString& sColumnName = aFormula.getFieldName();
84 if ( !sLabel.isEmpty() )
86 sDataField =
"=" + sLabel;
91 sDataField = aFormula.getEqualUndecoratedContent();
97 catch (
const uno::Exception &)
106 OSL_ENSURE( _xVclWindowPeer.is(),
"FormattedFieldBeautifier::setPlaceholderText: invalid peer!" );
107 if ( !_xVclWindowPeer.is() )
108 throw uno::RuntimeException();
116 awt::FontDescriptor aFontDescriptorStructure;
117 aFontDescriptor >>= aFontDescriptorStructure;
118 aFontDescriptorStructure.Slant = css::awt::FontSlant_ITALIC;
125 if ( _rEvent.PropertyName !=
"DataField" )
147 uno::Reference<awt::XVclWindowPeer> xVclWindowPeer;
151 uno::Reference<report::XSection> xSection(_xComponent->getSection());
156 if (nIndex < pPage->GetObjCount() )
163 if (pSectionWindow !=
nullptr)
168 xVclWindowPeer.set( xControl->getPeer(), uno::UNO_QUERY);
173 return xVclWindowPeer;
SdrObject * GetObj(size_t nNum) const
css::uno::Reference< css::awt::XControl > GetUnoControl(const SdrView &_rView, const OutputDevice &_rOut) const
OSectionWindow * getSectionWindow(const css::uno::Reference< css::report::XSection > &_xSection) const
OUString getColumnLabel_throw(const OUString &i_sColumnName) const
const std::shared_ptr< rptui::OReportModel > & getSdrModel() const
return the SdrModel of the real model
size_t getIndexOf(const css::uno::Reference< css::report::XReportComponent > &_xObject)
returns the index inside the object list which belongs to the report component.
OSectionView & getSectionView() const
OReportSection & getReportSection()
::OutputDevice const * GetOutDev() const
constexpr ::Color COL_AUTO(ColorTransparency, 0xFF, 0xFF, 0xFF, 0xFF)
#define DBG_UNHANDLED_EXCEPTION(...)
EmbeddedObjectRef * pObject
constexpr OUStringLiteral PROPERTY_FONTDESCRIPTOR
constexpr OUStringLiteral PROPERTY_TEXT
constexpr OUStringLiteral PROPERTY_TEXTCOLOR
constexpr OUStringLiteral CFG_REPORTDESIGNER
constexpr OUStringLiteral DBTEXTBOXBOUNDCONTENT