mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 21:21:32 +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,
|
||||
BufferParams const & bparams, bool process_appendix) const
|
||||
{
|
||||
DocumentClass const & tclass = bparams.documentClass();
|
||||
string const & lang = getParLanguage(bparams)->code();
|
||||
docstring fmt =
|
||||
lyx::translateIfPossible(layout.labelstring(process_appendix
|
||||
&& d->params_.appendix()),
|
||||
lang);
|
||||
bool const in_appendix = process_appendix && d->params_.appendix();
|
||||
docstring fmt = translateIfPossible(layout.labelstring(in_appendix), lang);
|
||||
|
||||
if (fmt.empty() && layout.labeltype == LABEL_COUNTER
|
||||
&& !layout.counter.empty())
|
||||
|
@ -250,9 +250,6 @@ public:
|
||||
docstring const getLabelWidthString() const;
|
||||
/// Set label width string.
|
||||
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
|
||||
docstring expandLabel(Layout const &, BufferParams const &,
|
||||
bool process_appendix = true) const;
|
||||
|
Loading…
Reference in New Issue
Block a user