mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-13 06:20:28 +00:00
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23636 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
edf9667025
commit
346839b59f
@ -14,6 +14,7 @@
|
|||||||
#include "InsetCitation.h"
|
#include "InsetCitation.h"
|
||||||
|
|
||||||
#include "Buffer.h"
|
#include "Buffer.h"
|
||||||
|
#include "buffer_funcs.h"
|
||||||
#include "BufferParams.h"
|
#include "BufferParams.h"
|
||||||
#include "DispatchResult.h"
|
#include "DispatchResult.h"
|
||||||
#include "EmbeddedFiles.h"
|
#include "EmbeddedFiles.h"
|
||||||
@ -385,6 +386,14 @@ InsetCitation::InsetCitation(InsetCommandParams const & p)
|
|||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
void InsetCitation::initView()
|
||||||
|
{
|
||||||
|
// We need an update of the Buffer reference cache. This is achieved by
|
||||||
|
// updateLabel().
|
||||||
|
lyx::updateLabels(buffer());
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
ParamInfo const & InsetCitation::findInfo(string const & /* cmdName */)
|
ParamInfo const & InsetCitation::findInfo(string const & /* cmdName */)
|
||||||
{
|
{
|
||||||
// standard cite does only take one argument if jurabib is
|
// standard cite does only take one argument if jurabib is
|
||||||
@ -465,16 +474,8 @@ void InsetCitation::addToToc(ParConstIterator const & cpit) const
|
|||||||
|
|
||||||
int InsetCitation::plaintext(odocstream & os, OutputParams const &) const
|
int InsetCitation::plaintext(odocstream & os, OutputParams const &) const
|
||||||
{
|
{
|
||||||
docstring str;
|
os << cache.generated_label;
|
||||||
|
return cache.generated_label.size();
|
||||||
if (cache.params == params() &&
|
|
||||||
cache.engine == buffer().params().getEngine())
|
|
||||||
str = cache.generated_label;
|
|
||||||
else
|
|
||||||
str = generateLabel();
|
|
||||||
|
|
||||||
os << str;
|
|
||||||
return str.size();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -30,6 +30,8 @@ public:
|
|||||||
///
|
///
|
||||||
InsetCitation(InsetCommandParams const &);
|
InsetCitation(InsetCommandParams const &);
|
||||||
///
|
///
|
||||||
|
void initView();
|
||||||
|
///
|
||||||
docstring screenLabel() const;
|
docstring screenLabel() const;
|
||||||
///
|
///
|
||||||
EDITABLE editable() const { return IS_EDITABLE; }
|
EDITABLE editable() const { return IS_EDITABLE; }
|
||||||
|
Loading…
Reference in New Issue
Block a user