Win32 API 日本語リファレンス
ホームStorage.Xps › IXpsOMPage

IXpsOMPage

COM
IIDd3e18888-f120-4fee-8c68-35296eae91d4継承元IXpsOMPart自前メソッド開始 vtbl5

メソッド 22

vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。

vtbl 5 HRESULT GetOwner(IXpsOMPageReference** pageReference)
pageReferenceIXpsOMPageReference**outこのページを所有する親ページ参照へのポインタを受け取る。
vtbl 6 HRESULT GetVisuals(IXpsOMVisualCollection** visuals)
visualsIXpsOMVisualCollection**outページに含まれるビジュアル群のコレクションへのポインタを受け取る。
vtbl 7 HRESULT GetPageDimensions(XPS_SIZE* pageDimensions)
pageDimensionsXPS_SIZE*outページの寸法(XPS_SIZE)を受け取る。
vtbl 8 HRESULT SetPageDimensions(XPS_SIZE* pageDimensions)
pageDimensionsXPS_SIZE*in設定するページの寸法(XPS_SIZE)へのポインタを指定する。
vtbl 9 HRESULT GetContentBox(XPS_RECT* contentBox)
contentBoxXPS_RECT*outページのコンテンツ領域を示す矩形(XPS_RECT)を受け取る。
vtbl 10 HRESULT SetContentBox(XPS_RECT* contentBox)
contentBoxXPS_RECT*in設定するコンテンツ領域の矩形(XPS_RECT)へのポインタを指定する。
vtbl 11 HRESULT GetBleedBox(XPS_RECT* bleedBox)
bleedBoxXPS_RECT*outページの裁ち落とし領域を示す矩形(XPS_RECT)を受け取る。
vtbl 12 HRESULT SetBleedBox(XPS_RECT* bleedBox)
bleedBoxXPS_RECT*in設定する裁ち落とし領域の矩形(XPS_RECT)へのポインタを指定する。
vtbl 13 HRESULT GetLanguage(LPWSTR* language)
languageLPWSTR*outページの言語タグ文字列を受け取る。
vtbl 14 HRESULT SetLanguage(LPWSTR language)
languageLPWSTRin設定するページの言語タグ文字列を指定する。
vtbl 15 HRESULT GetName(LPWSTR* name)
nameLPWSTR*outページの名前文字列を受け取る。
vtbl 16 HRESULT SetName(LPWSTR name)
nameLPWSTRin設定するページの名前文字列を指定する。
vtbl 17 HRESULT GetIsHyperlinkTarget(BOOL* isHyperlinkTarget)
isHyperlinkTargetBOOL*outページがハイパーリンクのターゲットであるかどうかを示す BOOL 値を受け取る。
vtbl 18 HRESULT SetIsHyperlinkTarget(BOOL isHyperlinkTarget)
isHyperlinkTargetBOOLinページをハイパーリンクのターゲットにするかどうかを示す BOOL 値を指定する。
vtbl 19 HRESULT GetDictionary(IXpsOMDictionary** resourceDictionary)
resourceDictionaryIXpsOMDictionary**outページに適用される解決済みのリソースディクショナリへのポインタを受け取る。
vtbl 20 HRESULT GetDictionaryLocal(IXpsOMDictionary** resourceDictionary)
resourceDictionaryIXpsOMDictionary**outローカルに設定されたリソースディクショナリへのポインタを受け取る。設定されていない場合は NULL を受け取る。
vtbl 21 HRESULT SetDictionaryLocal(IXpsOMDictionary* resourceDictionary)
resourceDictionaryIXpsOMDictionary*in設定するローカルのリソースディクショナリを指定する。NULL を指定するとローカルディクショナリを解除する。
vtbl 22 HRESULT GetDictionaryResource(IXpsOMRemoteDictionaryResource** remoteDictionaryResource)
remoteDictionaryResourceIXpsOMRemoteDictionaryResource**outページに関連付けられたリモートディクショナリリソースへのポインタを受け取る。
vtbl 23 HRESULT SetDictionaryResource(IXpsOMRemoteDictionaryResource* remoteDictionaryResource)
remoteDictionaryResourceIXpsOMRemoteDictionaryResource*in設定するリモートディクショナリリソースを指定する。
vtbl 24 HRESULT Write(ISequentialStream* stream, BOOL optimizeMarkupSize)
streamISequentialStream*inページのマークアップを書き込む出力先のシーケンシャルストリームを指定する。
optimizeMarkupSizeBOOLinマークアップサイズを最適化するかどうかを示す BOOL 値を指定する。
vtbl 25 HRESULT GenerateUnusedLookupKey(XPS_OBJECT_TYPE type, LPWSTR* key)
typeXPS_OBJECT_TYPEinキーを生成する対象のオブジェクト種類(XPS_OBJECT_TYPE)を指定する。
keyLPWSTR*outディクショナリ内で未使用の一意なルックアップキー文字列を受け取る。
vtbl 26 HRESULT Clone(IXpsOMPage** page)
pageIXpsOMPage**out複製された新しいページへのポインタを受け取る。

HSP用 COM定義

#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"

出力引数:
#define global IID_IXpsOMPage "{D3E18888-F120-4FEE-8C68-35296EAE91D4}"
#usecom global IXpsOMPage IID_IXpsOMPage "{}"
#comfunc global IXpsOMPage_GetOwner                 5 sptr
#comfunc global IXpsOMPage_GetVisuals               6 sptr
#comfunc global IXpsOMPage_GetPageDimensions        7 var
#comfunc global IXpsOMPage_SetPageDimensions        8 var
#comfunc global IXpsOMPage_GetContentBox            9 var
#comfunc global IXpsOMPage_SetContentBox            10 var
#comfunc global IXpsOMPage_GetBleedBox              11 var
#comfunc global IXpsOMPage_SetBleedBox              12 var
#comfunc global IXpsOMPage_GetLanguage              13 var
#comfunc global IXpsOMPage_SetLanguage              14 wstr
#comfunc global IXpsOMPage_GetName                  15 var
#comfunc global IXpsOMPage_SetName                  16 wstr
#comfunc global IXpsOMPage_GetIsHyperlinkTarget     17 var
#comfunc global IXpsOMPage_SetIsHyperlinkTarget     18 int
#comfunc global IXpsOMPage_GetDictionary            19 sptr
#comfunc global IXpsOMPage_GetDictionaryLocal       20 sptr
#comfunc global IXpsOMPage_SetDictionaryLocal       21 sptr
#comfunc global IXpsOMPage_GetDictionaryResource    22 sptr
#comfunc global IXpsOMPage_SetDictionaryResource    23 sptr
#comfunc global IXpsOMPage_Write                    24 sptr,int
#comfunc global IXpsOMPage_GenerateUnusedLookupKey  25 int,var
#comfunc global IXpsOMPage_Clone                    26 sptr
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。