diff --git a/source/detail/serialization/defined_name.hpp b/source/detail/serialization/defined_name.hpp index a0d3e92e..82a44ead 100644 --- a/source/detail/serialization/defined_name.hpp +++ b/source/detail/serialization/defined_name.hpp @@ -73,18 +73,18 @@ struct defined_name } // Implements (most of) CT_RevisionDefinedName, there's several "old" members in the spec but they're also ignored in other librarie - std::string name; - optional comment; - optional custom_menu; - optional description; - optional help; - optional status_bar; - optional sheet_id; // 0 indexed. - optional hidden; - optional function; - optional function_group_id; - optional shortcut_key; // This is unsigned byte in the spec, but openpyxl uses string so let's try that - std::string value; + std::string name; // A string representing the name for this defined name. + optional comment; // A string representing a comment about the defined name. + optional custom_menu; // A string representing the new custom menu text + optional description; // A string representing the new description text for the defined name. + optional help; // A string representing the new help topic text. + optional status_bar; // A string representing the new status bar text. + optional sheet_id; // An integer representing the id of the sheet to which this defined name belongs. This shall be used local defined names only. 0 indexed indexed. + optional hidden; // A Boolean value indicating whether the named range is now hidden. + optional function; // A Boolean value indicating that the defined name refers to a function. True if the defined name is a function, false otherwise. + optional function_group_id;// Represents the new function group id. + optional shortcut_key; // Represents the new keyboard shortcut. This is unsigned byte in the spec, but openpyxl uses string so let's try that + std::string value; // The actual value of the name, ie "='Sheet1'!A1" };