mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-19 04:20:09 +00:00
a59301eaff
The current spelling is not strictly wrong, but flagged as unusual or
historical by some authorities. It is also found fault with many
spell checkers. Thus we decided to move to the more standard "-ible"
form once and for all.
See #10678 for discussion
This part covers the most tricky part: the internal naming.
Translations and layouts will follow.
This will all also all be backported to 2.3.x, for the sake of backwards
compatibility (cherry-picking).
(cherry picked from commit c466baaa5b
)
64 lines
1.3 KiB
C++
64 lines
1.3 KiB
C++
// -*- C++ -*-
|
|
/**
|
|
* \file InsetFlex.h
|
|
* This file is part of LyX, the document processor.
|
|
* Licence details can be found in the file COPYING.
|
|
*
|
|
* \author Angus Leeming
|
|
* \author Martin Vermeer
|
|
*
|
|
* Full author contact details are available in file CREDITS.
|
|
*/
|
|
|
|
#ifndef INSETFLEX_H
|
|
#define INSETFLEX_H
|
|
|
|
#include "InsetCollapsible.h"
|
|
|
|
namespace lyx {
|
|
|
|
/** The Flex inset, e.g., CharStyle, Custom inset or XML short element
|
|
|
|
*/
|
|
class InsetFlex : public InsetCollapsible {
|
|
public:
|
|
///
|
|
InsetFlex(Buffer *, std::string const & layoutName);
|
|
///
|
|
docstring layoutName() const { return from_utf8("Flex:" + name_); }
|
|
///
|
|
InsetLayout const & getLayout() const;
|
|
///
|
|
InsetCode lyxCode() const { return FLEX_CODE; }
|
|
/// Default looks
|
|
InsetLayout::InsetDecoration decoration() const;
|
|
///
|
|
void write(std::ostream &) const;
|
|
/// should paragraph indendation be omitted in any case?
|
|
bool neverIndent() const { return true; }
|
|
///
|
|
bool hasSettings() const { return false; }
|
|
///
|
|
bool getStatus(Cursor & cur, FuncRequest const & cmd,
|
|
FuncStatus &) const;
|
|
///
|
|
void doDispatch(Cursor & cur, FuncRequest & cmd);
|
|
///
|
|
void updateBuffer(ParIterator const & it, UpdateType utype);
|
|
|
|
protected:
|
|
///
|
|
InsetFlex(InsetFlex const &);
|
|
|
|
private:
|
|
///
|
|
Inset * clone() const { return new InsetFlex(*this); }
|
|
///
|
|
std::string name_;
|
|
};
|
|
|
|
|
|
} // namespace lyx
|
|
|
|
#endif
|