本文整理汇总了C++中FV_View::getParentData方法的典型用法代码示例。如果您正苦于以下问题:C++ FV_View::getParentData方法的具体用法?C++ FV_View::getParentData怎么用?C++ FV_View::getParentData使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FV_View
的用法示例。
在下文中一共展示了FV_View::getParentData方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1:
//
// AbiMathView_LatexInsert
// -------------------
// This is the function that we actually call to insert the MathML from
// a Latex expression.
//
bool
AbiMathView_LatexInsert(AV_View* v, EV_EditMethodCallData* /*d*/)
{
FV_View * pView = static_cast<FV_View *>(v);
XAP_Frame * pFrame = static_cast<XAP_Frame *> ( pView->getParentData());
pFrame->raise();
XAP_DialogFactory * pDialogFactory
= static_cast<XAP_DialogFactory *>(XAP_App::getApp()->getDialogFactory());
AP_Dialog_Latex * pDialog
= static_cast<AP_Dialog_Latex *>(pDialogFactory->requestDialog(AP_DIALOG_ID_LATEX));
UT_return_val_if_fail(pDialog, false);
if (pDialog->isRunning())
{
pDialog->activate();
}
else
{
pDialog->runModeless(pFrame);
}
return true;
}
示例2:
static bool
Presentation_context (AV_View * v, EV_EditMethodCallData * d)
{
FV_View * pView = static_cast<FV_View *>(v);
XAP_Frame * pFrame = static_cast<XAP_Frame *> (pView->getParentData());
UT_sint32 xPos = d->m_xPos;
UT_sint32 yPos = d->m_yPos;
const char * szContextMenuName = XAP_App::getApp()->getMenuFactory()->FindContextMenu(PresentationContextID);
UT_DEBUGMSG(("Context Menu Name is........ %s \n",szContextMenuName));
if (!szContextMenuName)
return false;
bool res = pFrame->runModalContextMenu(pView,szContextMenuName,
xPos,yPos);
pFrame->nullUpdate();
GR_Graphics * pG = pView->getGraphics();
if(pG)
pG->allCarets()->disable();
return res;
}