12#include <officecfg/Setup.hxx>
16#include <com/sun/star/lang/IllegalArgumentException.hpp>
40 std::shared_ptr<comphelper::ConfigurationChanges> batch(
42 officecfg::Setup::Product::ooSetupLastVersion::set(sSetupVersion, batch);
45 catch (css::lang::IllegalArgumentException&)
47 SAL_WARN(
"desktop.updater",
"Updating property ooSetupLastVersion to version "
49 <<
" failed (read-only property?)");
static std::shared_ptr< ConfigurationChanges > create()
static OUString getProductVersion()
#define SAL_WARN(area, stream)
OUString get(TranslateId sContextAndId, const std::locale &loc)
sal_Int32 toInt32(std::u16string_view str, sal_Int16 radix=10)
std::basic_string_view< charT, traits > getToken(std::basic_string_view< charT, traits > sv, charT delimiter, std::size_t &position)
static bool isProductVersionUpgraded(bool aUpdateVersion)
This method is called when there's a need to determine if the current version of LibreOffice has been...