summaryrefslogtreecommitdiff
path: root/sw/source/core
diff options
context:
space:
mode:
authorOliver Specht <os@openoffice.org>2001-03-01 11:30:44 +0000
committerOliver Specht <os@openoffice.org>2001-03-01 11:30:44 +0000
commit6944164759d26d4c7ae1c5f017d8cbdf4ec9146f (patch)
treecc3d74b9a4d5c08c6c8b410395af847be4057bfc /sw/source/core
parent357f43f60907e9a0d9425ba18c66df473f75a1de (diff)
#84504# RelativeWidth/Height sal_Int8 -> sal_Int16
Diffstat (limited to 'sw/source/core')
-rw-r--r--sw/source/core/layout/atrfrm.cxx16
-rw-r--r--sw/source/core/unocore/unomap.cxx12
2 files changed, 14 insertions, 14 deletions
diff --git a/sw/source/core/layout/atrfrm.cxx b/sw/source/core/layout/atrfrm.cxx
index 657dbd200f05..55c700895a7c 100644
--- a/sw/source/core/layout/atrfrm.cxx
+++ b/sw/source/core/layout/atrfrm.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: atrfrm.cxx,v $
*
- * $Revision: 1.7 $
+ * $Revision: 1.8 $
*
- * last change: $Author: os $ $Date: 2001-02-23 12:45:21 $
+ * last change: $Author: os $ $Date: 2001-03-01 12:30:44 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -447,10 +447,10 @@ BOOL SwFmtFrmSize::QueryValue( uno::Any& rVal, BYTE nMemberId ) const
}
break;
case MID_FRMSIZE_REL_HEIGHT:
- rVal <<= (sal_Int8)(GetHeightPercent() != 0xFF ? GetHeightPercent() : 0);
+ rVal <<= (sal_Int16)(GetHeightPercent() != 0xFF ? GetHeightPercent() : 0);
break;
case MID_FRMSIZE_REL_WIDTH:
- rVal <<= (sal_Int8)(GetWidthPercent() != 0xFF ? GetWidthPercent() : 0);
+ rVal <<= (sal_Int16)(GetWidthPercent() != 0xFF ? GetWidthPercent() : 0);
break;
case MID_FRMSIZE_IS_SYNC_REL_SIZE:
{
@@ -517,20 +517,20 @@ BOOL SwFmtFrmSize::PutValue( const uno::Any& rVal, BYTE nMemberId )
break;
case MID_FRMSIZE_REL_HEIGHT:
{
- sal_Int8 nSet;
+ sal_Int16 nSet;
rVal >>= nSet;
if(nSet >= 0 && nSet <= 100)
- SetHeightPercent(nSet);
+ SetHeightPercent((BYTE)nSet);
else
bRet = sal_False;
}
break;
case MID_FRMSIZE_REL_WIDTH:
{
- sal_Int8 nSet;
+ sal_Int16 nSet;
rVal >>= nSet;
if(nSet >= 0 && nSet <= 100)
- SetWidthPercent(nSet);
+ SetWidthPercent((BYTE)nSet);
else
bRet = sal_False;
}
diff --git a/sw/source/core/unocore/unomap.cxx b/sw/source/core/unocore/unomap.cxx
index 0f0bce6226b0..2dabeb067d49 100644
--- a/sw/source/core/unocore/unomap.cxx
+++ b/sw/source/core/unocore/unomap.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: unomap.cxx,v $
*
- * $Revision: 1.53 $
+ * $Revision: 1.54 $
*
- * last change: $Author: dvo $ $Date: 2001-02-20 13:46:04 $
+ * last change: $Author: os $ $Date: 2001-03-01 12:29:53 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -659,8 +659,8 @@ void SwUnoPropertyMapProvider::Sort(sal_uInt16 nId)
{ SW_PROP_NAME(UNO_NAME_PAGE_TOGGLE), RES_HORI_ORIENT, &::getBooleanCppuType(), PROPERTY_NONE ,MID_HORIORIENT_PAGETOGGLE }, \
{ SW_PROP_NAME(UNO_NAME_POSITION_PROTECTED), RES_PROTECT, &::getBooleanCppuType(), PROPERTY_NONE, MID_PROTECT_POSITION}, \
{ SW_PROP_NAME(UNO_NAME_PRINT), RES_PRINT, &::getBooleanCppuType(), PROPERTY_NONE, 0}, \
- { SW_PROP_NAME(UNO_NAME_RELATIVE_HEIGHT), RES_FRM_SIZE, &::getCppuType((const sal_Int8*)0) , PROPERTY_NONE, MID_FRMSIZE_REL_HEIGHT }, \
- { SW_PROP_NAME(UNO_NAME_RELATIVE_WIDTH), RES_FRM_SIZE, &::getCppuType((const sal_Int8*)0) , PROPERTY_NONE, MID_FRMSIZE_REL_WIDTH }, \
+ { SW_PROP_NAME(UNO_NAME_RELATIVE_HEIGHT), RES_FRM_SIZE, &::getCppuType((const sal_Int16*)0) , PROPERTY_NONE, MID_FRMSIZE_REL_HEIGHT }, \
+ { SW_PROP_NAME(UNO_NAME_RELATIVE_WIDTH), RES_FRM_SIZE, &::getCppuType((const sal_Int16*)0) , PROPERTY_NONE, MID_FRMSIZE_REL_WIDTH }, \
{ SW_PROP_NAME(UNO_NAME_SHADOW_FORMAT), RES_SHADOW, &::getCppuType((const table::ShadowFormat*)0), PROPERTY_NONE, CONVERT_TWIPS}, \
{ SW_PROP_NAME(UNO_NAME_SERVER_MAP ), RES_URL, &::getBooleanCppuType(), PROPERTY_NONE ,MID_URL_SERVERMAP }, \
{ SW_PROP_NAME(UNO_NAME_SIZE), RES_FRM_SIZE, &::getCppuType((const awt::Size*)0), PROPERTY_NONE, MID_FRMSIZE_SIZE|CONVERT_TWIPS}, \
@@ -931,8 +931,8 @@ const SfxItemPropertyMap* SwUnoPropertyMapProvider::GetPropertyMap(sal_uInt16
{ SW_PROP_NAME(UNO_NAME_PRINT), RES_PRINT, &::getBooleanCppuType(), PROPERTY_NONE, 0},
{ SW_PROP_NAME(UNO_NAME_WIDTH), RES_FRM_SIZE, &::getCppuType((const sal_Int32*)0) , PROPERTY_NONE, MID_FRMSIZE_WIDTH|CONVERT_TWIPS },
{ SW_PROP_NAME(UNO_NAME_HEIGHT), RES_FRM_SIZE, &::getCppuType((const sal_Int32*)0) , PROPERTY_NONE, MID_FRMSIZE_HEIGHT|CONVERT_TWIPS },
- { SW_PROP_NAME(UNO_NAME_RELATIVE_HEIGHT), RES_FRM_SIZE, &::getCppuType((const sal_Int8*)0) , PROPERTY_NONE, MID_FRMSIZE_REL_HEIGHT },
- { SW_PROP_NAME(UNO_NAME_RELATIVE_WIDTH), RES_FRM_SIZE, &::getCppuType((const sal_Int8*)0) , PROPERTY_NONE, MID_FRMSIZE_REL_WIDTH },
+ { SW_PROP_NAME(UNO_NAME_RELATIVE_HEIGHT), RES_FRM_SIZE, &::getCppuType((const sal_Int16*)0) , PROPERTY_NONE, MID_FRMSIZE_REL_HEIGHT },
+ { SW_PROP_NAME(UNO_NAME_RELATIVE_WIDTH), RES_FRM_SIZE, &::getCppuType((const sal_Int16*)0) , PROPERTY_NONE, MID_FRMSIZE_REL_WIDTH },
{ SW_PROP_NAME(UNO_NAME_SIZE_TYPE), RES_FRM_SIZE, &::getCppuType((const sal_Int16*)0) , PROPERTY_NONE, MID_FRMSIZE_SIZE_TYPE },
{ SW_PROP_NAME(UNO_NAME_SIZE), RES_FRM_SIZE, &::getCppuType((const awt::Size*)0), PROPERTY_NONE, MID_FRMSIZE_SIZE|CONVERT_TWIPS},
{ SW_PROP_NAME(UNO_NAME_SIZE_RELATIVE), RES_FRM_SIZE, &::getBooleanCppuType() , PROPERTY_NONE, MID_FRMSIZE_IS_SYNC_REL_SIZE },