summaryrefslogtreecommitdiff
path: root/sc/source/ui
diff options
context:
space:
mode:
authorMuthu Subramanian K <sumuthu@novell.com>2010-10-15 15:23:40 +0530
committerMuthu Subramanian K <sumuthu@novell.com>2010-10-16 21:45:43 +0530
commitfb67b98f1a3398ef0ddab080e5098e4c4cb50162 (patch)
tree244654a09bd1f4ae21d8488974c0b06d39bc86e5 /sc/source/ui
parent56e760bc1b20fc695b0c428391d26d24e2196839 (diff)
UNO APIs for size and moveProtect of notes.
Diffstat (limited to 'sc/source/ui')
-rw-r--r--sc/source/ui/unoobj/shapeuno.cxx17
1 files changed, 17 insertions, 0 deletions
diff --git a/sc/source/ui/unoobj/shapeuno.cxx b/sc/source/ui/unoobj/shapeuno.cxx
index a5b8dcba36c4..eafaf69df2f1 100644
--- a/sc/source/ui/unoobj/shapeuno.cxx
+++ b/sc/source/ui/unoobj/shapeuno.cxx
@@ -71,6 +71,7 @@ const SfxItemPropertyMapEntry* lcl_GetShapeMap()
{MAP_CHAR_LEN(SC_UNONAME_HORIPOS), 0, &getCppuType((sal_Int32*)0), 0, 0 },
{MAP_CHAR_LEN(SC_UNONAME_IMAGEMAP), 0, &getCppuType((uno::Reference<container::XIndexContainer>*)0), 0, 0 },
{MAP_CHAR_LEN(SC_UNONAME_VERTPOS), 0, &getCppuType((sal_Int32*)0), 0, 0 },
+ {MAP_CHAR_LEN(SC_UNONAME_MOVEPROTECT), 0, &getCppuType((sal_Bool*)0), 0, 0 },
// #i66550 HLINK_FOR_SHAPES
{MAP_CHAR_LEN(SC_UNONAME_HYPERLINK), 0, &getCppuType((rtl::OUString*)0), 0, 0 },
{0,0,0,0,0,0}
@@ -653,6 +654,15 @@ void SAL_CALL ScShapeObj::setPropertyValue(
if ( ( aValue >>= sHlink ) && pInfo )
pInfo->SetHlink( sHlink );
}
+ else if ( aNameString.EqualsAscii( SC_UNONAME_MOVEPROTECT ) )
+ {
+ if( SdrObject* pObj = this->GetSdrObject() )
+ {
+ sal_Bool aProt = false;
+ if( aValue >>= aProt )
+ pObj->SetMoveProtect( aProt );
+ }
+ }
else
{
GetShapePropertySet();
@@ -841,6 +851,13 @@ uno::Any SAL_CALL ScShapeObj::getPropertyValue( const rtl::OUString& aPropertyNa
sHlink = pInfo->GetHlink();
aAny <<= sHlink;
}
+ else if ( aNameString.EqualsAscii( SC_UNONAME_MOVEPROTECT ) )
+ {
+ sal_Bool aProt = false;
+ if ( SdrObject* pObj = this->GetSdrObject() )
+ aProt = pObj->IsMoveProtect();
+ aAny <<= aProt;
+ }
else
{
GetShapePropertySet();