void GuiRef::enableBoxes()
{
- bool const isFormatted =
- (InsetRef::getName(typeCO->currentIndex()) == "formatted");
- bool const isLabelOnly =
- (InsetRef::getName(typeCO->currentIndex()) == "labelonly");
+ QString const reftype =
+ typeCO->itemData(typeCO->currentIndex()).toString();
+ bool const isFormatted = (reftype == "formatted");
+ bool const isLabelOnly = (reftype == "labelonly");
bool const usingRefStyle = buffer().params().use_refstyle;
pluralCB->setEnabled(isFormatted && usingRefStyle);
capsCB->setEnabled(isFormatted && usingRefStyle);
}
-string const & InsetRef::getName(int type)
-{
- return types[type].latex_name;
-}
-
-
docstring InsetRef::getTOCString() const
{
return tooltip_.empty() ? screenLabel() : tooltip_;
static const type_info types[];
///
static int getType(std::string const & name);
- ///
- static std::string const & getName(int type);
///
InsetRef(Buffer * buffer, InsetCommandParams const &);