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

Provides importing hyperlinks and inserting them into a document. More...

#include <xicontent.hxx>

Public Member Functions

 XclImpHyperlink (const XclImpHyperlink &)=delete
 delete copy constructor More...
 
const XclImpHyperlinkoperator= (const XclImpHyperlink &)=delete
 delete copy-assignment operator
More...
 
 XclImpHyperlink ()=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 void ReadHlink (XclImpStream &rStrm)
 Reads a HLINK record and inserts it into the document. More...
 
static OUString ReadEmbeddedData (XclImpStream &rStrm)
 Reads the (undocumented) embedded hyperlink data and returns the URL. More...
 
static void InsertUrl (XclImpRoot &rRoot, const XclRange &rXclRange, const OUString &rUrl)
 Inserts the URL into a range of cells. More...
 
static void ConvertToValidTabName (OUString &rName)
 Convert the sheet name with invalid character(s) in URL when the URL is to a location within the same document (e.g. More...
 

Detailed Description

Provides importing hyperlinks and inserting them into a document.

Definition at line 75 of file xicontent.hxx.

Constructor & Destructor Documentation

◆ XclImpHyperlink() [1/2]

XclImpHyperlink::XclImpHyperlink ( const XclImpHyperlink )
delete

delete copy constructor

◆ XclImpHyperlink() [2/2]

XclImpHyperlink::XclImpHyperlink ( )
delete

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

Member Function Documentation

◆ ConvertToValidTabName()

void XclImpHyperlink::ConvertToValidTabName ( OUString &  rName)
static

Convert the sheet name with invalid character(s) in URL when the URL is to a location within the same document (e.g.

#'Sheet&Name'.A1).

Definition at line 355 of file xicontent.cxx.

References i, and n.

Referenced by InsertUrl().

◆ InsertUrl()

void XclImpHyperlink::InsertUrl ( XclImpRoot rRoot,
const XclRange rXclRange,
const OUString &  rUrl 
)
static

◆ operator=()

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

delete copy-assignment operator

◆ ReadEmbeddedData()

OUString XclImpHyperlink::ReadEmbeddedData ( XclImpStream rStrm)
static

◆ ReadHlink()

void XclImpHyperlink::ReadHlink ( XclImpStream rStrm)
static

Reads a HLINK record and inserts it into the document.

@descr Import stream must be located at start of a HLINK record.

Definition at line 221 of file xicontent.cxx.

References XclRange::maFirst, XclRange::maLast, XclAddress::mnCol, ReadEmbeddedData(), rStrm, and ScAddress::UNINITIALIZED.

Referenced by ImportExcel8::Read().


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