X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FCutAndPaste.h;h=32f9a767bf44d0c3f833d67e216e84f458aac35d;hb=34d28f9daae536db06d6cf1a9dcf62dc0f5aa432;hp=e95f0ba3d48d30b10acaa6f47c66cf3abbce6992;hpb=c90c5e6386ce69c34c99b3594d6fa452e6a13161;p=lyx.git diff --git a/src/CutAndPaste.h b/src/CutAndPaste.h index e95f0ba3d4..32f9a767bf 100644 --- a/src/CutAndPaste.h +++ b/src/CutAndPaste.h @@ -4,7 +4,7 @@ * * LyX, The Document Processor * - * Copyright 1995-2000 the LyX Team. + * Copyright 1995-2001 the LyX Team. * * ====================================================== */ @@ -15,25 +15,27 @@ #pragma interface #endif -#include "layout.h" +#include "support/types.h" -class LyXParagraph; +class Paragraph; +class BufferParams; /// class CutAndPaste { public: /// static - bool cutSelection(LyXParagraph * startpar, LyXParagraph ** endpar, - int start, int & end, char tc, bool doclear = false); + bool cutSelection(Paragraph * startpar, Paragraph ** endpar, + int start, int & end, char tc, bool doclear = false, + bool realcut = true); /// static - bool copySelection(LyXParagraph * startpar, LyXParagraph * endpar, - int start, int end, char tc); + bool copySelection(Paragraph * startpar, Paragraph * endpar, + int start, int end, char tc); /// static - bool pasteSelection(LyXParagraph ** par, LyXParagraph ** endpar, - int & pos, char tc); + bool pasteSelection(Paragraph ** par, Paragraph ** endpar, + int & pos, char tc); /// static int nrOfParagraphs(); @@ -42,12 +44,13 @@ public: return value is the number of wrong conversions */ static - int SwitchLayoutsBetweenClasses(LyXTextClassList::size_type class1, - LyXTextClassList::size_type class2, - LyXParagraph * par); + int SwitchLayoutsBetweenClasses(lyx::textclass_type class1, + lyx::textclass_type class2, + Paragraph * par, + BufferParams const & bparams); /// static - bool checkPastePossible(LyXParagraph *); + bool checkPastePossible(Paragraph *); }; #endif