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

#include <urltransformer.hxx>

Public Member Functions

 UrlTransformer (const css::uno::Reference< css::uno::XComponentContext > &_rxORB)
 
css::util::URL getStrictURL (const OUString &_rURL) const
 returns a URL object for the given URL string More...
 
css::util::URL getStrictURLFromAscii (const char *_pAsciiURL) const
 returns a URL object for the given URL ASCII string More...
 
void parseSmartWithProtocol (css::util::URL &_rURL, const OUString &_rProtocol) const
 parses a given URL smartly, with a given protocol More...
 

Private Member Functions

bool implEnsureTransformer () const
 ensures that we have a URLTransformer instance in <member>m_xTransformer</member> More...
 

Private Attributes

css::uno::Reference< css::uno::XComponentContext > m_xORB
 
css::uno::Reference< css::util::XURLTransformer > m_xTransformer
 
bool m_bTriedToCreateTransformer
 

Detailed Description

Definition at line 30 of file urltransformer.hxx.

Constructor & Destructor Documentation

◆ UrlTransformer()

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

Definition at line 34 of file urltransformer.cxx.

References DBG_ASSERT.

Member Function Documentation

◆ getStrictURL()

URL frm::UrlTransformer::getStrictURL ( const OUString &  _rURL) const

returns a URL object for the given URL string

Definition at line 58 of file urltransformer.cxx.

References implEnsureTransformer(), m_xTransformer, and URL.

Referenced by getStrictURLFromAscii().

◆ getStrictURLFromAscii()

URL frm::UrlTransformer::getStrictURLFromAscii ( const char *  _pAsciiURL) const

returns a URL object for the given URL ASCII string

Definition at line 68 of file urltransformer.cxx.

References getStrictURL(), and URL.

◆ implEnsureTransformer()

bool frm::UrlTransformer::implEnsureTransformer ( ) const
private

ensures that we have a URLTransformer instance in <member>m_xTransformer</member>

Returns
<TRUE> if and only if m_xTransformer is not <NULL>

Definition at line 42 of file urltransformer.cxx.

References m_bTriedToCreateTransformer, m_xORB, and m_xTransformer.

Referenced by getStrictURL(), and parseSmartWithProtocol().

◆ parseSmartWithProtocol()

void frm::UrlTransformer::parseSmartWithProtocol ( css::util::URL &  _rURL,
const OUString &  _rProtocol 
) const

parses a given URL smartly, with a given protocol

Definition at line 74 of file urltransformer.cxx.

References implEnsureTransformer(), and m_xTransformer.

Member Data Documentation

◆ m_bTriedToCreateTransformer

bool frm::UrlTransformer::m_bTriedToCreateTransformer
mutableprivate

Definition at line 37 of file urltransformer.hxx.

Referenced by implEnsureTransformer().

◆ m_xORB

css::uno::Reference< css::uno::XComponentContext > frm::UrlTransformer::m_xORB
private

Definition at line 34 of file urltransformer.hxx.

Referenced by implEnsureTransformer().

◆ m_xTransformer

css::uno::Reference< css::util::XURLTransformer > frm::UrlTransformer::m_xTransformer
mutableprivate

Definition at line 36 of file urltransformer.hxx.

Referenced by getStrictURL(), implEnsureTransformer(), and parseSmartWithProtocol().


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