22#include <osl/diagnose.h>
35 if ( _eInputNotation ==
N_URL )
49 bool bSuccess =
false;
52 if ( ( osl_File_E_None != osl_getFileURLFromSystemPath(
m_sSystem.pData, &
m_sFileURL.pData ) )
56 if ( !_rSystemPath.isEmpty() )
76 osl_getSystemPathFromFileURL( _rURL.pData, &
m_sSystem.pData );
81 bool bSuccess =
false;
86 case INetProtocol::File:
92 case INetProtocol::NotValid:
105 OSL_ENSURE( bSuccess,
"OFileNotation::OFileNotation: could not detect the format!" );
110 switch (_eOutputNotation)
116 OSL_FAIL(
"OFileNotation::get: invalid enum value!");
void SetSmartProtocol(INetProtocol eTheSmartScheme)
OUString GetMainURL(DecodeMechanism eMechanism, rtl_TextEncoding eCharset=RTL_TEXTENCODING_UTF8) const
bool SetSmartURL(std::u16string_view rTheAbsURIRef, EncodeMechanism eMechanism=EncodeMechanism::WasEncoded, rtl_TextEncoding eCharset=RTL_TEXTENCODING_UTF8, FSysStyle eStyle=FSysStyle::Detect)
INetProtocol GetProtocol() const
SVL_DLLPRIVATE void implInitWithURLNotation(const OUString &_rURL)
OFileNotation(const OUString &_rUrlOrPath)
OUString get(NOTATION _eOutputNotation) const
SVL_DLLPRIVATE bool implInitWithSystemNotation(const OUString &_rSystemPath)
SVL_DLLPRIVATE void construct(const OUString &_rUrlOrPath)