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 76 of file xicontent.hxx.

Constructor & Destructor Documentation

XclImpHyperlink::XclImpHyperlink ( const XclImpHyperlink )
delete

delete copy constructor

XclImpHyperlink::XclImpHyperlink ( )
delete

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

Member Function Documentation

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

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

Inserts the URL into a range of cells.

Does not modify value or formula cells.

Definition at line 411 of file xicontent.cxx.

References XclImpAddressConverter::ConvertRange(), ConvertToValidTabName(), XclImpRoot::GetAddressConverter(), XclRoot::GetCurrScTab(), ScRange::GetVars(), and ScAddress::UNINITIALIZED.

Referenced by XclImpXFRangeBuffer::Finalize().

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

delete copy-assignment operator

OUString XclImpHyperlink::ReadEmbeddedData ( XclImpStream rStrm)
static
void XclImpHyperlink::ReadHlink ( XclImpStream rStrm)
static

Reads a HLINK record and inserts it into the document.

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

Definition at line 221 of file xicontent.cxx.

References XclImpStream::GetRoot(), XclImpRoot::GetXFRangeBuffer(), XclRange::maFirst, XclAddress::mnCol, ReadEmbeddedData(), XclImpXFRangeBuffer::SetHyperlink(), and ScAddress::UNINITIALIZED.

Referenced by ImportExcel8::Read().


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