LibreOffice Module sc (master) 1
Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
ScVbaInterior Class Referencefinal

#include <vbainterior.hxx>

Inheritance diagram for ScVbaInterior:
[legend]
Collaboration diagram for ScVbaInterior:
[legend]

Public Member Functions

 ScVbaInterior (const css::uno::Reference< ov::XHelperInterface > &xParent, const css::uno::Reference< css::uno::XComponentContext > &xContext, css::uno::Reference< css::beans::XPropertySet > xProps, ScDocument *pScDoc=nullptr)
 
virtual css::uno::Any SAL_CALL getColor () override
 
virtual void SAL_CALL setColor (const css::uno::Any &_color) override
 
virtual css::uno::Any SAL_CALL getColorIndex () override
 
virtual void SAL_CALL setColorIndex (const css::uno::Any &_colorindex) override
 
virtual css::uno::Any SAL_CALL getPattern () override
 
virtual void SAL_CALL setPattern (const css::uno::Any &_pattern) override
 
virtual css::uno::Any SAL_CALL getPatternColor () override
 
virtual void SAL_CALL setPatternColor (const css::uno::Any &_patterncolor) override
 
virtual css::uno::Any SAL_CALL getPatternColorIndex () override
 
virtual void SAL_CALL setPatternColorIndex (const css::uno::Any &_patterncolorindex) override
 
css::uno::Any SAL_CALL getThemeColor () override
 
void SAL_CALL setThemeColor (const css::uno::Any &rAny) override
 
css::uno::Any SAL_CALL getTintAndShade () override
 
void SAL_CALL setTintAndShade (const css::uno::Any &rAny) override
 
css::uno::Any SAL_CALL getPatternTintAndShade () override
 
void SAL_CALL setPatternTintAndShade (const css::uno::Any &rAny) override
 
virtual OUString getServiceImplName () override
 
virtual css::uno::Sequence< OUString > getServiceNames () override
 
- Public Member Functions inherited from InheritedHelperInterfaceWeakImpl< typename... Ifc >
 InheritedHelperInterfaceWeakImpl (const css::uno::Reference< ov::XHelperInterface > &xParent, const css::uno::Reference< css::uno::XComponentContext > &xContext)
 
- Public Member Functions inherited from InheritedHelperInterfaceImpl< ::cppu::WeakImplHelper< Ifc... > >
 InheritedHelperInterfaceImpl (const css::uno::Reference< ov::XHelperInterface > &xParent, css::uno::Reference< css::uno::XComponentContext > xContext)
 
virtual OUString getServiceImplName ()=0
 
virtual css::uno::Sequence< OUString > getServiceNames ()=0
 
virtual ::sal_Int32 SAL_CALL getCreator () override
 
virtual css::uno::Reference< ov::XHelperInterface > SAL_CALL getParent () override
 
virtual css::uno::Any SAL_CALL Application () override
 
virtual OUString SAL_CALL getImplementationName () override
 
virtual sal_Bool SAL_CALL supportsService (const OUString &ServiceName) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 

Private Member Functions

css::uno::Reference< css::container::XIndexAccess > getPalette () const
 
css::uno::Reference< css::container::XNameContainer > GetAttributeContainer ()
 
Color GetBackColor ()
 
css::uno::Any GetIndexColor (sal_Int32 nColorIndex)
 
sal_Int32 GetColorIndex (const sal_Int32 nColor)
 
css::uno::Any GetUserDefinedAttributes (const OUString &sName)
 
void SetUserDefinedAttributes (const OUString &sName, const css::uno::Any &aValue)
 
void SetMixedColor ()
 

Static Private Member Functions

static css::uno::Any SetAttributeData (sal_Int32 nValue)
 
static sal_Int32 GetAttributeData (css::uno::Any const &aValue)
 
static Color GetPatternColor (const Color &rPattColor, const Color &rBackColor, sal_uInt32 nXclPattern)
 
static Color GetMixedColor (const Color &rFore, const Color &rBack, sal_uInt8 nTrans)
 
static sal_uInt8 GetMixedColorComp (sal_uInt8 nFore, sal_uInt8 nBack, sal_uInt8 nTrans)
 

Private Attributes

css::uno::Reference< css::beans::XPropertySetm_xProps
 
ScDocumentm_pScDoc
 
Color m_aPattColor
 
sal_Int32 m_nPattern
 

Additional Inherited Members

- Protected Attributes inherited from InheritedHelperInterfaceImpl< ::cppu::WeakImplHelper< Ifc... > >
css::uno::WeakReference< ov::XHelperInterface > mxParent
 
css::uno::Reference< css::uno::XComponentContext > mxContext
 

Detailed Description

Definition at line 35 of file vbainterior.hxx.

Constructor & Destructor Documentation

◆ ScVbaInterior()

ScVbaInterior::ScVbaInterior ( const css::uno::Reference< ov::XHelperInterface > &  xParent,
const css::uno::Reference< css::uno::XComponentContext > &  xContext,
css::uno::Reference< css::beans::XPropertySet xProps,
ScDocument pScDoc = nullptr 
)
Exceptions
css::lang::IllegalArgumentException

Definition at line 68 of file vbainterior.cxx.

References m_aPattColor, m_nPattern, m_xProps, and m_xProps.

Member Function Documentation

◆ GetAttributeContainer()

uno::Reference< container::XNameContainer > ScVbaInterior::GetAttributeContainer ( )
private

Definition at line 238 of file vbainterior.cxx.

References m_xProps.

Referenced by GetUserDefinedAttributes(), and SetUserDefinedAttributes().

◆ GetAttributeData()

sal_Int32 ScVbaInterior::GetAttributeData ( css::uno::Any const &  aValue)
staticprivate

Definition at line 243 of file vbainterior.cxx.

Referenced by GetBackColor(), getPattern(), getPatternColor(), and SetMixedColor().

◆ GetBackColor()

Color ScVbaInterior::GetBackColor ( )
private

◆ getColor()

uno::Any ScVbaInterior::getColor ( )
overridevirtual

Definition at line 78 of file vbainterior.cxx.

References GetBackColor(), and OORGBToXLRGB().

Referenced by getColorIndex().

◆ getColorIndex()

uno::Any SAL_CALL ScVbaInterior::getColorIndex ( )
overridevirtual

Definition at line 189 of file vbainterior.cxx.

References BACKCOLOR, getColor(), GetColorIndex(), m_xProps, and XLRGBToOORGB().

◆ GetColorIndex()

sal_Int32 ScVbaInterior::GetColorIndex ( const sal_Int32  nColor)
private

Definition at line 170 of file vbainterior.cxx.

References count, getPalette(), and nIndex.

Referenced by getColorIndex(), and getPatternColorIndex().

◆ GetIndexColor()

uno::Any ScVbaInterior::GetIndexColor ( sal_Int32  nColorIndex)
private

Definition at line 157 of file vbainterior.cxx.

References getPalette(), and nIndex.

Referenced by setColorIndex(), and setPatternColorIndex().

◆ GetMixedColor()

Color ScVbaInterior::GetMixedColor ( const Color rFore,
const Color rBack,
sal_uInt8  nTrans 
)
staticprivate

◆ GetMixedColorComp()

sal_uInt8 ScVbaInterior::GetMixedColorComp ( sal_uInt8  nFore,
sal_uInt8  nBack,
sal_uInt8  nTrans 
)
staticprivate

Definition at line 232 of file vbainterior.cxx.

Referenced by GetMixedColor().

◆ getPalette()

uno::Reference< container::XIndexAccess > ScVbaInterior::getPalette ( ) const
private

◆ getPattern()

uno::Any SAL_CALL ScVbaInterior::getPattern ( )
overridevirtual

◆ getPatternColor()

uno::Any SAL_CALL ScVbaInterior::getPatternColor ( )
overridevirtual

◆ GetPatternColor()

Color ScVbaInterior::GetPatternColor ( const Color rPattColor,
const Color rBackColor,
sal_uInt32  nXclPattern 
)
staticprivate

Definition at line 209 of file vbainterior.cxx.

References GetMixedColor(), and SAL_N_ELEMENTS.

Referenced by SetMixedColor().

◆ getPatternColorIndex()

uno::Any SAL_CALL ScVbaInterior::getPatternColorIndex ( )
overridevirtual

Definition at line 349 of file vbainterior.cxx.

References GetColorIndex(), getPatternColor(), and XLRGBToOORGB().

◆ getPatternTintAndShade()

uno::Any SAL_CALL ScVbaInterior::getPatternTintAndShade ( )
override

Definition at line 393 of file vbainterior.cxx.

◆ getServiceImplName()

OUString ScVbaInterior::getServiceImplName ( )
overridevirtual

◆ getServiceNames()

uno::Sequence< OUString > ScVbaInterior::getServiceNames ( )
overridevirtual

◆ getThemeColor()

uno::Any SAL_CALL ScVbaInterior::getThemeColor ( )
override

Definition at line 371 of file vbainterior.cxx.

◆ getTintAndShade()

uno::Any SAL_CALL ScVbaInterior::getTintAndShade ( )
override

Definition at line 382 of file vbainterior.cxx.

◆ GetUserDefinedAttributes()

uno::Any ScVbaInterior::GetUserDefinedAttributes ( const OUString &  sName)
private

Definition at line 261 of file vbainterior.cxx.

References GetAttributeContainer(), and sName.

Referenced by GetBackColor(), getPattern(), getPatternColor(), and SetMixedColor().

◆ SetAttributeData()

uno::Any ScVbaInterior::SetAttributeData ( sal_Int32  nValue)
staticprivate

Definition at line 253 of file vbainterior.cxx.

References nValue.

Referenced by GetBackColor(), setColor(), setPattern(), and setPatternColor().

◆ setColor()

void ScVbaInterior::setColor ( const css::uno::Any &  _color)
overridevirtual

◆ setColorIndex()

void SAL_CALL ScVbaInterior::setColorIndex ( const css::uno::Any &  _colorindex)
overridevirtual

Definition at line 138 of file vbainterior.cxx.

References BACKCOLOR, GetIndexColor(), m_xProps, nIndex, OORGBToXLRGB(), and setColor().

◆ SetMixedColor()

void ScVbaInterior::SetMixedColor ( )
private

◆ setPattern()

void SAL_CALL ScVbaInterior::setPattern ( const css::uno::Any &  _pattern)
overridevirtual

◆ setPatternColor()

void SAL_CALL ScVbaInterior::setPatternColor ( const css::uno::Any &  _patterncolor)
overridevirtual

◆ setPatternColorIndex()

void SAL_CALL ScVbaInterior::setPatternColorIndex ( const css::uno::Any &  _patterncolorindex)
overridevirtual

Definition at line 357 of file vbainterior.cxx.

References GetIndexColor(), OORGBToXLRGB(), and setPatternColor().

◆ setPatternTintAndShade()

void SAL_CALL ScVbaInterior::setPatternTintAndShade ( const css::uno::Any &  rAny)
override

Definition at line 399 of file vbainterior.cxx.

◆ setThemeColor()

void SAL_CALL ScVbaInterior::setThemeColor ( const css::uno::Any &  rAny)
override

Definition at line 377 of file vbainterior.cxx.

◆ setTintAndShade()

void SAL_CALL ScVbaInterior::setTintAndShade ( const css::uno::Any &  rAny)
override

Definition at line 388 of file vbainterior.cxx.

◆ SetUserDefinedAttributes()

void ScVbaInterior::SetUserDefinedAttributes ( const OUString &  sName,
const css::uno::Any &  aValue 
)
private

Member Data Documentation

◆ m_aPattColor

Color ScVbaInterior::m_aPattColor
private

Definition at line 39 of file vbainterior.hxx.

Referenced by ScVbaInterior(), and SetMixedColor().

◆ m_nPattern

sal_Int32 ScVbaInterior::m_nPattern
private

Definition at line 40 of file vbainterior.hxx.

Referenced by ScVbaInterior(), SetMixedColor(), and setPattern().

◆ m_pScDoc

ScDocument* ScVbaInterior::m_pScDoc
private

Definition at line 38 of file vbainterior.hxx.

Referenced by getPalette().

◆ m_xProps

css::uno::Reference< css::beans::XPropertySet > ScVbaInterior::m_xProps
private

The documentation for this class was generated from the following files: