PropertyMap and new Attributes for the Assembly object and the Document

This commit is contained in:
jriegel
2013-01-06 20:39:52 +01:00
committed by Stefan Tröger
parent f3eb8dd1f8
commit 944e1c1b86
3 changed files with 47 additions and 8 deletions

View File

@@ -927,6 +927,10 @@ Document::Document(void)
ADD_PROPERTY_TYPE(Id,(""),0,Prop_None,"ID of the document");
ADD_PROPERTY_TYPE(Uid,(id),0,Prop_ReadOnly,"UUID of the document");
// license stuff
ADD_PROPERTY_TYPE(License,("CC-BY 3.0"),0,Prop_None,"License string of the Item");
ADD_PROPERTY_TYPE(LicenseURL,("http://creativecommons.org/licenses/by/3.0/"),0,Prop_None,"URL to the license text/contract");
// license stuff
int licenseId = App::GetApplication().GetParameterGroupByPath
("User parameter:BaseApp/Preferences/Document")->GetInt("prefLicenseType",0);