summaryrefslogtreecommitdiff
path: root/svx/source/items
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2004-05-07 14:51:05 +0000
committerRüdiger Timm <rt@openoffice.org>2004-05-07 14:51:05 +0000
commit2d699afbf98c4a2918e99b4ab98723e59d78fc04 (patch)
treec993e9b4149454db0ccc33c9da08824802090206 /svx/source/items
parentda87b4078f54de7b281bd22693a25e434e9ae42a (diff)
INTEGRATION: CWS frmcontrols03 (1.52.200); FILE MERGED
2004/03/23 13:08:23 fs 1.52.200.3: RESYNC: (1.53-1.54); FILE MERGED 2004/02/19 15:04:28 fs 1.52.200.2: RESYNC: (1.52-1.53); FILE MERGED 2004/02/18 15:51:10 fs 1.52.200.1: #i24387# some more static versions of some methods
Diffstat (limited to 'svx/source/items')
-rw-r--r--svx/source/items/textitem.cxx28
1 files changed, 18 insertions, 10 deletions
diff --git a/svx/source/items/textitem.cxx b/svx/source/items/textitem.cxx
index bcce33d9bca9..4ec0c142a63c 100644
--- a/svx/source/items/textitem.cxx
+++ b/svx/source/items/textitem.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: textitem.cxx,v $
*
- * $Revision: 1.54 $
+ * $Revision: 1.55 $
*
- * last change: $Author: kz $ $Date: 2004-02-25 16:08:03 $
+ * last change: $Author: rt $ $Date: 2004-05-07 15:51:05 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -1163,7 +1163,7 @@ sal_Bool SvxFontHeightItem::PutValue( const uno::Any& rVal, BYTE nMemberId )
case MID_FONTHEIGHT_DIFF:
{
nHeight = lcl_GetRealHeight_Impl(nHeight, nProp, ePropUnit, bConvert);
- float fValue;
+ float fValue = 0;
if(!(rVal >>= fValue))
{
sal_Int32 nValue;
@@ -3669,12 +3669,11 @@ const SfxPoolItem* SvxScriptSetItem::GetItemOfScriptSet(
return pI;
}
-const SfxPoolItem* SvxScriptSetItem::GetItemOfScript( USHORT nScript ) const
+const SfxPoolItem* SvxScriptSetItem::GetItemOfScript( USHORT nSlotId, const SfxItemSet& rSet, USHORT nScript )
{
USHORT nLatin, nAsian, nComplex;
- GetWhichIds( nLatin, nAsian, nComplex );
+ GetWhichIds( nSlotId, rSet, nLatin, nAsian, nComplex );
- const SfxItemSet& rSet = GetItemSet();
const SfxPoolItem *pRet, *pAsn, *pCmplx;
switch( nScript )
{
@@ -3722,6 +3721,10 @@ const SfxPoolItem* SvxScriptSetItem::GetItemOfScript( USHORT nScript ) const
return pRet;
}
+const SfxPoolItem* SvxScriptSetItem::GetItemOfScript( USHORT nScript ) const
+{
+ return GetItemOfScript( Which(), GetItemSet(), nScript );
+}
void SvxScriptSetItem::PutItemForScriptType( USHORT nScriptType,
const SfxPoolItem& rItem )
@@ -3748,16 +3751,21 @@ void SvxScriptSetItem::PutItemForScriptType( USHORT nScriptType,
delete pCpy;
}
-void SvxScriptSetItem::GetWhichIds( USHORT& rLatin, USHORT& rAsian,
- USHORT& rComplex ) const
+void SvxScriptSetItem::GetWhichIds( USHORT nSlotId, const SfxItemSet& rSet, USHORT& rLatin, USHORT& rAsian, USHORT& rComplex )
{
- const SfxItemPool& rPool = *GetItemSet().GetPool();
- GetSlotIds( Which(), rLatin, rAsian, rComplex );
+ const SfxItemPool& rPool = *rSet.GetPool();
+ GetSlotIds( nSlotId, rLatin, rAsian, rComplex );
rLatin = rPool.GetWhich( rLatin );
rAsian = rPool.GetWhich( rAsian );
rComplex = rPool.GetWhich( rComplex );
}
+void SvxScriptSetItem::GetWhichIds( USHORT& rLatin, USHORT& rAsian,
+ USHORT& rComplex ) const
+{
+ GetWhichIds( Which(), GetItemSet(), rLatin, rAsian, rComplex );
+}
+
void SvxScriptSetItem::GetSlotIds( USHORT nSlotId, USHORT& rLatin,
USHORT& rAsian, USHORT& rComplex )
{