xref: /AOO41X/main/xmloff/source/style/FillStyleContext.cxx (revision 8331a8d61704ca7ccfed7f25db72138cb240cd97)
163bba73cSAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
363bba73cSAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
463bba73cSAndrew Rist  * or more contributor license agreements.  See the NOTICE file
563bba73cSAndrew Rist  * distributed with this work for additional information
663bba73cSAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
763bba73cSAndrew Rist  * to you under the Apache License, Version 2.0 (the
863bba73cSAndrew Rist  * "License"); you may not use this file except in compliance
963bba73cSAndrew Rist  * with the License.  You may obtain a copy of the License at
10cdf0e10cSrcweir  *
1163bba73cSAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir  *
1363bba73cSAndrew Rist  * Unless required by applicable law or agreed to in writing,
1463bba73cSAndrew Rist  * software distributed under the License is distributed on an
1563bba73cSAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
1663bba73cSAndrew Rist  * KIND, either express or implied.  See the License for the
1763bba73cSAndrew Rist  * specific language governing permissions and limitations
1863bba73cSAndrew Rist  * under the License.
19cdf0e10cSrcweir  *
2063bba73cSAndrew Rist  *************************************************************/
2163bba73cSAndrew Rist 
2263bba73cSAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir // MARKER(update_precomp.py): autogen include statement, do not remove
25cdf0e10cSrcweir #include "precompiled_xmloff.hxx"
26cdf0e10cSrcweir #include <com/sun/star/container/XNameContainer.hpp>
27*8331a8d6SArrigo Marchiori #include <com/sun/star/document/XLinkAuthorizer.hpp>
28cdf0e10cSrcweir #include "FillStyleContext.hxx"
29cdf0e10cSrcweir #include <xmloff/xmlimp.hxx>
30cdf0e10cSrcweir #include "xmloff/GradientStyle.hxx"
31cdf0e10cSrcweir #include "xmloff/HatchStyle.hxx"
32cdf0e10cSrcweir #include "xmloff/ImageStyle.hxx"
33cdf0e10cSrcweir #include "TransGradientStyle.hxx"
34cdf0e10cSrcweir #include "xmloff/MarkerStyle.hxx"
35cdf0e10cSrcweir #include "xmloff/DashStyle.hxx"
36cdf0e10cSrcweir #include <xmloff/families.hxx>
37cdf0e10cSrcweir #include <xmloff/nmspmap.hxx>
38cdf0e10cSrcweir #include "xmloff/xmlnmspe.hxx"
39cdf0e10cSrcweir #include <xmloff/XMLBase64ImportContext.hxx>
40cdf0e10cSrcweir 
41cdf0e10cSrcweir using namespace ::com::sun::star;
42cdf0e10cSrcweir using ::rtl::OUString;
43cdf0e10cSrcweir using ::rtl::OUStringBuffer;
44cdf0e10cSrcweir 
45cdf0e10cSrcweir 
46cdf0e10cSrcweir //////////////////////////////////////////////////////////////////////////////
47cdf0e10cSrcweir //////////////////////////////////////////////////////////////////////////////
48cdf0e10cSrcweir 
49cdf0e10cSrcweir TYPEINIT1( XMLGradientStyleContext, SvXMLStyleContext );
50cdf0e10cSrcweir 
XMLGradientStyleContext(SvXMLImport & rImport,sal_uInt16 nPrfx,const OUString & rLName,const uno::Reference<xml::sax::XAttributeList> & xAttrList)51cdf0e10cSrcweir XMLGradientStyleContext::XMLGradientStyleContext( SvXMLImport& rImport, sal_uInt16 nPrfx,
52cdf0e10cSrcweir 										      const OUString& rLName,
53cdf0e10cSrcweir 											  const uno::Reference< xml::sax::XAttributeList >& xAttrList)
54cdf0e10cSrcweir :	SvXMLStyleContext(rImport, nPrfx, rLName, xAttrList)
55cdf0e10cSrcweir {
56cdf0e10cSrcweir 	// set Family
57cdf0e10cSrcweir //	SetFamily( XML_STYLE_FAMILY_FILLSTYLE_GRADIENT_ID );
58cdf0e10cSrcweir 
59cdf0e10cSrcweir 	// start import
60cdf0e10cSrcweir 	XMLGradientStyleImport aGradientStyle( GetImport() );
61cdf0e10cSrcweir 	aGradientStyle.importXML( xAttrList, maAny, maStrName );
62cdf0e10cSrcweir }
63cdf0e10cSrcweir 
~XMLGradientStyleContext()64cdf0e10cSrcweir XMLGradientStyleContext::~XMLGradientStyleContext()
65cdf0e10cSrcweir {
66cdf0e10cSrcweir }
67cdf0e10cSrcweir 
EndElement()68cdf0e10cSrcweir void XMLGradientStyleContext::EndElement()
69cdf0e10cSrcweir {
70cdf0e10cSrcweir 	uno::Reference< container::XNameContainer > xGradient( GetImport().GetGradientHelper() );
71cdf0e10cSrcweir 
72cdf0e10cSrcweir 	try
73cdf0e10cSrcweir 	{
74cdf0e10cSrcweir 		if(xGradient.is())
75cdf0e10cSrcweir 		{
76cdf0e10cSrcweir 			if( xGradient->hasByName( maStrName ) )
77cdf0e10cSrcweir 			{
78cdf0e10cSrcweir 				xGradient->replaceByName( maStrName, maAny );
79cdf0e10cSrcweir 			}
80cdf0e10cSrcweir 			else
81cdf0e10cSrcweir 			{
82cdf0e10cSrcweir 				xGradient->insertByName( maStrName, maAny );
83cdf0e10cSrcweir 			}
84cdf0e10cSrcweir 		}
85cdf0e10cSrcweir 	}
86cdf0e10cSrcweir 	catch( container::ElementExistException& )
87cdf0e10cSrcweir 	{}
88cdf0e10cSrcweir }
89cdf0e10cSrcweir 
IsTransient() const90cdf0e10cSrcweir sal_Bool XMLGradientStyleContext::IsTransient() const
91cdf0e10cSrcweir {
92cdf0e10cSrcweir 	return sal_True;
93cdf0e10cSrcweir }
94cdf0e10cSrcweir 
95cdf0e10cSrcweir //////////////////////////////////////////////////////////////////////////////
96cdf0e10cSrcweir //////////////////////////////////////////////////////////////////////////////
97cdf0e10cSrcweir 
98cdf0e10cSrcweir TYPEINIT1( XMLHatchStyleContext, SvXMLStyleContext );
99cdf0e10cSrcweir 
XMLHatchStyleContext(SvXMLImport & rImport,sal_uInt16 nPrfx,const OUString & rLName,const uno::Reference<xml::sax::XAttributeList> & xAttrList)100cdf0e10cSrcweir XMLHatchStyleContext::XMLHatchStyleContext( SvXMLImport& rImport, sal_uInt16 nPrfx,
101cdf0e10cSrcweir 										      const OUString& rLName,
102cdf0e10cSrcweir 											  const uno::Reference< xml::sax::XAttributeList >& xAttrList)
103cdf0e10cSrcweir :	SvXMLStyleContext(rImport, nPrfx, rLName, xAttrList)
104cdf0e10cSrcweir {
105cdf0e10cSrcweir 	// start import
106cdf0e10cSrcweir 	XMLHatchStyleImport aHatchStyle( GetImport() );
107cdf0e10cSrcweir 	aHatchStyle.importXML( xAttrList, maAny, maStrName );
108cdf0e10cSrcweir }
109cdf0e10cSrcweir 
~XMLHatchStyleContext()110cdf0e10cSrcweir XMLHatchStyleContext::~XMLHatchStyleContext()
111cdf0e10cSrcweir {
112cdf0e10cSrcweir }
113cdf0e10cSrcweir 
EndElement()114cdf0e10cSrcweir void XMLHatchStyleContext::EndElement()
115cdf0e10cSrcweir {
116cdf0e10cSrcweir 	uno::Reference< container::XNameContainer > xHatch( GetImport().GetHatchHelper() );
117cdf0e10cSrcweir 
118cdf0e10cSrcweir 	try
119cdf0e10cSrcweir 	{
120cdf0e10cSrcweir 		if(xHatch.is())
121cdf0e10cSrcweir 		{
122cdf0e10cSrcweir 			if( xHatch->hasByName( maStrName ) )
123cdf0e10cSrcweir 			{
124cdf0e10cSrcweir 				xHatch->replaceByName( maStrName, maAny );
125cdf0e10cSrcweir 			}
126cdf0e10cSrcweir 			else
127cdf0e10cSrcweir 			{
128cdf0e10cSrcweir 				xHatch->insertByName( maStrName, maAny );
129cdf0e10cSrcweir 			}
130cdf0e10cSrcweir 		}
131cdf0e10cSrcweir 	}
132cdf0e10cSrcweir 	catch( container::ElementExistException& )
133cdf0e10cSrcweir 	{}
134cdf0e10cSrcweir }
135cdf0e10cSrcweir 
IsTransient() const136cdf0e10cSrcweir sal_Bool XMLHatchStyleContext::IsTransient() const
137cdf0e10cSrcweir {
138cdf0e10cSrcweir 	return sal_True;
139cdf0e10cSrcweir }
140cdf0e10cSrcweir 
141cdf0e10cSrcweir //////////////////////////////////////////////////////////////////////////////
142cdf0e10cSrcweir //////////////////////////////////////////////////////////////////////////////
143cdf0e10cSrcweir 
144cdf0e10cSrcweir TYPEINIT1( XMLBitmapStyleContext, SvXMLStyleContext );
145cdf0e10cSrcweir 
XMLBitmapStyleContext(SvXMLImport & rImport,sal_uInt16 nPrfx,const OUString & rLName,const uno::Reference<xml::sax::XAttributeList> & xAttrList)146cdf0e10cSrcweir XMLBitmapStyleContext::XMLBitmapStyleContext( SvXMLImport& rImport, sal_uInt16 nPrfx,
147cdf0e10cSrcweir 										      const OUString& rLName,
148cdf0e10cSrcweir 											  const uno::Reference< xml::sax::XAttributeList >& xAttrList)
149cdf0e10cSrcweir :	SvXMLStyleContext(rImport, nPrfx, rLName, xAttrList)
150cdf0e10cSrcweir {
151cdf0e10cSrcweir 	// start import
152cdf0e10cSrcweir 	XMLImageStyle aBitmapStyle;
153cdf0e10cSrcweir 	aBitmapStyle.importXML( xAttrList, maAny, maStrName, rImport );
154cdf0e10cSrcweir }
155cdf0e10cSrcweir 
~XMLBitmapStyleContext()156cdf0e10cSrcweir XMLBitmapStyleContext::~XMLBitmapStyleContext()
157cdf0e10cSrcweir {
158cdf0e10cSrcweir }
159cdf0e10cSrcweir 
CreateChildContext(sal_uInt16 nPrefix,const::rtl::OUString & rLocalName,const::com::sun::star::uno::Reference<::com::sun::star::xml::sax::XAttributeList> & xAttrList)160cdf0e10cSrcweir SvXMLImportContext* XMLBitmapStyleContext::CreateChildContext( sal_uInt16 nPrefix, const ::rtl::OUString& rLocalName, const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList > & xAttrList )
161cdf0e10cSrcweir {
162cdf0e10cSrcweir 	SvXMLImportContext *pContext = 0;
163cdf0e10cSrcweir 	if( (XML_NAMESPACE_OFFICE == nPrefix) && xmloff::token::IsXMLToken( rLocalName, xmloff::token::XML_BINARY_DATA ) )
164cdf0e10cSrcweir 	{
165cdf0e10cSrcweir 		OUString sURL;
166cdf0e10cSrcweir 		maAny >>= sURL;
167cdf0e10cSrcweir 		if( !sURL.getLength() && !mxBase64Stream.is() )
168cdf0e10cSrcweir 		{
169cdf0e10cSrcweir 			mxBase64Stream = GetImport().GetStreamForGraphicObjectURLFromBase64();
170cdf0e10cSrcweir 			if( mxBase64Stream.is() )
171cdf0e10cSrcweir 				pContext = new XMLBase64ImportContext( GetImport(), nPrefix,
172cdf0e10cSrcweir 													rLocalName, xAttrList,
173cdf0e10cSrcweir 													mxBase64Stream );
174cdf0e10cSrcweir 		}
175cdf0e10cSrcweir 	}
176cdf0e10cSrcweir 	if( !pContext )
177cdf0e10cSrcweir 	{
178cdf0e10cSrcweir 		pContext = new SvXMLImportContext( GetImport(), nPrefix, rLocalName );
179cdf0e10cSrcweir 	}
180cdf0e10cSrcweir 
181cdf0e10cSrcweir 	return pContext;
182cdf0e10cSrcweir }
183cdf0e10cSrcweir 
EndElement()184cdf0e10cSrcweir void XMLBitmapStyleContext::EndElement()
185cdf0e10cSrcweir {
186cdf0e10cSrcweir 	OUString sURL;
187cdf0e10cSrcweir 	maAny >>= sURL;
188cdf0e10cSrcweir 
189cdf0e10cSrcweir 	if( !sURL.getLength() && mxBase64Stream.is() )
190cdf0e10cSrcweir 	{
191cdf0e10cSrcweir 		sURL = GetImport().ResolveGraphicObjectURLFromBase64( mxBase64Stream );
192cdf0e10cSrcweir 		mxBase64Stream = 0;
193cdf0e10cSrcweir 		maAny <<= sURL;
194cdf0e10cSrcweir 	}
195cdf0e10cSrcweir 
196*8331a8d6SArrigo Marchiori 	uno::Reference< document::XLinkAuthorizer > xLinkAuthorizer( GetImport().GetModel(), uno::UNO_QUERY);
197*8331a8d6SArrigo Marchiori 	if ( xLinkAuthorizer.is() ) {
198*8331a8d6SArrigo Marchiori 		if ( !xLinkAuthorizer->authorizeLinks( sURL ) ) {
199*8331a8d6SArrigo Marchiori 			return;
200*8331a8d6SArrigo Marchiori 		}
201*8331a8d6SArrigo Marchiori 	}
202*8331a8d6SArrigo Marchiori 
203cdf0e10cSrcweir 	uno::Reference< container::XNameContainer > xBitmap( GetImport().GetBitmapHelper() );
204cdf0e10cSrcweir 
205cdf0e10cSrcweir 	try
206cdf0e10cSrcweir 	{
207cdf0e10cSrcweir 		if(xBitmap.is())
208cdf0e10cSrcweir 		{
209cdf0e10cSrcweir 			if( xBitmap->hasByName( maStrName ) )
210cdf0e10cSrcweir 			{
211cdf0e10cSrcweir 				xBitmap->replaceByName( maStrName, maAny );
212cdf0e10cSrcweir 			}
213cdf0e10cSrcweir 			else
214cdf0e10cSrcweir 			{
215cdf0e10cSrcweir 				xBitmap->insertByName( maStrName, maAny );
216cdf0e10cSrcweir 			}
217cdf0e10cSrcweir 		}
218cdf0e10cSrcweir 	}
219cdf0e10cSrcweir 	catch( container::ElementExistException& )
220cdf0e10cSrcweir 	{}
221cdf0e10cSrcweir }
222cdf0e10cSrcweir 
IsTransient() const223cdf0e10cSrcweir sal_Bool XMLBitmapStyleContext::IsTransient() const
224cdf0e10cSrcweir {
225cdf0e10cSrcweir 	return sal_True;
226cdf0e10cSrcweir }
227cdf0e10cSrcweir 
228cdf0e10cSrcweir 
229cdf0e10cSrcweir //////////////////////////////////////////////////////////////////////////////
230cdf0e10cSrcweir //////////////////////////////////////////////////////////////////////////////
231cdf0e10cSrcweir 
232cdf0e10cSrcweir TYPEINIT1( XMLTransGradientStyleContext, SvXMLStyleContext );
233cdf0e10cSrcweir 
XMLTransGradientStyleContext(SvXMLImport & rImport,sal_uInt16 nPrfx,const OUString & rLName,const uno::Reference<xml::sax::XAttributeList> & xAttrList)234cdf0e10cSrcweir XMLTransGradientStyleContext::XMLTransGradientStyleContext( SvXMLImport& rImport, sal_uInt16 nPrfx,
235cdf0e10cSrcweir 										      const OUString& rLName,
236cdf0e10cSrcweir 											  const uno::Reference< xml::sax::XAttributeList >& xAttrList)
237cdf0e10cSrcweir :	SvXMLStyleContext(rImport, nPrfx, rLName, xAttrList)
238cdf0e10cSrcweir {
239cdf0e10cSrcweir 	// start import
240cdf0e10cSrcweir 	XMLTransGradientStyleImport aTransGradientStyle( GetImport() );
241cdf0e10cSrcweir 	aTransGradientStyle.importXML( xAttrList, maAny, maStrName );
242cdf0e10cSrcweir }
243cdf0e10cSrcweir 
~XMLTransGradientStyleContext()244cdf0e10cSrcweir XMLTransGradientStyleContext::~XMLTransGradientStyleContext()
245cdf0e10cSrcweir {
246cdf0e10cSrcweir }
247cdf0e10cSrcweir 
EndElement()248cdf0e10cSrcweir void XMLTransGradientStyleContext::EndElement()
249cdf0e10cSrcweir {
250cdf0e10cSrcweir 	uno::Reference< container::XNameContainer > xTransGradient( GetImport().GetTransGradientHelper() );
251cdf0e10cSrcweir 
252cdf0e10cSrcweir 	try
253cdf0e10cSrcweir 	{
254cdf0e10cSrcweir 		if(xTransGradient.is())
255cdf0e10cSrcweir 		{
256cdf0e10cSrcweir 			if( xTransGradient->hasByName( maStrName ) )
257cdf0e10cSrcweir 			{
258cdf0e10cSrcweir 				xTransGradient->replaceByName( maStrName, maAny );
259cdf0e10cSrcweir 			}
260cdf0e10cSrcweir 			else
261cdf0e10cSrcweir 			{
262cdf0e10cSrcweir 				xTransGradient->insertByName( maStrName, maAny );
263cdf0e10cSrcweir 			}
264cdf0e10cSrcweir 		}
265cdf0e10cSrcweir 	}
266cdf0e10cSrcweir 	catch( container::ElementExistException& )
267cdf0e10cSrcweir 	{}
268cdf0e10cSrcweir }
269cdf0e10cSrcweir 
IsTransient() const270cdf0e10cSrcweir sal_Bool XMLTransGradientStyleContext::IsTransient() const
271cdf0e10cSrcweir {
272cdf0e10cSrcweir 	return sal_True;
273cdf0e10cSrcweir }
274cdf0e10cSrcweir 
275cdf0e10cSrcweir //////////////////////////////////////////////////////////////////////////////
276cdf0e10cSrcweir //////////////////////////////////////////////////////////////////////////////
277cdf0e10cSrcweir 
278cdf0e10cSrcweir TYPEINIT1( XMLMarkerStyleContext, SvXMLStyleContext );
279cdf0e10cSrcweir 
XMLMarkerStyleContext(SvXMLImport & rImport,sal_uInt16 nPrfx,const OUString & rLName,const uno::Reference<xml::sax::XAttributeList> & xAttrList)280cdf0e10cSrcweir XMLMarkerStyleContext::XMLMarkerStyleContext( SvXMLImport& rImport, sal_uInt16 nPrfx,
281cdf0e10cSrcweir 										      const OUString& rLName,
282cdf0e10cSrcweir 											  const uno::Reference< xml::sax::XAttributeList >& xAttrList)
283cdf0e10cSrcweir :	SvXMLStyleContext(rImport, nPrfx, rLName, xAttrList)
284cdf0e10cSrcweir {
285cdf0e10cSrcweir 	// start import
286cdf0e10cSrcweir 	XMLMarkerStyleImport aMarkerStyle( GetImport() );
287cdf0e10cSrcweir 	aMarkerStyle.importXML( xAttrList, maAny, maStrName );
288cdf0e10cSrcweir }
289cdf0e10cSrcweir 
~XMLMarkerStyleContext()290cdf0e10cSrcweir XMLMarkerStyleContext::~XMLMarkerStyleContext()
291cdf0e10cSrcweir {
292cdf0e10cSrcweir }
293cdf0e10cSrcweir 
EndElement()294cdf0e10cSrcweir void XMLMarkerStyleContext::EndElement()
295cdf0e10cSrcweir {
296cdf0e10cSrcweir 	uno::Reference< container::XNameContainer > xMarker( GetImport().GetMarkerHelper() );
297cdf0e10cSrcweir 
298cdf0e10cSrcweir 	try
299cdf0e10cSrcweir 	{
300cdf0e10cSrcweir 		if(xMarker.is())
301cdf0e10cSrcweir 		{
302cdf0e10cSrcweir 			if( xMarker->hasByName( maStrName ) )
303cdf0e10cSrcweir 			{
304cdf0e10cSrcweir 				xMarker->replaceByName( maStrName, maAny );
305cdf0e10cSrcweir 			}
306cdf0e10cSrcweir 			else
307cdf0e10cSrcweir 			{
308cdf0e10cSrcweir 				xMarker->insertByName( maStrName, maAny );
309cdf0e10cSrcweir 			}
310cdf0e10cSrcweir 		}
311cdf0e10cSrcweir 	}
312cdf0e10cSrcweir 	catch( container::ElementExistException& )
313cdf0e10cSrcweir 	{}
314cdf0e10cSrcweir }
315cdf0e10cSrcweir 
IsTransient() const316cdf0e10cSrcweir sal_Bool XMLMarkerStyleContext::IsTransient() const
317cdf0e10cSrcweir {
318cdf0e10cSrcweir 	return sal_True;
319cdf0e10cSrcweir }
320cdf0e10cSrcweir 
321cdf0e10cSrcweir //////////////////////////////////////////////////////////////////////////////
322cdf0e10cSrcweir //////////////////////////////////////////////////////////////////////////////
323cdf0e10cSrcweir 
324cdf0e10cSrcweir TYPEINIT1( XMLDashStyleContext, SvXMLStyleContext );
325cdf0e10cSrcweir 
XMLDashStyleContext(SvXMLImport & rImport,sal_uInt16 nPrfx,const OUString & rLName,const uno::Reference<xml::sax::XAttributeList> & xAttrList)326cdf0e10cSrcweir XMLDashStyleContext::XMLDashStyleContext( SvXMLImport& rImport, sal_uInt16 nPrfx,
327cdf0e10cSrcweir 										  const OUString& rLName,
328cdf0e10cSrcweir 										  const uno::Reference< xml::sax::XAttributeList >& xAttrList)
329cdf0e10cSrcweir :	SvXMLStyleContext(rImport, nPrfx, rLName, xAttrList)
330cdf0e10cSrcweir {
331cdf0e10cSrcweir 	// start import
332cdf0e10cSrcweir 	XMLDashStyleImport aDashStyle( GetImport() );
333cdf0e10cSrcweir 	aDashStyle.importXML( xAttrList, maAny, maStrName );
334cdf0e10cSrcweir }
335cdf0e10cSrcweir 
~XMLDashStyleContext()336cdf0e10cSrcweir XMLDashStyleContext::~XMLDashStyleContext()
337cdf0e10cSrcweir {
338cdf0e10cSrcweir }
339cdf0e10cSrcweir 
EndElement()340cdf0e10cSrcweir void XMLDashStyleContext::EndElement()
341cdf0e10cSrcweir {
342cdf0e10cSrcweir 	uno::Reference< container::XNameContainer > xDashes( GetImport().GetDashHelper() );
343cdf0e10cSrcweir 
344cdf0e10cSrcweir 	try
345cdf0e10cSrcweir 	{
346cdf0e10cSrcweir 		if(xDashes.is())
347cdf0e10cSrcweir 		{
348cdf0e10cSrcweir 			if( xDashes->hasByName( maStrName ) )
349cdf0e10cSrcweir 			{
350cdf0e10cSrcweir 				xDashes->replaceByName( maStrName, maAny );
351cdf0e10cSrcweir 			}
352cdf0e10cSrcweir 			else
353cdf0e10cSrcweir 			{
354cdf0e10cSrcweir 				xDashes->insertByName( maStrName, maAny );
355cdf0e10cSrcweir 			}
356cdf0e10cSrcweir 		}
357cdf0e10cSrcweir 	}
358cdf0e10cSrcweir 	catch( container::ElementExistException& )
359cdf0e10cSrcweir 	{}
360cdf0e10cSrcweir }
361cdf0e10cSrcweir 
IsTransient() const362cdf0e10cSrcweir sal_Bool XMLDashStyleContext::IsTransient() const
363cdf0e10cSrcweir {
364cdf0e10cSrcweir 	return sal_True;
365cdf0e10cSrcweir }
366