summaryrefslogtreecommitdiff
path: root/desktop/source/app/cmdlineargs.cxx
diff options
context:
space:
mode:
authorMuthu Subramanian K <sumuthu@novell.com>2010-08-25 23:38:54 +0200
committerJan Holesovsky <kendy@suse.cz>2010-08-26 13:08:40 +0200
commit09877bede0535bd8b6131e5276177f2c0e44078d (patch)
tree22ed9861914711e99b091e15d87e2328b9cd8ce7 /desktop/source/app/cmdlineargs.cxx
parent5d7c99f0c7f5fcc147fe45f01efbc7b7607784e8 (diff)
desktop-infilter-option.diff: Force input filter during the batch conversion.OOO_BUILD_3_2_98_0
Diffstat (limited to 'desktop/source/app/cmdlineargs.cxx')
-rw-r--r--desktop/source/app/cmdlineargs.cxx12
1 files changed, 12 insertions, 0 deletions
diff --git a/desktop/source/app/cmdlineargs.cxx b/desktop/source/app/cmdlineargs.cxx
index 89348723a6..8c93f46dbc 100644
--- a/desktop/source/app/cmdlineargs.cxx
+++ b/desktop/source/app/cmdlineargs.cxx
@@ -539,6 +539,11 @@ sal_Bool CommandLineArgs::InterpretCommandLineParameter( const ::rtl::OUString&
return sal_True;
}
#endif
+ else if ( aArgStr.Copy(0, 10).EqualsIgnoreCaseAscii( "-infilter=" ))
+ {
+ AddStringListParam_Impl( CMD_STRINGPARAM_INFILTER, aArgStr.Copy( 10 ) );
+ return sal_True;
+ }
else if ( aArgStr.Copy(0, 8).EqualsIgnoreCaseAscii( "-accept=" ))
{
AddStringListParam_Impl( CMD_STRINGPARAM_ACCEPT, aArgStr.Copy( 8 ) );
@@ -936,6 +941,13 @@ sal_Bool CommandLineArgs::GetLanguage( ::rtl::OUString& rPara ) const
return m_aStrSetParams[ CMD_STRINGPARAM_LANGUAGE ];
}
+sal_Bool CommandLineArgs::GetInFilter( ::rtl::OUString& rPara ) const
+{
+ osl::MutexGuard aMutexGuard( m_aMutex );
+ rPara = m_aStrParams[ CMD_STRINGPARAM_INFILTER ];
+ return m_aStrSetParams[ CMD_STRINGPARAM_INFILTER ];
+}
+
sal_Bool CommandLineArgs::GetConversionList( ::rtl::OUString& rPara ) const
{
osl::MutexGuard aMutexGuard( m_aMutex );