12#include <com/sun/star/uno/Reference.hxx>
13#include <com/sun/star/uri/UriReferenceFactory.hpp>
14#include <com/sun/star/uri/XVndSunStarExpandUrlReference.hpp>
15#include <com/sun/star/util/theMacroExpander.hpp>
17#include <rtl/ustring.hxx>
22 css::uno::Reference<css::uno::XComponentContext>
const & context,
25 css::uno::Reference<css::uri::XVndSunStarExpandUrlReference> ref(
26 css::uri::UriReferenceFactory::create(context)->
parse(uri),
29 ? ref->expand(css::util::theMacroExpander::get(context)) : uri;
COMPHELPER_DLLPUBLIC OUString getExpandedUri(css::uno::Reference< css::uno::XComponentContext > const &context, OUString const &uri)
A helper function to expand vnd.sun.star.expand URLs.
bool parse(OUString const &uri, SourceProviderScannerData *data)