summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2003-05-16 13:21:09 +0000
committerVladimir Glazounov <vg@openoffice.org>2003-05-16 13:21:09 +0000
commit6c42d9d6d2365a04b2ca9bb27754a8382ac3f2ce (patch)
tree8e5f74f7703b1d7a5b6b34956e097cd3f6d475d5
parent8723da970b46af275539704931e43c8f0c6d664b (diff)
INTEGRATION: CWS draw10 (1.17.22); FILE MERGED
2003/05/05 12:21:38 cl 1.17.22.3: RESYNC: (1.17-1.18); FILE MERGED 2003/04/30 12:11:08 lo 1.17.22.2: #109140# StartPresentation for mediadescriptor 2003/04/30 09:37:24 lo 1.17.22.1: #109140# -start for StartPresentation
-rw-r--r--desktop/source/app/cmdlineargs.cxx25
1 files changed, 23 insertions, 2 deletions
diff --git a/desktop/source/app/cmdlineargs.cxx b/desktop/source/app/cmdlineargs.cxx
index a1ae4d67bb1b..be6cb9e3b603 100644
--- a/desktop/source/app/cmdlineargs.cxx
+++ b/desktop/source/app/cmdlineargs.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: cmdlineargs.cxx,v $
*
- * $Revision: 1.18 $
+ * $Revision: 1.19 $
*
- * last change: $Author: rt $ $Date: 2003-04-24 13:35:12 $
+ * last change: $Author: vg $ $Date: 2003-05-16 14:21:09 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -150,6 +150,7 @@ void CommandLineArgs::ParseCommandLine_String( const ::rtl::OUString& aCmdLineSt
sal_Bool bPrintEvent = sal_False;
sal_Bool bOpenEvent = sal_True;
sal_Bool bViewEvent = sal_False;
+ sal_Bool bStartEvent = sal_False;
sal_Bool bPrintToEvent = sal_False;
sal_Bool bPrinterName = sal_False;
sal_Bool bForceOpenEvent = sal_False;
@@ -217,6 +218,17 @@ void CommandLineArgs::ParseCommandLine_String( const ::rtl::OUString& aCmdLineSt
bForceNewEvent = sal_False;
bForceOpenEvent = sal_False;
}
+ else if ( aArgStr.EqualsIgnoreCaseAscii( "-start" ))
+ {
+ // open in viewmode
+ bOpenEvent = sal_False;
+ bViewEvent = sal_False;
+ bStartEvent = sal_True;
+ bPrintEvent = sal_False;
+ bPrintToEvent = sal_False;
+ bForceNewEvent = sal_False;
+ bForceOpenEvent = sal_False;
+ }
}
else
{
@@ -233,6 +245,8 @@ void CommandLineArgs::ParseCommandLine_String( const ::rtl::OUString& aCmdLineSt
AddStringListParam_Impl( CMD_STRINGPARAM_OPENLIST, aArgStr );
else if ( bViewEvent )
AddStringListParam_Impl( CMD_STRINGPARAM_VIEWLIST, aArgStr );
+ else if ( bStartEvent )
+ AddStringListParam_Impl( CMD_STRINGPARAM_STARTLIST, aArgStr );
else if ( bPrintEvent )
AddStringListParam_Impl( CMD_STRINGPARAM_PRINTLIST, aArgStr );
else if ( bPrintToEvent )
@@ -643,6 +657,13 @@ sal_Bool CommandLineArgs::GetViewList( ::rtl::OUString& rPara) const
return m_aStrSetParams[ CMD_STRINGPARAM_VIEWLIST ];
}
+sal_Bool CommandLineArgs::GetStartList( ::rtl::OUString& rPara) const
+{
+ osl::MutexGuard aMutexGuard( m_aMutex );
+ rPara = m_aStrParams[ CMD_STRINGPARAM_STARTLIST ];
+ return m_aStrSetParams[ CMD_STRINGPARAM_STARTLIST ];
+}
+
sal_Bool CommandLineArgs::GetForceOpenList( ::rtl::OUString& rPara) const
{
osl::MutexGuard aMutexGuard( m_aMutex );