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

This class contains static methods to encode a file URL. More...

#include <xehelper.hxx>

Public Member Functions

 XclExpUrlHelper (const XclExpUrlHelper &)=delete
 delete copy constructor More...
 
const XclExpUrlHelperoperator= (const XclExpUrlHelper &)=delete
 delete copy-assignment operator More...
 
 XclExpUrlHelper ()=delete
 We don't want anybody to instantiate this class, since it is just a collection of static methods. More...
 

Static Public Member Functions

static OUString EncodeUrl (const XclExpRoot &rRoot, std::u16string_view rAbsUrl, const OUString *pTableName=nullptr)
 Encodes and returns the URL passed in rAbsUrl to an Excel like URL. More...
 
static OUString EncodeDde (std::u16string_view rApplic, std::u16string_view rTopic)
 Encodes and returns the passed DDE link to an Excel like DDE link. More...
 

Detailed Description

This class contains static methods to encode a file URL.

@descr Excel stores URLs in a format that contains special control characters, i.e. for directory separators or volume names.

Definition at line 399 of file xehelper.hxx.

Constructor & Destructor Documentation

◆ XclExpUrlHelper() [1/2]

XclExpUrlHelper::XclExpUrlHelper ( const XclExpUrlHelper )
delete

delete copy constructor

◆ XclExpUrlHelper() [2/2]

XclExpUrlHelper::XclExpUrlHelper ( )
delete

We don't want anybody to instantiate this class, since it is just a collection of static methods.

Member Function Documentation

◆ EncodeDde()

OUString XclExpUrlHelper::EncodeDde ( std::u16string_view  rApplic,
std::u16string_view  rTopic 
)
static

Encodes and returns the passed DDE link to an Excel like DDE link.

Definition at line 1017 of file xehelper.cxx.

References EXC_DDE_DELIM.

◆ EncodeUrl()

OUString XclExpUrlHelper::EncodeUrl ( const XclExpRoot rRoot,
std::u16string_view  rAbsUrl,
const OUString *  pTableName = nullptr 
)
static

Encodes and returns the URL passed in rAbsUrl to an Excel like URL.

Parameters
pTableNameOptional pointer to a table name to be encoded in this URL.

Definition at line 989 of file xehelper.cxx.

References INetURLObject::All, XclRoot::GetBasePath(), XclRoot::GetBiff(), INetURLObject::getFSysPath(), INetURLObject::GetRelURL(), XclExpRoot::IsRelUrl(), INetURLObject::NONE, and u.

Referenced by XclExpPivotCache::WriteDconref().

◆ operator=()

const XclExpUrlHelper & XclExpUrlHelper::operator= ( const XclExpUrlHelper )
delete

delete copy-assignment operator


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