summaryrefslogtreecommitdiff
path: root/sd/source/ui/unoidl
diff options
context:
space:
mode:
authorDona Hertel <cocofan@mailbolt.com>2011-04-13 17:28:39 -0700
committerThorsten Behrens <tbehrens@novell.com>2011-04-14 11:36:04 +0200
commitf7ccecc999b44bb3e077c6205a0719e55e8784ff (patch)
treed4c0269a8fa50f8175a9f5cdd3a27be32d5c7b64 /sd/source/ui/unoidl
parent5cc66424b33285db9bee54b5fb0cc0b030b8ab7e (diff)
Easy Hack remove dead code and uncompiled code in 'sd' module
Diffstat (limited to 'sd/source/ui/unoidl')
-rw-r--r--sd/source/ui/unoidl/SdUnoOutlineView.cxx38
-rw-r--r--sd/source/ui/unoidl/unoobj.cxx59
2 files changed, 3 insertions, 94 deletions
diff --git a/sd/source/ui/unoidl/SdUnoOutlineView.cxx b/sd/source/ui/unoidl/SdUnoOutlineView.cxx
index 28ee0e1cd5ca..8756b4ace14f 100644
--- a/sd/source/ui/unoidl/SdUnoOutlineView.cxx
+++ b/sd/source/ui/unoidl/SdUnoOutlineView.cxx
@@ -149,44 +149,6 @@ Reference< drawing::XDrawPage > SAL_CALL SdUnoOutlineView::getCurrentPage (void)
return xPage;
}
-
-
-/*
-// Return sal_True, value change
-sal_Bool SdUnoOutlineView::convertFastPropertyValue (
- Any & rConvertedValue,
- Any & rOldValue,
- sal_Int32 nHandle,
- const Any& rValue)
- throw ( com::sun::star::lang::IllegalArgumentException)
-{
- sal_Bool bResult = sal_False;
-
- switch( nHandle )
- {
- case DrawController::PROPERTY_CURRENTPAGE:
- {
- Reference< drawing::XDrawPage > xOldPage( getCurrentPage() );
- Reference< drawing::XDrawPage > xNewPage;
- ::cppu::convertPropertyValue( xNewPage, rValue );
- if( xOldPage != xNewPage )
- {
- rConvertedValue <<= xNewPage;
- rOldValue <<= xOldPage;
- bResult = sal_True;
- }
- }
- break;
-
- default:
- break;
- }
-
- return bResult;
-}
-*/
-
-
void SdUnoOutlineView::setFastPropertyValue (
sal_Int32 nHandle,
const Any& rValue)
diff --git a/sd/source/ui/unoidl/unoobj.cxx b/sd/source/ui/unoidl/unoobj.cxx
index 35c31916b4c1..cd3e5a518027 100644
--- a/sd/source/ui/unoidl/unoobj.cxx
+++ b/sd/source/ui/unoidl/unoobj.cxx
@@ -544,17 +544,7 @@ void SAL_CALL SdXShape::setPropertyValue( const ::rtl::OUString& aPropertyName,
EffectMigration::SetAnimationSpeed( mpShape, eSpeed );
break;
}
-/* TODO?? case WID_ISANIMATION:
- {
-
- sal_Bool bIsAnimation;
- if(!(aValue >>= bIsAnimation))
- throw lang::IllegalArgumentException();
-
- pInfo->mbIsMovie = bIsAnimation;
- break;
- }
-*/
+// TODO: WID_ISANIMATION
case WID_BOOKMARK:
{
OUString aString;
@@ -568,11 +558,7 @@ void SAL_CALL SdXShape::setPropertyValue( const ::rtl::OUString& aPropertyName,
::cppu::any2enum< presentation::ClickAction >( pInfo->meClickAction, aValue);
break;
-/* todo?
- case WID_PLAYFULL:
- pInfo->mbPlayFull = ::cppu::any2bool(aValue);
- break;
-*/
+// TODO: WID_PLAYFULL:
case WID_SOUNDFILE:
{
OUString aString;
@@ -590,17 +576,6 @@ void SAL_CALL SdXShape::setPropertyValue( const ::rtl::OUString& aPropertyName,
EffectMigration::UpdateSoundEffect( mpShape, pInfo );
break;
}
-/*
- case WID_BLUESCREEN:
- {
- sal_Int32 nColor;
- if(!(aValue >>= nColor))
- throw lang::IllegalArgumentException();
-
- pInfo->maBlueScreen.SetColor( nColor );
- break;
- }
-*/
case WID_VERB:
{
sal_Int32 nVerb = 0;
@@ -656,36 +631,8 @@ void SAL_CALL SdXShape::setPropertyValue( const ::rtl::OUString& aPropertyName,
case WID_MASTERDEPEND:
SetMasterDepend( ::cppu::any2bool(aValue) );
break;
-/* todo
- case WID_ANIMPATH:
- {
- uno::Reference< drawing::XShape > xShape;
- aValue >>= xShape;
-
- SdrObject* pObj = NULL;
- if(xShape.is())
- pObj = GetSdrObjectFromXShape( xShape );
-
- if( pObj == NULL || !pObj->ISA( SdrPathObj ) )
- throw lang::IllegalArgumentException();
- pInfo->mpPathObj = (SdrPathObj*)pObj;
-
- SdDrawDocument* pDoc = mpModel?mpModel->GetDoc():NULL;
- if( pDoc )
- {
- pInfo = pDoc->GetAnimationInfo(pObj);
- if( pInfo == NULL )
- {
- pInfo = new SdAnimationInfo(pDoc);
- pObj->InsertUserData( pInfo );
- }
- pInfo->mbInvisibleInPresentation = sal_True;
- }
-
- break;
- }
-*/
+// TODO: WID_ANIMPATH
case WID_IMAGEMAP:
{
SdDrawDocument* pDoc = mpModel?mpModel->GetDoc():NULL;