svgnode.cxx (025b0597) | svgnode.cxx (172c67b2) |
---|---|
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 --- 14 unchanged lines hidden (view full) --- 23#include "precompiled_svgio.hxx" 24 25#include <svgio/svgreader/svgnode.hxx> 26#include <basegfx/polygon/b2dpolypolygontools.hxx> 27#include <svgio/svgreader/svgdocument.hxx> 28#include <svgio/svgreader/svgnode.hxx> 29#include <svgio/svgreader/svgstyleattributes.hxx> 30#include <drawinglayer/primitive2d/objectinfoprimitive2d.hxx> | 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 --- 14 unchanged lines hidden (view full) --- 23#include "precompiled_svgio.hxx" 24 25#include <svgio/svgreader/svgnode.hxx> 26#include <basegfx/polygon/b2dpolypolygontools.hxx> 27#include <svgio/svgreader/svgdocument.hxx> 28#include <svgio/svgreader/svgnode.hxx> 29#include <svgio/svgreader/svgstyleattributes.hxx> 30#include <drawinglayer/primitive2d/objectinfoprimitive2d.hxx> |
31#include <tools/urlobj.hxx> |
|
31 32////////////////////////////////////////////////////////////////////////////// 33 34namespace svgio 35{ 36 namespace svgreader 37 { 38 const SvgStyleAttributes* SvgNode::getSvgStyleAttributes() const --- 166 unchanged lines hidden (view full) --- 205 { 206 // default object name is empty 207 rtl::OUString aObjectName; 208 209 // use path as object name when outmost element 210 if(SVGTokenSvg == getType()) 211 { 212 aObjectName = getDocument().getAbsolutePath(); | 32 33////////////////////////////////////////////////////////////////////////////// 34 35namespace svgio 36{ 37 namespace svgreader 38 { 39 const SvgStyleAttributes* SvgNode::getSvgStyleAttributes() const --- 166 unchanged lines hidden (view full) --- 206 { 207 // default object name is empty 208 rtl::OUString aObjectName; 209 210 // use path as object name when outmost element 211 if(SVGTokenSvg == getType()) 212 { 213 aObjectName = getDocument().getAbsolutePath(); |
214 215 if(aObjectName.getLength()) 216 { 217 INetURLObject aURL(aObjectName); 218 219 aObjectName = aURL.getName( 220 INetURLObject::LAST_SEGMENT, 221 true, 222 INetURLObject::DECODE_WITH_CHARSET); 223 } |
|
213 } 214 215 // pack in ObjectInfoPrimitive2D group 216 const drawinglayer::primitive2d::Primitive2DReference xRef( 217 new drawinglayer::primitive2d::ObjectInfoPrimitive2D( 218 rTarget, 219 aObjectName, 220 rTitle, --- 107 unchanged lines hidden --- | 224 } 225 226 // pack in ObjectInfoPrimitive2D group 227 const drawinglayer::primitive2d::Primitive2DReference xRef( 228 new drawinglayer::primitive2d::ObjectInfoPrimitive2D( 229 rTarget, 230 aObjectName, 231 rTitle, --- 107 unchanged lines hidden --- |