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

#include <vbaworkbooks.hxx>

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

Public Member Functions

 ScVbaWorkbooks (const css::uno::Reference< ov::XHelperInterface > &xParent, const css::uno::Reference< css::uno::XComponentContext > &xContext)
 
virtual css::uno::Type SAL_CALL getElementType () override
 
virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration () override
 
virtual css::uno::Any createCollectionObject (const css::uno::Any &aSource) override
 
virtual OUString getServiceImplName () override
 
virtual css::uno::Sequence< OUString > getServiceNames () override
 
virtual css::uno::Any SAL_CALL Add (const css::uno::Any &Template) override
 
virtual void SAL_CALL Close () override
 
virtual css::uno::Any SAL_CALL Open (const OUString &Filename, const css::uno::Any &UpdateLinks, const css::uno::Any &ReadOnly, const css::uno::Any &Format, const css::uno::Any &Password, const css::uno::Any &WriteResPassword, const css::uno::Any &IgnoreReadOnlyRecommended, const css::uno::Any &Origin, const css::uno::Any &Delimiter, const css::uno::Any &Editable, const css::uno::Any &Notify, const css::uno::Any &Converter, const css::uno::Any &AddToMru) override
 

Private Member Functions

OUString getFileFilterType (const OUString &rString)
 

Static Private Member Functions

static bool isTextFile (std::u16string_view rString)
 
static bool isSpreadSheetFile (std::u16string_view rString)
 
static sal_Int16 & getCurrentDelim ()
 

Detailed Description

Definition at line 31 of file vbaworkbooks.hxx.

Constructor & Destructor Documentation

◆ ScVbaWorkbooks()

ScVbaWorkbooks::ScVbaWorkbooks ( const css::uno::Reference< ov::XHelperInterface > &  xParent,
const css::uno::Reference< css::uno::XComponentContext > &  xContext 
)

Definition at line 81 of file vbaworkbooks.cxx.

Member Function Documentation

◆ Add()

uno::Any SAL_CALL ScVbaWorkbooks::Add ( const css::uno::Any &  Template)
overridevirtual

◆ Close()

void SAL_CALL ScVbaWorkbooks::Close ( )
overridevirtual

Definition at line 158 of file vbaworkbooks.cxx.

◆ createCollectionObject()

uno::Any ScVbaWorkbooks::createCollectionObject ( const css::uno::Any &  aSource)
overridevirtual

Definition at line 102 of file vbaworkbooks.cxx.

References getWorkbook(), mxContext, and mxParent.

◆ createEnumeration()

uno::Reference< container::XEnumeration > ScVbaWorkbooks::createEnumeration ( )
overridevirtual

Definition at line 91 of file vbaworkbooks.cxx.

References mxContext, and mxParent.

◆ getCurrentDelim()

static sal_Int16 & ScVbaWorkbooks::getCurrentDelim ( )
inlinestaticprivate

Definition at line 37 of file vbaworkbooks.hxx.

Referenced by Open().

◆ getElementType()

uno::Type ScVbaWorkbooks::getElementType ( )
overridevirtual

Definition at line 86 of file vbaworkbooks.cxx.

References cppu::UnoType< typename T >::get().

◆ getFileFilterType()

OUString ScVbaWorkbooks::getFileFilterType ( const OUString &  rString)
private

Definition at line 184 of file vbaworkbooks.cxx.

References comphelper::makePropertyValue(), mxContext, and sType.

Referenced by Open().

◆ getServiceImplName()

OUString ScVbaWorkbooks::getServiceImplName ( )
overridevirtual

Definition at line 276 of file vbaworkbooks.cxx.

◆ getServiceNames()

css::uno::Sequence< OUString > ScVbaWorkbooks::getServiceNames ( )
overridevirtual

Definition at line 282 of file vbaworkbooks.cxx.

◆ isSpreadSheetFile()

bool ScVbaWorkbooks::isSpreadSheetFile ( std::u16string_view  rString)
staticprivate

Definition at line 174 of file vbaworkbooks.cxx.

References o3tl::starts_with(), sType, and u.

Referenced by Open().

◆ isTextFile()

bool ScVbaWorkbooks::isTextFile ( std::u16string_view  rString)
staticprivate

Definition at line 163 of file vbaworkbooks.cxx.

References sType, and u.

Referenced by Open().

◆ Open()

uno::Any SAL_CALL ScVbaWorkbooks::Open ( const OUString &  Filename,
const css::uno::Any &  UpdateLinks,
const css::uno::Any &  ReadOnly,
const css::uno::Any &  Format,
const css::uno::Any &  Password,
const css::uno::Any &  WriteResPassword,
const css::uno::Any &  IgnoreReadOnlyRecommended,
const css::uno::Any &  Origin,
const css::uno::Any &  Delimiter,
const css::uno::Any &  Editable,
const css::uno::Any &  Notify,
const css::uno::Any &  Converter,
const css::uno::Any &  AddToMru 
)
overridevirtual

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