Branch data Line data Source code
1 : : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : : /*************************************************************************
3 : : *
4 : : * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 : : *
6 : : * Copyright 2000, 2010 Oracle and/or its affiliates.
7 : : *
8 : : * OpenOffice.org - a multi-platform office productivity suite
9 : : *
10 : : * This file is part of OpenOffice.org.
11 : : *
12 : : * OpenOffice.org is free software: you can redistribute it and/or modify
13 : : * it under the terms of the GNU Lesser General Public License version 3
14 : : * only, as published by the Free Software Foundation.
15 : : *
16 : : * OpenOffice.org is distributed in the hope that it will be useful,
17 : : * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 : : * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 : : * GNU Lesser General Public License version 3 for more details
20 : : * (a copy is included in the LICENSE file that accompanied this code).
21 : : *
22 : : * You should have received a copy of the GNU Lesser General Public License
23 : : * version 3 along with OpenOffice.org. If not, see
24 : : * <http://www.openoffice.org/license.html>
25 : : * for a copy of the LGPLv3 License.
26 : : *
27 : : ************************************************************************/
28 : : #include "xmlStyleImport.hxx"
29 : : #include <xmloff/nmspmap.hxx>
30 : : #include <xmloff/xmlnmspe.hxx>
31 : : #include <xmloff/xmlimppr.hxx>
32 : : #include <xmloff/txtimppr.hxx>
33 : : #include <xmloff/families.hxx>
34 : : #include <xmloff/xmlnumfi.hxx>
35 : : #include <xmloff/xmltoken.hxx>
36 : : #include <com/sun/star/style/XStyleFamiliesSupplier.hpp>
37 : : #include <com/sun/star/container/XNameContainer.hpp>
38 : : #include <com/sun/star/table/BorderLine.hpp>
39 : : #include <comphelper/extract.hxx>
40 : : #include <xmloff/xmlprcon.hxx>
41 : : #include <xmloff/xmluconv.hxx>
42 : : #include <xmloff/XMLGraphicsDefaultStyle.hxx>
43 : : #include <tools/debug.hxx>
44 : : #include "xmlfilter.hxx"
45 : : #include "xmlHelper.hxx"
46 : : #include <osl/diagnose.h>
47 : :
48 : : namespace rptxml
49 : : {
50 : :
51 : : using namespace ::com::sun::star;
52 : : using namespace ::com::sun::star::uno;
53 : : using namespace ::com::sun::star::xml::sax;
54 : : using namespace ::com::sun::star::style;
55 : : using namespace ::com::sun::star::frame;
56 : : using namespace ::com::sun::star::beans;
57 : : using namespace ::com::sun::star::container;
58 : : using namespace xmloff::token;
59 : :
60 : : // -----------------------------------------------------------------------------
61 : :
62 [ # # ]: 0 : class OSpecialHanldeXMLImportPropertyMapper : public SvXMLImportPropertyMapper
63 : : {
64 : : public:
65 : 0 : OSpecialHanldeXMLImportPropertyMapper(const UniReference< XMLPropertySetMapper >& rMapper,SvXMLImport& _rImport) : SvXMLImportPropertyMapper(rMapper ,_rImport)
66 : : {
67 : 0 : }
68 : : /** this method is called for every item that has the MID_FLAG_SPECIAL_ITEM_IMPORT flag set */
69 : 0 : virtual bool handleSpecialItem(
70 : : XMLPropertyState& /*rProperty*/,
71 : : ::std::vector< XMLPropertyState >& /*rProperties*/,
72 : : const ::rtl::OUString& /*rValue*/,
73 : : const SvXMLUnitConverter& /*rUnitConverter*/,
74 : : const SvXMLNamespaceMap& /*rNamespaceMap*/ ) const
75 : : {
76 : : // nothing to do here
77 : 0 : return sal_True;
78 : : }
79 : : };
80 : :
81 [ # # ][ # # ]: 0 : TYPEINIT1( OControlStyleContext, XMLPropStyleContext );
82 [ # # ][ # # ]: 0 : TYPEINIT1( OReportStylesContext, SvXMLStylesContext );
83 : : DBG_NAME( rpt_OControlStyleContext )
84 : :
85 : 0 : OControlStyleContext::OControlStyleContext( ORptFilter& rImport,
86 : : sal_uInt16 nPrfx, const ::rtl::OUString& rLName,
87 : : const Reference< XAttributeList > & xAttrList,
88 : : SvXMLStylesContext& rStyles, sal_uInt16 nFamily, sal_Bool bDefaultStyle ) :
89 : : XMLPropStyleContext( rImport, nPrfx, rLName, xAttrList, rStyles, nFamily, bDefaultStyle ),
90 : : sNumberFormat(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("NumberFormat"))),
91 : : pStyles(&rStyles),
92 : : m_nNumberFormat(-1),
93 : : m_rImport(rImport),
94 : : bConditionalFormatCreated(sal_False),
95 [ # # ]: 0 : bParentSet(sal_False)
96 : : {
97 : : DBG_CTOR( rpt_OControlStyleContext,NULL);
98 : :
99 : 0 : }
100 : : // -----------------------------------------------------------------------------
101 : :
102 : 0 : OControlStyleContext::~OControlStyleContext()
103 : : {
104 : :
105 : : DBG_DTOR( rpt_OControlStyleContext,NULL);
106 [ # # ]: 0 : }
107 : : // -----------------------------------------------------------------------------
108 : :
109 : 0 : void OControlStyleContext::FillPropertySet(const Reference< XPropertySet > & rPropSet )
110 : : {
111 [ # # ]: 0 : if ( !IsDefaultStyle() )
112 : : {
113 [ # # ]: 0 : if ( GetFamily() == XML_STYLE_FAMILY_TABLE_CELL )
114 : : {
115 [ # # ][ # # ]: 0 : if ((m_nNumberFormat == -1) && !m_sDataStyleName.isEmpty())
[ # # ]
116 : : {
117 : : SvXMLNumFormatContext* pStyle = const_cast< SvXMLNumFormatContext*>(dynamic_cast<const SvXMLNumFormatContext*>(pStyles->FindStyleChildContext(
118 [ # # ]: 0 : XML_STYLE_FAMILY_DATA_STYLE, m_sDataStyleName, sal_False)));
119 [ # # ]: 0 : if ( !pStyle )
120 : : {
121 [ # # ][ # # ]: 0 : OReportStylesContext* pMyStyles = PTR_CAST(OReportStylesContext,GetOwnImport().GetAutoStyles());
122 [ # # ]: 0 : if ( pMyStyles )
123 : 0 : pStyle = PTR_CAST(SvXMLNumFormatContext,pMyStyles->
124 [ # # # # ]: 0 : FindStyleChildContext(XML_STYLE_FAMILY_DATA_STYLE, m_sDataStyleName, sal_True));
125 : : else {
126 : : OSL_FAIL("not possible to get style");
127 : : }
128 : : }
129 [ # # ]: 0 : if ( pStyle )
130 : : {
131 : 0 : m_nNumberFormat = pStyle->GetKey();
132 [ # # ]: 0 : AddProperty(CTF_RPT_NUMBERFORMAT, uno::makeAny(m_nNumberFormat));
133 : : }
134 : : }
135 : : }
136 : : }
137 : 0 : XMLPropStyleContext::FillPropertySet(rPropSet);
138 : 0 : }
139 : : // -----------------------------------------------------------------------------
140 : 0 : void OControlStyleContext::SetDefaults()
141 : : {
142 : 0 : }
143 : : // -----------------------------------------------------------------------------
144 : :
145 : 0 : void OControlStyleContext::AddProperty(const sal_Int16 nContextID, const uno::Any& rValue)
146 : : {
147 [ # # ]: 0 : sal_Int32 nIndex(static_cast<OReportStylesContext *>(pStyles)->GetIndex(nContextID));
148 : : OSL_ENSURE(nIndex != -1, "Property not found in Map");
149 : 0 : XMLPropertyState aPropState(nIndex, rValue);
150 [ # # ]: 0 : GetProperties().push_back(aPropState); // has to be insertes in a sort order later
151 : 0 : }
152 : : // -----------------------------------------------------------------------------
153 : 0 : void OControlStyleContext::SetAttribute( sal_uInt16 nPrefixKey,
154 : : const ::rtl::OUString& rLocalName,
155 : : const ::rtl::OUString& rValue )
156 : : {
157 : : // TODO: use a map here
158 [ # # ]: 0 : if( IsXMLToken(rLocalName, XML_DATA_STYLE_NAME ) )
159 : 0 : m_sDataStyleName = rValue;
160 [ # # ]: 0 : else if ( IsXMLToken(rLocalName, XML_MASTER_PAGE_NAME ) )
161 : 0 : sPageStyle = rValue;
162 : : else
163 : 0 : XMLPropStyleContext::SetAttribute( nPrefixKey, rLocalName, rValue );
164 : 0 : }
165 : : // -----------------------------------------------------------------------------
166 : 0 : ORptFilter& OControlStyleContext::GetOwnImport() const
167 : : {
168 : 0 : return m_rImport;
169 : : }
170 : : // -----------------------------------------------------------------------------
171 : : DBG_NAME( rpt_OReportStylesContext )
172 : :
173 : 0 : OReportStylesContext::OReportStylesContext( ORptFilter& rImport,
174 : : sal_uInt16 nPrfx ,
175 : : const ::rtl::OUString& rLName ,
176 : : const Reference< XAttributeList > & xAttrList,
177 : : const sal_Bool bTempAutoStyles ) :
178 : : SvXMLStylesContext( rImport, nPrfx, rLName, xAttrList ),
179 : : m_sTableStyleFamilyName( rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( XML_STYLE_FAMILY_TABLE_TABLE_STYLES_NAME ))),
180 : : m_sColumnStyleFamilyName( rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( XML_STYLE_FAMILY_TABLE_COLUMN_STYLES_NAME ))),
181 : : m_sRowStyleFamilyName( rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( XML_STYLE_FAMILY_TABLE_ROW_STYLES_NAME ))),
182 : : m_sCellStyleFamilyName( rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( XML_STYLE_FAMILY_TABLE_CELL_STYLES_NAME ))),
183 : : m_rImport(rImport),
184 : : m_nNumberFormatIndex(-1),
185 [ # # ][ # # ]: 0 : bAutoStyles(bTempAutoStyles)
[ # # ][ # # ]
186 : : {
187 : : DBG_CTOR( rpt_OReportStylesContext,NULL);
188 : :
189 : 0 : }
190 : : // -----------------------------------------------------------------------------
191 : :
192 [ # # ][ # # ]: 0 : OReportStylesContext::~OReportStylesContext()
[ # # ][ # # ]
193 : : {
194 : :
195 : : DBG_DTOR( rpt_OReportStylesContext,NULL);
196 [ # # ]: 0 : }
197 : : // -----------------------------------------------------------------------------
198 : :
199 : 0 : void OReportStylesContext::EndElement()
200 : : {
201 : 0 : SvXMLStylesContext::EndElement();
202 [ # # ]: 0 : if (bAutoStyles)
203 [ # # ][ # # ]: 0 : GetImport().GetTextImport()->SetAutoStyles( this );
204 : : else
205 : 0 : GetImport().GetStyles()->CopyStylesToDoc(sal_True);
206 : 0 : }
207 : : // -----------------------------------------------------------------------------
208 : :
209 : : UniReference < SvXMLImportPropertyMapper >
210 : 0 : OReportStylesContext::GetImportPropertyMapper(
211 : : sal_uInt16 nFamily ) const
212 : : {
213 : 0 : UniReference < SvXMLImportPropertyMapper > xMapper(SvXMLStylesContext::GetImportPropertyMapper(nFamily));
214 : :
215 [ # # ]: 0 : if (!xMapper.is())
216 : : {
217 : 0 : ORptFilter& rImport = GetOwnImport();
218 [ # # # # : 0 : switch( nFamily )
# ]
219 : : {
220 : : case XML_STYLE_FAMILY_TABLE_CELL:
221 : : {
222 [ # # ]: 0 : if( !m_xCellImpPropMapper.is() )
223 : : {
224 : : m_xCellImpPropMapper =
225 [ # # ][ # # ]: 0 : new XMLTextImportPropertyMapper/*OSpecialHanldeXMLImportPropertyMapper*/( rImport.GetCellStylesPropertySetMapper(), m_rImport , const_cast<XMLFontStylesContext*>(m_rImport.GetFontDecls()));
[ # # ][ # # ]
[ # # ][ # # ]
226 : :
227 [ # # ][ # # ]: 0 : m_xCellImpPropMapper->ChainImportMapper(XMLTextImportHelper::CreateParaExtPropMapper(m_rImport, const_cast<XMLFontStylesContext*>(m_rImport.GetFontDecls())));
[ # # ][ # # ]
[ # # ][ # # ]
228 : : }
229 [ # # ]: 0 : xMapper = m_xCellImpPropMapper;
230 : : }
231 : 0 : break;
232 : : case XML_STYLE_FAMILY_TABLE_COLUMN:
233 : : {
234 [ # # ]: 0 : if( !m_xColumnImpPropMapper.is() )
235 : : m_xColumnImpPropMapper =
236 [ # # ][ # # ]: 0 : new SvXMLImportPropertyMapper( rImport.GetColumnStylesPropertySetMapper(), m_rImport );
[ # # ][ # # ]
[ # # ]
237 : :
238 [ # # ]: 0 : xMapper = m_xColumnImpPropMapper;
239 : : }
240 : 0 : break;
241 : : case XML_STYLE_FAMILY_TABLE_ROW:
242 : : {
243 [ # # ]: 0 : if( !m_xRowImpPropMapper.is() )
244 [ # # ][ # # ]: 0 : m_xRowImpPropMapper =new OSpecialHanldeXMLImportPropertyMapper( rImport.GetRowStylesPropertySetMapper(), m_rImport );
[ # # ][ # # ]
[ # # ]
245 [ # # ]: 0 : xMapper = m_xRowImpPropMapper;
246 : : }
247 : 0 : break;
248 : : case XML_STYLE_FAMILY_TABLE_TABLE:
249 : : {
250 [ # # ]: 0 : if( !m_xTableImpPropMapper.is() )
251 : : {
252 [ # # ][ # # ]: 0 : UniReference < XMLPropertyHandlerFactory> xFac = new ::xmloff::OControlPropertyHandlerFactory();
[ # # ]
253 [ # # ][ # # ]: 0 : m_xTableImpPropMapper = new SvXMLImportPropertyMapper( new XMLPropertySetMapper(OXMLHelper::GetTableStyleProps(), xFac), m_rImport );
[ # # ][ # # ]
[ # # ][ # # ]
[ # # ][ # # ]
[ # # ]
254 : : }
255 [ # # ]: 0 : xMapper = m_xTableImpPropMapper;
256 : : }
257 : 0 : break;
258 : : default:
259 : 0 : break;
260 : : }
261 : : }
262 : :
263 : 0 : return xMapper;
264 : : }
265 : : // -----------------------------------------------------------------------------
266 : 0 : SvXMLStyleContext *OReportStylesContext::CreateDefaultStyleStyleChildContext(
267 : : sal_uInt16 nFamily, sal_uInt16 nPrefix, const ::rtl::OUString& rLocalName,
268 : : const uno::Reference< xml::sax::XAttributeList > & xAttrList )
269 : : {
270 : 0 : SvXMLStyleContext *pStyle = 0;
271 : :
272 [ # # ]: 0 : switch( nFamily )
273 : : {
274 : : case XML_STYLE_FAMILY_SD_GRAPHICS_ID:
275 : : // There are no writer specific defaults for graphic styles!
276 : 0 : pStyle = new XMLGraphicsDefaultStyle( GetImport(), nPrefix,
277 [ # # ]: 0 : rLocalName, xAttrList, *this );
278 : 0 : break;
279 : : default:
280 : : pStyle = SvXMLStylesContext::CreateDefaultStyleStyleChildContext( nFamily,
281 : : nPrefix,
282 : : rLocalName,
283 : 0 : xAttrList );
284 : 0 : break;
285 : : }
286 : 0 : return pStyle;
287 : : }
288 : : // ----------------------------------------------------------------------------
289 : 0 : SvXMLStyleContext *OReportStylesContext::CreateStyleStyleChildContext(
290 : : sal_uInt16 nFamily, sal_uInt16 nPrefix, const ::rtl::OUString& rLocalName,
291 : : const Reference< xml::sax::XAttributeList > & xAttrList )
292 : : {
293 : : SvXMLStyleContext *pStyle = SvXMLStylesContext::CreateStyleStyleChildContext( nFamily, nPrefix,
294 : : rLocalName,
295 : 0 : xAttrList );
296 [ # # ]: 0 : if (!pStyle)
297 : : {
298 [ # # ]: 0 : switch( nFamily )
299 : : {
300 : : case XML_STYLE_FAMILY_TABLE_TABLE:
301 : : case XML_STYLE_FAMILY_TABLE_COLUMN:
302 : : case XML_STYLE_FAMILY_TABLE_ROW:
303 : : case XML_STYLE_FAMILY_TABLE_CELL:
304 : : pStyle = new OControlStyleContext( GetOwnImport(), nPrefix, rLocalName,
305 [ # # ]: 0 : xAttrList, *this, nFamily );
306 : 0 : break;
307 : : default:
308 : : OSL_FAIL("OReportStylesContext::CreateStyleStyleChildContext: Unknown style family. PLease check.");
309 : 0 : break;
310 : : }
311 : : }
312 : :
313 : 0 : return pStyle;
314 : : }
315 : : // -----------------------------------------------------------------------------
316 : : Reference < XNameContainer >
317 : 0 : OReportStylesContext::GetStylesContainer( sal_uInt16 nFamily ) const
318 : : {
319 : 0 : Reference < XNameContainer > xStyles(SvXMLStylesContext::GetStylesContainer(nFamily));
320 [ # # ]: 0 : if (!xStyles.is())
321 : : {
322 : 0 : ::rtl::OUString sName;
323 [ # # # # : 0 : switch( nFamily )
# # ]
324 : : {
325 : : case XML_STYLE_FAMILY_TABLE_TABLE:
326 : : {
327 [ # # ]: 0 : if( m_xTableStyles.is() )
328 [ # # ]: 0 : xStyles.set(m_xTableStyles);
329 : : else
330 : : sName =
331 [ # # ]: 0 : ::rtl::OUString( rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "TableStyles" ) ));
332 : : }
333 : 0 : break;
334 : : case XML_STYLE_FAMILY_TABLE_CELL:
335 : : {
336 [ # # ]: 0 : if( m_xCellStyles.is() )
337 [ # # ]: 0 : xStyles.set(m_xCellStyles);
338 : : else
339 : : sName =
340 [ # # ]: 0 : ::rtl::OUString( rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "CellStyles" ) ));
341 : : }
342 : 0 : break;
343 : : case XML_STYLE_FAMILY_TABLE_COLUMN:
344 : : {
345 [ # # ]: 0 : if( m_xColumnStyles.is() )
346 [ # # ]: 0 : xStyles.set(m_xColumnStyles);
347 : : else
348 : : sName =
349 [ # # ]: 0 : ::rtl::OUString( rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "ColumnStyles" ) ));
350 : : }
351 : 0 : break;
352 : : case XML_STYLE_FAMILY_TABLE_ROW:
353 : : {
354 [ # # ]: 0 : if( m_xRowStyles.is() )
355 [ # # ]: 0 : xStyles.set(m_xRowStyles);
356 : : else
357 : : sName =
358 [ # # ]: 0 : ::rtl::OUString( rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "RowStyles" ) ));
359 : : }
360 : 0 : break;
361 : : case XML_STYLE_FAMILY_SD_GRAPHICS_ID:
362 [ # # ][ # # ]: 0 : xStyles = ((SvXMLImport *)&GetImport())->GetTextImport()->GetFrameStyles();
[ # # ][ # # ]
[ # # ]
363 : 0 : break;
364 : : default:
365 : : OSL_FAIL("OReportStylesContext::CreateStyleStyleChildContext: Unknown style family. PLease check.");
366 : 0 : break;
367 : : }
368 [ # # ][ # # ]: 0 : if( !xStyles.is() && !sName.isEmpty() && GetOwnImport().GetModel().is() )
[ # # ][ # # ]
369 : : {
370 : : Reference< XStyleFamiliesSupplier > xFamiliesSupp(
371 [ # # ]: 0 : GetOwnImport().GetModel(), UNO_QUERY );
372 [ # # ]: 0 : if (xFamiliesSupp.is())
373 : : {
374 [ # # ][ # # ]: 0 : Reference< XNameAccess > xFamilies(xFamiliesSupp->getStyleFamilies());
375 : :
376 [ # # ][ # # ]: 0 : xStyles.set(xFamilies->getByName( sName ), uno::UNO_QUERY);
[ # # ]
377 [ # # # # : 0 : switch( nFamily )
# ]
378 : : {
379 : : case XML_STYLE_FAMILY_TABLE_TABLE:
380 [ # # ]: 0 : m_xTableStyles.set(xStyles);
381 : 0 : break;
382 : : case XML_STYLE_FAMILY_TABLE_CELL:
383 [ # # ]: 0 : m_xCellStyles.set(xStyles);
384 : 0 : break;
385 : : case XML_STYLE_FAMILY_TABLE_COLUMN:
386 [ # # ]: 0 : m_xColumnStyles.set(xStyles);
387 : 0 : break;
388 : : case XML_STYLE_FAMILY_TABLE_ROW:
389 [ # # ]: 0 : m_xRowStyles.set(xStyles);
390 : 0 : break;
391 : : default:
392 : 0 : break;
393 : 0 : }
394 : 0 : }
395 : 0 : }
396 : : }
397 : :
398 : 0 : return xStyles;
399 : : }
400 : : // -----------------------------------------------------------------------------
401 : :
402 : 0 : ::rtl::OUString OReportStylesContext::GetServiceName( sal_uInt16 nFamily ) const
403 : : {
404 : 0 : rtl::OUString sServiceName = SvXMLStylesContext::GetServiceName(nFamily);
405 [ # # ]: 0 : if (sServiceName.isEmpty())
406 : : {
407 [ # # # # : 0 : switch( nFamily )
# ]
408 : : {
409 : : case XML_STYLE_FAMILY_TABLE_TABLE:
410 : 0 : sServiceName = m_sTableStyleFamilyName;
411 : 0 : break;
412 : : case XML_STYLE_FAMILY_TABLE_COLUMN:
413 : 0 : sServiceName = m_sColumnStyleFamilyName;
414 : 0 : break;
415 : : case XML_STYLE_FAMILY_TABLE_ROW:
416 : 0 : sServiceName = m_sRowStyleFamilyName;
417 : 0 : break;
418 : : case XML_STYLE_FAMILY_TABLE_CELL:
419 : 0 : sServiceName = m_sCellStyleFamilyName;
420 : 0 : break;
421 : : default:
422 : 0 : break;
423 : : }
424 : : }
425 : 0 : return sServiceName;
426 : : }
427 : : // -----------------------------------------------------------------------------
428 : :
429 : 0 : sal_Int32 OReportStylesContext::GetIndex(const sal_Int16 nContextID)
430 : : {
431 [ # # ]: 0 : if ( nContextID == CTF_RPT_NUMBERFORMAT )
432 : : {
433 [ # # ]: 0 : if (m_nNumberFormatIndex == -1)
434 : : m_nNumberFormatIndex =
435 [ # # ][ # # ]: 0 : GetImportPropertyMapper(XML_STYLE_FAMILY_TABLE_CELL)->getPropertySetMapper()->FindEntryIndex(nContextID);
[ # # ]
436 : 0 : return m_nNumberFormatIndex;
437 : : }
438 : 0 : return -1;
439 : : }
440 : : // -----------------------------------------------------------------------------
441 : 0 : ORptFilter& OReportStylesContext::GetOwnImport() const
442 : : {
443 : 0 : return m_rImport;
444 : : }
445 : : // -----------------------------------------------------------------------------
446 : 0 : sal_uInt16 OReportStylesContext::GetFamily( const ::rtl::OUString& rFamily ) const
447 : : {
448 : 0 : sal_uInt16 nFamily = SvXMLStylesContext::GetFamily(rFamily);
449 : 0 : return nFamily;
450 : : }
451 : : // -----------------------------------------------------------------------------
452 : : } // rptxml
453 : : // -----------------------------------------------------------------------------
454 : :
455 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|