Line data Source code
1 : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : /*
3 : * This file is part of the LibreOffice project.
4 : *
5 : * This Source Code Form is subject to the terms of the Mozilla Public
6 : * License, v. 2.0. If a copy of the MPL was not distributed with this
7 : * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 : *
9 : * This file incorporates work covered by the following license notice:
10 : *
11 : * Licensed to the Apache Software Foundation (ASF) under one or more
12 : * contributor license agreements. See the NOTICE file distributed
13 : * with this work for additional information regarding copyright
14 : * ownership. The ASF licenses this file to you under the Apache
15 : * License, Version 2.0 (the "License"); you may not use this file
16 : * except in compliance with the License. You may obtain a copy of
17 : * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 : */
19 :
20 : #include "PageMasterExportPropMapper.hxx"
21 : #include <xmloff/xmltoken.hxx>
22 : #include <comphelper/types.hxx>
23 : #include <com/sun/star/table/BorderLine2.hpp>
24 : #include <xmloff/PageMasterStyleMap.hxx>
25 : #include <tools/debug.hxx>
26 : #include <rtl/ustrbuf.hxx>
27 : #include <comphelper/extract.hxx>
28 :
29 : using namespace ::com::sun::star;
30 : using namespace ::com::sun::star::uno;
31 : using namespace ::com::sun::star::beans;
32 : using namespace ::comphelper;
33 : using namespace ::xmloff::token;
34 :
35 :
36 : //______________________________________________________________________________
37 :
38 48 : static inline sal_Bool lcl_HasSameLineWidth( const table::BorderLine2& rLine1, const table::BorderLine2& rLine2 )
39 : {
40 : return (rLine1.InnerLineWidth == rLine2.InnerLineWidth) &&
41 : (rLine1.OuterLineWidth == rLine2.OuterLineWidth) &&
42 : (rLine1.LineDistance == rLine2.LineDistance) &&
43 48 : (rLine1.LineWidth == rLine2.LineWidth);
44 : }
45 :
46 24 : inline sal_Bool operator==( const table::BorderLine2& rLine1, const table::BorderLine2& rLine2 )
47 : {
48 : return (rLine1.Color == rLine2.Color) &&
49 24 : lcl_HasSameLineWidth( rLine1, rLine2 ) &&
50 48 : ( rLine1.LineStyle == rLine2.LineStyle );
51 : }
52 :
53 184 : static inline void lcl_RemoveState( XMLPropertyState* pState )
54 : {
55 184 : pState->mnIndex = -1;
56 184 : pState->maValue.clear();
57 184 : }
58 :
59 0 : static void lcl_RemoveStateIfZero16( XMLPropertyState* pState )
60 : {
61 0 : sal_Int16 nValue = sal_Int16();
62 0 : if( (pState->maValue >>= nValue) && !nValue )
63 0 : lcl_RemoveState( pState );
64 0 : }
65 :
66 0 : static void lcl_AddState(::std::vector< XMLPropertyState >& rPropState, sal_Int32 nIndex, const rtl::OUString& rProperty, uno::Reference< beans::XPropertySet >& xProps)
67 : {
68 0 : if(::cppu::any2bool(xProps->getPropertyValue(rProperty)))
69 0 : rPropState.push_back(XMLPropertyState (nIndex, cppu::bool2any(sal_True)));
70 0 : }
71 :
72 : //______________________________________________________________________________
73 : // helper struct to handle equal XMLPropertyState's for page, header and footer
74 :
75 : struct XMLPropertyStateBuffer
76 : {
77 : XMLPropertyState* pPMMarginAll;
78 : XMLPropertyState* pPMMarginTop;
79 : XMLPropertyState* pPMMarginBottom;
80 : XMLPropertyState* pPMMarginLeft;
81 : XMLPropertyState* pPMMarginRight;
82 :
83 : XMLPropertyState* pPMBorderAll;
84 : XMLPropertyState* pPMBorderTop;
85 : XMLPropertyState* pPMBorderBottom;
86 : XMLPropertyState* pPMBorderLeft;
87 : XMLPropertyState* pPMBorderRight;
88 :
89 : XMLPropertyState* pPMBorderWidthAll;
90 : XMLPropertyState* pPMBorderWidthTop;
91 : XMLPropertyState* pPMBorderWidthBottom;
92 : XMLPropertyState* pPMBorderWidthLeft;
93 : XMLPropertyState* pPMBorderWidthRight;
94 :
95 : XMLPropertyState* pPMPaddingAll;
96 : XMLPropertyState* pPMPaddingTop;
97 : XMLPropertyState* pPMPaddingBottom;
98 : XMLPropertyState* pPMPaddingLeft;
99 : XMLPropertyState* pPMPaddingRight;
100 :
101 : XMLPropertyStateBuffer();
102 : void ContextFilter( ::std::vector< XMLPropertyState >& rPropState );
103 : };
104 :
105 60 : XMLPropertyStateBuffer::XMLPropertyStateBuffer()
106 : : pPMMarginAll( NULL )
107 : , pPMMarginTop( NULL )
108 : , pPMMarginBottom( NULL )
109 : , pPMMarginLeft( NULL )
110 : , pPMMarginRight( NULL )
111 : ,
112 : pPMBorderAll( NULL ),
113 : pPMBorderTop( NULL ),
114 : pPMBorderBottom( NULL ),
115 : pPMBorderLeft( NULL ),
116 : pPMBorderRight( NULL ),
117 :
118 : pPMBorderWidthAll( NULL ),
119 : pPMBorderWidthTop( NULL ),
120 : pPMBorderWidthBottom( NULL ),
121 : pPMBorderWidthLeft( NULL ),
122 : pPMBorderWidthRight( NULL ),
123 :
124 : pPMPaddingAll( NULL ),
125 : pPMPaddingTop( NULL ),
126 : pPMPaddingBottom( NULL ),
127 : pPMPaddingLeft( NULL ),
128 60 : pPMPaddingRight( NULL )
129 : {
130 60 : }
131 :
132 60 : void XMLPropertyStateBuffer::ContextFilter( ::std::vector< XMLPropertyState >& )
133 : {
134 60 : if (pPMMarginAll)
135 : {
136 32 : lcl_RemoveState(pPMMarginAll); // #i117696# do not write fo:margin
137 : }
138 :
139 60 : if( pPMBorderAll )
140 : {
141 8 : if( pPMBorderTop && pPMBorderBottom && pPMBorderLeft && pPMBorderRight )
142 : {
143 8 : table::BorderLine2 aLineTop, aLineBottom, aLineLeft, aLineRight;
144 :
145 8 : pPMBorderTop->maValue >>= aLineTop;
146 8 : pPMBorderBottom->maValue >>= aLineBottom;
147 8 : pPMBorderLeft->maValue >>= aLineLeft;
148 8 : pPMBorderRight->maValue >>= aLineRight;
149 :
150 8 : if( (aLineTop == aLineBottom) && (aLineBottom == aLineLeft) && (aLineLeft == aLineRight) )
151 : {
152 8 : lcl_RemoveState( pPMBorderTop );
153 8 : lcl_RemoveState( pPMBorderBottom );
154 8 : lcl_RemoveState( pPMBorderLeft );
155 8 : lcl_RemoveState( pPMBorderRight );
156 : }
157 : else
158 0 : lcl_RemoveState( pPMBorderAll );
159 : }
160 : else
161 0 : lcl_RemoveState( pPMBorderAll );
162 : }
163 :
164 60 : if( pPMBorderWidthAll )
165 : {
166 8 : if( pPMBorderWidthTop && pPMBorderWidthBottom && pPMBorderWidthLeft && pPMBorderWidthRight )
167 : {
168 8 : table::BorderLine2 aLineTop, aLineBottom, aLineLeft, aLineRight;
169 :
170 8 : pPMBorderWidthTop->maValue >>= aLineTop;
171 8 : pPMBorderWidthBottom->maValue >>= aLineBottom;
172 8 : pPMBorderWidthLeft->maValue >>= aLineLeft;
173 8 : pPMBorderWidthRight->maValue >>= aLineRight;
174 :
175 24 : if( lcl_HasSameLineWidth( aLineTop, aLineBottom ) &&
176 8 : lcl_HasSameLineWidth( aLineBottom, aLineLeft ) &&
177 8 : lcl_HasSameLineWidth( aLineLeft, aLineRight ) )
178 : {
179 8 : lcl_RemoveState( pPMBorderWidthTop );
180 8 : lcl_RemoveState( pPMBorderWidthBottom );
181 8 : lcl_RemoveState( pPMBorderWidthLeft );
182 8 : lcl_RemoveState( pPMBorderWidthRight );
183 : }
184 : else
185 0 : lcl_RemoveState( pPMBorderWidthAll );
186 : }
187 : else
188 0 : lcl_RemoveState( pPMBorderWidthAll );
189 : }
190 :
191 60 : if( pPMPaddingAll )
192 : {
193 8 : if( pPMPaddingTop && pPMPaddingBottom && pPMPaddingLeft && pPMPaddingRight )
194 : {
195 8 : sal_Int32 nTop = 0, nBottom = 0, nLeft = 0, nRight = 0;
196 :
197 8 : pPMPaddingTop->maValue >>= nTop;
198 8 : pPMPaddingBottom->maValue >>= nBottom;
199 8 : pPMPaddingLeft->maValue >>= nLeft;
200 8 : pPMPaddingRight->maValue >>= nRight;
201 :
202 8 : if( (nTop == nBottom) && (nBottom == nLeft) && (nLeft == nRight) )
203 : {
204 8 : lcl_RemoveState( pPMPaddingTop );
205 8 : lcl_RemoveState( pPMPaddingBottom );
206 8 : lcl_RemoveState( pPMPaddingLeft );
207 8 : lcl_RemoveState( pPMPaddingRight );
208 : }
209 : else
210 0 : lcl_RemoveState( pPMPaddingAll );
211 : }
212 : else
213 0 : lcl_RemoveState( pPMPaddingAll );
214 : }
215 60 : }
216 :
217 : //______________________________________________________________________________
218 :
219 8 : XMLPageMasterExportPropMapper::XMLPageMasterExportPropMapper(
220 : const UniReference< XMLPropertySetMapper >& rMapper,
221 : SvXMLExport& rExport ) :
222 : SvXMLExportPropertyMapper( rMapper ),
223 : aBackgroundImageExport( rExport ),
224 : aTextColumnsExport( rExport ),
225 8 : aFootnoteSeparatorExport( rExport )
226 : {
227 8 : }
228 :
229 16 : XMLPageMasterExportPropMapper::~XMLPageMasterExportPropMapper()
230 : {
231 16 : }
232 :
233 24 : void XMLPageMasterExportPropMapper::handleElementItem(
234 : SvXMLExport&,
235 : const XMLPropertyState& rProperty,
236 : sal_uInt16 /*nFlags*/,
237 : const ::std::vector< XMLPropertyState >* pProperties,
238 : sal_uInt32 nIdx ) const
239 : {
240 24 : XMLPageMasterExportPropMapper* pThis = (XMLPageMasterExportPropMapper*) this;
241 :
242 24 : sal_uInt32 nContextId = getPropertySetMapper()->GetEntryContextId( rProperty.mnIndex );
243 24 : switch( nContextId )
244 : {
245 : case CTF_PM_GRAPHICURL:
246 : case CTF_PM_HEADERGRAPHICURL:
247 : case CTF_PM_FOOTERGRAPHICURL:
248 : {
249 : DBG_ASSERT( pProperties && (nIdx >= 2), "property vector missing" );
250 : sal_Int32 nPos;
251 : sal_Int32 nFilter;
252 8 : switch( nContextId )
253 : {
254 : case CTF_PM_GRAPHICURL:
255 0 : nPos = CTF_PM_GRAPHICPOSITION;
256 0 : nFilter = CTF_PM_GRAPHICFILTER;
257 0 : break;
258 : case CTF_PM_HEADERGRAPHICURL:
259 4 : nPos = CTF_PM_HEADERGRAPHICPOSITION;
260 4 : nFilter = CTF_PM_HEADERGRAPHICFILTER;
261 4 : break;
262 : case CTF_PM_FOOTERGRAPHICURL:
263 4 : nPos = CTF_PM_FOOTERGRAPHICPOSITION;
264 4 : nFilter = CTF_PM_FOOTERGRAPHICFILTER;
265 4 : break;
266 : default:
267 0 : nPos = 0; // TODO What values should this be?
268 0 : nFilter = 0;
269 : }
270 8 : const Any* pPos = NULL;
271 8 : const Any* pFilter = NULL;
272 8 : if( pProperties && (nIdx >= 2) )
273 : {
274 8 : const XMLPropertyState& rPos = (*pProperties)[nIdx - 2];
275 : DBG_ASSERT( getPropertySetMapper()->GetEntryContextId( rPos.mnIndex ) == nPos,
276 : "invalid property map: pos expected" );
277 8 : if( getPropertySetMapper()->GetEntryContextId( rPos.mnIndex ) == nPos )
278 8 : pPos = &rPos.maValue;
279 :
280 8 : const XMLPropertyState& rFilter = (*pProperties)[nIdx - 1];
281 : DBG_ASSERT( getPropertySetMapper()->GetEntryContextId( rFilter.mnIndex ) == nFilter,
282 : "invalid property map: filter expected" );
283 8 : if( getPropertySetMapper()->GetEntryContextId( rFilter.mnIndex ) == nFilter )
284 8 : pFilter = &rFilter.maValue;
285 : }
286 8 : sal_uInt32 nPropIndex = rProperty.mnIndex;
287 : pThis->aBackgroundImageExport.exportXML( rProperty.maValue, pPos, pFilter, NULL,
288 8 : getPropertySetMapper()->GetEntryNameSpace( nPropIndex ),
289 16 : getPropertySetMapper()->GetEntryXMLName( nPropIndex ) );
290 : }
291 8 : break;
292 : case CTF_PM_TEXTCOLUMNS:
293 0 : pThis->aTextColumnsExport.exportXML( rProperty.maValue );
294 0 : break;
295 : case CTF_PM_FTN_LINE_WEIGTH:
296 : pThis->aFootnoteSeparatorExport.exportXML( pProperties, nIdx,
297 8 : getPropertySetMapper());
298 8 : break;
299 : }
300 24 : }
301 :
302 64 : void XMLPageMasterExportPropMapper::handleSpecialItem(
303 : SvXMLAttributeList&,
304 : const XMLPropertyState&,
305 : const SvXMLUnitConverter&,
306 : const SvXMLNamespaceMap&,
307 : const ::std::vector< XMLPropertyState >*,
308 : sal_uInt32 /*nIdx*/) const
309 : {
310 64 : }
311 :
312 20 : void XMLPageMasterExportPropMapper::ContextFilter(
313 : ::std::vector< XMLPropertyState >& rPropState,
314 : Reference< XPropertySet > rPropSet ) const
315 : {
316 20 : XMLPropertyStateBuffer aPageBuffer;
317 20 : XMLPropertyStateBuffer aHeaderBuffer;
318 20 : XMLPropertyStateBuffer aFooterBuffer;
319 :
320 20 : XMLPropertyState* pPMHeaderHeight = NULL;
321 20 : XMLPropertyState* pPMHeaderMinHeight = NULL;
322 20 : XMLPropertyState* pPMHeaderDynamic = NULL;
323 :
324 20 : XMLPropertyState* pPMFooterHeight = NULL;
325 20 : XMLPropertyState* pPMFooterMinHeight = NULL;
326 20 : XMLPropertyState* pPMFooterDynamic = NULL;
327 :
328 20 : XMLPropertyState* pPMScaleTo = NULL;
329 20 : XMLPropertyState* pPMScaleToPages = NULL;
330 20 : XMLPropertyState* pPMScaleToX = NULL;
331 20 : XMLPropertyState* pPMScaleToY = NULL;
332 20 : XMLPropertyState* pPMStandardMode = NULL;
333 20 : XMLPropertyState* pPMGridBaseWidth = NULL;
334 : // same as pPMGridSnapTo but for backward compatibility only
335 20 : XMLPropertyState* pPMGridSnapToChars = NULL;
336 20 : XMLPropertyState* pPMGridSnapTo = NULL;
337 :
338 20 : XMLPropertyState* pPrint = NULL;
339 :
340 20 : UniReference < XMLPropertySetMapper > aPropMapper(getPropertySetMapper());
341 :
342 556 : for( ::std::vector< XMLPropertyState >::iterator aIter = rPropState.begin(); aIter != rPropState.end(); ++aIter )
343 : {
344 536 : XMLPropertyState *pProp = &(*aIter);
345 536 : sal_Int16 nContextId = aPropMapper->GetEntryContextId( pProp->mnIndex );
346 536 : sal_Int16 nFlag = nContextId & CTF_PM_FLAGMASK;
347 536 : sal_Int16 nSimpleId = nContextId & (~CTF_PM_FLAGMASK | XML_PM_CTF_START);
348 536 : sal_Int16 nPrintId = nContextId & CTF_PM_PRINTMASK;
349 :
350 : XMLPropertyStateBuffer* pBuffer;
351 536 : switch( nFlag )
352 : {
353 156 : case CTF_PM_HEADERFLAG: pBuffer = &aHeaderBuffer; break;
354 156 : case CTF_PM_FOOTERFLAG: pBuffer = &aFooterBuffer; break;
355 224 : default: pBuffer = &aPageBuffer; break;
356 : }
357 :
358 536 : switch( nSimpleId )
359 : {
360 32 : case CTF_PM_MARGINALL: pBuffer->pPMMarginAll = pProp; break;
361 20 : case CTF_PM_MARGINTOP: pBuffer->pPMMarginTop = pProp; break;
362 20 : case CTF_PM_MARGINBOTTOM: pBuffer->pPMMarginBottom = pProp; break;
363 32 : case CTF_PM_MARGINLEFT: pBuffer->pPMMarginLeft = pProp; break;
364 32 : case CTF_PM_MARGINRIGHT: pBuffer->pPMMarginRight = pProp; break;
365 8 : case CTF_PM_BORDERALL: pBuffer->pPMBorderAll = pProp; break;
366 8 : case CTF_PM_BORDERTOP: pBuffer->pPMBorderTop = pProp; break;
367 8 : case CTF_PM_BORDERBOTTOM: pBuffer->pPMBorderBottom = pProp; break;
368 8 : case CTF_PM_BORDERLEFT: pBuffer->pPMBorderLeft = pProp; break;
369 8 : case CTF_PM_BORDERRIGHT: pBuffer->pPMBorderRight = pProp; break;
370 8 : case CTF_PM_BORDERWIDTHALL: pBuffer->pPMBorderWidthAll = pProp; break;
371 8 : case CTF_PM_BORDERWIDTHTOP: pBuffer->pPMBorderWidthTop = pProp; break;
372 8 : case CTF_PM_BORDERWIDTHBOTTOM: pBuffer->pPMBorderWidthBottom = pProp; break;
373 8 : case CTF_PM_BORDERWIDTHLEFT: pBuffer->pPMBorderWidthLeft = pProp; break;
374 8 : case CTF_PM_BORDERWIDTHRIGHT: pBuffer->pPMBorderWidthRight = pProp; break;
375 8 : case CTF_PM_PADDINGALL: pBuffer->pPMPaddingAll = pProp; break;
376 8 : case CTF_PM_PADDINGTOP: pBuffer->pPMPaddingTop = pProp; break;
377 8 : case CTF_PM_PADDINGBOTTOM: pBuffer->pPMPaddingBottom = pProp; break;
378 8 : case CTF_PM_PADDINGLEFT: pBuffer->pPMPaddingLeft = pProp; break;
379 8 : case CTF_PM_PADDINGRIGHT: pBuffer->pPMPaddingRight = pProp; break;
380 : }
381 :
382 536 : switch( nContextId )
383 : {
384 12 : case CTF_PM_HEADERHEIGHT: pPMHeaderHeight = pProp; break;
385 12 : case CTF_PM_HEADERMINHEIGHT: pPMHeaderMinHeight = pProp; break;
386 4 : case CTF_PM_HEADERDYNAMIC: pPMHeaderDynamic = pProp; break;
387 12 : case CTF_PM_FOOTERHEIGHT: pPMFooterHeight = pProp; break;
388 12 : case CTF_PM_FOOTERMINHEIGHT: pPMFooterMinHeight = pProp; break;
389 4 : case CTF_PM_FOOTERDYNAMIC: pPMFooterDynamic = pProp; break;
390 0 : case CTF_PM_SCALETO: pPMScaleTo = pProp; break;
391 0 : case CTF_PM_SCALETOPAGES: pPMScaleToPages = pProp; break;
392 0 : case CTF_PM_SCALETOX: pPMScaleToX = pProp; break;
393 0 : case CTF_PM_SCALETOY: pPMScaleToY = pProp; break;
394 8 : case CTF_PM_STANDARD_MODE: pPMStandardMode = pProp; break;
395 4 : case CTP_PM_GRID_BASE_WIDTH: pPMGridBaseWidth = pProp; break;
396 4 : case CTP_PM_GRID_SNAP_TO_CHARS: pPMGridSnapToChars = pProp; break;
397 4 : case CTP_PM_GRID_SNAP_TO: pPMGridSnapTo = pProp; break;
398 : }
399 536 : if (nPrintId == CTF_PM_PRINTMASK)
400 : {
401 0 : pPrint = pProp;
402 0 : lcl_RemoveState(pPrint);
403 : }
404 : }
405 :
406 20 : if( pPMStandardMode && !getBOOL(pPMStandardMode->maValue) )
407 : {
408 8 : lcl_RemoveState(pPMStandardMode);
409 8 : if( pPMGridBaseWidth )
410 4 : lcl_RemoveState(pPMGridBaseWidth);
411 8 : if( pPMGridSnapToChars )
412 4 : lcl_RemoveState(pPMGridSnapToChars);
413 8 : if (pPMGridSnapTo)
414 : {
415 4 : lcl_RemoveState(pPMGridSnapTo);
416 : }
417 : }
418 :
419 20 : if( pPMGridBaseWidth && pPMStandardMode )
420 4 : lcl_RemoveState(pPMStandardMode);
421 :
422 20 : aPageBuffer.ContextFilter( rPropState );
423 20 : aHeaderBuffer.ContextFilter( rPropState );
424 20 : aFooterBuffer.ContextFilter( rPropState );
425 :
426 20 : if( pPMHeaderHeight && (!pPMHeaderDynamic || (pPMHeaderDynamic && getBOOL( pPMHeaderDynamic->maValue ))) )
427 12 : lcl_RemoveState( pPMHeaderHeight );
428 20 : if( pPMHeaderMinHeight && pPMHeaderDynamic && !getBOOL( pPMHeaderDynamic->maValue ) )
429 0 : lcl_RemoveState( pPMHeaderMinHeight );
430 20 : if( pPMHeaderDynamic )
431 4 : lcl_RemoveState( pPMHeaderDynamic );
432 :
433 20 : if( pPMFooterHeight && (!pPMFooterDynamic || (pPMFooterDynamic && getBOOL( pPMFooterDynamic->maValue ))) )
434 12 : lcl_RemoveState( pPMFooterHeight );
435 20 : if( pPMFooterMinHeight && pPMFooterDynamic && !getBOOL( pPMFooterDynamic->maValue ) )
436 0 : lcl_RemoveState( pPMFooterMinHeight );
437 20 : if( pPMFooterDynamic )
438 4 : lcl_RemoveState( pPMFooterDynamic );
439 :
440 20 : if( pPMScaleTo )
441 0 : lcl_RemoveStateIfZero16( pPMScaleTo );
442 20 : if( pPMScaleToPages )
443 0 : lcl_RemoveStateIfZero16( pPMScaleToPages );
444 20 : if( pPMScaleToX )
445 0 : lcl_RemoveStateIfZero16( pPMScaleToX );
446 20 : if( pPMScaleToY )
447 0 : lcl_RemoveStateIfZero16( pPMScaleToY );
448 :
449 20 : if (pPrint)
450 : {
451 0 : lcl_AddState(rPropState, aPropMapper->FindEntryIndex(CTF_PM_PRINT_ANNOTATIONS), rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("PrintAnnotations")), rPropSet);
452 0 : lcl_AddState(rPropState, aPropMapper->FindEntryIndex(CTF_PM_PRINT_CHARTS), rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("PrintCharts")), rPropSet);
453 0 : lcl_AddState(rPropState, aPropMapper->FindEntryIndex(CTF_PM_PRINT_DRAWING), rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("PrintDrawing")), rPropSet);
454 0 : lcl_AddState(rPropState, aPropMapper->FindEntryIndex(CTF_PM_PRINT_FORMULAS), rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("PrintFormulas")), rPropSet);
455 0 : lcl_AddState(rPropState, aPropMapper->FindEntryIndex(CTF_PM_PRINT_GRID), rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("PrintGrid")), rPropSet);
456 0 : lcl_AddState(rPropState, aPropMapper->FindEntryIndex(CTF_PM_PRINT_HEADERS), rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("PrintHeaders")), rPropSet);
457 0 : lcl_AddState(rPropState, aPropMapper->FindEntryIndex(CTF_PM_PRINT_OBJECTS), rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("PrintObjects")), rPropSet);
458 0 : lcl_AddState(rPropState, aPropMapper->FindEntryIndex(CTF_PM_PRINT_ZEROVALUES), rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("PrintZeroValues")), rPropSet);
459 : }
460 :
461 20 : SvXMLExportPropertyMapper::ContextFilter(rPropState,rPropSet);
462 20 : }
463 :
464 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|