import_cell_protection¶
Defined in header: <orcus/spreadsheet/import_interface_styles.hpp>
-
class import_cell_protection¶
Interface for importing cell protection items.
Public Functions
-
virtual ~import_cell_protection()¶
Hide the entire cell content when the sheet is protected.
- Parameters:
b – whether to hide the entire cell content when the sheet is protected.
-
virtual void set_locked(bool b) = 0¶
Lock the cell when the sheet is protected.
- Parameters:
b – whether or not to lock the cell when the sheet is protected.
-
virtual void set_print_content(bool b) = 0¶
Specify whether or not to print the cell content when the sheet is protected.
- Parameters:
b – whether or not to print the cell content when the sheet is protected.
Hide the formula when the sheet is protected and the cell contains formula.
- Parameters:
b – whether or not to hide the formula when the sheet is protected and the cell contains formula.
-
virtual std::size_t commit() = 0¶
Commit the cell protection data in the current buffer.
- Returns:
index of the committed cell protection data, to be passed on to the import_xf::set_protection() method as its argument.
-
virtual ~import_cell_protection()¶