]> git.lyx.org Git - features.git/commitdiff
Add InsetOptArg to standard insets.
authorAbdelrazak Younes <younes@lyx.org>
Thu, 15 Nov 2007 15:40:01 +0000 (15:40 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Thu, 15 Nov 2007 15:40:01 +0000 (15:40 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21627 a592a061-630c-0410-9148-cb99ea01b6c8

lib/layouts/stdinsets.inc
src/insets/InsetOptArg.cpp
src/insets/InsetOptArg.h

index 5e051a151704da8dc376988fbbfe64a9730c65d1..69e1955ec0eb56ee339b518644fc9a87c668d8ba 100644 (file)
@@ -224,3 +224,11 @@ InsetLayout URL
        EndPreamble
 End
 
+InsetLayout OptArg
+       LabelString           opt
+       LabelFont
+         Color               collapsable
+         Size                Small
+       EndFont
+       MultiPar              false
+End
index 964c04e578384c539f11877893d818cff857a1f8..d4d3fa3e9225a9b1f78d0642bd3f1c80575d62f3 100644 (file)
@@ -23,16 +23,12 @@ namespace lyx {
 
 InsetOptArg::InsetOptArg(BufferParams const & ins)
        : InsetCollapsable(ins)
-{
-       setLabel(_("opt"));
-}
+{}
 
 
 InsetOptArg::InsetOptArg(InsetOptArg const & in)
        : InsetCollapsable(in)
-{
-       setLabel(_("opt"));
-}
+{}
 
 
 Inset * InsetOptArg::clone() const
index 849afe79a48e931aab19021ddf602c1d36d31189..0f12d369b56e2de3721de169801592c15313fe89 100644 (file)
@@ -29,6 +29,8 @@ public:
 
        /// code of the inset
        InsetCode lyxCode() const { return OPTARG_CODE; }
+       ///
+       docstring name() const { return from_ascii("OptArg"); }
        /// return an message upon editing
        virtual docstring const editMessage() const;