71 XLDefinedName append(std::string_view name, std::string_view formula, std::optional<uint32_t> localSheetId = std::nullopt);
72 void remove(std::string_view name, std::optional<uint32_t> localSheetId = std::nullopt);
73 XLDefinedName get(std::string_view name, std::optional<uint32_t> localSheetId = std::nullopt)
const;
74 std::vector<XLDefinedName> all()
const;
75 bool exists(std::string_view name, std::optional<uint32_t> localSheetId = std::nullopt)
const;
144 XLSheet sheet(std::string_view sheetName);
185 void deleteSheet(std::string_view sheetName);
191 void addWorksheet(std::string_view sheetName);
192 void addChartsheet(std::string_view sheetName);
199 void cloneSheet(std::string_view existingName, std::string_view newName);
206 void setSheetIndex(std::string_view sheetName,
unsigned int index);
213 unsigned int indexOfSheet(std::string_view sheetName)
const;
220 XLSheetType typeOfSheet(std::string_view sheetName)
const;
232 unsigned int sheetCount()
const;
237 unsigned int worksheetCount()
const;
242 unsigned int chartsheetCount()
const;
247 std::vector<std::string> sheetNames()
const;
252 std::vector<std::string> worksheetNames()
const;
257 std::vector<std::string> chartsheetNames()
const;
262 bool sheetExists(std::string_view sheetName)
const;
267 bool worksheetExists(std::string_view sheetName)
const;
272 bool chartsheetExists(std::string_view sheetName)
const;
277 void updateSheetReferences(std::string_view oldName, std::string_view newName);
282 void deleteNamedRanges();
287 void updateWorksheetDimensions();
292 void setFullCalculationOnLoad();
300 void protect(
bool lockStructure,
bool lockWindows, std::string_view password =
"");
310 bool isProtected()
const;
315 void print(std::basic_ostream<char>& ostr)
const;
321 uint16_t createInternalSheetID();
326 std::string sheetID(std::string_view sheetName);
331 std::string sheetName(std::string_view sheetID)
const;
336 std::string sheetVisibility(std::string_view sheetID)
const;
341 void prepareSheetMetadata(std::string_view sheetName, uint16_t internalID, std::string_view sheetPath =
"");
346 void setSheetName(std::string_view sheetRID, std::string_view newName);
351 void setSheetVisibility(std::string_view sheetRID, std::string_view state);
356 bool sheetIsActive(std::string_view sheetRID)
const;
361 bool setSheetActive(std::string_view sheetRID);
366 bool isVisibleState(std::string_view state)
const;
371 bool isVisible(
XMLNode const& sheetNode)
const;