summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Brauer <mib@openoffice.org>2001-01-15 10:28:36 +0000
committerMichael Brauer <mib@openoffice.org>2001-01-15 10:28:36 +0000
commit536cdc6e0af7be88b40b2fd85865de43b10a6052 (patch)
tree9ce06259da7c18f546c814a6dbe83d240f9489e2
parentd9a476487f8371de9401919bc7de94024c96ddf8 (diff)
#81708#: new frame size properties and XML attributes
-rw-r--r--sw/source/core/layout/atrfrm.cxx44
-rw-r--r--sw/source/core/unocore/unoframe.cxx34
-rw-r--r--sw/source/core/unocore/unoftn.cxx9
-rw-r--r--sw/source/core/unocore/unomap.cxx10
-rw-r--r--sw/source/core/unocore/unoprnms.cxx6
5 files changed, 80 insertions, 23 deletions
diff --git a/sw/source/core/layout/atrfrm.cxx b/sw/source/core/layout/atrfrm.cxx
index 2df5834ba300..c1c92c7b9abb 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.5 $
+ * $Revision: 1.6 $
*
- * last change: $Author: os $ $Date: 2000-11-08 13:28:27 $
+ * last change: $Author: mib $ $Date: 2001-01-15 11:27:20 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -447,17 +447,30 @@ BOOL SwFmtFrmSize::QueryValue( uno::Any& rVal, BYTE nMemberId ) const
}
break;
case MID_FRMSIZE_REL_HEIGHT:
- rVal <<= (sal_Int8)GetHeightPercent();
+ rVal <<= (sal_Int8)(GetHeightPercent() != 0xFF ? GetHeightPercent() : 0);
break;
case MID_FRMSIZE_REL_WIDTH:
- rVal <<= (sal_Int8)GetWidthPercent();
+ rVal <<= (sal_Int8)(GetWidthPercent() != 0xFF ? GetWidthPercent() : 0);
break;
case MID_FRMSIZE_IS_SYNC_REL_SIZE:
{
+ BOOL bTmp = (0xFF == GetHeightPercent()) ||
+ (0xFF == GetWidthPercent());
+ rVal.setValue(&bTmp, ::getBooleanCppuType());
+ }
+ break;
+ case MID_FRMSIZE_IS_SYNC_HEIGHT_TO_WIDTH:
+ {
BOOL bTmp = 0xFF == GetHeightPercent();
rVal.setValue(&bTmp, ::getBooleanCppuType());
}
break;
+ case MID_FRMSIZE_IS_SYNC_WIDTH_TO_HEIGHT:
+ {
+ BOOL bTmp = 0xFF == GetWidthPercent();
+ rVal.setValue(&bTmp, ::getBooleanCppuType());
+ }
+ break;
case MID_FRMSIZE_WIDTH :
rVal <<= (sal_Int32)TWIP_TO_MM100(aSize.Width());
break;
@@ -504,9 +517,9 @@ BOOL SwFmtFrmSize::PutValue( const uno::Any& rVal, BYTE nMemberId )
break;
case MID_FRMSIZE_REL_HEIGHT:
{
- sal_Int32 nSet;
+ sal_Int8 nSet;
rVal >>= nSet;
- if(nSet > 0 && nSet <= 100)
+ if(nSet >= 0 && nSet <= 100)
SetHeightPercent(nSet);
else
bRet = sal_False;
@@ -514,22 +527,31 @@ BOOL SwFmtFrmSize::PutValue( const uno::Any& rVal, BYTE nMemberId )
break;
case MID_FRMSIZE_REL_WIDTH:
{
- sal_Int32 nSet;
+ sal_Int8 nSet;
rVal >>= nSet;
- if(nSet > 0 && nSet <= 100)
+ if(nSet >= 0 && nSet <= 100)
SetWidthPercent(nSet);
else
bRet = sal_False;
}
break;
case MID_FRMSIZE_IS_SYNC_REL_SIZE:
+ case MID_FRMSIZE_IS_SYNC_HEIGHT_TO_WIDTH:
{
sal_Bool bSet = *(sal_Bool*)rVal.getValue();
if(bSet)
SetHeightPercent(0xff);
- else
- // 0xff kann so nicht abgeschaltet werden
- bRet = sal_False;
+ else if( 0xff == GetHeightPercent() )
+ SetHeightPercent( 0 );
+ }
+ break;
+ case MID_FRMSIZE_IS_SYNC_WIDTH_TO_HEIGHT:
+ {
+ sal_Bool bSet = *(sal_Bool*)rVal.getValue();
+ if(bSet)
+ SetWidthPercent(0xff);
+ else if( 0xff == GetWidthPercent() )
+ SetWidthPercent(0);
}
break;
case MID_FRMSIZE_WIDTH :
diff --git a/sw/source/core/unocore/unoframe.cxx b/sw/source/core/unocore/unoframe.cxx
index c3e36adb136a..2e4576b1ee58 100644
--- a/sw/source/core/unocore/unoframe.cxx
+++ b/sw/source/core/unocore/unoframe.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: unoframe.cxx,v $
*
- * $Revision: 1.27 $
+ * $Revision: 1.28 $
*
- * last change: $Author: os $ $Date: 2001-01-12 16:12:45 $
+ * last change: $Author: mib $ $Date: 2001-01-15 11:26:06 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -287,6 +287,8 @@ const SfxItemPropertyMap* GetFrameDescMap()
{ 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_PROTECTED) , RES_PROTECT, &::getBooleanCppuType(), PROPERTY_NONE, MID_PROTECT_SIZE },
{ SW_PROP_NAME(UNO_NAME_SIZE_RELATIVE), RES_FRM_SIZE, &::getBooleanCppuType() , PROPERTY_NONE, MID_FRMSIZE_IS_SYNC_REL_SIZE },
+ { SW_PROP_NAME(UNO_NAME_IS_SYNC_WIDTH_TO_HEIGHT), RES_FRM_SIZE, &::getBooleanCppuType() , PROPERTY_NONE, MID_FRMSIZE_IS_SYNC_WIDTH_TO_HEIGHT },
+ { SW_PROP_NAME(UNO_NAME_IS_SYNC_HEIGHT_TO_WIDTH), RES_FRM_SIZE, &::getBooleanCppuType() , PROPERTY_NONE, MID_FRMSIZE_IS_SYNC_HEIGHT_TO_WIDTH },
{ SW_PROP_NAME(UNO_NAME_SURROUND ) , RES_SURROUND, &::getCppuType((const sal_Int16*)0), PROPERTY_NONE, MID_SURROUND_SURROUNDTYPE },
{ SW_PROP_NAME(UNO_NAME_SURROUND_ANCHORONLY), RES_SURROUND, &::getBooleanCppuType(), PROPERTY_NONE, MID_SURROUND_ANCHORONLY },
{ SW_PROP_NAME(UNO_NAME_TEXT_COLUMNS), RES_COL, &::getCppuType((const uno::Reference<XTextColumns>*)0), PROPERTY_NONE, MID_COLUMNS},
@@ -311,7 +313,7 @@ const SfxItemPropertyMap* GetFrameDescMap()
{ SW_PROP_NAME(UNO_NAME_BOTTOM_BORDER_DISTANCE), RES_BOX, &::getCppuType((const sal_Int32*)0), 0, BOTTOM_BORDER_DISTANCE|CONVERT_TWIPS },
{0,0,0,0}
};
- #define FRM_PROP_COUNT 54
+ #define FRM_PROP_COUNT 56
return aFrameDescPropertyMap_Impl;
}
// unterscheidet sich von der Rahmenbeschreibung durch eine XTextPosition
@@ -352,6 +354,8 @@ const SfxItemPropertyMap* GetGraphicDescMap()
{ SW_PROP_NAME(UNO_NAME_SHADOW_FORMAT), RES_SHADOW, &::getCppuType((const table::ShadowFormat*)0), PROPERTY_NONE, 0},
{ 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 },
+ { SW_PROP_NAME(UNO_NAME_IS_SYNC_WIDTH_TO_HEIGHT), RES_FRM_SIZE, &::getBooleanCppuType() , PROPERTY_NONE, MID_FRMSIZE_IS_SYNC_WIDTH_TO_HEIGHT },
+ { SW_PROP_NAME(UNO_NAME_IS_SYNC_HEIGHT_TO_WIDTH), RES_FRM_SIZE, &::getBooleanCppuType() , PROPERTY_NONE, MID_FRMSIZE_IS_SYNC_HEIGHT_TO_WIDTH },
{ SW_PROP_NAME(UNO_NAME_SIZE_PROTECTED) , RES_PROTECT, &::getBooleanCppuType(), PROPERTY_NONE, MID_PROTECT_SIZE },
{ SW_PROP_NAME(UNO_NAME_SURROUND ) , RES_SURROUND, &::getCppuType((const sal_Int16*)0), PROPERTY_NONE, MID_SURROUND_SURROUNDTYPE },
{ SW_PROP_NAME(UNO_NAME_SURROUND_ANCHORONLY), RES_SURROUND, &::getBooleanCppuType(), PROPERTY_NONE, MID_SURROUND_ANCHORONLY },
@@ -390,7 +394,7 @@ const SfxItemPropertyMap* GetGraphicDescMap()
{ SW_PROP_NAME(UNO_NAME_Z_ORDER), FN_UNO_Z_ORDER, &::getCppuType((const sal_Int32*)0), PROPERTY_NONE, 0},
{0,0,0,0}
};
- #define GRPH_PROP_COUNT 69
+ #define GRPH_PROP_COUNT 71
return aGraphicDescPropertyMap_Impl;
}
@@ -657,6 +661,10 @@ sal_Bool BaseFrameProperties_Impl::FillBaseProperties(SfxItemSet& rSet)
GetProperty(C2S(UNO_NAME_RELATIVE_WIDTH), pRelW);
uno::Any* pSzRel = 0;
GetProperty(C2S(UNO_NAME_SIZE_RELATIVE), pSzRel);
+ uno::Any* pSyncWidth = 0;
+ GetProperty(C2S(UNO_NAME_IS_SYNC_WIDTH_TO_HEIGHT), pSyncWidth);
+ uno::Any* pSyncHeight = 0;
+ GetProperty(C2S(UNO_NAME_IS_SYNC_HEIGHT_TO_WIDTH), pSyncHeight);
uno::Any* pWidth = 0;
GetProperty(C2S(UNO_NAME_WIDTH), pWidth);
uno::Any* pHeight = 0;
@@ -665,7 +673,8 @@ sal_Bool BaseFrameProperties_Impl::FillBaseProperties(SfxItemSet& rSet)
GetProperty(C2S(UNO_NAME_SIZE), pSize);
uno::Any* pSizeType = 0;
GetProperty(C2S(UNO_NAME_SIZE_TYPE), pSizeType);
- if(pWidth || pHeight ||pRelH || pRelW || pSzRel || pSize ||pSizeType)
+ if( pWidth || pHeight ||pRelH || pRelW || pSzRel || pSize ||pSizeType ||
+ pSyncWidth || pSyncHeight )
{
SwFmtFrmSize aFrmSz;
if(pWidth)
@@ -678,6 +687,10 @@ sal_Bool BaseFrameProperties_Impl::FillBaseProperties(SfxItemSet& rSet)
bRet &= ((SfxPoolItem&)aFrmSz).PutValue(*pRelW, MID_FRMSIZE_REL_WIDTH);
if(pSzRel)
bRet &= ((SfxPoolItem&)aFrmSz).PutValue(*pSzRel, MID_FRMSIZE_IS_SYNC_REL_SIZE);
+ if(pSyncWidth)
+ bRet &= ((SfxPoolItem&)aFrmSz).PutValue(*pSyncWidth, MID_FRMSIZE_IS_SYNC_WIDTH_TO_HEIGHT);
+ if(pSyncHeight)
+ bRet &= ((SfxPoolItem&)aFrmSz).PutValue(*pSyncHeight, MID_FRMSIZE_IS_SYNC_HEIGHT_TO_WIDTH);
if(pSize)
bRet &= ((SfxPoolItem&)aFrmSz).PutValue(*pSize, MID_FRMSIZE_SIZE|CONVERT_TWIPS);
if(pSizeType)
@@ -2336,7 +2349,18 @@ uno::Reference<container::XNameReplace > SAL_CALL SwXTextFrame::getEvents()
{
return new SwFrameEventDescriptor( *this );
}
+/* -----------------------------10.01.01 13:27--------------------------------
+ ---------------------------------------------------------------------------*/
+sal_Int64 SAL_CALL SwXTextFrame::getSomething( const uno::Sequence< sal_Int8 >& rId )
+ throw(RuntimeException)
+{
+ sal_Int64 nRet = SwXFrame::getSomething( rId );
+ if( !nRet )
+ nRet = SwXText::getSomething( rId );
+
+ return nRet;
+}
/******************************************************************
* SwXTextGraphicObject
******************************************************************/
diff --git a/sw/source/core/unocore/unoftn.cxx b/sw/source/core/unocore/unoftn.cxx
index 08ae487614e8..2ffabb8c0864 100644
--- a/sw/source/core/unocore/unoftn.cxx
+++ b/sw/source/core/unocore/unoftn.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: unoftn.cxx,v $
*
- * $Revision: 1.5 $
+ * $Revision: 1.6 $
*
- * last change: $Author: os $ $Date: 2001-01-12 16:12:45 $
+ * last change: $Author: mib $ $Date: 2001-01-15 11:26:06 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -133,7 +133,7 @@ sal_Int64 SAL_CALL SwXFootnote::getSomething( const uno::Sequence< sal_Int8 >& r
{
return (sal_Int64)this;
}
- return 0;
+ return SwXText::getSomething( rId );
}
/* -----------------------------06.04.00 16:36--------------------------------
@@ -619,6 +619,9 @@ void SwXFootnote::removeVetoableChangeListener( const OUString& PropertyName,
/*------------------------------------------------------------------------
$Log: not supported by cvs2svn $
+ Revision 1.5 2001/01/12 16:12:45 os
+ new: Redline container
+
Revision 1.4 2000/10/23 08:45:59 os
syntax: ')'
diff --git a/sw/source/core/unocore/unomap.cxx b/sw/source/core/unocore/unomap.cxx
index b47a29480652..92f1aa23bce2 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.40 $
+ * $Revision: 1.41 $
*
- * last change: $Author: os $ $Date: 2001-01-12 16:12:45 $
+ * last change: $Author: mib $ $Date: 2001-01-15 11:26:06 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -635,6 +635,7 @@ void SwUnoPropertyMapProvider::Sort(sal_uInt16 nId)
{ SW_PROP_NAME(UNO_NAME_BACK_GRAPHIC_LOCATION ), RES_BACKGROUND, &::getCppuType((const style::GraphicLocation*)0), PROPERTY_NONE ,MID_GRAPHIC_POSITION}, \
{ SW_PROP_NAME(UNO_NAME_LEFT_MARGIN), RES_LR_SPACE, &::getCppuType((const sal_Int32*)0), PROPERTY_NONE, MID_L_MARGIN|CONVERT_TWIPS}, \
{ SW_PROP_NAME(UNO_NAME_RIGHT_MARGIN), RES_LR_SPACE, &::getCppuType((const sal_Int32*)0), PROPERTY_NONE, MID_R_MARGIN|CONVERT_TWIPS}, \
+ { 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_SIZE_TYPE), RES_FRM_SIZE, &::getCppuType((const sal_Int16*)0) , PROPERTY_NONE, MID_FRMSIZE_SIZE_TYPE }, \
{ SW_PROP_NAME(UNO_NAME_HORI_ORIENT ), RES_HORI_ORIENT, &::getCppuType((const sal_Int16*)0), PROPERTY_NONE ,MID_HORIORIENT_ORIENT }, \
@@ -654,6 +655,8 @@ void SwUnoPropertyMapProvider::Sort(sal_uInt16 nId)
{ 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_PROTECTED ), RES_PROTECT, &::getBooleanCppuType(), PROPERTY_NONE, MID_PROTECT_SIZE }, \
{ SW_PROP_NAME(UNO_NAME_SIZE_RELATIVE), RES_FRM_SIZE, &::getBooleanCppuType() , PROPERTY_NONE, MID_FRMSIZE_IS_SYNC_REL_SIZE }, \
+ { SW_PROP_NAME(UNO_NAME_IS_SYNC_WIDTH_TO_HEIGHT), RES_FRM_SIZE, &::getBooleanCppuType() , PROPERTY_NONE, MID_FRMSIZE_IS_SYNC_WIDTH_TO_HEIGHT }, \
+ { SW_PROP_NAME(UNO_NAME_IS_SYNC_HEIGHT_TO_WIDTH), RES_FRM_SIZE, &::getBooleanCppuType() , PROPERTY_NONE, MID_FRMSIZE_IS_SYNC_HEIGHT_TO_WIDTH }, \
{ SW_PROP_NAME(UNO_NAME_TEXT_WRAP), RES_SURROUND, &::getCppuType((const sal_Int16*)0), PROPERTY_NONE, MID_SURROUND_SURROUNDTYPE }, \
{ SW_PROP_NAME(UNO_NAME_SURROUND ), RES_SURROUND, &::getCppuType((const sal_Int16*)0), PROPERTY_NONE, MID_SURROUND_SURROUNDTYPE }, \
{ SW_PROP_NAME(UNO_NAME_SURROUND_ANCHORONLY), RES_SURROUND, &::getBooleanCppuType(), PROPERTY_NONE, MID_SURROUND_ANCHORONLY }, \
@@ -900,12 +903,15 @@ const SfxItemPropertyMap* SwUnoPropertyMapProvider::GetPropertyMap(sal_uInt16
{ 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_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_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 },
+ { SW_PROP_NAME(UNO_NAME_IS_SYNC_WIDTH_TO_HEIGHT), RES_FRM_SIZE, &::getBooleanCppuType() , PROPERTY_NONE, MID_FRMSIZE_IS_SYNC_WIDTH_TO_HEIGHT },
+ { SW_PROP_NAME(UNO_NAME_IS_SYNC_HEIGHT_TO_WIDTH), RES_FRM_SIZE, &::getBooleanCppuType() , PROPERTY_NONE, MID_FRMSIZE_IS_SYNC_HEIGHT_TO_WIDTH },
// { SW_PROP_NAME(UNO_NAME_WIDTH), RES_FRM_SIZE, &::getCppuType((const sal_Int32*)0) , PROPERTY_NONE, MID_FRMSIZE_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 },
diff --git a/sw/source/core/unocore/unoprnms.cxx b/sw/source/core/unocore/unoprnms.cxx
index 1ec643da0d2e..8689a07990c3 100644
--- a/sw/source/core/unocore/unoprnms.cxx
+++ b/sw/source/core/unocore/unoprnms.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: unoprnms.cxx,v $
*
- * $Revision: 1.34 $
+ * $Revision: 1.35 $
*
- * last change: $Author: os $ $Date: 2001-01-12 16:12:45 $
+ * last change: $Author: mib $ $Date: 2001-01-15 11:26:06 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -292,6 +292,8 @@ const SwPropNameLen __FAR_DATA UNO_NAME_SHOW_INDEX_MARK_BACKGROUND
const SwPropNameLen __FAR_DATA UNO_NAME_SHOW_FOOTNOTE_BACKGROUND (MAP_CHAR_LEN("ShowFootnoteBackground"));
const SwPropNameLen __FAR_DATA UNO_NAME_SHOW_TEXT_FIELD_BACKGROUND (MAP_CHAR_LEN("ShowTextFieldBackground"));
const SwPropNameLen __FAR_DATA UNO_NAME_SIZE_RELATIVE (MAP_CHAR_LEN("SizeRelative"));
+const SwPropNameLen __FAR_DATA UNO_NAME_IS_SYNC_WIDTH_TO_HEIGHT (MAP_CHAR_LEN("IsSyncWidthToHeight"));
+const SwPropNameLen __FAR_DATA UNO_NAME_IS_SYNC_HEIGHT_TO_WIDTH (MAP_CHAR_LEN("IsSyncHeightToWidth"));
const SwPropNameLen __FAR_DATA UNO_NAME_SIZE_PROTECTED (MAP_CHAR_LEN("SizeProtected"));
const SwPropNameLen __FAR_DATA UNO_NAME_SMOOTH_SCROLLING (MAP_CHAR_LEN("SmoothScrolling"));
const SwPropNameLen __FAR_DATA UNO_NAME_SOLID_MARK_HANDLES (MAP_CHAR_LEN("SolidMarkHandles"));