• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            posts - 4,  comments - 5,  trackbacks - 0
            點(diǎn)擊下載
            最近太忙, 短時(shí)間內(nèi)不會(huì)更新了,雖然還有一大堆還不太滿意的地方...
            還有來不及調(diào)試, 可能有BUG(必油雞), 大家隨便看看, 并指導(dǎo)一下,
            先說一下特色吧,  就是智能換行, 全文掃描標(biāo)點(diǎn)符(分前標(biāo)點(diǎn)后標(biāo)點(diǎn)), 支持多國語言.
            實(shí)現(xiàn)全模板化, 簡單的實(shí)體化如下,


             1#include "ShowDebugInfo.h" //輸出調(diào)試信息
             2#include "..\RcEditDef.h" //預(yù)定義
             3
             4#include "..\RcEditFontRecyclel.h" //字體回收站
             5#include "..\RcEditAlgorithm.h" //算法
             6class CFontRecyclel : public CFontRecyclelSimpT<CFontRecyclel>{};
             7
             8#include "RcEditColor.h" //顏色
             9#include "..\RcFontStyle.h" //風(fēng)格
            10class CFontStyle : public CFontStyleT<CFontStyle, CWinColor, CFontRecyclel>{};
            11
            12#include "RcWinDriverInterface.h" //CRcDCInterfaceT 設(shè)備接口
            13class CWinDcInterface : public CRcDCInterfaceT<CWinColor>{};//Comb ccolor
            14
            15#include "RcWinFontInterface.h" //CWinFont
            16#include "..\RcEditDriverInterface.h" //CRcEditDriverInterfaceT
            17class CRcWinDriverInterface : public CRcEditDriverInterfaceT<CRcWinDriverInterface, CWinFont, CWinDcInterface>{//Comb Font
            18}
            ;
            19#include "RcEdit/RcEditStringAnalysis.h" //定義int 與全局屬性不對(duì) 需要修改int ixxx to int nxxx
            20class CRcEditDrawInterface : public CRcEditStringAnalysisT< CRcEditDrawInterface, CFontStyle, CRcWinDriverInterface>{};
            21//內(nèi)容容器
            22#include "..\RcEditTextContainer.h"
            23#include "RcWinTextContainer.h" //ContentManageW
            24//撤銷重做容器
            25#include "..\rcEditUndo.h"
            26class CDoSthBase : public CDoSthBaseT<CDoSthBase>{};
            27class CRcEditUndoContainer : public CRcEditUndoContainerT<CRcEditUndoContainer, CDoSthBase>{};
            28//區(qū)域管理
            29#include "..\RcEditAreaManage.h"
            30typedef AutoSortVectorT< AreaMarkHandle, DWORD, std::vector<AreaMarkHandle>, OSTL::CriticalSectionNull, 0, FALSE> CAreaContainer;
            31class CAreaMarkContainer : public CAreaMarkContainerT<CAreaContainer>{};
            32class CRcAreaManage : public CRcAreaManageBaseT<CRcAreaManage, CAreaMarkContainer>{};
            33//內(nèi)存池
            34#include "..\rcMemPool.h"
            35class RcMemBufferPool : public RcMemBufferPoolT<410244096, OSTL::CriticalSection>{};
            36//行分析
            37#include "..\RcEditLineAnlyze.h"
            38//滾動(dòng)條
            39#include "..\RcEditScrollBase.h"
            40#include "RcWinScroll.h" //定義int 與全局屬性不對(duì) 需要修改int ixxx to int nxxx
            41//主編輯器核心
            42#include "..\RcEditBase.h"
            43 //編輯器主接口
            44class CRcEditInterface : public TRcEditInterface<ContentManageW, RcMemBufferPool, 
            45  CRcEditUndoContainer, CRcAreaManage,
            46  CRcEditDrawInterface, CWindowScroll>{};
            47//具體實(shí)現(xiàn)
            48template<class T, class TInterface>
            49  class CRcEditBaseT : public CLineAnlyzeBaseT<T, TInterface>{
            50public:
            51  typedef typename CLineAnlyzeBaseT<T, TInterface> TLineAnlyze;
            52  typedef typename TLineAnlyze::TLineInfo TLineInfo;
            53  typedef typename TInterface::TTextContainer CTextContainer, TTextContainer;
            54  typedef typename TInterface::TTextContainer::TVal TTextDate, TTextChar;
            55  typedef typename TInterface::TTextContainer::iterator TextIterator;
            56  typedef typename TInterface::TUndoContainer TUndoContainer, CUndoContainer; 
            57  typedef typename TInterface::TUndoContainer::CDoSthBase CDoSthBase, CDoSthInfo, TDoSthBase, TDoSthInfo; 
            58  typedef typename TInterface::TAreaManage TAreaManage, CAreaManage;
            59  typedef typename TInterface::TAreaManage::CAreaMarkContainer CAreaMarkContainer, TAreaMarkContainer;
            60  typedef typename TInterface::TDrawInterface TDrawInterface, CDrawInterface;
            61  typedef typename TInterface::TDrawInterface::TStyle TStyle, TFontStyle, CStyle, CFontStyle;  
            62  typedef typename TInterface::TDrawInterface::TStyle::TColor TColor, CColor;
            63  typedef typename TInterface::CriticalSectionT CriticalSectionT, CCriticalSection;
            64  typedef typename TInterface::TMemBufferPool TMemBufferPool, CMemBufferPool;
            65  typedef typename TInterface::TEditScrollBar TEditScrollBar, CEditScrollBar;
            66
            67}
            ;
            posted on 2010-11-06 18:50 ROCK 閱讀(1452) 評(píng)論(2)  編輯 收藏 引用

            FeedBack:
            # re: 新核心的編輯器的簡單閱覽版 [未登錄]
            2010-11-06 21:19 | megax
            >先說一下特色吧, 就是智能換行, 全文掃描標(biāo)點(diǎn)符(分前標(biāo)點(diǎn)后標(biāo)點(diǎn)),
            單詞邊界換行唄?  回復(fù)  更多評(píng)論
              
            # re: 新核心的編輯器的簡單閱覽版
            2010-11-07 10:02 | qqrock
            @megax
            是的  回復(fù)  更多評(píng)論
              

            只有注冊(cè)用戶登錄后才能發(fā)表評(píng)論。
            網(wǎng)站導(dǎo)航: 博客園   IT新聞   BlogJava   博問   Chat2DB   管理


            <2010年11月>
            31123456
            78910111213
            14151617181920
            21222324252627
            2829301234
            567891011

            常用鏈接

            留言簿

            隨筆檔案(4)

            搜索

            •  

            最新評(píng)論

            閱讀排行榜

            評(píng)論排行榜

            久久久久亚洲精品日久生情| 日韩精品久久久久久久电影| 久久九九全国免费| 久久久久99精品成人片牛牛影视| 亚洲国产精品无码久久久久久曰 | 日本久久中文字幕| 久久精品无码午夜福利理论片| 国产精品99久久久久久猫咪| 亚洲AV无一区二区三区久久| 国产女人aaa级久久久级| 亚洲精品无码久久久久去q| 久久精品国产一区二区三区| 久久精品国产网红主播| 热久久视久久精品18| 精品一久久香蕉国产线看播放| 人人狠狠综合久久88成人| 亚洲精品无码久久毛片| 精品无码久久久久久久久久 | 久久婷婷五月综合色99啪ak| 狠狠88综合久久久久综合网| 伊人久久大香线蕉综合影院首页| 久久97久久97精品免视看| 国产精品久久精品| 97精品国产91久久久久久| 色欲综合久久躁天天躁蜜桃| 日本WV一本一道久久香蕉| 久久久久人妻精品一区三寸蜜桃| 国产AⅤ精品一区二区三区久久| 久久99国产精品久久99果冻传媒| 久久精品国产99久久无毒不卡| 亚洲中文字幕久久精品无码APP| 免费精品国产日韩热久久| 国产69精品久久久久观看软件| 性欧美大战久久久久久久 | 国内精品久久九九国产精品| 久久精品中文字幕无码绿巨人| 蜜臀久久99精品久久久久久小说| 久久精品亚洲中文字幕无码麻豆 | 成人午夜精品久久久久久久小说| 亚洲国产精品久久久久婷婷软件| 青青青国产精品国产精品久久久久|