亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? htmlediting.h

?? It is WEB browser core module with source code. Very good!
?? H
?? 第 1 頁 / 共 3 頁
字號(hào):

//------------------------------------------------------------------------------------------
// RemoveNodePreservingChildrenCommand

class RemoveNodePreservingChildrenCommand : public CompositeEditCommand
{
public:
    RemoveNodePreservingChildrenCommand(DOM::DocumentImpl *, DOM::NodeImpl *);
    virtual ~RemoveNodePreservingChildrenCommand();
	
    virtual void doApply();

    DOM::NodeImpl *node() const { return m_node; }

private:
    DOM::NodeImpl *m_node;
};

//------------------------------------------------------------------------------------------
// ReplaceSelectionCommand

// --- NodeDesiredStyle helper class

class NodeDesiredStyle
OOM_MODIFIED
{
public:
    NodeDesiredStyle(DOM::NodeImpl *, DOM::CSSMutableStyleDeclarationImpl *);
    NodeDesiredStyle(const NodeDesiredStyle &);
    ~NodeDesiredStyle();
    
    DOM::NodeImpl *node() const { return m_node; }
    DOM::CSSMutableStyleDeclarationImpl *style() const { return m_style; }

    NodeDesiredStyle &operator=(const NodeDesiredStyle &);

private:
    DOM::NodeImpl *m_node;
    DOM::CSSMutableStyleDeclarationImpl *m_style;
};

// --- ReplacementFragment helper class

class ReplacementFragment
OOM_MODIFIED
{
public:
    ReplacementFragment(DOM::DocumentImpl *, DOM::DocumentFragmentImpl *, bool matchStyle);
    ~ReplacementFragment();

    enum EFragmentType { EmptyFragment, SingleTextNodeFragment, TreeFragment };

    DOM::DocumentFragmentImpl *root() const { return m_fragment; }
    DOM::NodeImpl *firstChild() const;
    DOM::NodeImpl *lastChild() const;

    DOM::NodeImpl *mergeStartNode() const;

    const QValueList<NodeDesiredStyle> &desiredStyles() { return m_styles; }
        
    void pruneEmptyNodes();

    EFragmentType type() const { return m_type; }
    bool isEmpty() const { return m_type == EmptyFragment; }
    bool isSingleTextNode() const { return m_type == SingleTextNodeFragment; }
    bool isTreeFragment() const { return m_type == TreeFragment; }

    bool hasMoreThanOneBlock() const { return m_hasMoreThanOneBlock; }
    bool hasInterchangeNewlineAtStart() const { return m_hasInterchangeNewlineAtStart; }
    bool hasInterchangeNewlineAtEnd() const { return m_hasInterchangeNewlineAtEnd; }

private:
    // no copy construction or assignment
    ReplacementFragment(const ReplacementFragment &);
    ReplacementFragment &operator=(const ReplacementFragment &);
    
    static bool isInterchangeNewlineNode(const DOM::NodeImpl *);
    static bool isInterchangeConvertedSpaceSpan(const DOM::NodeImpl *);

    DOM::NodeImpl *insertFragmentForTestRendering();
    void restoreTestRenderingNodesToFragment(DOM::NodeImpl *);
    void computeStylesUsingTestRendering(DOM::NodeImpl *);
    void removeUnrenderedNodesUsingTestRendering(DOM::NodeImpl *);
    int countRenderedBlocks(DOM::NodeImpl *holder);
    void removeStyleNodes();

    // A couple simple DOM helpers
    DOM::NodeImpl *enclosingBlock(DOM::NodeImpl *) const;
    void removeNode(DOM::NodeImpl *);
    void removeNodePreservingChildren(DOM::NodeImpl *);
    void insertNodeBefore(DOM::NodeImpl *node, DOM::NodeImpl *refNode);

    EFragmentType m_type;
    DOM::DocumentImpl *m_document;
    DOM::DocumentFragmentImpl *m_fragment;
    QValueList<NodeDesiredStyle> m_styles;
    bool m_matchStyle;
    bool m_hasInterchangeNewlineAtStart;
    bool m_hasInterchangeNewlineAtEnd;
    bool m_hasMoreThanOneBlock;
};

class ReplaceSelectionCommand : public CompositeEditCommand
{
public:
    ReplaceSelectionCommand(DOM::DocumentImpl *document, DOM::DocumentFragmentImpl *fragment, bool selectReplacement=true, bool smartReplace=false, bool matchStyle=false);
    virtual ~ReplaceSelectionCommand();
    
    virtual void doApply();
    virtual EditAction editingAction() const;

private:
    void completeHTMLReplacement(const DOM::Position &lastPositionToSelect);

    void insertNodeAfterAndUpdateNodesInserted(DOM::NodeImpl *insertChild, DOM::NodeImpl *refChild);
    void insertNodeAtAndUpdateNodesInserted(DOM::NodeImpl *insertChild, DOM::NodeImpl *refChild, long offset);
    void insertNodeBeforeAndUpdateNodesInserted(DOM::NodeImpl *insertChild, DOM::NodeImpl *refChild);

    void updateNodesInserted(DOM::NodeImpl *);
    void fixupNodeStyles(const QValueList<NodeDesiredStyle> &);
    void removeLinePlaceholderIfNeeded(DOM::NodeImpl *);

    ReplacementFragment m_fragment;
    DOM::NodeImpl *m_firstNodeInserted;
    DOM::NodeImpl *m_lastNodeInserted;
    DOM::NodeImpl *m_lastTopNodeInserted;
    DOM::CSSMutableStyleDeclarationImpl *m_insertionStyle;
    bool m_selectReplacement;
    bool m_smartReplace;
    bool m_matchStyle;
};

void computeAndStoreNodeDesiredStyle(DOM::NodeImpl *, QValueList<NodeDesiredStyle> &);

//------------------------------------------------------------------------------------------
// SetNodeAttributeCommand

class SetNodeAttributeCommand : public EditCommand
{
public:
    SetNodeAttributeCommand(DOM::DocumentImpl *, DOM::ElementImpl *, DOM::NodeImpl::Id attribute, const DOM::DOMString &value);
    virtual ~SetNodeAttributeCommand();

    virtual void doApply();
    virtual void doUnapply();

    DOM::ElementImpl *element() const { return m_element; }
    DOM::NodeImpl::Id attribute() const { return m_attribute; }
    DOM::DOMString value() const { return m_value; }
    
private:
    DOM::ElementImpl *m_element;
    DOM::NodeImpl::Id m_attribute;
    DOM::DOMString m_value;
    DOM::DOMString m_oldValue;
};

//------------------------------------------------------------------------------------------
// SplitTextNodeCommand

class SplitTextNodeCommand : public EditCommand
{
public:
    SplitTextNodeCommand(DOM::DocumentImpl *, DOM::TextImpl *, long);
    virtual ~SplitTextNodeCommand();
	
    virtual void doApply();
    virtual void doUnapply();

    DOM::TextImpl *node() const { return m_text2; }
    long offset() const { return m_offset; }

private:
    DOM::TextImpl *m_text1;
    DOM::TextImpl *m_text2;
    unsigned long m_offset;
};

//------------------------------------------------------------------------------------------
// WrapContentsInDummySpanCommand

class WrapContentsInDummySpanCommand : public EditCommand
{
public:
    WrapContentsInDummySpanCommand(DOM::DocumentImpl *, DOM::ElementImpl *);
    virtual ~WrapContentsInDummySpanCommand();
	
    virtual void doApply();
    virtual void doUnapply();

private:
    DOM::ElementImpl *m_element;
    DOM::ElementImpl *m_dummySpan;
};

//------------------------------------------------------------------------------------------
// SplitElementCommand

class SplitElementCommand : public EditCommand
{
public:
    SplitElementCommand(DOM::DocumentImpl *, DOM::ElementImpl *element, DOM::NodeImpl *atChild);
    virtual ~SplitElementCommand();
	
    virtual void doApply();
    virtual void doUnapply();

private:
    DOM::ElementImpl *m_element1;
    DOM::ElementImpl *m_element2;
    DOM::NodeImpl *m_atChild;
};

//------------------------------------------------------------------------------------------
// MergeIdenticalElementsCommand

class MergeIdenticalElementsCommand : public EditCommand
{
public:
    MergeIdenticalElementsCommand(DOM::DocumentImpl *, DOM::ElementImpl *first, DOM::ElementImpl *second);
    virtual ~MergeIdenticalElementsCommand();
	
    virtual void doApply();
    virtual void doUnapply();

private:
    DOM::ElementImpl *m_element1;
    DOM::ElementImpl *m_element2;
    DOM::NodeImpl *m_atChild;
};

//------------------------------------------------------------------------------------------
// SplitTextNodeContainingElementCommand

class SplitTextNodeContainingElementCommand : public CompositeEditCommand
{
public:
    SplitTextNodeContainingElementCommand(DOM::DocumentImpl *, DOM::TextImpl *, long);
    virtual ~SplitTextNodeContainingElementCommand();
	
    virtual void doApply();

private:
    DOM::TextImpl *m_text;
    long m_offset;
};


//------------------------------------------------------------------------------------------
// TypingCommand

class TypingCommand : public CompositeEditCommand
{
public:
    enum ETypingCommand { 
        DeleteKey, 
        ForwardDeleteKey, 
        InsertText, 
        InsertLineBreak, 
        InsertParagraphSeparator,
        InsertParagraphSeparatorInQuotedContent,
    };

    TypingCommand(DOM::DocumentImpl *document, ETypingCommand, const DOM::DOMString &text = "", bool selectInsertedText = false);

    static void deleteKeyPressed(DOM::DocumentImpl *, bool smartDelete = false);
    static void forwardDeleteKeyPressed(DOM::DocumentImpl *, bool smartDelete = false);
    static void insertText(DOM::DocumentImpl *, const DOM::DOMString &, bool selectInsertedText = false);
    static void insertLineBreak(DOM::DocumentImpl *);
    static void insertParagraphSeparator(DOM::DocumentImpl *);
    static void insertParagraphSeparatorInQuotedContent(DOM::DocumentImpl *);
    static bool isOpenForMoreTypingCommand(const EditCommandPtr &);
    static void closeTyping(const EditCommandPtr &);
    
    virtual void doApply();
    virtual EditAction editingAction() const;

    bool openForMoreTyping() const { return m_openForMoreTyping; }
    void closeTyping() { m_openForMoreTyping = false; }

    void insertText(const DOM::DOMString &text, bool selectInsertedText);
    void insertTextRunWithoutNewlines(const DOM::DOMString &text, bool selectInsertedText);
    void insertLineBreak();
    void insertParagraphSeparatorInQuotedContent();
    void insertParagraphSeparator();
    void deleteKeyPressed();
    void forwardDeleteKeyPressed();

    bool smartDelete() { return m_smartDelete; }
    void setSmartDelete(bool smartDelete) { m_smartDelete = smartDelete; }

private:
    virtual bool isTypingCommand() const;
    virtual bool preservesTypingStyle() const;

    void markMisspellingsAfterTyping();
    void typingAddedToOpenCommand();
    
    ETypingCommand m_commandType;
    DOM::DOMString m_textToInsert;
    bool m_openForMoreTyping;
    bool m_applyEditing;
    bool m_selectInsertedText;
    bool m_smartDelete;
};

//------------------------------------------------------------------------------------------

DOM::ElementImpl *floatRefdElement(DOM::ElementImpl *element);
DOM::ElementImpl *createDefaultParagraphElement(DOM::DocumentImpl *document);
DOM::ElementImpl *createBlockPlaceholderElement(DOM::DocumentImpl *document);
DOM::ElementImpl *createBreakElement(DOM::DocumentImpl *document);
DOM::ElementImpl *createFontElement(DOM::DocumentImpl *document);
DOM::ElementImpl *createStyleSpanElement(DOM::DocumentImpl *document);

bool isNodeRendered(const DOM::NodeImpl *);
bool isProbablyBlock(const DOM::NodeImpl *);
bool isProbablyTableStructureNode(const DOM::NodeImpl *);
bool isMailBlockquote(const DOM::NodeImpl *);
DOM::NodeImpl *nearestMailBlockquote(const DOM::NodeImpl *);
bool isMailPasteAsQuotationNode(const DOM::NodeImpl *node);

//------------------------------------------------------------------------------------------

} // end namespace khtml

#endif

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩在线播放一区二区| 亚洲国产乱码最新视频| 欧美视频日韩视频| 国内精品久久久久影院色| 中文字幕在线免费不卡| 91精品国产欧美一区二区成人| 成人免费黄色大片| 日韩高清不卡一区二区三区| 亚洲欧洲制服丝袜| 国产婷婷色一区二区三区四区 | 国产精品久久久久久久岛一牛影视| 欧美日韩久久久久久| www.爱久久.com| 精品在线你懂的| 调教+趴+乳夹+国产+精品| 亚洲欧美一区二区视频| 久久日韩精品一区二区五区| 欧美日韩高清影院| 一本高清dvd不卡在线观看| 国产乱码一区二区三区| 久久精品国产亚洲a| 亚洲福利视频一区二区| 一区二区三区四区在线播放| 国产精品视频看| 国产欧美一区二区精品忘忧草 | 成人av电影在线| 国产精品正在播放| 久久精品国产亚洲a| 天天操天天色综合| 亚洲午夜羞羞片| 亚洲制服丝袜一区| 亚洲天堂2014| 亚洲欧美自拍偷拍| 日本一区二区免费在线观看视频| 久久午夜色播影院免费高清| 精品日韩欧美一区二区| 欧美哺乳videos| 日韩欧美三级在线| 精品嫩草影院久久| www国产亚洲精品久久麻豆| 日韩欧美一级二级三级| 日韩精品一区二| 精品国产制服丝袜高跟| 久久亚洲综合色| 久久亚洲私人国产精品va媚药| 日韩欧美国产精品一区| 久久新电视剧免费观看| 国产午夜精品久久久久久免费视 | 午夜精品aaa| 午夜私人影院久久久久| 丝袜诱惑制服诱惑色一区在线观看| 午夜精品在线看| 视频在线观看91| 蜜桃视频一区二区三区 | 99在线精品观看| 日本乱人伦aⅴ精品| 欧美日韩国产影片| 日韩一卡二卡三卡四卡| 欧美精品一区二区高清在线观看| 26uuu精品一区二区| 中国色在线观看另类| 国产精品动漫网站| 亚洲成人av一区二区| 日本三级亚洲精品| 国产成人精品免费一区二区| 99国产欧美另类久久久精品| 欧美综合色免费| 欧美成人猛片aaaaaaa| 国产精品欧美精品| 亚洲国产精品麻豆| 精品在线亚洲视频| 99精品久久99久久久久| 欧美日韩极品在线观看一区| 精品美女被调教视频大全网站| 欧美韩国日本综合| 亚洲成人在线网站| 国产激情偷乱视频一区二区三区| 9l国产精品久久久久麻豆| 欧美日韩精品综合在线| 久久久亚洲精华液精华液精华液| 亚洲色大成网站www久久九九| 亚洲电影中文字幕在线观看| 国产一区二区三区精品欧美日韩一区二区三区 | 性做久久久久久久免费看| 另类小说综合欧美亚洲| 成人久久18免费网站麻豆| 7777女厕盗摄久久久| 国产精品每日更新在线播放网址| 五月婷婷欧美视频| 成人福利电影精品一区二区在线观看| 欧美丝袜第三区| 久久久综合九色合综国产精品| 亚洲欧美国产77777| 久久国产免费看| 色成年激情久久综合| 亚洲精品一区二区精华| 亚洲综合在线免费观看| 国产一区二区三区高清播放| 91国偷自产一区二区开放时间| 日韩精品一区二区三区在线观看 | 日韩一区和二区| 亚洲欧美激情插| 国产在线播放一区三区四| 91国内精品野花午夜精品| 国产午夜精品一区二区| 男女视频一区二区| 欧美性xxxxxxxx| 国产精品九色蝌蚪自拍| 国产一区二区三区久久久| 欧美男人的天堂一二区| 亚洲人精品午夜| 国产精品影视网| 欧美电影免费提供在线观看| 亚洲国产成人av网| 色综合久久久网| 国产欧美日韩精品在线| 久久电影网电视剧免费观看| 欧美日韩在线精品一区二区三区激情 | 精品少妇一区二区三区在线视频 | 国产精品久久久久久久久久免费看 | 色综合一区二区三区| 国产日本一区二区| 久久国产精品99久久久久久老狼| 欧美视频一区二区三区四区| 亚洲欧美视频在线观看| av在线免费不卡| 欧美国产日韩a欧美在线观看| 精品一区二区精品| 这里只有精品视频在线观看| 一区二区三区国产| 在线看国产一区| 亚洲精选一二三| 一道本成人在线| 亚洲欧美二区三区| 色狠狠色狠狠综合| 亚洲欧美日韩国产另类专区| 成人app软件下载大全免费| 日本一区免费视频| 成人黄色电影在线| 国产精品动漫网站| 精品乱人伦一区二区三区| 首页国产欧美久久| 56国语精品自产拍在线观看| 人人精品人人爱| 精品乱人伦小说| 国产成人免费av在线| 中文一区在线播放| 91首页免费视频| 亚洲欧美另类图片小说| 色偷偷久久人人79超碰人人澡| 亚洲激情av在线| 欧美日本在线播放| 蜜桃av一区二区| 国产欧美一区二区精品久导航| 成人av在线影院| 一区二区三区国产精品| 91精品国产综合久久小美女| 毛片av中文字幕一区二区| 久久久久久久久蜜桃| 99这里只有久久精品视频| 亚洲第一会所有码转帖| 日韩美女天天操| 波多野结衣在线aⅴ中文字幕不卡| ...中文天堂在线一区| 欧美性大战久久| 久久不见久久见免费视频7| 欧美国产成人精品| 在线观看一区二区视频| 免费在线观看精品| 国产精品免费av| 欧美日韩精品福利| 国产精品亚洲午夜一区二区三区| 国产精品久久久久影视| 欧美色网站导航| 精品一区二区免费在线观看| 国产精品欧美久久久久无广告 | 在线91免费看| 国产成人av电影| 亚洲成人精品一区| www国产精品av| 91福利视频在线| 韩国一区二区在线观看| 亚洲日本中文字幕区| 3atv在线一区二区三区| 国产**成人网毛片九色| 午夜免费久久看| 国产精品久久网站| 欧美一级夜夜爽| 99re6这里只有精品视频在线观看| 亚洲成av人片在线观看| 国产精品女同一区二区三区| 欧美一区二区大片| 色综合色综合色综合| 国产一区视频在线看| 亚洲不卡av一区二区三区| 国产精品情趣视频| 精品国产凹凸成av人导航| 欧日韩精品视频| 成人性生交大片免费看中文网站| 婷婷六月综合亚洲|