writertreevisiting.cxx (c142477c) writertreevisiting.cxx (1f882ec4)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 267 unchanged lines hidden (view full) ---

276 PropertyMap aProps;
277 fillFrameProps( elem, aProps, m_rEmitContext );
278 rtl::OUStringBuffer aBuf( 64 );
279 aBuf.appendAscii( "0 0 " );
280 aBuf.append( convPx2mmPrec2(elem.w)*100.0 );
281 aBuf.append( sal_Unicode(' ') );
282 aBuf.append( convPx2mmPrec2(elem.h)*100.0 );
283 aProps[ USTR( "svg:viewBox" ) ] = aBuf.makeStringAndClear();
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 267 unchanged lines hidden (view full) ---

276 PropertyMap aProps;
277 fillFrameProps( elem, aProps, m_rEmitContext );
278 rtl::OUStringBuffer aBuf( 64 );
279 aBuf.appendAscii( "0 0 " );
280 aBuf.append( convPx2mmPrec2(elem.w)*100.0 );
281 aBuf.append( sal_Unicode(' ') );
282 aBuf.append( convPx2mmPrec2(elem.h)*100.0 );
283 aProps[ USTR( "svg:viewBox" ) ] = aBuf.makeStringAndClear();
284 aProps[ USTR( "svg:d" ) ] = basegfx::tools::exportToSvgD( elem.PolyPoly );
284 aProps[ USTR( "svg:d" ) ] = basegfx::tools::exportToSvgD( elem.PolyPoly, true, true, false );
285
286 m_rEmitContext.rEmitter.beginTag( "draw:path", aProps );
287 m_rEmitContext.rEmitter.endTag( "draw:path" );
288}
289
290void WriterXmlEmitter::visit( ImageElement& elem, const std::list< Element* >::const_iterator& )
291{
292 PropertyMap aImageProps;

--- 922 unchanged lines hidden ---
285
286 m_rEmitContext.rEmitter.beginTag( "draw:path", aProps );
287 m_rEmitContext.rEmitter.endTag( "draw:path" );
288}
289
290void WriterXmlEmitter::visit( ImageElement& elem, const std::list< Element* >::const_iterator& )
291{
292 PropertyMap aImageProps;

--- 922 unchanged lines hidden ---