1 /************************************************************************* 2 * 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * Copyright 2008 by Sun Microsystems, Inc. 6 * 7 * OpenOffice.org - a multi-platform office productivity suite 8 * 9 * $RCSfile: graphicproperties.cxx,v $ 10 * $Revision: 1.12.76.1 $ 11 * 12 * This file is part of OpenOffice.org. 13 * 14 * OpenOffice.org is free software: you can redistribute it and/or modify 15 * it under the terms of the GNU Lesser General Public License version 3 16 * only, as published by the Free Software Foundation. 17 * 18 * OpenOffice.org is distributed in the hope that it will be useful, 19 * but WITHOUT ANY WARRANTY; without even the implied warranty of 20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21 * GNU Lesser General Public License version 3 for more details 22 * (a copy is included in the LICENSE file that accompanied this code). 23 * 24 * You should have received a copy of the GNU Lesser General Public License 25 * version 3 along with OpenOffice.org. If not, see 26 * <http://www.openoffice.org/license.html> 27 * for a copy of the LGPLv3 License. 28 * 29 ************************************************************************/ 30 31 // MARKER(update_precomp.py): autogen include statement, do not remove 32 #include "precompiled_svx.hxx" 33 34 #include <svx/sdr/properties/oleproperties.hxx> 35 #include <svl/itemset.hxx> 36 #include <svx/xfillit0.hxx> 37 #include <svx/xlineit0.hxx> 38 39 ////////////////////////////////////////////////////////////////////////////// 40 41 namespace sdr 42 { 43 namespace properties 44 { 45 OleProperties::OleProperties(SdrObject& rObj) 46 : RectangleProperties(rObj) 47 { 48 } 49 50 OleProperties::OleProperties(const OleProperties& rProps, SdrObject& rObj) 51 : RectangleProperties(rProps, rObj) 52 { 53 } 54 55 OleProperties::~OleProperties() 56 { 57 } 58 59 BaseProperties& OleProperties::Clone(SdrObject& rObj) const 60 { 61 return *(new OleProperties(*this, rObj)); 62 } 63 64 void OleProperties::ForceDefaultAttributes() 65 { 66 // call parent 67 RectangleProperties::ForceDefaultAttributes(); 68 69 // force ItemSet 70 GetObjectItemSet(); 71 72 // #i108221# 73 mpItemSet->Put( XFillStyleItem(XFILL_NONE) ); 74 mpItemSet->Put( XLineStyleItem(XLINE_NONE) ); 75 } 76 } // end of namespace properties 77 } // end of namespace sdr 78 79 ////////////////////////////////////////////////////////////////////////////// 80 // eof 81