From b6f67e1d0b4c4fbb49c9c9f04871b5a30b442d38 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=BCrgen=20Spitzm=C3=BCller?= Date: Tue, 3 Feb 2009 10:38:13 +0000 Subject: [PATCH] some InsetPhantom fixes. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28336 a592a061-630c-0410-9148-cb99ea01b6c8 --- lib/layouts/stdinsets.inc | 21 +++------------------ src/insets/InsetPhantom.h | 10 ++++++++-- 2 files changed, 11 insertions(+), 20 deletions(-) diff --git a/lib/layouts/stdinsets.inc b/lib/layouts/stdinsets.inc index 21d92f2cb7..900b34d294 100644 --- a/lib/layouts/stdinsets.inc +++ b/lib/layouts/stdinsets.inc @@ -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 diff --git a/src/insets/InsetPhantom.h b/src/insets/InsetPhantom.h index e1e976b823..fa90988c25 100644 --- a/src/insets/InsetPhantom.h +++ b/src/insets/InsetPhantom.h @@ -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; -- 2.39.5