r24178 by jghali - Fix missing handling of some object types in scripter's getObjectType()

scribus-commit scribus-commit at lists.scribus.net
Wed Nov 4 19:10:49 UTC 2020


Author: jghali
Date: Wed Nov  4 19:10:49 2020
New Revision: 24178

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=24178
Log:
Fix missing handling of some object types in scripter's getObjectType()

Modified:
    trunk/Scribus/scribus/plugins/scriptplugin/cmdgetprop.cpp
    trunk/Scribus/scribus/plugins/scriptplugin_py2x/cmdgetprop.cpp

Modified: trunk/Scribus/scribus/plugins/scriptplugin/cmdgetprop.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24178&path=/trunk/Scribus/scribus/plugins/scriptplugin/cmdgetprop.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/cmdgetprop.cpp	(original)
+++ trunk/Scribus/scribus/plugins/scriptplugin/cmdgetprop.cpp	Wed Nov  4 19:10:49 2020
@@ -43,6 +43,22 @@
 		result = "Polyline";
 	} else if (item->itemType() == PageItem::LatexFrame) {
 		result = "LatexFrame";
+	} else if (item->itemType() == PageItem::OSGFrame) {
+		result = "OSGFrame";
+	} else if (item->itemType() == PageItem::Symbol) {
+		result = "Symbol";
+	} else if (item->itemType() == PageItem::Group) {
+		result = "Group";
+	} else if (item->itemType() == PageItem::RegularPolygon) {
+		result = "RegularPolygon";
+	} else if (item->itemType() == PageItem::Arc) {
+		result = "Arc";
+	} else if (item->itemType() == PageItem::Spiral) {
+		result = "Spiral";
+	} else if (item->itemType() == PageItem::Table) {
+		result = "Table";
+	} else if (item->itemType() == PageItem::NoteFrame) {
+		result = "NoteFrame";
 	} else if (item->itemType() == PageItem::Multiple) {
 		result = "Multiple";
 	}

Modified: trunk/Scribus/scribus/plugins/scriptplugin_py2x/cmdgetprop.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24178&path=/trunk/Scribus/scribus/plugins/scriptplugin_py2x/cmdgetprop.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin_py2x/cmdgetprop.cpp	(original)
+++ trunk/Scribus/scribus/plugins/scriptplugin_py2x/cmdgetprop.cpp	Wed Nov  4 19:10:49 2020
@@ -43,6 +43,22 @@
 		result = "Polyline";
 	} else if (item->itemType() == PageItem::LatexFrame) {
 		result = "LatexFrame";
+	} else if (item->itemType() == PageItem::OSGFrame) {
+		result = "OSGFrame";
+	} else if (item->itemType() == PageItem::Symbol) {
+		result = "Symbol";
+	} else if (item->itemType() == PageItem::Group) {
+		result = "Group";
+	} else if (item->itemType() == PageItem::RegularPolygon) {
+		result = "RegularPolygon";
+	} else if (item->itemType() == PageItem::Arc) {
+		result = "Arc";
+	} else if (item->itemType() == PageItem::Spiral) {
+		result = "Spiral";
+	} else if (item->itemType() == PageItem::Table) {
+		result = "Table";
+	} else if (item->itemType() == PageItem::NoteFrame) {
+		result = "NoteFrame";
 	} else if (item->itemType() == PageItem::Multiple) {
 		result = "Multiple";
 	}




More information about the scribus-commit mailing list