Implement isChanged for tabular inset.

This commit is contained in:
Jean-Marc Lasgouttes 2020-01-13 16:34:38 +01:00
parent b0371714a0
commit 93794d6fea
2 changed files with 12 additions and 0 deletions

View File

@ -7122,6 +7122,16 @@ Text * InsetTabular::getText(int idx) const
}
bool InsetTabular::isChanged() const
{
for (idx_type idx = 0; idx < nargs(); ++idx)
if (cell(idx)->isChanged())
return true;
// FIXME: shall we look at row/columns changed status?
return false;
}
void InsetTabular::setChange(Change const & change)
{
for (idx_type idx = 0; idx < nargs(); ++idx)

View File

@ -1000,6 +1000,8 @@ public:
///
Text * getText(int) const;
/// does the inset contain changes ?
bool isChanged() const;
/// set the change for the entire inset
void setChange(Change const & change);
/// accept the changes within the inset