mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 05:25:26 +00:00
Constify some Paragraph::Private methods
This commit is contained in:
parent
5d8f3a9307
commit
87e59caebe
@ -307,7 +307,7 @@ public:
|
|||||||
/// \return the number of characters written.
|
/// \return the number of characters written.
|
||||||
int latexSurrogatePair(BufferParams const &, otexstream & os,
|
int latexSurrogatePair(BufferParams const &, otexstream & os,
|
||||||
char_type c, char_type next,
|
char_type c, char_type next,
|
||||||
OutputParams const &);
|
OutputParams const &) const;
|
||||||
|
|
||||||
/// Output a space in appropriate formatting (or a surrogate pair
|
/// Output a space in appropriate formatting (or a surrogate pair
|
||||||
/// if the next character is a combining character).
|
/// if the next character is a combining character).
|
||||||
@ -318,7 +318,7 @@ public:
|
|||||||
pos_type i,
|
pos_type i,
|
||||||
unsigned int & column,
|
unsigned int & column,
|
||||||
Font const & font,
|
Font const & font,
|
||||||
Layout const & style);
|
Layout const & style) const;
|
||||||
|
|
||||||
/// This could go to ParagraphParameters if we want to.
|
/// This could go to ParagraphParameters if we want to.
|
||||||
int startTeXParParams(BufferParams const &, otexstream &,
|
int startTeXParParams(BufferParams const &, otexstream &,
|
||||||
@ -342,7 +342,7 @@ public:
|
|||||||
unsigned int & column,
|
unsigned int & column,
|
||||||
bool const fontswitch_inset,
|
bool const fontswitch_inset,
|
||||||
bool const closeLanguage,
|
bool const closeLanguage,
|
||||||
bool const lang_switched_at_inset);
|
bool const lang_switched_at_inset) const;
|
||||||
|
|
||||||
///
|
///
|
||||||
void latexSpecialChar(
|
void latexSpecialChar(
|
||||||
@ -354,7 +354,7 @@ public:
|
|||||||
Layout const & style,
|
Layout const & style,
|
||||||
pos_type & i,
|
pos_type & i,
|
||||||
pos_type end_pos,
|
pos_type end_pos,
|
||||||
unsigned int & column);
|
unsigned int & column) const;
|
||||||
|
|
||||||
///
|
///
|
||||||
bool latexSpecialT1(
|
bool latexSpecialT1(
|
||||||
@ -401,7 +401,7 @@ public:
|
|||||||
return speller_change_number > speller_state_.currentChangeNumber();
|
return speller_change_number > speller_state_.currentChangeNumber();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ignoreWord(docstring const & word) const ;
|
bool ignoreWord(docstring const & word) const;
|
||||||
|
|
||||||
void setMisspelled(pos_type from, pos_type to, SpellChecker::Result state)
|
void setMisspelled(pos_type from, pos_type to, SpellChecker::Result state)
|
||||||
{
|
{
|
||||||
@ -937,7 +937,7 @@ int Paragraph::eraseChars(pos_type start, pos_type end, bool trackChanges)
|
|||||||
// Handle combining characters
|
// Handle combining characters
|
||||||
int Paragraph::Private::latexSurrogatePair(BufferParams const & bparams,
|
int Paragraph::Private::latexSurrogatePair(BufferParams const & bparams,
|
||||||
otexstream & os, char_type c, char_type next,
|
otexstream & os, char_type c, char_type next,
|
||||||
OutputParams const & runparams)
|
OutputParams const & runparams) const
|
||||||
{
|
{
|
||||||
// Writing next here may circumvent a possible font change between
|
// Writing next here may circumvent a possible font change between
|
||||||
// c and next. Since next is only output if it forms a surrogate pair
|
// c and next. Since next is only output if it forms a surrogate pair
|
||||||
@ -974,7 +974,7 @@ bool Paragraph::Private::simpleTeXBlanks(BufferParams const & bparams,
|
|||||||
pos_type i,
|
pos_type i,
|
||||||
unsigned int & column,
|
unsigned int & column,
|
||||||
Font const & font,
|
Font const & font,
|
||||||
Layout const & style)
|
Layout const & style) const
|
||||||
{
|
{
|
||||||
if (style.pass_thru || runparams.pass_thru)
|
if (style.pass_thru || runparams.pass_thru)
|
||||||
return false;
|
return false;
|
||||||
@ -1027,7 +1027,7 @@ void Paragraph::Private::latexInset(BufferParams const & bparams,
|
|||||||
unsigned int & column,
|
unsigned int & column,
|
||||||
bool const fontswitch_inset,
|
bool const fontswitch_inset,
|
||||||
bool const closeLanguage,
|
bool const closeLanguage,
|
||||||
bool const lang_switched_at_inset)
|
bool const lang_switched_at_inset) const
|
||||||
{
|
{
|
||||||
Inset * inset = owner_->getInset(i);
|
Inset * inset = owner_->getInset(i);
|
||||||
LBUFERR(inset);
|
LBUFERR(inset);
|
||||||
@ -1193,7 +1193,7 @@ void Paragraph::Private::latexSpecialChar(otexstream & os,
|
|||||||
Layout const & style,
|
Layout const & style,
|
||||||
pos_type & i,
|
pos_type & i,
|
||||||
pos_type end_pos,
|
pos_type end_pos,
|
||||||
unsigned int & column)
|
unsigned int & column) const
|
||||||
{
|
{
|
||||||
char_type const c = owner_->getUChar(bparams, runparams, i);
|
char_type const c = owner_->getUChar(bparams, runparams, i);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user