summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2008-04-02 08:54:00 +0000
committerKurt Zenker <kz@openoffice.org>2008-04-02 08:54:00 +0000
commitcf939ca11c12b54c9520b9f28f0e9051cfe0e0ad (patch)
tree97b40f96abac21f13abdb7c521b9c9a8d9ae1cfd
parent69dbb2e3351c7f8362783b981a6d2b58118c2668 (diff)
INTEGRATION: CWS impress139 (1.17.324); FILE MERGED
2008/03/13 12:18:00 cl 1.17.324.1: #i82439# enabled shadow tabpage for only line shapes
-rw-r--r--svx/source/dialog/tpshadow.cxx19
1 files changed, 16 insertions, 3 deletions
diff --git a/svx/source/dialog/tpshadow.cxx b/svx/source/dialog/tpshadow.cxx
index bad95f9b7c93..c92442362f87 100644
--- a/svx/source/dialog/tpshadow.cxx
+++ b/svx/source/dialog/tpshadow.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: tpshadow.cxx,v $
*
- * $Revision: 1.17 $
+ * $Revision: 1.18 $
*
- * last change: $Author: hr $ $Date: 2007-06-27 17:50:10 $
+ * last change: $Author: kz $ $Date: 2008-04-02 09:54:00 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -68,6 +68,7 @@
#include "cuitabarea.hxx"
#include <svx/dialmgr.hxx>
#include "dlgutil.hxx"
+#include <cuitabline.hxx>
#ifndef _SVX_XLINEIT0_HXX //autogen
#include <svx/xlineit0.hxx>
@@ -252,7 +253,19 @@ void SvxShadowTabPage::ActivatePage( const SfxItemSet& rSet )
*pnColorTableState & CT_MODIFIED )
{
if( *pnColorTableState & CT_CHANGED )
- pColorTab = ( (SvxAreaTabDialog*) DLGWIN )->GetNewColorTable();
+ {
+ SvxAreaTabDialog* pArea = dynamic_cast< SvxAreaTabDialog* >( DLGWIN );
+ if( pArea )
+ {
+ pColorTab = pArea->GetNewColorTable();
+ }
+ else
+ {
+ SvxLineTabDialog* pLine = dynamic_cast< SvxLineTabDialog* >( DLGWIN );
+ if( pLine )
+ pColorTab = pLine->GetNewColorTable();
+ }
+ }
// aLbShadowColor
nPos = aLbShadowColor.GetSelectEntryPos();