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, const 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< 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, const css::uno::Reference< css::uno::XComponentContext > &xContext)
 
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

static std::map< sal_Int32, sal_Int32 > ScVbaInterior::ScVbaInterior ( const css::uno::Reference< ov::XHelperInterface > &  xParent,
const css::uno::Reference< css::uno::XComponentContext > &  xContext,
const css::uno::Reference< css::beans::XPropertySet > &  xProps,
ScDocument pScDoc = nullptr 
)
Initial value:
{ xlPatternVertical, 6 }
}
Exceptions
css::lang::IllegalArgumentException

Definition at line 64 of file vbainterior.cxx.

References m_aPattColor, m_nPattern, m_xProps, and m_xProps.

Member Function Documentation

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

Definition at line 231 of file vbainterior.cxx.

References m_xProps.

Referenced by GetUserDefinedAttributes(), and SetUserDefinedAttributes().

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

Definition at line 236 of file vbainterior.cxx.

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

Color ScVbaInterior::GetBackColor ( )
private
uno::Any ScVbaInterior::getColor ( )
overridevirtual

Definition at line 74 of file vbainterior.cxx.

References GetBackColor(), and OORGBToXLRGB().

Referenced by getColorIndex().

sal_Int32 ScVbaInterior::GetColorIndex ( const sal_Int32  nColor)
private

Definition at line 163 of file vbainterior.cxx.

References count, getPalette(), and nIndex.

Referenced by getColorIndex(), and getPatternColorIndex().

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

Definition at line 182 of file vbainterior.cxx.

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

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

Definition at line 150 of file vbainterior.cxx.

References getPalette(), and nIndex.

Referenced by setColorIndex(), and setPatternColorIndex().

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

Definition at line 225 of file vbainterior.cxx.

Referenced by GetMixedColor().

uno::Reference< container::XIndexAccess > ScVbaInterior::getPalette ( ) const
private
uno::Any SAL_CALL ScVbaInterior::getPattern ( )
overridevirtual
Color ScVbaInterior::GetPatternColor ( const Color rPattColor,
const Color rBackColor,
sal_uInt32  nXclPattern 
)
staticprivate

Definition at line 202 of file vbainterior.cxx.

References GetMixedColor(), and SAL_N_ELEMENTS.

Referenced by SetMixedColor().

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

Definition at line 342 of file vbainterior.cxx.

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

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

Definition at line 386 of file vbainterior.cxx.

OUString ScVbaInterior::getServiceImplName ( )
overridevirtual
uno::Sequence< OUString > ScVbaInterior::getServiceNames ( )
overridevirtual
uno::Any SAL_CALL ScVbaInterior::getThemeColor ( )
override

Definition at line 364 of file vbainterior.cxx.

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

Definition at line 375 of file vbainterior.cxx.

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

Definition at line 254 of file vbainterior.cxx.

References GetAttributeContainer().

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

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

Definition at line 246 of file vbainterior.cxx.

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

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

Definition at line 131 of file vbainterior.cxx.

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

void ScVbaInterior::SetMixedColor ( )
private
void SAL_CALL ScVbaInterior::setPattern ( const css::uno::Any &  _pattern)
overridevirtual
void SAL_CALL ScVbaInterior::setPatternColor ( const css::uno::Any &  _patterncolor)
overridevirtual
void SAL_CALL ScVbaInterior::setPatternColorIndex ( const css::uno::Any &  _patterncolorindex)
overridevirtual

Definition at line 350 of file vbainterior.cxx.

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

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

Definition at line 392 of file vbainterior.cxx.

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

Definition at line 370 of file vbainterior.cxx.

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

Definition at line 381 of file vbainterior.cxx.

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

Member Data Documentation

Color ScVbaInterior::m_aPattColor
private

Definition at line 39 of file vbainterior.hxx.

Referenced by ScVbaInterior(), and SetMixedColor().

sal_Int32 ScVbaInterior::m_nPattern
private

Definition at line 40 of file vbainterior.hxx.

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

ScDocument* ScVbaInterior::m_pScDoc
private

Definition at line 38 of file vbainterior.hxx.

Referenced by getPalette().

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

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