mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 03:11:59 +00:00
parent
673e5fed51
commit
cce9adc185
@ -445,6 +445,18 @@ docstring InsetCitation::basicLabel(bool for_xhtml) const
|
|||||||
return '[' + label + ']';
|
return '[' + label + ']';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
bool InsetCitation::forceLTR(OutputParams const & rp) const
|
||||||
|
{
|
||||||
|
// We have to force LTR for numeric references
|
||||||
|
// [= plain BibTeX, numeric natbib and biblatex].
|
||||||
|
// Except for XeTeX/bidi . See #3005.
|
||||||
|
if (rp.useBidiPackage())
|
||||||
|
return false;
|
||||||
|
return (buffer().masterParams().citeEngine() == "basic"
|
||||||
|
|| buffer().masterParams().citeEngineType() == ENGINE_TYPE_NUMERICAL);
|
||||||
|
}
|
||||||
|
|
||||||
docstring InsetCitation::screenLabel() const
|
docstring InsetCitation::screenLabel() const
|
||||||
{
|
{
|
||||||
return cache.screen_label;
|
return cache.screen_label;
|
||||||
|
@ -70,6 +70,8 @@ public:
|
|||||||
UpdateType utype, TocBackend & backend) const;
|
UpdateType utype, TocBackend & backend) const;
|
||||||
///
|
///
|
||||||
std::string contextMenuName() const;
|
std::string contextMenuName() const;
|
||||||
|
///
|
||||||
|
bool forceLTR(OutputParams const &) const;
|
||||||
//@}
|
//@}
|
||||||
|
|
||||||
/// \name Static public methods obligated for InsetCommand derived classes
|
/// \name Static public methods obligated for InsetCommand derived classes
|
||||||
|
Loading…
Reference in New Issue
Block a user