Office theme XML - turning DrawingML lines off (setting to "none")

I am developing an Office theme and I need the lines to be invisible/off/none.

Since the Office docs use the Open XML standard which includes drawingml is there a way to set the three line styles in the theme1.xml file to be off? If I set the weight to 0, this is reflected in the Office app format pane when using the custom theme.thmx file but the line is still visible in the document.

This is the extract from my theme1.xml file, extracted from the .thmx archive:

<a:lnStyleLst>
	<a:ln w="0" cap="flat" cmpd="sng" algn="ctr">
		<a:solidFill>
			<a:srgbClr val="830051" />
		</a:solidFill>
		<a:prstDash val="solid" />
	</a:ln>
		<a:ln w="0" cap="flat" cmpd="sng" algn="ctr">
			<a:solidFill>
				<a:srgbClr val="830051" />
			</a:solidFill>
			<a:prstDash val="solid" />
		</a:ln>
	<a:ln w="0" cap="flat" cmpd="sng" algn="ctr">
		<a:solidFill>
			<a:srgbClr val="830051" />
		</a:solidFill>
		<a:prstDash val="solid" />
	</a:ln>
</a:lnStyleLst>

Open in new window


Is there a "none" value for this line?

<a:prstDash val="solid" />

Open in new window


Or some other way to turn lines off? I also tried setting the line to it's minimum 0.25pt (3175 EMUs) and the colour to the same as the shape fill but that didn't work either!
LVL 14
Jamie GarrochPowerPoint Consultant & DeveloperAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Echo_SCommented:
What exactly are you trying to turn the lines off on, Jamie? "Off on," lol. Where are you trying to remove the lines? There are three line styles -- you have a subtle, moderate and intense option, so there are 3 line styles in the theme1.xml.

The shapes, etc., in the galleries are made up of different combinations of subtle, moderate and intense lines, fills and effects. And you don't get a straight subtle line + subtle fill + subtle effect; instead you get crazy combinations ... and others that can't really be changed. Like that 2nd row of shape styles? I think (off the top of my head) that white line can't really be removed from the interface. (But I could be misremembering.)
0
Echo_SCommented:
Oh, sorry, you know about the 3 line styles -- you just said that. I missed it, oops.
0
Jamie GarrochPowerPoint Consultant & DeveloperAuthor Commented:
Hi Echo. Yep, it's those three definitions of the line style that I'm trying to use and did some reading to find out how they are used to make the gallery combos.

It just got weirder. If I set a line width for the moderate line style (which I can see in the autoshape style gallery), it is adhered to when inserting new SmartArt with the default gallery combo-style Simple Fill.

But If I try to set a colour or transparency for that same line definition, SmartArt appears to ignore these parameters UNTIL, I open the format pane in PowerPoint and change the line width. Then, all of a sudden, I can observer the other custom theme settings switching over in the PowerPoint UI (I used colour and transparency for my test). I can also see the outline colour changing to an unspecified black when changing the width under certain conditions. All very odd.

It's as if the "Office" SmartArt has schizophrenia! I say "Office" because the SmartArt sub-component shapes are Office shapes which are different to PowerPoint shapes. I asked my MSFT contact if they'd be interested in receiving documented feedback on these behaviours and am awaiting a response.

Of course I haven't succeeded in setting the line to off or hiding it using transparency or fudging it by setting the colour to the same as the shape fill. I have a sneaking suspicion that the DrawingML standard doesn't support line="none" so MSFT have probably had to add the "none" feature in their apps, independently of the standard. After all, why would one define a line in markup and then disable it?!
0
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

Echo_SCommented:
Yup. Those combinations of styles for line/fill/effect are extremely frustrating.

So you're specifically trying to do this with SmartArt? Man, SmartArt is a different animal altogether. I'm sorry I can't help you with the line=none part, but I seem to recall that you can't set a fill to none for certain objects in code (probably Drawing ML objects, lol), so I suspect you are correct.
0
Jamie GarrochPowerPoint Consultant & DeveloperAuthor Commented:
I'm developing an add-in for a client that wants each of the 150+ SmartArt layouts to be individually styled to a corporate design, automatically as the user inserts them! It's working on 2013, 2010 but alas not 100% on 2007 as SmartArt is read-only from a programming perspective. And then they want a Mac solution. I thought the theme XML may be a [partial] solution but seems not. My head aches...

Thanks Echo. Always good to chat to you!
0
Echo_SCommented:
Oh, yuck, Good luck with that! Sorry -- I'm of no help at all. But yes, always good to chat with you! :-)

Oh, here's a thought -- I assume you've looked into the GLOX and GCSX files? Wonder if you could set the line to the background color in a custom GCSX file and then reference that from the add-in?

Suspect you've already read this, but just in case ...
 https://msdn.microsoft.com/en-us/library/office/gg583880(v=office.14).aspx
0
Jamie GarrochPowerPoint Consultant & DeveloperAuthor Commented:
Hmm. I did look at GLOX a long time ago with a view to creating custom SmartArt layouts but hadn't thought about it for styling. I'm not sure it's possible to restyle existing Office SmartArt this way because the GLOX files aren't distributed but I am going to go back and have a second read with a different head on (once I have purchased that upgraded head!).
0
Echo_SCommented:
Yeah, you'd have to get IT to deploy GLOX and GCSX files. Or why not deploy them as part of the add-in installation? Your MSI should be able to place those easily enough.
0
Jamie GarrochPowerPoint Consultant & DeveloperAuthor Commented:
Your idea is to modify the default GLOX/GCSX files right? If so, what I meant was that they are not available to "extract" from the standard MSO installation so I would need to get a copy of them from somewhere all in order to modify them prior to deployment (and I'm not sure if that would mean they would then appear in the UI twice!). It used to be possible to download them for 2007 but there doesn't appear to be an MSDN download resource for 2013/2010.
0
Echo_SCommented:
No. My idea is to create custom GCSX files to control color, and, if you had to, to use custom GLOX or GQSX (quick style) files.

Custom GCSX would show up in the interface, but that might not be horrible. I think you can d/l those files from the MSDN link above. That whole article is about how to create custom GCSX, GQSX, and GLOX files.

They work in 2010 and 2013 -- for example, I've got a custom GCSX here that shows in my SmartArt color gallery and lets me choose a custom color scheme that actually starts with Accent 1.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Office

From novice to tech pro — start learning today.