LibreOffice Module scripting (master) 1
Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
func_provider::ScriptingFrameworkURIHelper Class Reference

#include <URIHelper.hxx>

Inheritance diagram for func_provider::ScriptingFrameworkURIHelper:
[legend]
Collaboration diagram for func_provider::ScriptingFrameworkURIHelper:
[legend]

Public Member Functions

 ScriptingFrameworkURIHelper (const css::uno::Reference< css::uno::XComponentContext > &xContext)
 
virtual ~ScriptingFrameworkURIHelper () override
 
virtual void SAL_CALL initialize (const css::uno::Sequence< css::uno::Any > &args) override
 
virtual OUString SAL_CALL getRootStorageURI () override
 
virtual OUString SAL_CALL getScriptURI (const OUString &rStorageURI) override
 
virtual OUString SAL_CALL getStorageURI (const OUString &rScriptURI) 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
 

Private Member Functions

bool initBaseURI ()
 
OUString getLanguagePart (std::u16string_view rStorageURI)
 

Static Private Member Functions

static OUString getLanguagePath (const OUString &rLanguagePart)
 

Private Attributes

css::uno::Reference< css::ucb::XSimpleFileAccess3 > m_xSimpleFileAccess
 
css::uno::Reference< css::uri::XUriReferenceFactory > m_xUriReferenceFactory
 
OUString m_sLanguage
 
OUString m_sLocation
 
OUString m_sBaseURI
 
OUString SCRIPTS_PART
 

Detailed Description

Definition at line 35 of file URIHelper.hxx.

Constructor & Destructor Documentation

◆ ScriptingFrameworkURIHelper()

func_provider::ScriptingFrameworkURIHelper::ScriptingFrameworkURIHelper ( const css::uno::Reference< css::uno::XComponentContext > &  xContext)
explicit
Exceptions
css::uno::RuntimeException

Definition at line 48 of file URIHelper.cxx.

References m_xSimpleFileAccess, and m_xUriReferenceFactory.

◆ ~ScriptingFrameworkURIHelper()

func_provider::ScriptingFrameworkURIHelper::~ScriptingFrameworkURIHelper ( )
overridevirtual

Definition at line 70 of file URIHelper.cxx.

Member Function Documentation

◆ getImplementationName()

OUString SAL_CALL func_provider::ScriptingFrameworkURIHelper::getImplementationName ( )
overridevirtual

Definition at line 228 of file URIHelper.cxx.

◆ getLanguagePart()

OUString func_provider::ScriptingFrameworkURIHelper::getLanguagePart ( std::u16string_view  rStorageURI)
private

Definition at line 167 of file URIHelper.cxx.

References idx, m_sBaseURI, and result.

Referenced by getScriptURI().

◆ getLanguagePath()

OUString func_provider::ScriptingFrameworkURIHelper::getLanguagePath ( const OUString &  rLanguagePart)
staticprivate

Definition at line 183 of file URIHelper.cxx.

References result.

Referenced by getStorageURI().

◆ getRootStorageURI()

OUString SAL_CALL func_provider::ScriptingFrameworkURIHelper::getRootStorageURI ( )
overridevirtual

Definition at line 222 of file URIHelper.cxx.

References m_sBaseURI.

◆ getScriptURI()

OUString SAL_CALL func_provider::ScriptingFrameworkURIHelper::getScriptURI ( const OUString &  rStorageURI)
overridevirtual

Definition at line 190 of file URIHelper.cxx.

References getLanguagePart(), m_sLanguage, and m_sLocation.

◆ getStorageURI()

OUString SAL_CALL func_provider::ScriptingFrameworkURIHelper::getStorageURI ( const OUString &  rScriptURI)
overridevirtual

Definition at line 202 of file URIHelper.cxx.

References getLanguagePath(), m_sBaseURI, and m_xUriReferenceFactory.

◆ getSupportedServiceNames()

uno::Sequence< OUString > SAL_CALL func_provider::ScriptingFrameworkURIHelper::getSupportedServiceNames ( )
overridevirtual

Definition at line 241 of file URIHelper.cxx.

◆ initBaseURI()

bool func_provider::ScriptingFrameworkURIHelper::initBaseURI ( )
private

◆ initialize()

void SAL_CALL func_provider::ScriptingFrameworkURIHelper::initialize ( const css::uno::Sequence< css::uno::Any > &  args)
overridevirtual

Definition at line 76 of file URIHelper.cxx.

References args, initBaseURI(), m_sLanguage, m_sLocation, and SCRIPTS_PART.

◆ supportsService()

sal_Bool SAL_CALL func_provider::ScriptingFrameworkURIHelper::supportsService ( const OUString &  ServiceName)
overridevirtual

Definition at line 235 of file URIHelper.cxx.

References cppu::supportsService().

Member Data Documentation

◆ m_sBaseURI

OUString func_provider::ScriptingFrameworkURIHelper::m_sBaseURI
private

Definition at line 48 of file URIHelper.hxx.

Referenced by getLanguagePart(), getRootStorageURI(), getStorageURI(), and initBaseURI().

◆ m_sLanguage

OUString func_provider::ScriptingFrameworkURIHelper::m_sLanguage
private

Definition at line 46 of file URIHelper.hxx.

Referenced by getScriptURI(), and initialize().

◆ m_sLocation

OUString func_provider::ScriptingFrameworkURIHelper::m_sLocation
private

Definition at line 47 of file URIHelper.hxx.

Referenced by getScriptURI(), initBaseURI(), and initialize().

◆ m_xSimpleFileAccess

css::uno::Reference< css::ucb::XSimpleFileAccess3 > func_provider::ScriptingFrameworkURIHelper::m_xSimpleFileAccess
private

Definition at line 43 of file URIHelper.hxx.

Referenced by initBaseURI(), and ScriptingFrameworkURIHelper().

◆ m_xUriReferenceFactory

css::uno::Reference<css::uri::XUriReferenceFactory> func_provider::ScriptingFrameworkURIHelper::m_xUriReferenceFactory
private

Definition at line 44 of file URIHelper.hxx.

Referenced by getStorageURI(), and ScriptingFrameworkURIHelper().

◆ SCRIPTS_PART

OUString func_provider::ScriptingFrameworkURIHelper::SCRIPTS_PART
private

Definition at line 50 of file URIHelper.hxx.

Referenced by initBaseURI(), and initialize().


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