Kaydet (Commit) fd43267e authored tarafından Oliver Bolte's avatar Oliver Bolte

INTEGRATION: CWS sb59 (1.5.62); FILE MERGED

2006/08/03 13:51:52 cl 1.5.62.1: removed compiler warnings
üst d654cae7
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* *
* $RCSfile: optitems.cxx,v $ * $RCSfile: optitems.cxx,v $
* *
* $Revision: 1.6 $ * $Revision: 1.7 $
* *
* last change: $Author: obo $ $Date: 2006-09-17 05:29:29 $ * last change: $Author: obo $ $Date: 2006-10-12 13:00:31 $
* *
* 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.
...@@ -70,10 +70,10 @@ TYPEINIT1(SfxHyphenRegionItem, SfxPoolItem); ...@@ -70,10 +70,10 @@ TYPEINIT1(SfxHyphenRegionItem, SfxPoolItem);
SfxSpellCheckItem::SfxSpellCheckItem SfxSpellCheckItem::SfxSpellCheckItem
( (
Reference< XSpellChecker1 > &xChecker, Reference< XSpellChecker1 > &xChecker,
sal_uInt16 nWhich sal_uInt16 _nWhich
) : ) :
SfxPoolItem( nWhich ) SfxPoolItem( _nWhich )
{ {
xSpellCheck = xChecker; xSpellCheck = xChecker;
} }
...@@ -92,8 +92,8 @@ SfxSpellCheckItem::SfxSpellCheckItem( const SfxSpellCheckItem& rItem ) : ...@@ -92,8 +92,8 @@ SfxSpellCheckItem::SfxSpellCheckItem( const SfxSpellCheckItem& rItem ) :
SfxItemPresentation SfxSpellCheckItem::GetPresentation SfxItemPresentation SfxSpellCheckItem::GetPresentation
( (
SfxItemPresentation ePres, SfxItemPresentation ePres,
SfxMapUnit eCoreUnit, SfxMapUnit ,
SfxMapUnit ePresUnit, SfxMapUnit ,
String& rText, String& rText,
const IntlWrapper* const IntlWrapper*
) const ) const
...@@ -109,8 +109,9 @@ SfxItemPresentation SfxSpellCheckItem::GetPresentation ...@@ -109,8 +109,9 @@ SfxItemPresentation SfxSpellCheckItem::GetPresentation
{ {
return ePres; return ePres;
} }
default:
return SFX_ITEM_PRESENTATION_NONE;
} }
return SFX_ITEM_PRESENTATION_NONE;
} }
// ----------------------------------------------------------------------- // -----------------------------------------------------------------------
...@@ -170,8 +171,8 @@ SfxPoolItem* SfxHyphenRegionItem::Clone( SfxItemPool* ) const ...@@ -170,8 +171,8 @@ SfxPoolItem* SfxHyphenRegionItem::Clone( SfxItemPool* ) const
SfxItemPresentation SfxHyphenRegionItem::GetPresentation SfxItemPresentation SfxHyphenRegionItem::GetPresentation
( (
SfxItemPresentation ePres, SfxItemPresentation ePres,
SfxMapUnit eCoreUnit, SfxMapUnit ,
SfxMapUnit ePresUnit, SfxMapUnit ,
String& rText, String& rText,
const IntlWrapper* const IntlWrapper*
) const ) const
...@@ -192,19 +193,20 @@ SfxItemPresentation SfxHyphenRegionItem::GetPresentation ...@@ -192,19 +193,20 @@ SfxItemPresentation SfxHyphenRegionItem::GetPresentation
rText += String( ResId( RID_SVXITEMS_HYPHEN_MINTRAIL, DIALOG_MGR() ) ); rText += String( ResId( RID_SVXITEMS_HYPHEN_MINTRAIL, DIALOG_MGR() ) );
return ePres; return ePres;
} }
default:
return SFX_ITEM_PRESENTATION_NONE;
} }
return SFX_ITEM_PRESENTATION_NONE;
} }
// ----------------------------------------------------------------------- // -----------------------------------------------------------------------
SfxPoolItem* SfxHyphenRegionItem::Create(SvStream& rStrm, sal_uInt16 ) const SfxPoolItem* SfxHyphenRegionItem::Create(SvStream& rStrm, sal_uInt16 ) const
{ {
sal_uInt8 nMinLead, nMinTrail; sal_uInt8 _nMinLead, _nMinTrail;
rStrm >> nMinLead >> nMinTrail; rStrm >> _nMinLead >> _nMinTrail;
SfxHyphenRegionItem* pAttr = new SfxHyphenRegionItem( Which() ); SfxHyphenRegionItem* pAttr = new SfxHyphenRegionItem( Which() );
pAttr->GetMinLead() = nMinLead; pAttr->GetMinLead() = _nMinLead;
pAttr->GetMinTrail() = nMinTrail; pAttr->GetMinTrail() = _nMinTrail;
return pAttr; return pAttr;
} }
......
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