mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 13:31:49 +00:00
remove the now unused Paragraph::translateIfPossible
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30525 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
95e983c382
commit
680590dfa8
@ -1605,22 +1605,13 @@ void Paragraph::setLabelWidthString(docstring const & s)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
docstring const Paragraph::translateIfPossible(docstring const & s,
|
|
||||||
BufferParams const & bparams) const
|
|
||||||
{
|
|
||||||
return lyx::translateIfPossible(s, getParLanguage(bparams)->code());
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
docstring Paragraph::expandLabel(Layout const & layout,
|
docstring Paragraph::expandLabel(Layout const & layout,
|
||||||
BufferParams const & bparams, bool process_appendix) const
|
BufferParams const & bparams, bool process_appendix) const
|
||||||
{
|
{
|
||||||
DocumentClass const & tclass = bparams.documentClass();
|
DocumentClass const & tclass = bparams.documentClass();
|
||||||
string const & lang = getParLanguage(bparams)->code();
|
string const & lang = getParLanguage(bparams)->code();
|
||||||
docstring fmt =
|
bool const in_appendix = process_appendix && d->params_.appendix();
|
||||||
lyx::translateIfPossible(layout.labelstring(process_appendix
|
docstring fmt = translateIfPossible(layout.labelstring(in_appendix), lang);
|
||||||
&& d->params_.appendix()),
|
|
||||||
lang);
|
|
||||||
|
|
||||||
if (fmt.empty() && layout.labeltype == LABEL_COUNTER
|
if (fmt.empty() && layout.labeltype == LABEL_COUNTER
|
||||||
&& !layout.counter.empty())
|
&& !layout.counter.empty())
|
||||||
|
@ -250,9 +250,6 @@ public:
|
|||||||
docstring const getLabelWidthString() const;
|
docstring const getLabelWidthString() const;
|
||||||
/// Set label width string.
|
/// Set label width string.
|
||||||
void setLabelWidthString(docstring const & s);
|
void setLabelWidthString(docstring const & s);
|
||||||
/// translate \p label to the paragraph language if possible.
|
|
||||||
docstring const translateIfPossible(docstring const & label,
|
|
||||||
BufferParams const & bparams) const;
|
|
||||||
/// Expand the counters for the labelstring of \c layout
|
/// Expand the counters for the labelstring of \c layout
|
||||||
docstring expandLabel(Layout const &, BufferParams const &,
|
docstring expandLabel(Layout const &, BufferParams const &,
|
||||||
bool process_appendix = true) const;
|
bool process_appendix = true) const;
|
||||||
|
Loading…
Reference in New Issue
Block a user