summaryrefslogtreecommitdiff
path: root/xmloff/source/style/styleexp.cxx
diff options
context:
space:
mode:
authorCédric Bosdonnat <cedric.bosdonnat@free.fr>2012-11-30 18:51:55 +0100
committerCédric Bosdonnat <cedric.bosdonnat@free.fr>2012-11-30 22:15:38 +0100
commita0dcf961879ab644a52f801f65466756cb144b72 (patch)
treef99701fb10d080eb3eb337a0261702394b183077 /xmloff/source/style/styleexp.cxx
parent316656755caabf4797391c46338c58945908837d (diff)
Hidden styles: ODF import/export
Change-Id: I1138314eba33dc8cf8d1f60e77ac419b4550bbcc
Diffstat (limited to 'xmloff/source/style/styleexp.cxx')
-rw-r--r--xmloff/source/style/styleexp.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/xmloff/source/style/styleexp.cxx b/xmloff/source/style/styleexp.cxx
index 2970392078fa..0a9669eb1fdf 100644
--- a/xmloff/source/style/styleexp.cxx
+++ b/xmloff/source/style/styleexp.cxx
@@ -121,6 +121,9 @@ sal_Bool XMLStyleExport::exportStyle(
if( !rXMLFamily.isEmpty() )
GetExport().AddAttribute( XML_NAMESPACE_STYLE, XML_FAMILY, rXMLFamily);
+ if ( rStyle->isHidden( ) && GetExport( ).getDefaultVersion( ) == SvtSaveOptions::ODFVER_LATEST )
+ GetExport( ).AddAttribute( XML_NAMESPACE_STYLE, XML_HIDDEN, "true" );
+
// style:parent-style-name="..."
OUString sParentString(rStyle->getParentStyle());
OUString sParent;