Kaydet (Commit) 03469f28 authored tarafından Jens-Heiner Rechtien's avatar Jens-Heiner Rechtien

INTEGRATION: CWS warnings01 (1.11.132); FILE MERGED

2006/04/20 14:49:36 cl 1.11.132.1: warning free code changes
üst f722a22d
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* *
* $RCSfile: hangulhanja.cxx,v $ * $RCSfile: hangulhanja.cxx,v $
* *
* $Revision: 1.11 $ * $Revision: 1.12 $
* *
* last change: $Author: rt $ $Date: 2005-11-08 09:13:44 $ * last change: $Author: hr $ $Date: 2006-06-19 15:11:47 $
* *
* The Contents of this file are made available subject to * The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1. * the terms of GNU Lesser General Public License Version 2.1.
...@@ -326,22 +326,22 @@ namespace svx ...@@ -326,22 +326,22 @@ namespace svx
sal_Int32 _nOptions, sal_Int32 _nOptions,
sal_Bool _bIsInteractive, sal_Bool _bIsInteractive,
HangulHanjaConversion* _pAntiImpl ) HangulHanjaConversion* _pAntiImpl )
:m_pUIParent( _pUIParent ) : m_pConversionDialog( NULL )
,m_pAntiImpl( _pAntiImpl ) , m_pUIParent( _pUIParent )
,m_pConversionDialog( NULL ) , m_xORB( _rxORB )
,m_nCurrentStartIndex( 0 ) , m_aSourceLocale( _rSourceLocale )
,m_nCurrentEndIndex( 0 ) , m_nSourceLang( SvxLocaleToLanguage( _rSourceLocale ) )
,m_nReplacementBaseIndex( 0 ) , m_nTargetLang( SvxLocaleToLanguage( _rTargetLocale ) )
,m_nCurrentConversionOption( TextConversionOption::NONE ) , m_pTargetFont( _pTargetFont )
,m_nCurrentConversionType( -1 ) // not yet known , m_bIsInteractive( _bIsInteractive )
,m_bTryBothDirections( sal_True ) , m_pAntiImpl( _pAntiImpl )
,m_xORB( _rxORB ) , m_nCurrentPortionLang( LANGUAGE_NONE )
,m_aSourceLocale( _rSourceLocale ) , m_nCurrentStartIndex( 0 )
,m_nSourceLang( SvxLocaleToLanguage( _rSourceLocale ) ) , m_nCurrentEndIndex( 0 )
,m_nTargetLang( SvxLocaleToLanguage( _rTargetLocale ) ) , m_nReplacementBaseIndex( 0 )
,m_nCurrentPortionLang( LANGUAGE_NONE ) , m_nCurrentConversionOption( TextConversionOption::NONE )
,m_pTargetFont( _pTargetFont ) , m_nCurrentConversionType( -1 ) // not yet known
,m_bIsInteractive( _bIsInteractive ) , m_bTryBothDirections( sal_True )
{ {
implReadOptionsFromConfiguration(); implReadOptionsFromConfiguration();
...@@ -525,9 +525,8 @@ namespace svx ...@@ -525,9 +525,8 @@ namespace svx
} }
} }
} }
catch( const Exception& e ) catch( const Exception& )
{ {
e; // make compiler happy
DBG_ERROR( "HangulHanjaConversion_Impl::implNextConvertibleUnit: caught an exception!" ); DBG_ERROR( "HangulHanjaConversion_Impl::implNextConvertibleUnit: caught an exception!" );
//!!! at least we want to move on in the text in order //!!! at least we want to move on in the text in order
...@@ -543,7 +542,6 @@ namespace svx ...@@ -543,7 +542,6 @@ namespace svx
m_aCurrentSuggestions.realloc( 0 ); m_aCurrentSuggestions.realloc( 0 );
// ask the TextConversion service for the next convertible piece of text // ask the TextConversion service for the next convertible piece of text
sal_Int32 nStartLookupAt = _nStartAt;
// get current values from dialog // get current values from dialog
if( m_eConvType == HHC::eConvHangulHanja && m_pConversionDialog ) if( m_eConvType == HHC::eConvHangulHanja && m_pConversionDialog )
...@@ -744,9 +742,8 @@ namespace svx ...@@ -744,9 +742,8 @@ namespace svx
} }
} }
} }
catch( const Exception& e ) catch( const Exception& )
{ {
e; // make compiler happy
DBG_ERROR( "HangulHanjaConversion_Impl::implGetConversionDirectionForCurrentPortion: caught an exception!" ); DBG_ERROR( "HangulHanjaConversion_Impl::implGetConversionDirectionForCurrentPortion: caught an exception!" );
} }
} }
...@@ -947,7 +944,7 @@ namespace svx ...@@ -947,7 +944,7 @@ namespace svx
} }
//------------------------------------------------------------------------- //-------------------------------------------------------------------------
IMPL_LINK( HangulHanjaConversion_Impl, OnOptionsChanged, void*, NOTINTERESTEDIN ) IMPL_LINK( HangulHanjaConversion_Impl, OnOptionsChanged, void*, EMPTYARG )
{ {
//options and dictionaries might have been changed //options and dictionaries might have been changed
//-> update our internal settings and the dialog //-> update our internal settings and the dialog
...@@ -957,7 +954,7 @@ namespace svx ...@@ -957,7 +954,7 @@ namespace svx
} }
//------------------------------------------------------------------------- //-------------------------------------------------------------------------
IMPL_LINK( HangulHanjaConversion_Impl, OnIgnore, void*, NOTINTERESTEDIN ) IMPL_LINK( HangulHanjaConversion_Impl, OnIgnore, void*, EMPTYARG )
{ {
// simply ignore, and proceed // simply ignore, and proceed
implProceed( sal_False ); implProceed( sal_False );
...@@ -965,7 +962,7 @@ namespace svx ...@@ -965,7 +962,7 @@ namespace svx
} }
//------------------------------------------------------------------------- //-------------------------------------------------------------------------
IMPL_LINK( HangulHanjaConversion_Impl, OnIgnoreAll, void*, NOTINTERESTEDIN ) IMPL_LINK( HangulHanjaConversion_Impl, OnIgnoreAll, void*, EMPTYARG )
{ {
DBG_ASSERT( m_pConversionDialog, "HangulHanjaConversion_Impl::OnIgnoreAll: no dialog! How this?" ); DBG_ASSERT( m_pConversionDialog, "HangulHanjaConversion_Impl::OnIgnoreAll: no dialog! How this?" );
...@@ -986,7 +983,7 @@ namespace svx ...@@ -986,7 +983,7 @@ namespace svx
} }
//------------------------------------------------------------------------- //-------------------------------------------------------------------------
IMPL_LINK( HangulHanjaConversion_Impl, OnChange, void*, NOTINTERESTEDIN ) IMPL_LINK( HangulHanjaConversion_Impl, OnChange, void*, EMPTYARG )
{ {
// change // change
DBG_ASSERT( m_pConversionDialog, "we should always have a dialog here!" ); DBG_ASSERT( m_pConversionDialog, "we should always have a dialog here!" );
...@@ -999,7 +996,7 @@ namespace svx ...@@ -999,7 +996,7 @@ namespace svx
} }
//------------------------------------------------------------------------- //-------------------------------------------------------------------------
IMPL_LINK( HangulHanjaConversion_Impl, OnChangeAll, void*, NOTINTERESTEDIN ) IMPL_LINK( HangulHanjaConversion_Impl, OnChangeAll, void*, EMPTYARG )
{ {
DBG_ASSERT( m_pConversionDialog, "HangulHanjaConversion_Impl::OnChangeAll: no dialog! How this?" ); DBG_ASSERT( m_pConversionDialog, "HangulHanjaConversion_Impl::OnChangeAll: no dialog! How this?" );
if ( m_pConversionDialog ) if ( m_pConversionDialog )
...@@ -1034,7 +1031,7 @@ namespace svx ...@@ -1034,7 +1031,7 @@ namespace svx
} }
//------------------------------------------------------------------------- //-------------------------------------------------------------------------
IMPL_LINK( HangulHanjaConversion_Impl, OnConversionTypeChanged, void*, NOTINTERESTEDIN ) IMPL_LINK( HangulHanjaConversion_Impl, OnConversionTypeChanged, void*, EMPTYARG )
{ {
DBG_ASSERT( m_pConversionDialog, "we should always have a dialog here!" ); DBG_ASSERT( m_pConversionDialog, "we should always have a dialog here!" );
if( m_pConversionDialog ) if( m_pConversionDialog )
...@@ -1043,7 +1040,7 @@ namespace svx ...@@ -1043,7 +1040,7 @@ namespace svx
} }
//------------------------------------------------------------------------- //-------------------------------------------------------------------------
IMPL_LINK( HangulHanjaConversion_Impl, OnFind, void*, NOTINTERESTEDIN ) IMPL_LINK( HangulHanjaConversion_Impl, OnFind, void*, EMPTYARG )
{ {
DBG_ASSERT( m_pConversionDialog, "HangulHanjaConversion_Impl::OnFind: where did this come from?" ); DBG_ASSERT( m_pConversionDialog, "HangulHanjaConversion_Impl::OnFind: where did this come from?" );
if ( m_pConversionDialog ) if ( m_pConversionDialog )
...@@ -1094,9 +1091,8 @@ namespace svx ...@@ -1094,9 +1091,8 @@ namespace svx
m_pConversionDialog->SetCurrentString( sNewOriginal, aSuggestions, false ); m_pConversionDialog->SetCurrentString( sNewOriginal, aSuggestions, false );
m_pConversionDialog->FocusSuggestion(); m_pConversionDialog->FocusSuggestion();
} }
catch( const Exception& e ) catch( const Exception& )
{ {
e; // make compiler happy
DBG_ERROR( "HangulHanjaConversion_Impl::OnFind: caught an exception!" ); DBG_ERROR( "HangulHanjaConversion_Impl::OnFind: caught an exception!" );
} }
} }
...@@ -1171,25 +1167,25 @@ namespace svx ...@@ -1171,25 +1167,25 @@ namespace svx
} }
//------------------------------------------------------------------------- //-------------------------------------------------------------------------
void HangulHanjaConversion::HandleNewUnit( const sal_Int32 _nStartIndex, const sal_Int32 _nEndIndex ) void HangulHanjaConversion::HandleNewUnit( const sal_Int32, const sal_Int32 )
{ {
// nothing to do, only derived classes need this. // nothing to do, only derived classes need this.
} }
//------------------------------------------------------------------------- //-------------------------------------------------------------------------
void HangulHanjaConversion::GetNextPortion( OUString& /* [out] */ _rNextPortion, LanguageType& /* [out] */ _rLangOfPortion, sal_Bool /* [in] */ _bAllowImplicitChangesForNotConvertibleText ) void HangulHanjaConversion::GetNextPortion( OUString&, LanguageType&, sal_Bool )
{ {
DBG_ERROR( "HangulHanjaConversion::GetNextPortion: to be overridden!" ); DBG_ERROR( "HangulHanjaConversion::GetNextPortion: to be overridden!" );
} }
//------------------------------------------------------------------------- //-------------------------------------------------------------------------
void HangulHanjaConversion::ReplaceUnit( void HangulHanjaConversion::ReplaceUnit(
const sal_Int32 _nUnitStart, const sal_Int32 _nUnitEnd, const sal_Int32, const sal_Int32,
const ::rtl::OUString& _rOrigText, const ::rtl::OUString&,
const OUString& _rReplaceWith, const OUString&,
const ::com::sun::star::uno::Sequence< sal_Int32 > &_rOffsets, const ::com::sun::star::uno::Sequence< sal_Int32 > &,
ReplacementAction _eAction, ReplacementAction,
LanguageType *pNewUnitLanguage ) LanguageType * )
{ {
DBG_ERROR( "HangulHanjaConversion::ReplaceUnit: to be overridden!" ); DBG_ERROR( "HangulHanjaConversion::ReplaceUnit: to be overridden!" );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment