mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-26 06:15:16 +00:00
Compare commits
2 Commits
556efce34b
...
81f5fc80b5
Author | SHA1 | Date | |
---|---|---|---|
|
81f5fc80b5 | ||
|
945251a6c5 |
@ -24,6 +24,7 @@
|
||||
#include "Paragraph.h"
|
||||
#include "ParIterator.h"
|
||||
#include "PDFOptions.h"
|
||||
#include "Statistics.h"
|
||||
#include "xml.h"
|
||||
#include "texstream.h"
|
||||
#include "TocBackend.h"
|
||||
@ -669,4 +670,15 @@ docstring InsetRef::getTOCString() const
|
||||
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
|
||||
|
@ -75,6 +75,8 @@ public:
|
||||
///
|
||||
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,
|
||||
UpdateType utype, TocBackend & backend) const override;
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user