X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FCutAndPaste.h;h=32f9a767bf44d0c3f833d67e216e84f458aac35d;hb=34d28f9daae536db06d6cf1a9dcf62dc0f5aa432;hp=825b11d210b0a0ff047b64ee1225d33789264906;hpb=797d87b4513088a66b17c7ac653b84e36ea80458;p=lyx.git diff --git a/src/CutAndPaste.h b/src/CutAndPaste.h index 825b11d210..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,26 @@ #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, + bool copySelection(Paragraph * startpar, Paragraph * endpar, int start, int end, char tc); /// static - bool pasteSelection(LyXParagraph ** par, LyXParagraph ** endpar, + bool pasteSelection(Paragraph ** par, Paragraph ** endpar, int & pos, char tc); /// static @@ -43,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 *, int pos); + bool checkPastePossible(Paragraph *); }; #endif