drawtreevisiting.cxx (c142477c) | drawtreevisiting.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 --- 344 unchanged lines hidden (view full) --- 353 // a PolyPolyElement was already applied (aside form translation) 354 fillFrameProps( elem, aProps, m_rEmitContext, true ); 355 rtl::OUStringBuffer aBuf( 64 ); 356 aBuf.appendAscii( "0 0 " ); 357 aBuf.append( convPx2mmPrec2(elem.w)*100.0 ); 358 aBuf.append( sal_Unicode(' ') ); 359 aBuf.append( convPx2mmPrec2(elem.h)*100.0 ); 360 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 --- 344 unchanged lines hidden (view full) --- 353 // a PolyPolyElement was already applied (aside form translation) 354 fillFrameProps( elem, aProps, m_rEmitContext, true ); 355 rtl::OUStringBuffer aBuf( 64 ); 356 aBuf.appendAscii( "0 0 " ); 357 aBuf.append( convPx2mmPrec2(elem.w)*100.0 ); 358 aBuf.append( sal_Unicode(' ') ); 359 aBuf.append( convPx2mmPrec2(elem.h)*100.0 ); 360 aProps[ USTR( "svg:viewBox" ) ] = aBuf.makeStringAndClear(); |
361 aProps[ USTR( "svg:d" ) ] = basegfx::tools::exportToSvgD( elem.PolyPoly ); | 361 aProps[ USTR( "svg:d" ) ] = basegfx::tools::exportToSvgD( elem.PolyPoly, true, true, false ); |
362 363 m_rEmitContext.rEmitter.beginTag( "draw:path", aProps ); 364 m_rEmitContext.rEmitter.endTag( "draw:path" ); 365} 366 367void DrawXmlEmitter::visit( ImageElement& elem, const std::list< Element* >::const_iterator& ) 368{ 369 PropertyMap aImageProps; --- 738 unchanged lines hidden --- | 362 363 m_rEmitContext.rEmitter.beginTag( "draw:path", aProps ); 364 m_rEmitContext.rEmitter.endTag( "draw:path" ); 365} 366 367void DrawXmlEmitter::visit( ImageElement& elem, const std::list< Element* >::const_iterator& ) 368{ 369 PropertyMap aImageProps; --- 738 unchanged lines hidden --- |