LibreOffice Module vbahelper (master) 1
Public Types | Public Member Functions | Static Public Attributes | Protected Attributes | List of all members
VbaFontBase Class Referenceabstract

#include <vbafontbase.hxx>

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

Public Types

enum  Component {
  WORD ,
  EXCEL
}
 

Public Member Functions

 VbaFontBase (const css::uno::Reference< ov::XHelperInterface > &xParent, const css::uno::Reference< css::uno::XComponentContext > &xContext, const css::uno::Reference< css::container::XIndexAccess > &xPalette, const css::uno::Reference< css::beans::XPropertySet > &xPropertySet, Component eWhich, bool bFormControl=false)
 
virtual ~VbaFontBase () override
 
virtual css::uno::Any SAL_CALL getSize () override
 
virtual void SAL_CALL setSize (const css::uno::Any &_size) 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 getBold () override
 
virtual void SAL_CALL setBold (const css::uno::Any &_bold) override
 
virtual css::uno::Any SAL_CALL getUnderline () override=0
 
virtual void SAL_CALL setUnderline (const css::uno::Any &_underline) override=0
 
virtual css::uno::Any SAL_CALL getStrikethrough () override
 
virtual void SAL_CALL setStrikethrough (const css::uno::Any &_strikethrough) override
 
virtual css::uno::Any SAL_CALL getShadow () override
 
virtual void SAL_CALL setShadow (const css::uno::Any &_shadow) override
 
virtual css::uno::Any SAL_CALL getItalic () override
 
virtual void SAL_CALL setItalic (const css::uno::Any &_italic) override
 
virtual css::uno::Any SAL_CALL getSubscript () override
 
virtual void SAL_CALL setSubscript (const css::uno::Any &_subscript) override
 
virtual css::uno::Any SAL_CALL getSuperscript () override
 
virtual void SAL_CALL setSuperscript (const css::uno::Any &_superscript) override
 
virtual css::uno::Any SAL_CALL getName () override
 
virtual void SAL_CALL setName (const css::uno::Any &_name) override
 
virtual css::uno::Any SAL_CALL getColor () override
 
virtual void SAL_CALL setColor (const css::uno::Any &_color) 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, 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
 

Static Public Attributes

static const short NORMAL = 0
 
static const short SUPERSCRIPT = 33
 
static const short SUBSCRIPT = -33
 
static const sal_Int8 SUPERSCRIPTHEIGHT = 58
 
static const sal_Int8 SUBSCRIPTHEIGHT = 58
 
static const short NORMALHEIGHT = 100
 

Protected Attributes

css::uno::Reference< css::beans::XPropertySetmxFont
 
css::uno::Reference< css::container::XIndexAccess > mxPalette
 
Component meWhich
 
bool mbFormControl
 
- 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 45 of file vbafontbase.hxx.

Member Enumeration Documentation

◆ Component

Enumerator
WORD 
EXCEL 

Definition at line 48 of file vbafontbase.hxx.

Constructor & Destructor Documentation

◆ VbaFontBase()

VbaFontBase::VbaFontBase ( const css::uno::Reference< ov::XHelperInterface > &  xParent,
const css::uno::Reference< css::uno::XComponentContext > &  xContext,
const css::uno::Reference< css::container::XIndexAccess > &  xPalette,
const css::uno::Reference< css::beans::XPropertySet > &  xPropertySet,
Component  eWhich,
bool  bFormControl = false 
)
Exceptions
css::uno::RuntimeException

Definition at line 35 of file vbafontbase.cxx.

References mxFont.

◆ ~VbaFontBase()

VbaFontBase::~VbaFontBase ( )
overridevirtual

Definition at line 50 of file vbafontbase.cxx.

Member Function Documentation

◆ getBold()

uno::Any SAL_CALL VbaFontBase::getBold ( )
overridevirtual

Definition at line 195 of file vbafontbase.cxx.

References mxFont, and VBAFONTBASE_PROPNAME.

◆ getColor()

uno::Any VbaFontBase::getColor ( )
overridevirtual

Definition at line 268 of file vbafontbase.cxx.

References EXCEL, meWhich, mxFont, ooo::vba::OORGBToXLRGB(), and VBAFONTBASE_PROPNAME.

Referenced by getColorIndex().

◆ getColorIndex()

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

Definition at line 156 of file vbafontbase.cxx.

References count, EXCEL, getColor(), meWhich, mxPalette, nIndex, and ooo::vba::XLRGBToOORGB().

◆ getItalic()

uno::Any SAL_CALL VbaFontBase::getItalic ( )
overridevirtual

Definition at line 246 of file vbafontbase.cxx.

References mxFont, and VBAFONTBASE_PROPNAME.

◆ getName()

uno::Any SAL_CALL VbaFontBase::getName ( )
overridevirtual

Definition at line 262 of file vbafontbase.cxx.

References mxFont, and VBAFONTBASE_PROPNAME.

◆ getShadow()

uno::Any SAL_CALL VbaFontBase::getShadow ( )
overridevirtual

Definition at line 229 of file vbafontbase.cxx.

References mbFormControl, and mxFont.

◆ getSize()

uno::Any SAL_CALL VbaFontBase::getSize ( )
overridevirtual

Definition at line 133 of file vbafontbase.cxx.

References mxFont, and VBAFONTBASE_PROPNAME.

◆ getStrikethrough()

uno::Any SAL_CALL VbaFontBase::getStrikethrough ( )
overridevirtual

Definition at line 214 of file vbafontbase.cxx.

References mxFont, nValue, and VBAFONTBASE_PROPNAME.

◆ getSubscript()

uno::Any SAL_CALL VbaFontBase::getSubscript ( )
overridevirtual

Definition at line 109 of file vbafontbase.cxx.

References mbFormControl, mxFont, NORMAL, nValue, and SUBSCRIPT.

◆ getSuperscript()

uno::Any SAL_CALL VbaFontBase::getSuperscript ( )
overridevirtual

Definition at line 76 of file vbafontbase.cxx.

References mbFormControl, mxFont, NORMAL, nValue, and SUPERSCRIPT.

◆ getUnderline()

virtual css::uno::Any SAL_CALL VbaFontBase::getUnderline ( )
overridepure virtual

◆ setBold()

void SAL_CALL VbaFontBase::setBold ( const css::uno::Any &  _bold)
overridevirtual

Definition at line 183 of file vbafontbase.cxx.

References mxFont, and VBAFONTBASE_PROPNAME.

◆ setColor()

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

Definition at line 281 of file vbafontbase.cxx.

References mxFont, VBAFONTBASE_PROPNAME, and ooo::vba::XLRGBToOORGB().

Referenced by setColorIndex().

◆ setColorIndex()

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

Definition at line 139 of file vbafontbase.cxx.

References EXCEL, meWhich, mxPalette, nIndex, ooo::vba::OORGBToXLRGB(), and setColor().

◆ setItalic()

void SAL_CALL VbaFontBase::setItalic ( const css::uno::Any &  _italic)
overridevirtual

Definition at line 235 of file vbafontbase.cxx.

References mxFont, nValue, and VBAFONTBASE_PROPNAME.

◆ setName()

void SAL_CALL VbaFontBase::setName ( const css::uno::Any &  _name)
overridevirtual

Definition at line 254 of file vbafontbase.cxx.

References mxFont, and VBAFONTBASE_PROPNAME.

◆ setShadow()

void SAL_CALL VbaFontBase::setShadow ( const css::uno::Any &  _shadow)
overridevirtual

Definition at line 222 of file vbafontbase.cxx.

References mbFormControl, and mxFont.

◆ setSize()

void SAL_CALL VbaFontBase::setSize ( const css::uno::Any &  _size)
overridevirtual

Definition at line 119 of file vbafontbase.cxx.

References mbFormControl, mxFont, and VBAFONTBASE_PROPNAME.

◆ setStrikethrough()

void SAL_CALL VbaFontBase::setStrikethrough ( const css::uno::Any &  _strikethrough)
overridevirtual

Definition at line 203 of file vbafontbase.cxx.

References mxFont, nValue, and VBAFONTBASE_PROPNAME.

◆ setSubscript()

void SAL_CALL VbaFontBase::setSubscript ( const css::uno::Any &  _subscript)
overridevirtual

Definition at line 86 of file vbafontbase.cxx.

References mbFormControl, mxFont, NORMAL, NORMALHEIGHT, nValue, SUBSCRIPT, and SUBSCRIPTHEIGHT.

◆ setSuperscript()

void SAL_CALL VbaFontBase::setSuperscript ( const css::uno::Any &  _superscript)
overridevirtual

Definition at line 55 of file vbafontbase.cxx.

References mbFormControl, mxFont, NORMAL, NORMALHEIGHT, nValue, SUPERSCRIPT, and SUPERSCRIPTHEIGHT.

◆ setUnderline()

virtual void SAL_CALL VbaFontBase::setUnderline ( const css::uno::Any &  _underline)
overridepure virtual

Member Data Documentation

◆ mbFormControl

bool VbaFontBase::mbFormControl
protected

◆ meWhich

Component VbaFontBase::meWhich
protected

Definition at line 53 of file vbafontbase.hxx.

Referenced by getColor(), getColorIndex(), and setColorIndex().

◆ mxFont

css::uno::Reference< css::beans::XPropertySet > VbaFontBase::mxFont
protected

◆ mxPalette

css::uno::Reference< css::container::XIndexAccess > VbaFontBase::mxPalette
protected

Definition at line 52 of file vbafontbase.hxx.

Referenced by getColorIndex(), and setColorIndex().

◆ NORMAL

const short VbaFontBase::NORMAL = 0
static

Definition at line 63 of file vbafontbase.hxx.

Referenced by getSubscript(), getSuperscript(), setSubscript(), and setSuperscript().

◆ NORMALHEIGHT

const short VbaFontBase::NORMALHEIGHT = 100
static

Definition at line 78 of file vbafontbase.hxx.

Referenced by setSubscript(), and setSuperscript().

◆ SUBSCRIPT

const short VbaFontBase::SUBSCRIPT = -33
static

Definition at line 69 of file vbafontbase.hxx.

Referenced by getSubscript(), and setSubscript().

◆ SUBSCRIPTHEIGHT

const sal_Int8 VbaFontBase::SUBSCRIPTHEIGHT = 58
static

Definition at line 75 of file vbafontbase.hxx.

Referenced by setSubscript().

◆ SUPERSCRIPT

const short VbaFontBase::SUPERSCRIPT = 33
static

Definition at line 66 of file vbafontbase.hxx.

Referenced by getSuperscript(), and setSuperscript().

◆ SUPERSCRIPTHEIGHT

const sal_Int8 VbaFontBase::SUPERSCRIPTHEIGHT = 58
static

Definition at line 72 of file vbafontbase.hxx.

Referenced by setSuperscript().


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