diff --git a/mktextdocument.cpp b/mktextdocument.cpp index ea24fd8..2fc34ec 100644 --- a/mktextdocument.cpp +++ b/mktextdocument.cpp @@ -115,10 +115,19 @@ void MkTextDocument::cursorPosChangedHandle( bool hasSelection, int blockNumber, } hideMKSymbolsFromDrawingRect(rect,hasSelection,blockNumber,false, range, true); + //1. insert raw text in new cursor blocks + scanShowMkSymbolsInRangeOfBlocks(range, true); + //2. format texts from previous cursor blocks + } +void MkTextDocument::scanShowMkSymbolsInRangeOfBlocks(SelectRange * range,const bool clearPushCheckBoxData) +{ + //iterate from the first selected block to end selected block + +} void MkTextDocument::removeAllMkDataHandle(int blockNo) { QTextDocument::setPlainText(this->rawDocument.toPlainText()); diff --git a/mktextdocument.h b/mktextdocument.h index 17d9dc4..5337ec9 100644 --- a/mktextdocument.h +++ b/mktextdocument.h @@ -228,6 +228,7 @@ public slots: void hideMKSymbolsFromDrawingRect(QRect rect,bool hasSelection, int blockNumber, bool showAll,SelectRange * const editSelectRange, const bool clearPushCheckBoxData = true); + void scanShowMkSymbolsInRangeOfBlocks(SelectRange *range, const bool clearPushCheckBoxData); }; struct UndoData{