Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- lera@infineco:~/projects/LibreOffice$ git diff master
- diff --git a/desktop/source/app/app.cxx b/desktop/source/app/app.cxx
- index 2291aeb171f4..2201e87040c4 100644
- --- a/desktop/source/app/app.cxx
- +++ b/desktop/source/app/app.cxx
- @@ -2180,6 +2180,8 @@ void Desktop::OpenDefault()
- aName = aOpt.GetFactoryEmptyDocumentURL( SvtModuleOptions::EFactory::IMPRESS );
- else if ( rArgs.IsBase() && aOpt.IsModuleInstalled( SvtModuleOptions::EModule::DATABASE ) )
- aName = aOpt.GetFactoryEmptyDocumentURL( SvtModuleOptions::EFactory::DATABASE );
- + else if (rArgs.IsBasicIDE() && aOpt.IsModuleInstalled(SvtModuleOptions::EModule::BASIC))
- + aName = aOpt.GetFactoryEmptyDocumentURL(SvtModuleOptions::EFactory::BASIC);
- else if ( rArgs.IsDraw() && aOpt.IsModuleInstalled( SvtModuleOptions::EModule::DRAW ) )
- aName = aOpt.GetFactoryEmptyDocumentURL( SvtModuleOptions::EFactory::DRAW );
- else if ( rArgs.IsMath() && aOpt.IsModuleInstalled( SvtModuleOptions::EModule::MATH ) )
- @@ -2436,6 +2438,8 @@ void Desktop::OpenSplashScreen()
- aAppName = "impress";
- else if ( rCmdLine.IsBase() )
- aAppName = "base";
- + else if (rCmdLine.IsBase())
- + aAppName = "basic";
- else if ( rCmdLine.IsGlobal() )
- aAppName = "global";
- else if ( rCmdLine.IsMath() )
- diff --git a/desktop/source/app/cmdlineargs.cxx b/desktop/source/app/cmdlineargs.cxx
- index 52f96dd84d88..be327e24c52b 100644
- --- a/desktop/source/app/cmdlineargs.cxx
- +++ b/desktop/source/app/cmdlineargs.cxx
- @@ -492,6 +492,11 @@ void CommandLineArgs::ParseCommandLine_Impl( Supplier& supplier )
- m_base = true;
- m_bDocumentArgs = true;
- }
- + else if ( oArg == "basicide" )
- + {
- + m_bBasicIDE = true;
- + m_bDocumentArgs = true;
- + }
- else if ( oArg == "global" )
- {
- m_global = true;
- @@ -714,6 +719,7 @@ void CommandLineArgs::InitParamValues()
- m_math = false;
- m_web = false;
- m_base = false;
- + m_bBasicIDE = false;
- m_helpwriter = false;
- m_helpcalc = false;
- m_helpdraw = false;
- @@ -733,7 +739,7 @@ void CommandLineArgs::InitParamValues()
- bool CommandLineArgs::HasModuleParam() const
- {
- return m_writer || m_calc || m_draw || m_impress || m_global || m_math
- - || m_web || m_base;
- + || m_web || m_base || m_bBasicIDE;
- }
- std::vector< OUString > CommandLineArgs::GetOpenList() const
- diff --git a/desktop/source/app/cmdlineargs.hxx b/desktop/source/app/cmdlineargs.hxx
- index 94600ed40972..0852b99b6878 100644
- --- a/desktop/source/app/cmdlineargs.hxx
- +++ b/desktop/source/app/cmdlineargs.hxx
- @@ -86,6 +86,7 @@ class CommandLineArgs
- bool IsDraw() const { return m_draw;}
- bool IsImpress() const { return m_impress;}
- bool IsBase() const { return m_base;}
- + bool IsBasicIDE() const { return m_bBasicIDE;}
- bool IsGlobal() const { return m_global;}
- bool IsMath() const { return m_math;}
- bool IsWeb() const { return m_web;}
- @@ -149,6 +150,7 @@ class CommandLineArgs
- bool m_math;
- bool m_web;
- bool m_base;
- + bool m_bBasicIDE;
- bool m_helpwriter;
- bool m_helpcalc;
- bool m_helpdraw;
- diff --git a/unotools/source/config/moduleoptions.cxx b/unotools/source/config/moduleoptions.cxx
- index 7bfcede60714..8603206bd3e9 100644
- --- a/unotools/source/config/moduleoptions.cxx
- +++ b/unotools/source/config/moduleoptions.cxx
- @@ -1139,6 +1139,8 @@ OUString SvtModuleOptions::GetDefaultModuleName() const
- aModule = GetFactoryShortName(SvtModuleOptions::EFactory::WRITERGLOBAL);
- else if (m_pImpl->IsModuleInstalled(SvtModuleOptions::EModule::MATH))
- aModule = GetFactoryShortName(SvtModuleOptions::EFactory::MATH);
- + else if (m_pImpl->IsModuleInstalled(SvtModuleOptions::EModule::BASIC))
- + aModule = GetFactoryShortName(SvtModuleOptions::EFactory::BASIC);
- return aModule;
- }
- lera@infineco:~/projects/LibreOffice$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement