LibreOffice Module forms (master) 1
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
frm::OFormNavigationMapper Class Reference

helper class mapping between feature ids and feature URLs More...

#include <formnavigation.hxx>

Public Member Functions

 OFormNavigationMapper (const css::uno::Reference< css::uno::XComponentContext > &_rxORB)
 
 ~OFormNavigationMapper ()
 
bool getFeatureURL (sal_Int16 _nFeatureId, css::util::URL &_rURL)
 retrieves the feature URL belonging to a feature id More...
 

Static Public Member Functions

static const char * getFeatureURLAscii (sal_Int16 _nFeatureId)
 retrieves the ASCII representation of a feature URL belonging to an id More...
 
static sal_Int16 getFeatureId (std::u16string_view _rCompleteURL)
 retrieves the feature id belonging to a feature URL More...
 

Private Member Functions

 OFormNavigationMapper (const OFormNavigationMapper &)=delete
 
OFormNavigationMapperoperator= (const OFormNavigationMapper &)=delete
 

Private Attributes

::std::unique_ptr< UrlTransformerm_pUrlTransformer
 

Detailed Description

helper class mapping between feature ids and feature URLs

Definition at line 172 of file formnavigation.hxx.

Constructor & Destructor Documentation

◆ OFormNavigationMapper() [1/2]

frm::OFormNavigationMapper::OFormNavigationMapper ( const css::uno::Reference< css::uno::XComponentContext > &  _rxORB)

◆ ~OFormNavigationMapper()

frm::OFormNavigationMapper::~OFormNavigationMapper ( )

Definition at line 359 of file formnavigation.cxx.

◆ OFormNavigationMapper() [2/2]

frm::OFormNavigationMapper::OFormNavigationMapper ( const OFormNavigationMapper )
privatedelete

Member Function Documentation

◆ getFeatureId()

sal_Int16 frm::OFormNavigationMapper::getFeatureId ( std::u16string_view  _rCompleteURL)
static

retrieves the feature id belonging to a feature URL

@complexity O(n), with n being the number of all potentially known URLs

Returns
the id of the feature URL, or -1 if the URl is not known (which is a valid usage)

Definition at line 431 of file formnavigation.cxx.

References o3tl::equalsAscii().

◆ getFeatureURL()

bool frm::OFormNavigationMapper::getFeatureURL ( sal_Int16  _nFeatureId,
css::util::URL &  _rURL 
)

retrieves the feature URL belonging to a feature id

@complexity O(log n), with n being the number of all potentially known URLs

Returns
<TRUE> if and only if the given id is a known feature id (which is a valid usage)

Definition at line 364 of file formnavigation.cxx.

References getFeatureURLAscii(), m_pUrlTransformer, and pAsciiURL.

Referenced by frm::OFormNavigationHelper::initializeSupportedFeatures().

◆ getFeatureURLAscii()

const char * frm::OFormNavigationMapper::getFeatureURLAscii ( sal_Int16  _nFeatureId)
static

retrieves the ASCII representation of a feature URL belonging to an id

@complexity O(log n)

Returns
NULL if the given id is not a known feature id (which is a valid usage)

Definition at line 418 of file formnavigation.cxx.

Referenced by getFeatureURL().

◆ operator=()

OFormNavigationMapper & frm::OFormNavigationMapper::operator= ( const OFormNavigationMapper )
privatedelete

Member Data Documentation

◆ m_pUrlTransformer

::std::unique_ptr< UrlTransformer > frm::OFormNavigationMapper::m_pUrlTransformer
private

Definition at line 175 of file formnavigation.hxx.

Referenced by getFeatureURL().


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