From 8ac6b51cc484a36bfd789588a03cbf8e978e4236 Mon Sep 17 00:00:00 2001 From: Samuel Mehrbrodt Date: Fri, 7 Oct 2016 18:19:03 +0200 Subject: safemode: Add command line option Change-Id: I081cc6b4d61be4541a3bdcf475385b5ce0f59cda --- desktop/source/app/cmdlineargs.cxx | 5 +++++ desktop/source/app/cmdlineargs.hxx | 2 ++ desktop/source/app/cmdlinehelp.cxx | 2 ++ 3 files changed, 9 insertions(+) (limited to 'desktop') diff --git a/desktop/source/app/cmdlineargs.cxx b/desktop/source/app/cmdlineargs.cxx index 0ddc29ac92ee..41d3512a20a1 100644 --- a/desktop/source/app/cmdlineargs.cxx +++ b/desktop/source/app/cmdlineargs.cxx @@ -242,6 +242,10 @@ void CommandLineArgs::ParseCommandLine_Impl( Supplier& supplier ) { m_eventtesting = true; } + else if ( oArg == "safe-mode" ) + { + m_safemode = true; + } else if ( oArg == "cat" ) { m_textcat = true; @@ -613,6 +617,7 @@ void CommandLineArgs::InitParamValues() m_bEmpty = true; m_bDocumentArgs = false; m_textcat = false; + m_safemode = false; } bool CommandLineArgs::HasModuleParam() const diff --git a/desktop/source/app/cmdlineargs.hxx b/desktop/source/app/cmdlineargs.hxx index 94648558ad94..c8f071198ec3 100644 --- a/desktop/source/app/cmdlineargs.hxx +++ b/desktop/source/app/cmdlineargs.hxx @@ -92,6 +92,7 @@ class CommandLineArgs bool HasModuleParam() const; bool WantsToLoadDocument() const { return m_bDocumentArgs;} bool IsTextCat() const { return m_textcat;} + bool IsSafeMode() const { return m_safemode; } const OUString& GetUnknown() const { return m_unknown;} @@ -155,6 +156,7 @@ class CommandLineArgs bool m_version; bool m_splashpipe; bool m_textcat; + bool m_safemode; OUString m_unknown; diff --git a/desktop/source/app/cmdlinehelp.cxx b/desktop/source/app/cmdlinehelp.cxx index 15377473bae2..a674b5e156d1 100644 --- a/desktop/source/app/cmdlinehelp.cxx +++ b/desktop/source/app/cmdlinehelp.cxx @@ -55,6 +55,7 @@ namespace desktop "--invisible \n"\ "--norestore \n"\ "--quickstart \n"\ + "--safe-mode \n"\ "--nologo \n"\ "--nolockcheck \n"\ "--nodefault \n"\ @@ -76,6 +77,7 @@ namespace desktop "no startup screen, no default document and no UI.\n"\ "suppress restart/restore after fatal errors.\n"\ "starts the quickstart service\n"\ + "starts the safe mode\n"\ "don't show startup screen.\n"\ "don't check for remote instances using the installation\n"\ "don't start with an empty document\n"\ -- cgit