22#include <core_resource.hxx>
129,m_LineStyle( drawing::LineStyle_NONE )
132,m_LineTransparence(0)
139OFixedLine::OFixedLine(uno::Reference< uno::XComponentContext >
const & _xContext
140 ,
const uno::Reference< lang::XMultiServiceFactory>& _xFactory
141 ,uno::Reference< drawing::XShape >& _xShape
142 ,sal_Int32 _nOrientation)
146,m_LineStyle( drawing::LineStyle_NONE )
147,m_nOrientation(_nOrientation)
149,m_LineTransparence(0)
153 m_aProps.aComponent.m_xFactory = _xFactory;
154 osl_atomic_increment( &m_refCount );
157 awt::Size aSize = _xShape->getSize();
158 if ( m_nOrientation == 1 )
163 _xShape->setSize(aSize);
169 _xShape->setSize(aSize);
171 m_aProps.aComponent.setShape(_xShape,
this,m_refCount);
173 catch(uno::Exception&)
177 osl_atomic_decrement( &m_refCount );
180OFixedLine::~OFixedLine()
188 uno::Any aReturn = FixedLineBase::queryInterface(_rType);
190 aReturn = FixedLinePropertySet::queryInterface(_rType);
191 if ( !aReturn.
hasValue() && OReportControlModel::isInterfaceForbidden(_rType) )
194 return aReturn.
hasValue() ? aReturn : (
m_aProps.aComponent.m_xProxy.is() ?
m_aProps.aComponent.m_xProxy->queryAggregation(_rType) : aReturn);
197void SAL_CALL OFixedLine::dispose()
199 FixedLinePropertySet::dispose();
200 cppu::WeakComponentImplHelperBase::dispose();
203OUString OFixedLine::getImplementationName_Static( )
205 return "com.sun.star.comp.report.OFixedLine";
209OUString SAL_CALL OFixedLine::getImplementationName( )
211 return getImplementationName_Static();
214uno::Sequence< OUString > OFixedLine::getSupportedServiceNames_Static( )
221uno::Reference< uno::XInterface > OFixedLine::create(uno::Reference< uno::XComponentContext >
const & xContext)
227uno::Sequence< OUString > SAL_CALL OFixedLine::getSupportedServiceNames( )
229 return getSupportedServiceNames_Static();
232sal_Bool SAL_CALL OFixedLine::supportsService(
const OUString& ServiceName)
241::sal_Int16 SAL_CALL
OFixedLine::getControlBorder( )
243 throw beans::UnknownPropertyException();
246void SAL_CALL OFixedLine::setControlBorder( ::sal_Int16 )
248 throw beans::UnknownPropertyException();
251::sal_Int32 SAL_CALL OFixedLine::getControlBorderColor()
253 throw beans::UnknownPropertyException();
256void SAL_CALL OFixedLine::setControlBorderColor( ::sal_Int32 )
258 throw beans::UnknownPropertyException();
261uno::Reference< beans::XPropertySetInfo > SAL_CALL OFixedLine::getPropertySetInfo( )
263 return FixedLinePropertySet::getPropertySetInfo();
266void SAL_CALL OFixedLine::setPropertyValue(
const OUString& aPropertyName,
const uno::Any& aValue )
268 FixedLinePropertySet::setPropertyValue( aPropertyName, aValue );
271uno::Any SAL_CALL OFixedLine::getPropertyValue(
const OUString& PropertyName )
273 return FixedLinePropertySet::getPropertyValue( PropertyName);
276void SAL_CALL OFixedLine::addPropertyChangeListener(
const OUString& aPropertyName,
const uno::Reference< beans::XPropertyChangeListener >& xListener )
278 FixedLinePropertySet::addPropertyChangeListener( aPropertyName, xListener );
281void SAL_CALL OFixedLine::removePropertyChangeListener(
const OUString& aPropertyName,
const uno::Reference< beans::XPropertyChangeListener >& aListener )
283 FixedLinePropertySet::removePropertyChangeListener( aPropertyName, aListener );
286void SAL_CALL OFixedLine::addVetoableChangeListener(
const OUString& PropertyName,
const uno::Reference< beans::XVetoableChangeListener >& aListener )
288 FixedLinePropertySet::addVetoableChangeListener( PropertyName, aListener );
291void SAL_CALL OFixedLine::removeVetoableChangeListener(
const OUString& PropertyName,
const uno::Reference< beans::XVetoableChangeListener >& aListener )
293 FixedLinePropertySet::removeVetoableChangeListener( PropertyName, aListener );
297OUString SAL_CALL OFixedLine::getDataField()
299 throw beans::UnknownPropertyException();
302void SAL_CALL OFixedLine::setDataField(
const OUString& )
304 throw beans::UnknownPropertyException();
307::sal_Int32 SAL_CALL OFixedLine::getControlBackground()
309 throw beans::UnknownPropertyException();
312void SAL_CALL OFixedLine::setControlBackground( ::sal_Int32 )
314 throw beans::UnknownPropertyException();
317sal_Bool SAL_CALL OFixedLine::getControlBackgroundTransparent()
319 throw beans::UnknownPropertyException();
322void SAL_CALL OFixedLine::setControlBackgroundTransparent(
sal_Bool )
324 throw beans::UnknownPropertyException();
327sal_Bool SAL_CALL OFixedLine::getPrintWhenGroupChange()
329 throw beans::UnknownPropertyException();
332void SAL_CALL OFixedLine::setPrintWhenGroupChange(
sal_Bool )
334 throw beans::UnknownPropertyException();
337OUString SAL_CALL OFixedLine::getConditionalPrintExpression()
339 throw beans::UnknownPropertyException();
342void SAL_CALL OFixedLine::setConditionalPrintExpression(
const OUString& )
344 throw beans::UnknownPropertyException();
348uno::Reference< util::XCloneable > SAL_CALL OFixedLine::createClone( )
350 uno::Reference< report::XReportComponent> xSource =
this;
358::sal_Int32 SAL_CALL OFixedLine::getOrientation()
361 return m_nOrientation;
364void SAL_CALL OFixedLine::setOrientation( ::sal_Int32 _orientation )
369drawing::LineStyle SAL_CALL OFixedLine::getLineStyle()
375void SAL_CALL OFixedLine::setLineStyle( drawing::LineStyle _linestyle )
380drawing::LineDash SAL_CALL OFixedLine::getLineDash()
386void SAL_CALL OFixedLine::setLineDash(
const drawing::LineDash& _linedash )
391::sal_Int32 SAL_CALL OFixedLine::getLineColor()
397void SAL_CALL OFixedLine::setLineColor( ::sal_Int32 _linecolor )
402::sal_Int16 SAL_CALL OFixedLine::getLineTransparence()
405 return m_LineTransparence;
408void SAL_CALL OFixedLine::setLineTransparence( ::sal_Int16 _linetransparence )
413::sal_Int32 SAL_CALL OFixedLine::getLineWidth()
419void SAL_CALL OFixedLine::setLineWidth( ::sal_Int32 _linewidth )
426uno::Reference< uno::XInterface > SAL_CALL OFixedLine::getParent( )
428 return OShapeHelper::getParent(
this);
431void SAL_CALL OFixedLine::setParent(
const uno::Reference< uno::XInterface >& Parent )
433 OShapeHelper::setParent(
Parent,
this);
436uno::Reference< report::XFormatCondition > SAL_CALL OFixedLine::createFormatCondition( )
442void SAL_CALL OFixedLine::addContainerListener(
const uno::Reference< container::XContainerListener >& xListener )
444 m_aProps.addContainerListener(xListener);
447void SAL_CALL OFixedLine::removeContainerListener(
const uno::Reference< container::XContainerListener >& xListener )
449 m_aProps.removeContainerListener(xListener);
464void SAL_CALL OFixedLine::insertByIndex( ::sal_Int32
Index,
const uno::Any& Element )
469void SAL_CALL OFixedLine::removeByIndex( ::sal_Int32
Index )
475void SAL_CALL OFixedLine::replaceByIndex( ::sal_Int32
Index,
const uno::Any& Element )
481::sal_Int32 SAL_CALL OFixedLine::getCount( )
492awt::Point SAL_CALL OFixedLine::getPosition( )
494 return OShapeHelper::getPosition(
this);
497void SAL_CALL OFixedLine::setPosition(
const awt::Point& aPosition )
499 OShapeHelper::setPosition(aPosition,
this);
502awt::Size SAL_CALL OFixedLine::getSize( )
504 return OShapeHelper::getSize(
this);
507void SAL_CALL OFixedLine::setSize(
const awt::Size& aSize )
509 if ( aSize.Width <
MIN_WIDTH && m_nOrientation == 1 )
510 throw beans::PropertyVetoException(
"Too small width for FixedLine; minimum is " + OUString::number(
MIN_WIDTH) +
"0 micrometer", getXWeak());
511 else if ( aSize.Height <
MIN_HEIGHT && m_nOrientation == 0 )
512 throw beans::PropertyVetoException(
"Too small height for FixedLine; minimum is " + OUString::number(
MIN_HEIGHT) +
"0 micrometer", getXWeak());
513 OShapeHelper::setSize(aSize,
this);
517OUString SAL_CALL OFixedLine::getShapeType( )
520 if (
m_aProps.aComponent.m_xShape.is() )
521 return m_aProps.aComponent.m_xShape->getShapeType();
522 return "com.sun.star.drawing.ControlShape";
525OUString SAL_CALL OFixedLine::getHyperLinkURL()
527 throw beans::UnknownPropertyException();
529void SAL_CALL OFixedLine::setHyperLinkURL(
const OUString & )
531 throw beans::UnknownPropertyException();
533OUString SAL_CALL OFixedLine::getHyperLinkTarget()
535 throw beans::UnknownPropertyException();
537void SAL_CALL OFixedLine::setHyperLinkTarget(
const OUString & )
539 throw beans::UnknownPropertyException();
541OUString SAL_CALL OFixedLine::getHyperLinkName()
543 throw beans::UnknownPropertyException();
545void SAL_CALL OFixedLine::setHyperLinkName(
const OUString & )
547 throw beans::UnknownPropertyException();
552sal_Bool SAL_CALL OFixedLine::getPrintRepeatedValues()
554 throw beans::UnknownPropertyException();
556void SAL_CALL OFixedLine::setPrintRepeatedValues(
sal_Bool )
558 throw beans::UnknownPropertyException();
#define REPORTCOMPONENT_NOMASTERDETAIL(clazz)
#define REPORTCOMPONENT_IMPL3(clazz, arg)
#define NO_REPORTCONTROLFORMAT_IMPL(clazz)
css::uno::Type const & get()
OFixedLine(const OFixedLine &)=delete
OUString RptResId(TranslateId aId)
#define TOOLS_WARN_EXCEPTION(area, stream)
#define SAL_N_ELEMENTS(arr)
void set(css::uno::UnoInterfaceReference const &value)
bool CPPUHELPER_DLLPUBLIC supportsService(css::lang::XServiceInfo *implementation, rtl::OUString const &name)
::cppu::PropertySetMixin< css::report::XFixedLine > FixedLinePropertySet
::cppu::WeakComponentImplHelper< css::report::XFixedLine,css::lang::XServiceInfo > FixedLineBase
uno::Reference< util::XCloneable > cloneObject(const uno::Reference< report::XReportComponent > &_xReportComponent, const uno::Reference< lang::XMultiServiceFactory > &_xFactory, const OUString &_sServiceName)
static uno::Sequence< OUString > lcl_getLineOptionals()
uno::Sequence< beans::Property > m_aProps
constexpr OUStringLiteral PROPERTY_CHARUNDERLINECOMPLEX
constexpr OUStringLiteral PROPERTY_CHARCOMBINEISON
constexpr OUStringLiteral PROPERTY_LINEDASH
constexpr OUStringLiteral PROPERTY_CHARCOMBINESUFFIX
constexpr OUStringLiteral PROPERTY_CONTROLBACKGROUNDTRANSPARENT
constexpr OUStringLiteral PROPERTY_CHARUNDERLINE
constexpr OUStringLiteral PROPERTY_CHARESCAPEMENT
constexpr OUStringLiteral PROPERTY_CHARCONTOURED
constexpr OUStringLiteral PROPERTY_DEFAULTCONTROL
constexpr OUStringLiteral PROPERTY_LINEWIDTH
constexpr OUStringLiteral PROPERTY_CHARHEIGHTCOMPLEX
constexpr OUStringLiteral PROPERTY_FONTDESCRIPTOR
constexpr OUStringLiteral PROPERTY_CHARROTATIONCOMPLEX
constexpr OUStringLiteral PROPERTY_LINESTYLE
constexpr OUStringLiteral PROPERTY_ORIENTATION
constexpr OUStringLiteral PROPERTY_CHARROTATIONASIAN
constexpr OUStringLiteral PROPERTY_DATAFIELD
constexpr OUStringLiteral PROPERTY_CHARCOLOR
constexpr OUStringLiteral PROPERTY_UNVISITEDCHARSTYLENAME
constexpr OUStringLiteral PROPERTY_CHARFONTNAMECOMPLEX
constexpr OUStringLiteral PROPERTY_CHARWORDMODECOMPLEX
constexpr OUStringLiteral SERVICE_FIXEDLINE
constexpr OUStringLiteral PROPERTY_CHARFONTPITCH
constexpr OUStringLiteral PROPERTY_CHARSHADOWED
constexpr OUStringLiteral PROPERTY_CHARFONTFAMILYCOMPLEX
constexpr OUStringLiteral PROPERTY_PRINTREPEATEDVALUES
constexpr OUStringLiteral PROPERTY_HYPERLINKTARGET
constexpr OUStringLiteral PROPERTY_CHARWEIGHT
constexpr OUStringLiteral PROPERTY_VISITEDCHARSTYLENAME
constexpr OUStringLiteral PROPERTY_CONTROLBORDERCOLOR
constexpr OUStringLiteral PROPERTY_CONTROLBORDER
constexpr OUStringLiteral PROPERTY_CHARFLASH
constexpr OUStringLiteral PROPERTY_CHARROTATION
constexpr OUStringLiteral PROPERTY_FONTDESCRIPTORASIAN
constexpr OUStringLiteral PROPERTY_LINETRANSPARENCE
constexpr OUStringLiteral PROPERTY_CHARFONTNAMEASIAN
constexpr OUStringLiteral PROPERTY_CHARFONTFAMILY
constexpr OUStringLiteral PROPERTY_CHARAUTOKERNING
constexpr OUStringLiteral PROPERTY_CHAREMPHASIS
constexpr OUStringLiteral PROPERTY_CHARWEIGHTCOMPLEX
constexpr OUStringLiteral PROPERTY_CHARHEIGHT
constexpr OUStringLiteral PROPERTY_CHARSCALEWIDTHCOMPLEX
constexpr OUStringLiteral PROPERTY_CHARFONTPITCHCOMPLEX
constexpr OUStringLiteral PROPERTY_CHARFONTCHARSET
constexpr OUStringLiteral PROPERTY_CHARSCALEWIDTHASIAN
constexpr OUStringLiteral PROPERTY_CHARUNDERLINEASIAN
constexpr OUStringLiteral PROPERTY_HYPERLINKURL
constexpr OUStringLiteral PROPERTY_CHARWORDMODE
constexpr OUStringLiteral PROPERTY_CHARHEIGHTASIAN
constexpr OUStringLiteral PROPERTY_CHARPOSTURE
constexpr OUStringLiteral PROPERTY_CHARUNDERLINECOLOR
constexpr OUStringLiteral PROPERTY_CHARFONTCHARSETCOMPLEX
constexpr OUStringLiteral PROPERTY_CHARPOSTUREASIAN
constexpr OUStringLiteral PROPERTY_CHARLOCALECOMPLEX
constexpr OUStringLiteral PROPERTY_CHARSCALEWIDTH
constexpr OUStringLiteral PROPERTY_CHARHIDDEN
constexpr OUStringLiteral PROPERTY_DETAILFIELDS
constexpr OUStringLiteral PROPERTY_CHARFONTCHARSETASIAN
constexpr OUStringLiteral PROPERTY_CHARWEIGHTASIAN
constexpr OUStringLiteral PROPERTY_CHARFONTPITCHASIAN
constexpr OUStringLiteral PROPERTY_MASTERFIELDS
constexpr OUStringLiteral PROPERTY_CHARPOSTURECOMPLEX
constexpr OUStringLiteral PROPERTY_CHARFONTSTYLENAMEASIAN
constexpr OUStringLiteral PROPERTY_CHARFONTFAMILYASIAN
constexpr OUStringLiteral PROPERTY_CHARFONTSTYLENAME
constexpr OUStringLiteral PROPERTY_CHARFONTSTYLENAMECOMPLEX
constexpr OUStringLiteral PROPERTY_PARAADJUST
constexpr OUStringLiteral PROPERTY_CHAREMPHASISASIAN
constexpr OUStringLiteral PROPERTY_CHARCASEMAP
constexpr OUStringLiteral PROPERTY_LINECOLOR
constexpr OUStringLiteral PROPERTY_CHARSTRIKEOUT
constexpr OUStringLiteral PROPERTY_CHARCOMBINEPREFIX
constexpr OUStringLiteral PROPERTY_CHARRELIEF
constexpr OUStringLiteral PROPERTY_PRINTWHENGROUPCHANGE
constexpr OUStringLiteral PROPERTY_CHARESCAPEMENTHEIGHT
constexpr OUStringLiteral PROPERTY_CHARKERNING
constexpr OUStringLiteral PROPERTY_CHARLOCALE
constexpr OUStringLiteral PROPERTY_CONDITIONALPRINTEXPRESSION
constexpr OUStringLiteral PROPERTY_CHARWORDMODEASIAN
constexpr OUStringLiteral PROPERTY_HYPERLINKNAME
constexpr OUStringLiteral PROPERTY_FONTDESCRIPTORCOMPLEX
constexpr OUStringLiteral PROPERTY_CHARFONTNAME
constexpr OUStringLiteral PROPERTY_CONTROLBACKGROUND
constexpr OUStringLiteral PROPERTY_CONTROLTEXTEMPHASISMARK
constexpr OUStringLiteral PROPERTY_CHARLOCALEASIAN
constexpr OUStringLiteral PROPERTY_CHAREMPHASISCOMPLEX
#define IMPLEMENT_FORWARD_REFCOUNT(classname, refcountbase)
Reference< XComponentContext > _xContext