summaryrefslogtreecommitdiff
path: root/sd/source/ui/unoidl
diff options
context:
space:
mode:
authorRadek Doulik <rodo@novell.com>2013-02-22 12:03:54 +0100
committerRadek Doulik <rodo@novell.com>2013-02-22 12:05:30 +0100
commit64cdf8072a79491903c5d1b107c6486b33da04d3 (patch)
tree2673e56ee4a5f13227ac024c5cf052578d6c03ab /sd/source/ui/unoidl
parent805f1ed598ef18157710cf3655d329b09a735389 (diff)
added EmbedFonts property, added File/Properties/Font tab
Change-Id: Id2a812c4b5347e2851149a1bd46eaec4b40d0f12
Diffstat (limited to 'sd/source/ui/unoidl')
-rw-r--r--sd/source/ui/unoidl/UnoDocumentSettings.cxx21
1 files changed, 20 insertions, 1 deletions
diff --git a/sd/source/ui/unoidl/UnoDocumentSettings.cxx b/sd/source/ui/unoidl/UnoDocumentSettings.cxx
index c83a3f88ffa3..7c3ba8439b7d 100644
--- a/sd/source/ui/unoidl/UnoDocumentSettings.cxx
+++ b/sd/source/ui/unoidl/UnoDocumentSettings.cxx
@@ -141,7 +141,7 @@ enum SdDocumentSettingsPropertyHandles
HANDLE_PRINTER_INDEPENDENT_LAYOUT
// #i33095#
,HANDLE_LOAD_READONLY, HANDLE_SAVE_VERSION
- ,HANDLE_SLIDESPERHANDOUT, HANDLE_HANDOUTHORIZONTAL
+ ,HANDLE_SLIDESPERHANDOUT, HANDLE_HANDOUTHORIZONTAL, HANDLE_EMBED_FONTS
};
#define MID_PRINTER 1
@@ -202,6 +202,7 @@ enum SdDocumentSettingsPropertyHandles
// --> #i33095#
{ MAP_LEN("LoadReadonly"), HANDLE_LOAD_READONLY, &::getBooleanCppuType(), 0, 0 },
{ MAP_LEN("SaveVersionOnClose"), HANDLE_SAVE_VERSION, &::getBooleanCppuType(), 0, 0 },
+ { MAP_LEN("EmbedFonts"), HANDLE_EMBED_FONTS, &::getBooleanCppuType(), 0, 0 },
{ NULL, 0, 0, NULL, 0, 0 }
};
@@ -902,6 +903,18 @@ void DocumentSettings::_setPropertyValues( const PropertyMapEntry** ppEntries, c
}
break;
+ case HANDLE_EMBED_FONTS:
+ {
+ sal_Bool bNewValue = sal_False;
+ if ( *pValues >>= bNewValue )
+ {
+ bChanged = ( pDoc->IsUsingEmbededFonts() != bNewValue );
+ pDoc->SetIsUsingEmbededFonts( bNewValue );
+ bOk = true;
+ }
+ }
+ break;
+
default:
throw UnknownPropertyException();
}
@@ -1129,6 +1142,12 @@ void DocumentSettings::_getPropertyValues( const PropertyMapEntry** ppEntries, A
}
break;
+ case HANDLE_EMBED_FONTS:
+ {
+ *pValue <<= pDoc->IsUsingEmbededFonts();
+ }
+ break;
+
default:
throw UnknownPropertyException();
}