diff options
Diffstat (limited to 'cui/source/dialogs/hyphen.cxx')
-rw-r--r-- | cui/source/dialogs/hyphen.cxx | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/cui/source/dialogs/hyphen.cxx b/cui/source/dialogs/hyphen.cxx index 7f9bede9aedc..45c438ea2fd5 100644 --- a/cui/source/dialogs/hyphen.cxx +++ b/cui/source/dialogs/hyphen.cxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -63,7 +63,7 @@ public: HyphenEdit_Impl( Window* pParent, const ResId& rResId ); protected: - virtual void KeyInput( const KeyEvent &rKEvt ); + virtual void KeyInput( const KeyEvent &rKEvt ); }; @@ -75,7 +75,7 @@ HyphenEdit_Impl::HyphenEdit_Impl( Window* pParent, const ResId& rResId ) : void HyphenEdit_Impl::KeyInput( const KeyEvent& rKEvt ) { -// sal_uInt16 nMod = rKEvt.GetKeyCode().GetModifier(); +// sal_uInt16 nMod = rKEvt.GetKeyCode().GetModifier(); sal_uInt16 nCode = rKEvt.GetKeyCode().GetCode(); switch ( nCode ) @@ -94,7 +94,7 @@ void HyphenEdit_Impl::KeyInput( const KeyEvent& rKEvt ) Edit::KeyInput(rKEvt); break; default: - Control::KeyInput( rKEvt ); // An den Dialog weiterleiten + Control::KeyInput( rKEvt ); // An den Dialog weiterleiten break; } } @@ -106,7 +106,7 @@ struct SvxHyphenWordDialog_Impl { SvxHyphenWordDialog * m_pDialog; // Window * m_pParent; - + FixedText aWordFT; HyphenEdit_Impl aWordEdit; ImageButton aLeftBtn; @@ -151,9 +151,9 @@ struct SvxHyphenWordDialog_Impl DECL_LINK( GetFocusHdl_Impl, Edit* ); - SvxHyphenWordDialog_Impl( + SvxHyphenWordDialog_Impl( SvxHyphenWordDialog * pDialog, - const String &rWord, + const String &rWord, LanguageType nLang, uno::Reference< linguistic2::XHyphenator > &xHyphen, SvxSpellWrapper* pWrapper ); @@ -161,9 +161,9 @@ struct SvxHyphenWordDialog_Impl }; -SvxHyphenWordDialog_Impl::SvxHyphenWordDialog_Impl( +SvxHyphenWordDialog_Impl::SvxHyphenWordDialog_Impl( SvxHyphenWordDialog * pDialog, - const String &rWord, + const String &rWord, LanguageType nLang, uno::Reference< linguistic2::XHyphenator > &xHyphen, SvxSpellWrapper* pWrapper ) : @@ -197,7 +197,7 @@ SvxHyphenWordDialog_Impl::SvxHyphenWordDialog_Impl( xHyphenator = xHyphen; pHyphWrapper = pWrapper; - uno::Reference< linguistic2::XHyphenatedWord > xHyphWord( pHyphWrapper ? + uno::Reference< linguistic2::XHyphenatedWord > xHyphWord( pHyphWrapper ? pHyphWrapper->GetLast() : NULL, uno::UNO_QUERY ); DBG_ASSERT( xHyphWord.is(), "hyphenation result missing" ); if (xHyphWord.is()) @@ -209,7 +209,7 @@ SvxHyphenWordDialog_Impl::SvxHyphenWordDialog_Impl( InitControls_Impl(); aWordEdit.GrabFocus(); - + aLeftBtn.SetClickHdl( LINK( this, SvxHyphenWordDialog_Impl, Left_Impl ) ); aRightBtn.SetClickHdl( LINK( this, SvxHyphenWordDialog_Impl, Right_Impl ) ); aOkBtn.SetClickHdl( LINK( this, SvxHyphenWordDialog_Impl, CutHdl_Impl ) ); @@ -219,11 +219,11 @@ SvxHyphenWordDialog_Impl::SvxHyphenWordDialog_Impl( aCancelBtn.SetClickHdl( LINK( this, SvxHyphenWordDialog_Impl, CancelHdl_Impl ) ); aWordEdit.SetGetFocusHdl( LINK( this, SvxHyphenWordDialog_Impl, GetFocusHdl_Impl ) ); } - + SvxHyphenWordDialog_Impl::~SvxHyphenWordDialog_Impl() { -} +} void SvxHyphenWordDialog_Impl::EnableLRBtn_Impl() @@ -264,7 +264,7 @@ String SvxHyphenWordDialog_Impl::EraseUnusableHyphens_Impl( // returns a String showing only those hyphen positions which will result // in a line break if hyphenation is done there // 1) we will need to discard all hyphenation positions at th end that - // will not result in a line break where the text to the left still fits + // will not result in a line break where the text to the left still fits // on the line. // 2) since as from OOo 3.2 '-' are part of a word an thus text like // 'multi-line-editor' is regarded as single word we also need to discard those @@ -272,11 +272,11 @@ String SvxHyphenWordDialog_Impl::EraseUnusableHyphens_Impl( // the rightmost valid hyphenation position according to 1) // // Example: - // If the possible hyphenation position in 'multi-line-editor' are to eb marked + // If the possible hyphenation position in 'multi-line-editor' are to eb marked // by '=' then the text will look like this 'mul=ti-line-ed=it=or'. // If now the first line is only large enough for 'multi-line-edi' we need to discard - // the last possible hyphnation point because of 1). The the right most valid - // hyphenation position is "ed=itor". The first '-' left of this position is + // the last possible hyphnation point because of 1). The the right most valid + // hyphenation position is "ed=itor". The first '-' left of this position is // "line-ed", thus because of 2) we now need to discard all possible hyphneation // positions to the left of that as well. Thus in the end leaving us with just // 'multi-line-ed=itor' as return value for this function. (Just one valid hyphenation @@ -516,7 +516,7 @@ IMPL_LINK( SvxHyphenWordDialog_Impl, HyphenateAllHdl_Impl, Button *, EMPTYARG /* uno::Reference< beans::XPropertySet > xProp( SvxGetLinguPropertySet() ); const rtl::OUString aName( rtl::OUString::createFromAscii( "IsHyphAuto" ) ); uno::Any aAny; - + aAny <<= sal_True; xProp->setPropertyValue( aName, aAny ); @@ -531,10 +531,10 @@ IMPL_LINK( SvxHyphenWordDialog_Impl, HyphenateAllHdl_Impl, Button *, EMPTYARG /* { (void) e; DBG_ASSERT( 0, "Hyphenate All failed" ); - } + } } return 0; -} +} IMPL_LINK( SvxHyphenWordDialog_Impl, DeleteHdl_Impl, Button *, EMPTYARG ) @@ -604,15 +604,15 @@ IMPL_LINK( SvxHyphenWordDialog_Impl, GetFocusHdl_Impl, Edit *, EMPTYARG ) return 0; } - + // class SvxHyphenWordDialog --------------------------------------------- -SvxHyphenWordDialog::SvxHyphenWordDialog( +SvxHyphenWordDialog::SvxHyphenWordDialog( const String &rWord, LanguageType nLang, Window* pParent, uno::Reference< linguistic2::XHyphenator > &xHyphen, SvxSpellWrapper* pWrapper ) : - + SfxModalDialog( pParent, CUI_RES( RID_SVXDLG_HYPHENATE ) ) { m_pImpl = std::auto_ptr< SvxHyphenWordDialog_Impl >( @@ -630,7 +630,7 @@ SvxHyphenWordDialog::SvxHyphenWordDialog( SvxHyphenWordDialog::~SvxHyphenWordDialog() { -} +} void SvxHyphenWordDialog::SetWindowTitle( LanguageType nLang ) |