From 781e8f8b73bef781b8930424a3b1a763207c2ac8 Mon Sep 17 00:00:00 2001 From: Christian Lippka Date: Thu, 16 Nov 2000 15:52:29 +0000 Subject: [PATCH] #80012# hide presentation styles in draw documents --- sd/source/ui/unoidl/unoobj.cxx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/sd/source/ui/unoidl/unoobj.cxx b/sd/source/ui/unoidl/unoobj.cxx index 5766059c769c..f5bd7c9e0687 100644 --- a/sd/source/ui/unoidl/unoobj.cxx +++ b/sd/source/ui/unoidl/unoobj.cxx @@ -2,9 +2,9 @@ * * $RCSfile: unoobj.cxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: cl $ $Date: 2000-11-08 11:19:18 $ + * last change: $Author: cl $ $Date: 2000-11-16 16:52:29 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -925,6 +925,11 @@ uno::Any SdXShape::GetStyleSheet() const throw( beans::UnknownPropertyException if(!pStyleSheet) return aAny; + // it is possible for shapes inside a draw to have a presentation style + // but we don't want this for the api + if( pStyleSheet->GetFamily() != SFX_STYLE_FAMILY_PARA && !mpModel->IsImpressDocument() ) + return aAny; + // style::XStyleFamiliesSupplier uno::Reference< container::XNameAccess > xFamilies( mpModel->getStyleFamilies() );