LibreOffice Module sc (master) 1
Public Member Functions | Protected Member Functions | Protected Attributes | Private Types | Private Attributes | List of all members
ScVbaFormat< Ifc > Class Template Referenceabstract

#include <vbaformat.hxx>

Inheritance diagram for ScVbaFormat< Ifc >:
[legend]
Collaboration diagram for ScVbaFormat< Ifc >:
[legend]

Public Member Functions

 ScVbaFormat (const css::uno::Reference< ov::XHelperInterface > &xParent, const css::uno::Reference< css::uno::XComponentContext > &xContext, const css::uno::Reference< css::beans::XPropertySet > &_xPropertySet, const css::uno::Reference< css::frame::XModel > &xModel, bool bCheckAmbiguoity)
 
virtual css::uno::Reference< ov::XHelperInterface > thisHelperIface ()=0
 
void SAL_CALL setAddIndent (const css::uno::Any &BAddIndent)
 
css::uno::Any SAL_CALL getAddIndent ()
 
virtual css::uno::Any SAL_CALL Borders (const css::uno::Any &Index)
 
virtual css::uno::Reference< ::ooo::vba::excel::XFont > SAL_CALL Font ()
 
virtual css::uno::Reference< ::ooo::vba::excel::XInterior > SAL_CALL Interior ()
 
virtual void SAL_CALL setNumberFormat (const css::uno::Any &NumberFormat)
 
virtual css::uno::Any SAL_CALL getNumberFormat ()
 
virtual void SAL_CALL setNumberFormatLocal (const css::uno::Any &NumberFormatLocal)
 
virtual css::uno::Any SAL_CALL getNumberFormatLocal ()
 
virtual void SAL_CALL setIndentLevel (const css::uno::Any &IndentLevel)
 
virtual css::uno::Any SAL_CALL getIndentLevel ()
 
virtual void SAL_CALL setHorizontalAlignment (const css::uno::Any &HorizontalAlignment)
 
virtual css::uno::Any SAL_CALL getHorizontalAlignment ()
 
virtual void SAL_CALL setVerticalAlignment (const css::uno::Any &VerticalAlignment)
 
virtual css::uno::Any SAL_CALL getVerticalAlignment ()
 
virtual void SAL_CALL setOrientation (const css::uno::Any &Orientation)
 
virtual css::uno::Any SAL_CALL getOrientation ()
 
virtual void SAL_CALL setShrinkToFit (const css::uno::Any &ShrinkToFit)
 
virtual css::uno::Any SAL_CALL getShrinkToFit ()
 
virtual void SAL_CALL setWrapText (const css::uno::Any &WrapText)
 
virtual css::uno::Any SAL_CALL getWrapText ()
 
virtual void SAL_CALL setLocked (const css::uno::Any &Locked)
 
virtual css::uno::Any SAL_CALL getLocked ()
 
virtual void SAL_CALL setFormulaHidden (const css::uno::Any &FormulaHidden)
 
virtual css::uno::Any SAL_CALL getFormulaHidden ()
 
virtual void SAL_CALL setMergeCells (const css::uno::Any &MergeCells)=0
 
virtual css::uno::Any SAL_CALL getMergeCells ()=0
 
virtual void SAL_CALL setReadingOrder (const css::uno::Any &ReadingOrder)
 
virtual css::uno::Any SAL_CALL getReadingOrder ()
 
- 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
 

Protected Member Functions

bool isAmbiguous (const OUString &_sPropertyName)
 
css::uno::Reference< css::beans::XPropertyState > const & getXPropertyState ()
 
void initializeNumberFormats ()
 
SfxItemSetgetCurrentDataSet ()
 
virtual ScCellRangesBasegetCellRangesBase ()
 

Protected Attributes

css::uno::Reference< css::beans::XPropertySetmxPropertySet
 
css::uno::Reference< css::util::XNumberFormatsSupplier > mxNumberFormatsSupplier
 
css::uno::Reference< css::util::XNumberFormats > xNumberFormats
 
css::uno::Reference< css::util::XNumberFormatTypes > xNumberFormatTypes
 
css::uno::Reference< css::frame::XModel > mxModel
 
css::uno::Reference< css::beans::XPropertyState > xPropertyState
 
bool mbCheckAmbiguoity
 
bool mbAddIndent
 
- Protected Attributes inherited from InheritedHelperInterfaceImpl< ::cppu::WeakImplHelper< Ifc... > >
css::uno::WeakReference< ov::XHelperInterface > mxParent
 
css::uno::Reference< css::uno::XComponentContext > mxContext
 

Private Types

typedef InheritedHelperInterfaceWeakImpl< Ifc... > ScVbaFormat_BASE
 

Private Attributes

css::lang::Locale m_aDefaultLocale
 

Detailed Description

template<typename... Ifc>
class ScVbaFormat< Ifc >

Definition at line 37 of file vbaformat.hxx.

Member Typedef Documentation

◆ ScVbaFormat_BASE

template<typename... Ifc>
typedef InheritedHelperInterfaceWeakImpl< Ifc... > ScVbaFormat< Ifc >::ScVbaFormat_BASE
private

Definition at line 39 of file vbaformat.hxx.

Constructor & Destructor Documentation

◆ ScVbaFormat()

template<typename... Ifc>
ScVbaFormat< Ifc >::ScVbaFormat ( const css::uno::Reference< ov::XHelperInterface > &  xParent,
const css::uno::Reference< css::uno::XComponentContext > &  xContext,
const css::uno::Reference< css::beans::XPropertySet > &  _xPropertySet,
const css::uno::Reference< css::frame::XModel > &  xModel,
bool  bCheckAmbiguoity 
)
Exceptions
css::script::BasicErrorException

Definition at line 60 of file vbaformat.cxx.

References _xPropertySet, ERRCODE_BASIC_METHOD_FAILED, mxModel, ScVbaFormat< Ifc >::mxModel, u, and xModel.

Member Function Documentation

◆ Borders()

template<typename... Ifc>
uno::Any SAL_CALL ScVbaFormat< Ifc >::Borders ( const css::uno::Any &  Index)
virtual
Exceptions
css::script::BasicErrorException
css::uno::RuntimeException

Reimplemented in ScVbaRange.

Definition at line 353 of file vbaformat.cxx.

References ooo::vba::excel::getDocShell(), and mxModel.

◆ Font()

template<typename... Ifc>
uno::Reference< excel::XFont > SAL_CALL ScVbaFormat< Ifc >::Font
virtual
Exceptions
css::script::BasicErrorException
css::uno::RuntimeException

Reimplemented in ScVbaRange.

Definition at line 367 of file vbaformat.cxx.

References ooo::vba::excel::getDocShell(), and mxModel.

◆ getAddIndent()

template<typename... Ifc>
css::uno::Any SAL_CALL ScVbaFormat< Ifc >::getAddIndent ( )
inline
Exceptions
css::uno::RuntimeException

Definition at line 69 of file vbaformat.hxx.

References ScVbaFormat< Ifc >::mbAddIndent.

◆ getCellRangesBase()

template<typename... Ifc>
ScCellRangesBase * ScVbaFormat< Ifc >::getCellRangesBase
protectedvirtual
Exceptions
css::uno::RuntimeException

Reimplemented in ScVbaRange.

Definition at line 796 of file vbaformat.cxx.

◆ getCurrentDataSet()

template<typename... Ifc>
SfxItemSet * ScVbaFormat< Ifc >::getCurrentDataSet
protected
Exceptions
css::uno::RuntimeException

Definition at line 803 of file vbaformat.cxx.

◆ getFormulaHidden()

template<typename... Ifc>
uno::Any SAL_CALL ScVbaFormat< Ifc >::getFormulaHidden
virtual
Exceptions
css::script::BasicErrorException
css::uno::RuntimeException

Definition at line 596 of file vbaformat.cxx.

References aNULL(), ATTR_PROTECTION(), ERRCODE_BASIC_METHOD_FAILED, SfxItemSet::Get(), ScProtectionAttr::GetHideFormula(), SfxItemSet::GetItemState(), and SC_UNONAME_CELLPRO.

◆ getHorizontalAlignment()

template<typename... Ifc>
uno::Any SAL_CALL ScVbaFormat< Ifc >::getHorizontalAlignment
virtual
Exceptions
css::script::BasicErrorException
css::uno::RuntimeException

Definition at line 202 of file vbaformat.cxx.

References aNULL(), ERRCODE_BASIC_METHOD_FAILED, and SC_UNONAME_CELLHJUS.

◆ getIndentLevel()

template<typename... Ifc>
uno::Any SAL_CALL ScVbaFormat< Ifc >::getIndentLevel
virtual
Exceptions
css::script::BasicErrorException
css::uno::RuntimeException

Definition at line 497 of file vbaformat.cxx.

References aNULL(), ERRCODE_BASIC_METHOD_FAILED, and SC_UNONAME_PINDENT.

◆ getLocked()

template<typename... Ifc>
uno::Any SAL_CALL ScVbaFormat< Ifc >::getLocked
virtual
Exceptions
css::script::BasicErrorException
css::uno::RuntimeException

Definition at line 562 of file vbaformat.cxx.

References aNULL(), ATTR_PROTECTION(), ERRCODE_BASIC_METHOD_FAILED, SfxItemSet::Get(), SfxItemSet::GetItemState(), ScProtectionAttr::GetProtection(), and SC_UNONAME_CELLPRO.

◆ getMergeCells()

template<typename... Ifc>
virtual css::uno::Any SAL_CALL ScVbaFormat< Ifc >::getMergeCells ( )
pure virtual
Exceptions
css::script::BasicErrorException
css::uno::RuntimeException

Implemented in ScVbaRange, and ScVbaStyle.

◆ getNumberFormat()

template<typename... Ifc>
uno::Any SAL_CALL ScVbaFormat< Ifc >::getNumberFormat
virtual
Exceptions
css::script::BasicErrorException
css::uno::RuntimeException

Reimplemented in ScVbaRange.

Definition at line 731 of file vbaformat.cxx.

References aNULL(), ERRCODE_BASIC_METHOD_FAILED, FORMATSTRING, and SC_UNO_DP_NUMBERFO.

◆ getNumberFormatLocal()

template<typename... Ifc>
uno::Any SAL_CALL ScVbaFormat< Ifc >::getNumberFormatLocal
virtual
Exceptions
css::script::BasicErrorException
css::uno::RuntimeException

Definition at line 382 of file vbaformat.cxx.

References ERRCODE_BASIC_METHOD_FAILED, FORMATSTRING, and SC_UNO_DP_NUMBERFO.

◆ getOrientation()

template<typename... Ifc>
uno::Any SAL_CALL ScVbaFormat< Ifc >::getOrientation
virtual
Exceptions
css::script::BasicErrorException
css::uno::RuntimeException

Definition at line 280 of file vbaformat.cxx.

References aNULL(), ERRCODE_BASIC_METHOD_FAILED, and SC_UNONAME_CELLORI.

◆ getReadingOrder()

template<typename... Ifc>
uno::Any SAL_CALL ScVbaFormat< Ifc >::getReadingOrder
virtual
Exceptions
css::script::BasicErrorException
css::uno::RuntimeException

Definition at line 698 of file vbaformat.cxx.

References aNULL(), ERRCODE_BASIC_NOT_IMPLEMENTED, and SC_UNONAME_WRITING.

◆ getShrinkToFit()

template<typename... Ifc>
uno::Any SAL_CALL ScVbaFormat< Ifc >::getShrinkToFit
virtual
Exceptions
css::script::BasicErrorException
css::uno::RuntimeException

Definition at line 644 of file vbaformat.cxx.

References aNULL(), ERRCODE_BASIC_NOT_IMPLEMENTED, and SC_UNONAME_SHRINK_TO_FIT.

◆ getVerticalAlignment()

template<typename... Ifc>
uno::Any SAL_CALL ScVbaFormat< Ifc >::getVerticalAlignment
virtual
Exceptions
css::script::BasicErrorException
css::uno::RuntimeException

Definition at line 125 of file vbaformat.cxx.

References aNULL(), ERRCODE_BASIC_METHOD_FAILED, and SC_UNONAME_CELLVJUS.

◆ getWrapText()

template<typename... Ifc>
uno::Any SAL_CALL ScVbaFormat< Ifc >::getWrapText
virtual
Exceptions
css::script::BasicErrorException
css::uno::RuntimeException

Reimplemented in ScVbaRange.

Definition at line 333 of file vbaformat.cxx.

References aNULL(), aPropName, ERRCODE_BASIC_METHOD_FAILED, and SC_UNONAME_WRAP.

◆ getXPropertyState()

template<typename... Ifc>
uno::Reference< beans::XPropertyState > const & ScVbaFormat< Ifc >::getXPropertyState
protected
Exceptions
css::uno::RuntimeException

Definition at line 787 of file vbaformat.cxx.

◆ initializeNumberFormats()

template<typename... Ifc>
void ScVbaFormat< Ifc >::initializeNumberFormats
protected
Exceptions
css::script::BasicErrorException
css::uno::RuntimeException

Definition at line 775 of file vbaformat.cxx.

References mxModel.

◆ Interior()

template<typename... Ifc>
uno::Reference< excel::XInterior > SAL_CALL ScVbaFormat< Ifc >::Interior
virtual
Exceptions
css::script::BasicErrorException
css::uno::RuntimeException

Reimplemented in ScVbaRange.

Definition at line 375 of file vbaformat.cxx.

◆ isAmbiguous()

template<typename... Ifc>
bool ScVbaFormat< Ifc >::isAmbiguous ( const OUString &  _sPropertyName)
protected
Exceptions
css::script::BasicErrorException

Definition at line 758 of file vbaformat.cxx.

References ERRCODE_BASIC_METHOD_FAILED.

◆ setAddIndent()

template<typename... Ifc>
void SAL_CALL ScVbaFormat< Ifc >::setAddIndent ( const css::uno::Any &  BAddIndent)
inline
Exceptions
css::uno::RuntimeException

Definition at line 67 of file vbaformat.hxx.

References ScVbaFormat< Ifc >::mbAddIndent.

◆ setFormulaHidden()

template<typename... Ifc>
void SAL_CALL ScVbaFormat< Ifc >::setFormulaHidden ( const css::uno::Any &  FormulaHidden)
virtual
Exceptions
css::script::BasicErrorException
css::uno::RuntimeException

Definition at line 542 of file vbaformat.cxx.

References ERRCODE_BASIC_METHOD_FAILED, and SC_UNONAME_CELLPRO.

◆ setHorizontalAlignment()

template<typename... Ifc>
void SAL_CALL ScVbaFormat< Ifc >::setHorizontalAlignment ( const css::uno::Any &  HorizontalAlignment)
virtual
Exceptions
css::script::BasicErrorException
css::uno::RuntimeException

Definition at line 162 of file vbaformat.cxx.

References ERRCODE_BASIC_METHOD_FAILED, uno::Any::hasValue(), and SC_UNONAME_CELLHJUS.

◆ setIndentLevel()

template<typename... Ifc>
void SAL_CALL ScVbaFormat< Ifc >::setIndentLevel ( const css::uno::Any &  IndentLevel)
virtual
Exceptions
css::script::BasicErrorException
css::uno::RuntimeException

Definition at line 473 of file vbaformat.cxx.

References ERRCODE_BASIC_METHOD_FAILED, SC_UNONAME_CELLHJUS, and SC_UNONAME_PINDENT.

◆ setLocked()

template<typename... Ifc>
void SAL_CALL ScVbaFormat< Ifc >::setLocked ( const css::uno::Any &  Locked)
virtual
Exceptions
css::script::BasicErrorException
css::uno::RuntimeException

Definition at line 521 of file vbaformat.cxx.

References ERRCODE_BASIC_METHOD_FAILED, and SC_UNONAME_CELLPRO.

◆ setMergeCells()

template<typename... Ifc>
virtual void SAL_CALL ScVbaFormat< Ifc >::setMergeCells ( const css::uno::Any &  MergeCells)
pure virtual
Exceptions
css::script::BasicErrorException
css::uno::RuntimeException

Implemented in ScVbaRange, and ScVbaStyle.

◆ setNumberFormat()

template<typename... Ifc>
void SAL_CALL ScVbaFormat< Ifc >::setNumberFormat ( const css::uno::Any &  NumberFormat)
virtual
Exceptions
css::script::BasicErrorException
css::uno::RuntimeException

Reimplemented in ScVbaRange, and ScVbaRange.

Definition at line 442 of file vbaformat.cxx.

References ERRCODE_BASIC_METHOD_FAILED, LOCALE, and SC_UNO_DP_NUMBERFO.

◆ setNumberFormatLocal()

template<typename... Ifc>
void SAL_CALL ScVbaFormat< Ifc >::setNumberFormatLocal ( const css::uno::Any &  NumberFormatLocal)
virtual
Exceptions
css::script::BasicErrorException
css::uno::RuntimeException

Definition at line 413 of file vbaformat.cxx.

References ERRCODE_BASIC_METHOD_FAILED, LOCALE, and SC_UNO_DP_NUMBERFO.

◆ setOrientation()

template<typename... Ifc>
void SAL_CALL ScVbaFormat< Ifc >::setOrientation ( const css::uno::Any &  Orientation)
virtual
Exceptions
css::script::BasicErrorException
css::uno::RuntimeException

Definition at line 243 of file vbaformat.cxx.

References ERRCODE_BASIC_METHOD_FAILED, uno::Any::hasValue(), SC_UNONAME_CELLORI, and SC_UNONAME_ROTANG.

◆ setReadingOrder()

template<typename... Ifc>
void SAL_CALL ScVbaFormat< Ifc >::setReadingOrder ( const css::uno::Any &  ReadingOrder)
virtual
Exceptions
css::script::BasicErrorException
css::uno::RuntimeException

Definition at line 662 of file vbaformat.cxx.

References aNULL(), ERRCODE_BASIC_METHOD_FAILED, and SC_UNONAME_WRITING.

◆ setShrinkToFit()

template<typename... Ifc>
void SAL_CALL ScVbaFormat< Ifc >::setShrinkToFit ( const css::uno::Any &  ShrinkToFit)
virtual
Exceptions
css::script::BasicErrorException
css::uno::RuntimeException

Definition at line 629 of file vbaformat.cxx.

References ERRCODE_BASIC_NOT_IMPLEMENTED, and SC_UNONAME_SHRINK_TO_FIT.

◆ setVerticalAlignment()

template<typename... Ifc>
void SAL_CALL ScVbaFormat< Ifc >::setVerticalAlignment ( const css::uno::Any &  VerticalAlignment)
virtual
Exceptions
css::script::BasicErrorException
css::uno::RuntimeException

Definition at line 87 of file vbaformat.cxx.

References ERRCODE_BASIC_METHOD_FAILED, and SC_UNONAME_CELLVJUS.

◆ setWrapText()

template<typename... Ifc>
void SAL_CALL ScVbaFormat< Ifc >::setWrapText ( const css::uno::Any &  WrapText)
virtual
Exceptions
css::script::BasicErrorException
css::uno::RuntimeException

Reimplemented in ScVbaRange.

Definition at line 319 of file vbaformat.cxx.

References ERRCODE_BASIC_METHOD_FAILED, and SC_UNONAME_WRAP.

◆ thisHelperIface()

template<typename... Ifc>
virtual css::uno::Reference< ov::XHelperInterface > ScVbaFormat< Ifc >::thisHelperIface ( )
pure virtual

Implemented in ScVbaRange, and ScVbaStyle.

Member Data Documentation

◆ m_aDefaultLocale

template<typename... Ifc>
css::lang::Locale ScVbaFormat< Ifc >::m_aDefaultLocale
private

Definition at line 40 of file vbaformat.hxx.

◆ mbAddIndent

template<typename... Ifc>
bool ScVbaFormat< Ifc >::mbAddIndent
protected

◆ mbCheckAmbiguoity

template<typename... Ifc>
bool ScVbaFormat< Ifc >::mbCheckAmbiguoity
protected

Definition at line 48 of file vbaformat.hxx.

◆ mxModel

template<typename... Ifc>
css::uno::Reference< css::frame::XModel > ScVbaFormat< Ifc >::mxModel
protected

Definition at line 46 of file vbaformat.hxx.

Referenced by ScVbaStyle::initialise(), and ScVbaFormat< Ifc >::ScVbaFormat().

◆ mxNumberFormatsSupplier

template<typename... Ifc>
css::uno::Reference< css::util::XNumberFormatsSupplier > ScVbaFormat< Ifc >::mxNumberFormatsSupplier
protected

Definition at line 43 of file vbaformat.hxx.

◆ mxPropertySet

template<typename... Ifc>
css::uno::Reference< css::beans::XPropertySet > ScVbaFormat< Ifc >::mxPropertySet
protected

◆ xNumberFormats

template<typename... Ifc>
css::uno::Reference< css::util::XNumberFormats > ScVbaFormat< Ifc >::xNumberFormats
protected

Definition at line 44 of file vbaformat.hxx.

◆ xNumberFormatTypes

template<typename... Ifc>
css::uno::Reference< css::util::XNumberFormatTypes > ScVbaFormat< Ifc >::xNumberFormatTypes
protected

Definition at line 45 of file vbaformat.hxx.

◆ xPropertyState

template<typename... Ifc>
css::uno::Reference< css::beans::XPropertyState > ScVbaFormat< Ifc >::xPropertyState
protected

Definition at line 47 of file vbaformat.hxx.


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