]> git.lyx.org Git - features.git/commitdiff
some InsetPhantom fixes.
authorJürgen Spitzmüller <spitz@lyx.org>
Tue, 3 Feb 2009 10:38:13 +0000 (10:38 +0000)
committerJürgen Spitzmüller <spitz@lyx.org>
Tue, 3 Feb 2009 10:38:13 +0000 (10:38 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28336 a592a061-630c-0410-9148-cb99ea01b6c8

lib/layouts/stdinsets.inc
src/insets/InsetPhantom.h

index 21d92f2cb79843fa4f90a7045e60efdbcf1257df..900b34d294eff5fbaecb34285ce32863782acc2e 100644 (file)
@@ -157,26 +157,11 @@ InsetLayout ERT
        ForceLTR              true
 End
 
-InsetLayout Phantom:Phantom
-       LatexType               command
-       LatexName               phantom
-       Decoration              minimalistic
+InsetLayout Phantom
+       Decoration            minimalistic
        Font
-         Color                 phantomtext
+         Color               phantomtext
        EndFont
-       MultiPar                false
-       CustomPars              false
-End
-
-
-InsetLayout Phantom:HPhantom
-       CopyStyle               Phantom:Phantom
-       LatexName               hphantom
-End
-
-InsetLayout Phantom:VPhantom
-       CopyStyle               Phantom:Phantom
-       LatexName               vphantom
 End
 
 InsetLayout Listings
index e1e976b8232aadbed559e20ede4f979849ee3a47..fa90988c25bc48bb7c56fda61b2a2f742259620d 100644 (file)
@@ -4,7 +4,7 @@
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
- * \author Uwe Stöhr
+ * \author Uwe Stöhr
  *
  * Full author contact details are available in file CREDITS.
  */
@@ -42,7 +42,7 @@ public:
 //
 /////////////////////////////////////////////////////////////////////////
 
-/// The PostIt phantom inset, and other annotations
+/// The phantom inset
 class InsetPhantom : public InsetCollapsable
 {
 public:
@@ -76,6 +76,12 @@ private:
        /// show the phantom dialog
        bool showInsetDialog(BufferView * bv) const;
        ///
+       bool allowParagraphCustomization(idx_type = 0) const { return false; }
+       ///
+       bool forcePlainLayout(idx_type = 0) const { return true; }
+       ///
+       bool neverIndent() const { return true; }
+       ///
        int latex(odocstream &, OutputParams const &) const;
        ///
        int plaintext(odocstream &, OutputParams const &) const;