24#include <com/sun/star/beans/Optional.hpp>
25#include <com/sun/star/deployment/XPackage.hpp>
26#include <com/sun/star/uno/Reference.hxx>
27#include <osl/diagnose.h>
28#include <rtl/ustring.hxx>
35 ::std::optional< OUString >
const & optional,
36 std::u16string_view fileName)
42 css::uno::Reference< css::deployment::XPackage >
const &
package)
45 css::beans::Optional< OUString > id(
package->getIdentifier());
51 return OUString::Concat(
"org.openoffice.legacy.") + fileName;
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC OUString generateIdentifier(::std::optional< OUString > const &optional, std::u16string_view fileName)
Generates an identifier from an optional identifier.
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC OUString generateLegacyIdentifier(std::u16string_view fileName)
Generates a legacy identifier based on a file name.
DESKTOP_DEPLOYMENTMISC_DLLPUBLIC OUString getIdentifier(css::uno::Reference< css::deployment::XPackage > const &package)
Gets the identifier of a package.