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:
Collaboration diagram for ScVbaWorkbook:

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 void initColorData (const css::uno::Sequence< sal_Int32 > &sColors)

Static Private Attributes

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

Detailed Description

Definition at line 29 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 195 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 ( )

Definition at line 250 of file vbaworkbook.cxx.

References VbaDocumentBase::Activate().

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

Definition at line 71 of file vbaworkbook.cxx.

References ColorData, nIndex, and XLRGBToOORGB().

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

Definition at line 284 of file vbaworkbook.cxx.

OUString SAL_CALL ScVbaWorkbook::getCodeName ( )

Definition at line 402 of file vbaworkbook.cxx.

sal_Int32 SAL_CALL ScVbaWorkbook::getFileFormat ( )

Definition at line 125 of file vbaworkbook.cxx.

References Name, and SC_TEXT_CSV_FILTER_NAME.

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

Definition at line 262 of file vbaworkbook.cxx.

OUString ScVbaWorkbook::getServiceImplName ( )

Definition at line 386 of file vbaworkbook.cxx.

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

Definition at line 392 of file vbaworkbook.cxx.

References aServiceNames.

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

Definition at line 409 of file vbaworkbook.cxx.

void ScVbaWorkbook::init ( )
void ScVbaWorkbook::initColorData ( const css::uno::Sequence< sal_Int32 > &  sColors)

Definition at line 51 of file vbaworkbook.cxx.

References ColorData.

Referenced by ResetColors().

uno::Any SAL_CALL ScVbaWorkbook::Names ( const css::uno::Any &  aIndex)

Definition at line 374 of file vbaworkbook.cxx.

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

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

Definition at line 256 of file vbaworkbook.cxx.

References VbaDocumentBase::Protect().

void SAL_CALL ScVbaWorkbook::ResetColors ( )

Definition at line 57 of file vbaworkbook.cxx.

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

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 
void ScVbaWorkbook::SaveCopyAs ( const OUString &  Filename)

Definition at line 303 of file vbaworkbook.cxx.

References aURL.

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

Definition at line 293 of file vbaworkbook.cxx.

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

Definition at line 85 of file vbaworkbook.cxx.


Referenced by SaveAs().

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

Definition at line 220 of file vbaworkbook.cxx.

References Worksheets().

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

Definition at line 362 of file vbaworkbook.cxx.

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

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

Definition at line 240 of file vbaworkbook.cxx.

References mxContext.

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

Definition at line 226 of file vbaworkbook.cxx.

References mxContext, and xModel.

Referenced by Sheets().

Member Data Documentation

uno::Sequence< sal_Int32 > ScVbaWorkbook::ColorData

Definition at line 31 of file vbaworkbook.hxx.

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

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