mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-07 02:28:35 +00:00
Implement isChanged for tabular inset.
This commit is contained in:
parent
b0371714a0
commit
93794d6fea
@ -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)
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user