lnrt.hpp
来自「IBM Lotus C++ API 7.0a for IBM Lotus Not」· HPP 代码 · 共 542 行 · 第 1/2 页
HPP
542 行
LNSTATUS GetRichText(const LNRTObject &object,
LNRichText *richtext) const;
LNRTContainer& GetRTContainer() const;
LNSTATUS GetRTSubform(const LNString &name, LNRTSubform *rtSubform) const;
LNSTATUS GetText(LNString *text, LNRTCursor *cursor=0) const;
LNSTATUS GetText(const LNRTCursor &start, const LNRTCursor &end,
LNString *text, LNRTCursor *cursor=0) const;
LNRTTYPE GetType() const;
LNBOOL HasAttachments() const;
LNBOOL HasOLEObjects (void) const;
virtual LNINT GetValueSize() const;
LNSTATUS Import(const LNString &filename, LNRTCursor *cursor,
const LNString &importtype = "");
LNSTATUS Import(const LNString &filename, const LNString &importdll,
LNRTCursor *cursor, const LNString &altlib = "");
LNSTATUS Insert(const LNString &text, LNRTCursor *cursor,
LNBOOL convertNewLines = FALSE);
LNSTATUS Insert(const LNRichText &richtext, LNRTCursor *cursor);
LNSTATUS Insert(const LNRTObject &object, LNRTCursor *cursor,
LNRTObject *newObject = 0);
LNSTATUS InsertImageResource( const LNImageResource &image,
LNINT width, LNINT height, LNRTCursor *cursor, LNRTObject *rtImage = 0);
LNSTATUS InsertImageResource( const LNString &imageresourcename,
LNINT width, LNINT height, LNRTCursor *cursor, LNRTObject *rtImage = 0);
// LNSTATUS InsertImageResourceFormula( const LNFormula &formula, LNRTCursor *cursor);
LNSTATUS InsertSharedField( const LNSharedField &sharedfield,
LNRTCursor *cursor, LNFormField *newField = 0 );
LNSTATUS InsertSharedField(const LNString &sharedfieldname,
LNRTCursor *cursor, LNFormField *newField = 0);
LNSTATUS InsertSubform(const LNSubform &subform, LNRTCursor *cursor,
LNRTSubform *newRTSubform = 0);
LNBOOL IsEmpty() const;
LNBOOL IsPlainText() const;
LNSTATUS MergeNextParagraph(LNRTCursor *cursor);
LNSTATUS MergeParagraphs(LNRTCursor *start, LNRTCursor *end);
LNSTATUS MergePreviousParagraph(LNRTCursor *cursor);
virtual LNSTATUS SetFontStyle(const LNRTCursor &start,
const LNRTCursor &end, const LNFontStyle &style,
LNSETFONTSTYLEFLAGS mask = LNSETFONTSTYLEFLAGS_ALL);
LNSTATUS SetFontStyle(const LNRTCursor &cursor, const LNFontStyle &style);
LNSTATUS SetPageBreakBefore(const LNRTCursor &cursor, LNBOOL pageBreak);
LNSTATUS SetParagraphStyle(const LNRTCursor &start, const LNRTCursor &end,
const LNParagraphStyle &style);
LNSTATUS SetParagraphStyle(const LNRTCursor &cursor,
const LNParagraphStyle &style);
LNSTATUS SetValue(const LNString &text, LNBOOL convertNewLines = FALSE);
LNSTATUS StartNewParagraph(LNRTCursor *cursor);
protected:
LNRichText(LNRichTextBody *body);
LNRichText& operator=(LNRichTextBody *body);
LNSTATUS Append(const LNString &text, LNBOOL convert,
LNNoteBody *noteBody);
LNSTATUS GetCurrentMemoryBlock(LNINT size, LNINT *offset,
LNMemoryBlock **memoryBlock);
LNSTATUS GetRichText(const LNRTCursor &start, LNINT poscount,
LNRichText *richtext) const;
LNSTATUS GetRichText(const LNRTCursor &cursor, LNRTTYPE type,
LNRichText *richtext) const;
LNRichTextBody* GetRichTextBody() const { return (LNRichTextBody *) Body; }
LNBOOL IsValid() const;
virtual LNSTATUS Save(const char *newname = 0);
};
#ifndef LNRTCONT_HPP
#include "lnrtcont.hpp"
#endif
// Informational data passed to the rich text parser error recovery function
struct LNRTPARSERERRORDATA
{
const LNItem *Item; // Rich text item, not fully initialized
LNINT Offset; // From the beginning of the rich text, excluding the initial type word
WORD CDSig; // The signature of the cd record at the given offset
LNINT CDSize; // The size of the cd record at the given offset
LNSTATUS Status; // Error status found
};
// Function prototype for rich text error recovery function. This is called
// when the rich text parser encounters a problem, and can be set to throw an
// error or continue processing.
typedef LNSTATUS (*LNRTPARSERERRORHANDLER)(const LNRTPARSERERRORDATA &);
#ifndef LNCDREC_HPP
#include "lncdrec.hpp"
#endif
#ifndef LNRTELEM_HPP
#include "lnrtelem.hpp"
#endif
#ifndef LNRTCRSR_HPP
#include "lnrtcrsr.hpp"
#endif
#ifndef LNPARAGR_HPP
#include "lnparagr.hpp"
#endif
#ifndef LNPARSTL_HPP
#include "lnparstl.hpp"
#endif
#ifndef LNRTLINK_HPP
#include "lnrtlink.hpp"
#endif
#ifndef LNFORMF_HPP
#include "lnformf.hpp"
#endif
#ifndef LNRTTABL_HPP
#include "lnrttabl.hpp"
#endif
#ifndef LNHOTSPT_HPP
#include "lnhotspt.hpp"
#endif
#ifndef LNRSCLNK_HPP
#include "lnrsclnk.hpp"
#endif
#ifndef LNHOTLNK_HPP
#include "lnhotlnk.hpp"
#endif
#ifndef LNRTHOTS_HPP
#include "lnrthots.hpp"
#endif
#ifndef LNRTOLEOBJECT_HPP
#include "lnrtoleo.hpp"
#endif
#ifndef LNRTBITMAP_HPP
#include "lnbitmap.hpp"
#endif
#ifndef LNMETAFL_HPP
#include "lnmetafl.hpp"
#endif
#ifndef LNIMAGE_HPP
#include "lnimage.hpp"
#endif
#ifndef LNGRPHIC_HPP
#include "lngrphic.hpp"
#endif
#ifndef LNURLLINK_HPP
#include "lnurllnk.hpp"
#endif
#ifndef LNTXTPOPUP_HPP
#include "lntxtpup.hpp"
#endif
#ifndef LNFORMULAPOPUP_HPP
#include "lnformup.hpp"
#endif
#ifndef LNCOMPTEXT_HPP
#include "lncmptxt.hpp"
#endif
#ifndef LNSCRIPT_HPP
#include "lnscript.hpp"
#endif
#ifndef LNSACTION_HPP
#include "lnsactio.hpp"
#endif
#ifndef LNBUTTON_HPP
#include "lnbutton.hpp"
#endif
#ifndef LNRTJAVA_HPP
#include "lnrtjava.hpp"
#endif
#ifndef LNRTSBFM_HPP
#include "lnrtsbfm.hpp"
#endif
#ifndef LNACTIONHOTSPOT_HPP
#include "lnacths.hpp"
#endif
#ifndef LNSECTIO_HPP
#include "lnsectio.hpp"
#endif
#ifndef LNHRULE_HPP
#include "lnhrule.hpp"
#endif
#ifndef LNLAYOUT_HPP
#include "lnlayout.hpp"
#endif
#ifndef LNLAYELM_HPP
#include "lnlayelm.hpp"
#endif
#ifndef LNLAYBTN_HPP
#include "lnlaybtn.hpp"
#endif
#ifndef LNLAYFLD_HPP
#include "lnlayfld.hpp"
#endif
#ifndef LNLAYGRA_HPP
#include "lnlaygra.hpp"
#endif
#ifndef LNLAYGBT_HPP
#include "lnlaygbt.hpp"
#endif
#ifndef LNLAYTXT_HPP
#include "lnlaytxt.hpp"
#endif
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?