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 void SAL_CALL ExportAsFixedFormat (const css::uno::Any &Type, const css::uno::Any &FileName, const css::uno::Any &Quality, const css::uno::Any &IncludeDocProperties, const css::uno::Any &IgnorePrintAreas, const css::uno::Any &From, const css::uno::Any &To, const css::uno::Any &OpenAfterPublish, const css::uno::Any &FixedFormatExtClassPtr) 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() [1/2]

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 191 of file vbaworkbook.cxx.

References init(), and xModel.

◆ ScVbaWorkbook() [2/2]

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

Member Function Documentation

◆ Activate()

void SAL_CALL ScVbaWorkbook::Activate ( )
overridevirtual

Definition at line 246 of file vbaworkbook.cxx.

References VbaDocumentBase::Activate().

◆ Colors()

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().

◆ ExportAsFixedFormat()

void SAL_CALL ScVbaWorkbook::ExportAsFixedFormat ( const css::uno::Any &  Type,
const css::uno::Any &  FileName,
const css::uno::Any &  Quality,
const css::uno::Any &  IncludeDocProperties,
const css::uno::Any &  IgnorePrintAreas,
const css::uno::Any &  From,
const css::uno::Any &  To,
const css::uno::Any &  OpenAfterPublish,
const css::uno::Any &  FixedFormatExtClassPtr 
)
overridevirtual

Definition at line 360 of file vbaworkbook.cxx.

References ooo::vba::excel::ExportAsFixedFormatHelper(), To, and xModel.

◆ getActiveSheet()

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

◆ getAuthor()

OUString SAL_CALL ScVbaWorkbook::getAuthor ( )
overridevirtual

Definition at line 285 of file vbaworkbook.cxx.

◆ getCodeName()

OUString SAL_CALL ScVbaWorkbook::getCodeName ( )
overridevirtual

Definition at line 412 of file vbaworkbook.cxx.

◆ getFileFormat()

sal_Int32 SAL_CALL ScVbaWorkbook::getFileFormat ( )
override

Definition at line 122 of file vbaworkbook.cxx.

References Name, and SC_TEXT_CSV_FILTER_NAME.

◆ getPrecisionAsDisplayed()

sal_Bool SAL_CALL ScVbaWorkbook::getPrecisionAsDisplayed ( )
overridevirtual

◆ getProtectStructure()

sal_Bool ScVbaWorkbook::getProtectStructure ( )
overridevirtual

Definition at line 258 of file vbaworkbook.cxx.

◆ getServiceImplName()

OUString ScVbaWorkbook::getServiceImplName ( )
overridevirtual

Definition at line 396 of file vbaworkbook.cxx.

◆ getServiceNames()

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

Definition at line 402 of file vbaworkbook.cxx.

References aServiceNames.

◆ getSomething()

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

Definition at line 419 of file vbaworkbook.cxx.

References comphelper::getSomething_cast().

◆ init()

void ScVbaWorkbook::init ( )
private

Definition at line 183 of file vbaworkbook.cxx.

References ColorData, ooo::vba::excel::getDocShell(), and ResetColors().

Referenced by ScVbaWorkbook().

◆ Names()

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

Definition at line 384 of file vbaworkbook.cxx.

References aIndex, mxContext, and xModel.

◆ Protect()

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

Definition at line 252 of file vbaworkbook.cxx.

References VbaDocumentBase::Protect().

◆ ResetColors()

void SAL_CALL ScVbaWorkbook::ResetColors ( )
overridevirtual

Definition at line 55 of file vbaworkbook.cxx.

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

Referenced by init().

◆ SaveAs()

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

◆ SaveCopyAs()

void ScVbaWorkbook::SaveCopyAs ( const OUString &  Filename)
overridevirtual

Definition at line 304 of file vbaworkbook.cxx.

References aURL, and comphelper::makePropertyValue().

◆ setAuthor()

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

Definition at line 294 of file vbaworkbook.cxx.

◆ setFilterPropsFromFormat()

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().

◆ setPrecisionAsDisplayed()

void SAL_CALL ScVbaWorkbook::setPrecisionAsDisplayed ( sal_Bool  _precisionAsDisplayed)
overridevirtual

◆ Sheets()

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

Definition at line 216 of file vbaworkbook.cxx.

References aIndex, and Worksheets().

◆ Styles()

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

Definition at line 372 of file vbaworkbook.cxx.

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

◆ Windows()

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

Definition at line 236 of file vbaworkbook.cxx.

References aIndex, and mxContext.

◆ Worksheets()

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

Definition at line 222 of file vbaworkbook.cxx.

References aIndex, mxContext, and xModel.

Referenced by Sheets().

Member Data Documentation

◆ ColorData

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: