19#include <FixedText.hxx>
22#include <core_resource.hxx>
49OFixedText::OFixedText(uno::Reference< uno::XComponentContext >
const & _xContext
50 ,
const uno::Reference< lang::XMultiServiceFactory>& _xFactory
51 ,uno::Reference< drawing::XShape >& _xShape)
58 m_aProps.aComponent.m_xFactory = _xFactory;
59 osl_atomic_increment( &m_refCount );
61 m_aProps.aComponent.setShape(_xShape,
this,m_refCount);
63 osl_atomic_decrement( &m_refCount );
66OFixedText::~OFixedText()
74 uno::Any aReturn = FixedTextBase::queryInterface(_rType);
76 aReturn = FixedTextPropertySet::queryInterface(_rType);
77 if ( !aReturn.
hasValue() && OReportControlModel::isInterfaceForbidden(_rType) )
80 return aReturn.
hasValue() ? aReturn : (
m_aProps.aComponent.m_xProxy.is() ?
m_aProps.aComponent.m_xProxy->queryAggregation(_rType) : aReturn);
84void SAL_CALL OFixedText::dispose()
86 FixedTextPropertySet::dispose();
87 cppu::WeakComponentImplHelperBase::dispose();
88 uno::Reference< report::XFixedText> xHoldAlive =
this;
91OUString OFixedText::getImplementationName_Static( )
93 return "com.sun.star.comp.report.OFixedText";
97OUString SAL_CALL OFixedText::getImplementationName( )
99 return getImplementationName_Static();
102uno::Sequence< OUString > OFixedText::getSupportedServiceNames_Static( )
109uno::Reference< uno::XInterface > OFixedText::create(uno::Reference< uno::XComponentContext >
const & xContext)
115uno::Sequence< OUString > SAL_CALL OFixedText::getSupportedServiceNames( )
117 return getSupportedServiceNames_Static();
120sal_Bool SAL_CALL OFixedText::supportsService(
const OUString& ServiceName)
133 return FixedTextPropertySet::getPropertySetInfo();
136void SAL_CALL OFixedText::setPropertyValue(
const OUString& aPropertyName,
const uno::Any& aValue )
138 FixedTextPropertySet::setPropertyValue( aPropertyName, aValue );
141uno::Any SAL_CALL OFixedText::getPropertyValue(
const OUString& PropertyName )
143 return FixedTextPropertySet::getPropertyValue( PropertyName);
146void SAL_CALL OFixedText::addPropertyChangeListener(
const OUString& aPropertyName,
const uno::Reference< beans::XPropertyChangeListener >& xListener )
148 FixedTextPropertySet::addPropertyChangeListener( aPropertyName, xListener );
151void SAL_CALL OFixedText::removePropertyChangeListener(
const OUString& aPropertyName,
const uno::Reference< beans::XPropertyChangeListener >& aListener )
153 FixedTextPropertySet::removePropertyChangeListener( aPropertyName, aListener );
156void SAL_CALL OFixedText::addVetoableChangeListener(
const OUString& PropertyName,
const uno::Reference< beans::XVetoableChangeListener >& aListener )
158 FixedTextPropertySet::addVetoableChangeListener( PropertyName, aListener );
161void SAL_CALL OFixedText::removeVetoableChangeListener(
const OUString& PropertyName,
const uno::Reference< beans::XVetoableChangeListener >& aListener )
163 FixedTextPropertySet::removeVetoableChangeListener( PropertyName, aListener );
167OUString SAL_CALL OFixedText::getDataField()
169 throw beans::UnknownPropertyException();
172void SAL_CALL OFixedText::setDataField(
const OUString& )
174 throw beans::UnknownPropertyException();
178sal_Bool SAL_CALL OFixedText::getPrintWhenGroupChange()
180 ::osl::MutexGuard aGuard(m_aMutex);
181 return m_aProps.bPrintWhenGroupChange;
184void SAL_CALL OFixedText::setPrintWhenGroupChange(
sal_Bool _printwhengroupchange )
189OUString SAL_CALL OFixedText::getConditionalPrintExpression()
191 ::osl::MutexGuard aGuard(m_aMutex);
192 return m_aProps.aConditionalPrintExpression;
195void SAL_CALL OFixedText::setConditionalPrintExpression(
const OUString& _conditionalprintexpression )
202uno::Reference< util::XCloneable > SAL_CALL OFixedText::createClone( )
204 uno::Reference< report::XReportComponent> xSource =
this;
211OUString SAL_CALL OFixedText::getLabel()
217void SAL_CALL OFixedText::setLabel(
const OUString& _label )
223uno::Reference< uno::XInterface > SAL_CALL OFixedText::getParent( )
225 return OShapeHelper::getParent(
this);
228void SAL_CALL OFixedText::setParent(
const uno::Reference< uno::XInterface >& Parent )
230 OShapeHelper::setParent(
Parent,
this);
233uno::Reference< report::XFormatCondition > SAL_CALL OFixedText::createFormatCondition( )
239void SAL_CALL OFixedText::addContainerListener(
const uno::Reference< container::XContainerListener >& xListener )
241 m_aProps.addContainerListener(xListener);
244void SAL_CALL OFixedText::removeContainerListener(
const uno::Reference< container::XContainerListener >& xListener )
246 m_aProps.removeContainerListener(xListener);
261void SAL_CALL OFixedText::insertByIndex( ::sal_Int32
Index,
const uno::Any& Element )
266void SAL_CALL OFixedText::removeByIndex( ::sal_Int32
Index )
272void SAL_CALL OFixedText::replaceByIndex( ::sal_Int32
Index,
const uno::Any& Element )
278::sal_Int32 SAL_CALL OFixedText::getCount( )
289awt::Point SAL_CALL OFixedText::getPosition( )
291 return OShapeHelper::getPosition(
this);
294void SAL_CALL OFixedText::setPosition(
const awt::Point& aPosition )
296 OShapeHelper::setPosition(aPosition,
this);
299awt::Size SAL_CALL OFixedText::getSize( )
301 return OShapeHelper::getSize(
this);
304void SAL_CALL OFixedText::setSize(
const awt::Size& aSize )
306 OShapeHelper::setSize(aSize,
this);
311OUString SAL_CALL OFixedText::getShapeType( )
314 if (
m_aProps.aComponent.m_xShape.is() )
315 return m_aProps.aComponent.m_xShape->getShapeType();
316 return "com.sun.star.drawing.ControlShape";
#define REPORTCONTROLFORMAT_IMPL(clazz, varName)
#define REPORTCOMPONENT_IMPL2(clazz, arg)
#define REPORTCOMPONENT_NOMASTERDETAIL(clazz)
#define REPORTCOMPONENT_IMPL(clazz, arg)
css::uno::Type const & get()
OFixedText(const OFixedText &)=delete
OUString RptResId(TranslateId aId)
#define SAL_N_ELEMENTS(arr)
void set(css::uno::UnoInterfaceReference const &value)
bool CPPUHELPER_DLLPUBLIC supportsService(css::lang::XServiceInfo *implementation, rtl::OUString const &name)
static uno::Sequence< OUString > lcl_getFixedTextOptionals()
uno::Reference< util::XCloneable > cloneObject(const uno::Reference< report::XReportComponent > &_xReportComponent, const uno::Reference< lang::XMultiServiceFactory > &_xFactory, const OUString &_sServiceName)
::cppu::WeakComponentImplHelper< css::report::XFixedText,css::lang::XServiceInfo > FixedTextBase
::cppu::PropertySetMixin< css::report::XFixedText > FixedTextPropertySet
uno::Sequence< beans::Property > m_aProps
constexpr OUStringLiteral PROPERTY_LABEL
constexpr OUStringLiteral PROPERTY_DATAFIELD
constexpr OUStringLiteral SERVICE_FIXEDTEXT
constexpr OUStringLiteral PROPERTY_DETAILFIELDS
constexpr OUStringLiteral PROPERTY_MASTERFIELDS
constexpr OUStringLiteral PROPERTY_PRINTWHENGROUPCHANGE
constexpr OUStringLiteral PROPERTY_CONDITIONALPRINTEXPRESSION
#define IMPLEMENT_FORWARD_REFCOUNT(classname, refcountbase)
Reference< XComponentContext > _xContext