mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-27 14:29:21 +00:00
Compare commits
2 Commits
556efce34b
...
81f5fc80b5
Author | SHA1 | Date | |
---|---|---|---|
|
81f5fc80b5 | ||
|
945251a6c5 |
@ -24,6 +24,7 @@
|
|||||||
#include "Paragraph.h"
|
#include "Paragraph.h"
|
||||||
#include "ParIterator.h"
|
#include "ParIterator.h"
|
||||||
#include "PDFOptions.h"
|
#include "PDFOptions.h"
|
||||||
|
#include "Statistics.h"
|
||||||
#include "xml.h"
|
#include "xml.h"
|
||||||
#include "texstream.h"
|
#include "texstream.h"
|
||||||
#include "TocBackend.h"
|
#include "TocBackend.h"
|
||||||
@ -669,4 +670,15 @@ docstring InsetRef::getTOCString() const
|
|||||||
return (broken_ ? _("BROKEN: ") : docstring()) + toc_string_;
|
return (broken_ ? _("BROKEN: ") : docstring()) + toc_string_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void InsetRef::updateStatistics(Statistics & stats) const
|
||||||
|
{
|
||||||
|
docstring const & ref = getParam("reference");
|
||||||
|
string const & cmd = params().getCmdName();
|
||||||
|
// best we can do here
|
||||||
|
string const & lang = buffer().params().language->lang();
|
||||||
|
docstring const refstring = displayString(ref, cmd, lang);
|
||||||
|
stats.update(refstring);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
} // namespace lyx
|
} // namespace lyx
|
||||||
|
@ -75,6 +75,8 @@ public:
|
|||||||
///
|
///
|
||||||
void updateBuffer(ParIterator const & it, UpdateType, bool const deleted = false) override;
|
void updateBuffer(ParIterator const & it, UpdateType, bool const deleted = false) override;
|
||||||
///
|
///
|
||||||
|
void updateStatistics(Statistics & stats) const override;
|
||||||
|
///
|
||||||
void addToToc(DocIterator const & di, bool output_active,
|
void addToToc(DocIterator const & di, bool output_active,
|
||||||
UpdateType utype, TocBackend & backend) const override;
|
UpdateType utype, TocBackend & backend) const override;
|
||||||
///
|
///
|
||||||
|
Loading…
Reference in New Issue
Block a user