20#include <rtl/ustrbuf.hxx>
24#include <rtl/bootstrap.hxx>
25#include <officecfg/Office/Common.hxx>
34 static const OUString sGenerator = []()
37 if( !aResultOverride.isEmpty())
38 return aResultOverride;
40 OUStringBuffer aResult(128);
47 if ( !aValue.isEmpty() )
49 aResult.append( aValue.replace(
' ',
'_' ) +
"/" );
52 if ( !aValue.isEmpty() )
54 aResult.append( aValue.replace(
' ',
'_' ) );
57 if ( !aValue.isEmpty() )
59 aResult.append( aValue.replace(
' ',
'_' ) );
63 OUString os(
"$_OS" );
64 OUString arch(
"$_ARCH" );
65 ::rtl::Bootstrap::expandMacros(os);
66 ::rtl::Bootstrap::expandMacros(arch);
67 aResult.append(
"$" + os +
"_" + arch +
" " );
74 aResult.append(
"LibreOffice_project/" );
76 for( sal_Int32
i=0;
i < aBuildId.getLength();
i++ )
83 aResult.append(
'$' );
89 aResult.append(
'-' );
98 return aResult.makeStringAndClear();
static OUString getBuildIdData(OUString const &_sDefault)
retrieve the BUILDID information item; uses the given default, if not found
static OUString getProductVersion()
static OUString getProductExtension()
static OUString getProductName()
static OUString GetGeneratorString()
OUString get(TranslateId sContextAndId, const std::locale &loc)