22#include <osl/diagnose.h>
23#include <osl/file.hxx>
30#include <com/sun/star/sdbc/XResultSet.hpp>
31#include <com/sun/star/ucb/XContentAccess.hpp>
33#include <com/sun/star/i18n/OrdinalSuffix.hpp>
52 if (aMultiPath.isEmpty())
58 OUString aPath = aMultiPath.getToken(0,
';', nIdx);
63 if ( osl::FileBase::getFileURLFromSystemPath( aPath, aUrl ) == osl::FileBase::E_None )
72 Reference< XCommandEnvironment >(),
74 Reference< sdbc::XResultSet > xResultSet;
75 Sequence< OUString > aProps;
79 aProps, ::ucbhelper::INCLUDE_DOCUMENTS_ONLY );
87 if ( xResultSet.is() )
89 Reference< XContentAccess > xContentAccess( xResultSet, UNO_QUERY );
92 if ( xResultSet->first() )
96 OUString aId = xContentAccess->queryContentIdentifierString();
99 while ( xResultSet->next() );
114 OSL_FAIL(
"unexpected exception caught!" );
126 xOrdinalSuffix = i18n::OrdinalSuffix::create( ::comphelper::getProcessComponentContext() );
128 uno::Sequence< OUString > aSuffixes =
xOrdinalSuffix->getOrdinalSuffix( nNumber,
130 if ( aSuffixes.hasElements() )
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)
static OUString GetOrdinalSuffix(sal_Int32 nNumber)
Obtain the ordinal suffix for a number according to the system locale.
static SC_DLLPUBLIC const LocaleDataWrapper & getLocaleData()
static css::uno::Reference< css::i18n::XOrdinalSuffix > xOrdinalSuffix
const OUString & GetAddinPath() const
css::uno::Reference< css::sdbc::XResultSet > createCursor(const css::uno::Sequence< OUString > &rPropertyNames, ResultSetInclude eMode=INCLUDE_FOLDERS_AND_DOCUMENTS)
#define TOOLS_WARN_EXCEPTION(area, stream)
const LanguageTag & getLocale()
const LanguageTag & getLanguageTag()
Reference< XComponentContext > getProcessComponentContext()