LibreOffice Module sc (master) 1
Functions
xmlexternaltabi.cxx File Reference
#include "xmlexternaltabi.hxx"
#include "xmlimprt.hxx"
#include "xmltabi.hxx"
#include "xmlstyli.hxx"
#include <document.hxx>
#include <documentimport.hxx>
#include <svl/sharedstringpool.hxx>
#include <xmloff/xmlnamespace.hxx>
#include <xmloff/xmltoken.hxx>
#include <xmloff/xmluconv.hxx>
#include <sax/tools/converter.hxx>
#include <com/sun/star/util/NumberFormat.hpp>
Include dependency graph for xmlexternaltabi.cxx:

Go to the source code of this file.

Functions

static bool lcl_isValidRelativeURL (const OUString &rUrl)
 Make sure the URL is a valid relative URL, mainly to avoid storing absolute URL as relative URL by accident. More...
 

Function Documentation

◆ lcl_isValidRelativeURL()

static bool lcl_isValidRelativeURL ( const OUString &  rUrl)
static

Make sure the URL is a valid relative URL, mainly to avoid storing absolute URL as relative URL by accident.

For now, we only check the first three characters which are assumed to be always '../', because the relative URL for an external document is always in reference to the content.xml fragment of the original document.

Definition at line 80 of file xmlexternaltabi.cxx.

References i, n, and p.

Referenced by ScXMLExternalRefTabSourceContext::endFastElement().