+-- Return a table of names associated with decorator symbols.
+function decorator_names(model)
+ local sheets = model.doc:sheets()
+ local symbols = sheets:allNames("symbol")
+ local res = {}
+ for _, name in pairs(symbols) do
+ if name:find("deco/") == 1 then
+ res[#res + 1] = name
+ end
+ end
+ return res
+end
+
+-- Ask the user for a decorator and run the decoration.
+function run_decorator (model)