summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2016-10-07 18:19:03 +0200
committerSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2016-10-10 09:31:27 +0200
commit8ac6b51cc484a36bfd789588a03cbf8e978e4236 (patch)
tree266d534201ce42ad77aa1edeb98191a030614864
parent9ad88a1e0fb2c68eedee37d093518960dd8615b7 (diff)
safemode: Add command line option
Change-Id: I081cc6b4d61be4541a3bdcf475385b5ce0f59cda
-rw-r--r--desktop/source/app/cmdlineargs.cxx5
-rw-r--r--desktop/source/app/cmdlineargs.hxx2
-rw-r--r--desktop/source/app/cmdlinehelp.cxx2
3 files changed, 9 insertions, 0 deletions
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"\