There are more warnings left, but these are the easiest to fix. And some of them are real bugs (assignments with == instead of =).
/// \return true if there is a Layout with latexname lay
bool hasLaTeXLayout(std::string const & lay) const;
/// A DocumentClass nevers count as loaded, since it is dynamic
- virtual bool loaded() { return false; }
+ virtual bool loaded() const { return false; }
/// \return the layout object of an inset given by name. If the name
/// is not found as such, the part after the ':' is stripped off, and
/// searched again. In this way, an error fallback can be provided:
GuiIdListModel modules_av_model_;
/// selected modules
GuiIdListModel modules_sel_model_;
- /// current buffer
- BufferId current_id_;
/// return false if validate_listings_params returns error
bool isValid();
}
+#if 0
bool isSymbolFamily(FontFamily family)
{
return family >= SYMBOL_FAMILY && family <= ESINT_FAMILY;
}
+#endif
static bool isChosenFont(QFont & font, QString const & family)
d->buffer_view_->scroll(up ? -step : step);
d->buffer_view_->updateMetrics();
} else {
- d->buffer_view_->scrollDocView(value + up ? -step : step, false);
+ d->buffer_view_->scrollDocView(value + (up ? -step : step), false);
}
// In which paragraph do we have to set the cursor ?
private:
///
QPoint dragStartPos_;
- ///
- int dragCurrentIndex_;
Q_SIGNALS:
///
}
+#if 0
/* FIXME (Ugras 17/11/06):
I have implemented a indexDepth function to get the model indices. In my
opinion, somebody should derive a new qvariant class for tocModelItem
return index.parent() == QModelIndex()
? depth : indexDepth(index.parent(), depth);
}
-
+#endif
void TocWidget::on_depthSL_valueChanged(int depth)
{
class ParamInfo {
public:
+ ///
+ ParamInfo() {}
/// Types of parameters
enum ParamType {
LATEX_OPTIONAL, /// normal optional argument
///
InsetCode lyxCode() const { return CELL_CODE; }
///
- Inset * clone() { return new InsetTableCell(*this); }
+ Inset * clone() const { return new InsetTableCell(*this); }
///
bool getStatus(Cursor & cur, FuncRequest const & cmd,
FuncStatus & status) const;
|| (key_->name.length() == 6 && key_->name.substr(0, 4) == "text"))
features.require("amstext");
if (key_->name == "mathscr")
- features.require("mathrsfs");
+ features.require("mathrsfs");
if (key_->name == "textipa")
features.require("tipa");
if (key_->name == "ce" || key_->name == "cf")
|| tag == "textbf")
variant = "bold";
else if (tag == "mathcal")
- variant == "script";
+ variant = "script";
else if (tag == "mathit" || tag == "textsl"
|| tag == "emph" || tag == "textit")
variant = "italic";
variant = "monospace";
else if (tag == "textipa" || tag == "textsc" || tag == "noun")
variant = "noun";
-
+
docstring const beg = (tag.size() < 4) ? from_ascii("") : tag.substr(0, 4);
if (!variant.empty()) {
os << MTag("span", "class='" + variant + "'")
|| tag == "textbf")
variant = "bold";
else if (tag == "mathcal")
- variant == "script";
+ variant = "script";
else if (tag == "mathit" || tag == "textsl"
|| tag == "emph" || tag == "textit")
variant = "italic";
else if (tag == "mathtt" || tag == "texttt")
variant = "monospace";
// no support at present for textipa, textsc, noun
-
+
if (!variant.empty()) {
os << MTag("mstyle", "mathvariant='" + variant + "'")
<< cell(0)
* \param filename the file in question. Must have an absolute path.
* Encoding is always UTF-8.
*/
- virtual void set(std::string const & filename);
- virtual void set(FileName const & fn, std::string const & suffix);
+ void set(std::string const & filename);
+ void set(FileName const & fn, std::string const & suffix);
virtual void erase();
/// Is this filename empty?
bool empty() const;
* \param buffer_path if \c filename has a relative path, generate
* the absolute path using this.
*/
- virtual void set(std::string const & filename, std::string const & buffer_path);
+ void set(std::string const & filename, std::string const & buffer_path);
///
void erase();
///
// This version use the traditional gettext.
Messages::Messages(string const & l)
- : lang_(l), warned_(false)
+ : lang_(l)
{
// strip off any encoding suffix, i.e., assume 8-bit po files
size_t i = lang_.find(".");
private:
///
std::string lang_;
- /// Did we warn about unavailable locale already?
- mutable bool warned_;
///
typedef std::map<std::string, docstring> TranslationCache;
/// Internal cache for gettext translated strings.