]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetCaption.cpp
Change inset label from ": filename" to "Program Listing: filename" for listings...
[lyx.git] / src / insets / InsetCaption.cpp
index 193d6ba0bbb35b93fdba0073578010f75de8e433..7dca728ee8ff32f441e13d44648ec82255362a5e 100644 (file)
@@ -111,7 +111,7 @@ void InsetCaption::addToToc(DocIterator const & cpit)
        pit.push_back(CursorSlice(*this));
 
        Toc & toc = buffer().tocBackend().toc(type_);
-       docstring const str = full_label_ + ". " + text_.getPar(0).asString(false);
+       docstring const str = full_label_ + ". " + text_.getPar(0).asString();
        toc.push_back(TocItem(pit, 0, str));
 }
 
@@ -191,11 +191,11 @@ bool InsetCaption::getStatus(Cursor & cur, FuncRequest const & cmd,
 
        case LFUN_BREAK_PARAGRAPH:
        case LFUN_BREAK_PARAGRAPH_SKIP:
-               status.enabled(false);
+               status.setEnabled(false);
                return true;
 
        case LFUN_OPTIONAL_INSERT:
-               status.enabled(cur.paragraph().insetList().find(OPTARG_CODE) == -1);
+               status.setEnabled(cur.paragraph().insetList().find(OPTARG_CODE) == -1);
                return true;
 
        case LFUN_INSET_TOGGLE: