Kaydet (Commit) 884a5ca1 authored tarafından Chr. Rossmanith's avatar Chr. Rossmanith Kaydeden (comit) Fridrich Štrba

enable rendering of text without any attributes

üst 0bd553e8
...@@ -157,8 +157,24 @@ struct AnnotatingVisitor ...@@ -157,8 +157,24 @@ struct AnnotatingVisitor
maParentStates.push_back(rInitialState); maParentStates.push_back(rInitialState);
} }
void operator()( const uno::Reference<xml::dom::XElement>& ) void operator()( const uno::Reference<xml::dom::XElement>& xElem)
{} {
const sal_Int32 nTagId(getTokenId(xElem->getTagName()));
if (nTagId != XML_TEXT)
return;
maCurrState = maParentStates.back();
maCurrState.maTransform.identity();
maCurrState.maViewBox.reset();
// set default font size here to ensure writing styles for text
if( !mbSeenText && XML_TEXT == nTagId )
{
maCurrState.mnFontSize = 12.0;
mbSeenText = true;
}
// if necessary, serialize to automatic-style section
writeStyle(xElem,nTagId);
}
void operator()( const uno::Reference<xml::dom::XElement>& xElem, void operator()( const uno::Reference<xml::dom::XElement>& xElem,
const uno::Reference<xml::dom::XNamedNodeMap>& xAttributes ) const uno::Reference<xml::dom::XNamedNodeMap>& xAttributes )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment