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 )
74 Reference< sdbc::XResultSet > xResultSet;
78 xResultSet = aCnt.createCursor(
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!" );
128 uno::Sequence< OUString > aSuffixes =
xOrdinalSuffix->getOrdinalSuffix( nNumber,
130 if ( aSuffixes.hasElements() )
static OUString GetOrdinalSuffix(sal_Int32 nNumber)
Obtain the ordinal suffix for a number according to the system locale.
#define TOOLS_WARN_EXCEPTION(area, stream)
const LanguageTag & getLanguageTag()
const LanguageTag & getLocale()
OUString GetMainURL(DecodeMechanism eMechanism, rtl_TextEncoding eCharset=RTL_TEXTENCODING_UTF8) const
static SC_DLLPUBLIC const LocaleDataWrapper * getLocaleDataPtr()
Reference< XComponentContext > getProcessComponentContext()
const OUString & GetAddinPath() const
bool SetSmartURL(OUString const &rTheAbsURIRef, EncodeMechanism eMechanism=EncodeMechanism::WasEncoded, rtl_TextEncoding eCharset=RTL_TEXTENCODING_UTF8, FSysStyle eStyle=FSysStyle::Detect)
static css::uno::Reference< css::i18n::XOrdinalSuffix > xOrdinalSuffix