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

#include <vbaworkbook.hxx>

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

Public Member Functions

 ScVbaWorkbook (const css::uno::Reference< ov::XHelperInterface > &xParent, const css::uno::Reference< css::uno::XComponentContext > &xContext, css::uno::Reference< css::frame::XModel > const &xModel)
 
 ScVbaWorkbook (css::uno::Sequence< css::uno::Any > const &aArgs, css::uno::Reference< css::uno::XComponentContext >const &xContext)
 
virtual sal_Bool SAL_CALL getProtectStructure () override
 
virtual css::uno::Reference< ov::excel::XWorksheet > SAL_CALL getActiveSheet () override
 
virtual sal_Bool SAL_CALL getPrecisionAsDisplayed () override
 
virtual void SAL_CALL setPrecisionAsDisplayed (sal_Bool _precisionAsDisplayed) override
 
virtual OUString SAL_CALL getAuthor () override
 
virtual void SAL_CALL setAuthor (const OUString &_author) override
 
virtual css::uno::Any SAL_CALL Worksheets (const css::uno::Any &aIndex) override
 
virtual css::uno::Any SAL_CALL Sheets (const css::uno::Any &aIndex) override
 
virtual css::uno::Any SAL_CALL Windows (const css::uno::Any &aIndex) override
 
virtual void SAL_CALL Activate () override
 
virtual void SAL_CALL Protect (const css::uno::Any &aPassword) override
 
virtual void SAL_CALL SaveAs (const css::uno::Any &FileName, const css::uno::Any &FileFormat, const css::uno::Any &Password, const css::uno::Any &WriteResPassword, const css::uno::Any &ReadOnlyRecommended, const css::uno::Any &CreateBackup, const css::uno::Any &AccessMode, const css::uno::Any &ConflictResolution, const css::uno::Any &AddToMru, const css::uno::Any &TextCodepage, const css::uno::Any &TextVisualLayout, const css::uno::Any &Local) override
 
virtual css::uno::Any SAL_CALL Names (const css::uno::Any &aIndex) override
 
virtual css::uno::Any SAL_CALL Styles (const css::uno::Any &Item) override
 
virtual void SAL_CALL ResetColors () override
 
virtual css::uno::Any SAL_CALL Colors (const css::uno::Any &Index) override
 
virtual ::sal_Int32 SAL_CALL getFileFormat () override
 
virtual void SAL_CALL SaveCopyAs (const OUString &Filename) override
 
virtual OUString SAL_CALL getCodeName () override
 
virtual OUString getServiceImplName () override
 
virtual css::uno::Sequence< OUString > getServiceNames () override
 
virtual ::sal_Int64 SAL_CALL getSomething (const css::uno::Sequence< sal_Int8 > &rId) override
 

Private Member Functions

void init ()
 

Static Private Member Functions

static bool setFilterPropsFromFormat (sal_Int32 nFormat, css::uno::Sequence< css::beans::PropertyValue > &rProps)
 

Static Private Attributes

static css::uno::Sequence< sal_Int32 > ColorData
 

Detailed Description

Definition at line 28 of file vbaworkbook.hxx.

Constructor & Destructor Documentation

ScVbaWorkbook::ScVbaWorkbook ( const css::uno::Reference< ov::XHelperInterface > &  xParent,
const css::uno::Reference< css::uno::XComponentContext > &  xContext,
css::uno::Reference< css::frame::XModel > const &  xModel 
)

Definition at line 192 of file vbaworkbook.cxx.

References init().

ScVbaWorkbook::ScVbaWorkbook ( css::uno::Sequence< css::uno::Any > const &  aArgs,
css::uno::Reference< css::uno::XComponentContext >const &  xContext 
)

Member Function Documentation

void SAL_CALL ScVbaWorkbook::Activate ( )
overridevirtual

Definition at line 247 of file vbaworkbook.cxx.

References VbaDocumentBase::Activate().

uno::Any SAL_CALL ScVbaWorkbook::Colors ( const css::uno::Any &  Index)
overridevirtual

Definition at line 67 of file vbaworkbook.cxx.

References ColorData, nIndex, and XLRGBToOORGB().

uno::Reference< excel::XWorksheet > ScVbaWorkbook::getActiveSheet ( )
overridevirtual
OUString SAL_CALL ScVbaWorkbook::getAuthor ( )
overridevirtual

Definition at line 281 of file vbaworkbook.cxx.

OUString SAL_CALL ScVbaWorkbook::getCodeName ( )
overridevirtual

Definition at line 396 of file vbaworkbook.cxx.

sal_Int32 SAL_CALL ScVbaWorkbook::getFileFormat ( )
override

Definition at line 122 of file vbaworkbook.cxx.

References Name, and SC_TEXT_CSV_FILTER_NAME.

sal_Bool SAL_CALL ScVbaWorkbook::getPrecisionAsDisplayed ( )
overridevirtual
sal_Bool ScVbaWorkbook::getProtectStructure ( )
overridevirtual

Definition at line 259 of file vbaworkbook.cxx.

OUString ScVbaWorkbook::getServiceImplName ( )
overridevirtual

Definition at line 380 of file vbaworkbook.cxx.

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

Definition at line 386 of file vbaworkbook.cxx.

References aServiceNames.

sal_Int64 ScVbaWorkbook::getSomething ( const css::uno::Sequence< sal_Int8 > &  rId)
override

Definition at line 403 of file vbaworkbook.cxx.

References comphelper::getSomething_cast().

void ScVbaWorkbook::init ( )
private
uno::Any SAL_CALL ScVbaWorkbook::Names ( const css::uno::Any &  aIndex)
overridevirtual

Definition at line 368 of file vbaworkbook.cxx.

References uno::Any::hasValue(), mxContext, and xModel.

void ScVbaWorkbook::Protect ( const css::uno::Any &  aPassword)
overridevirtual

Definition at line 253 of file vbaworkbook.cxx.

References VbaDocumentBase::Protect().

void SAL_CALL ScVbaWorkbook::ResetColors ( )
overridevirtual

Definition at line 55 of file vbaworkbook.cxx.

References ColorData, ScVbaPalette::getDefaultPalette(), and index.

Referenced by init().

void SAL_CALL ScVbaWorkbook::SaveAs ( const css::uno::Any &  FileName,
const css::uno::Any &  FileFormat,
const css::uno::Any &  Password,
const css::uno::Any &  WriteResPassword,
const css::uno::Any &  ReadOnlyRecommended,
const css::uno::Any &  CreateBackup,
const css::uno::Any &  AccessMode,
const css::uno::Any &  ConflictResolution,
const css::uno::Any &  AddToMru,
const css::uno::Any &  TextCodepage,
const css::uno::Any &  TextVisualLayout,
const css::uno::Any &  Local 
)
overridevirtual
void ScVbaWorkbook::SaveCopyAs ( const OUString &  Filename)
overridevirtual

Definition at line 300 of file vbaworkbook.cxx.

References aURL, and comphelper::makePropertyValue().

void SAL_CALL ScVbaWorkbook::setAuthor ( const OUString &  _author)
overridevirtual

Definition at line 290 of file vbaworkbook.cxx.

bool ScVbaWorkbook::setFilterPropsFromFormat ( sal_Int32  nFormat,
css::uno::Sequence< css::beans::PropertyValue > &  rProps 
)
staticprivate

Definition at line 81 of file vbaworkbook.cxx.

References begin, end, and SC_TEXT_CSV_FILTER_NAME.

Referenced by SaveAs().

void SAL_CALL ScVbaWorkbook::setPrecisionAsDisplayed ( sal_Bool  _precisionAsDisplayed)
overridevirtual
uno::Any SAL_CALL ScVbaWorkbook::Sheets ( const css::uno::Any &  aIndex)
overridevirtual

Definition at line 217 of file vbaworkbook.cxx.

References Worksheets().

css::uno::Any SAL_CALL ScVbaWorkbook::Styles ( const css::uno::Any &  Item)
overridevirtual

Definition at line 356 of file vbaworkbook.cxx.

References uno::Any::hasValue(), and mxContext.

uno::Any SAL_CALL ScVbaWorkbook::Windows ( const css::uno::Any &  aIndex)
overridevirtual

Definition at line 237 of file vbaworkbook.cxx.

References mxContext.

uno::Any SAL_CALL ScVbaWorkbook::Worksheets ( const css::uno::Any &  aIndex)
overridevirtual

Definition at line 223 of file vbaworkbook.cxx.

References mxContext, and xModel.

Referenced by Sheets().

Member Data Documentation

uno::Sequence< sal_Int32 > ScVbaWorkbook::ColorData
staticprivate

Definition at line 30 of file vbaworkbook.hxx.

Referenced by Colors(), init(), and ResetColors().


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