本文整理汇总了C++中FV_View::isInFrame方法的典型用法代码示例。如果您正苦于以下问题:C++ FV_View::isInFrame方法的具体用法?C++ FV_View::isInFrame怎么用?C++ FV_View::isInFrame使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FV_View
的用法示例。
在下文中一共展示了FV_View::isInFrame方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: notifyActiveFrame
void AP_UnixDialog_FormatFrame::notifyActiveFrame(XAP_Frame *_pFrame)
{
UT_ASSERT(m_windowMain);
ConstructWindowName();
gtk_window_set_title (GTK_WINDOW (m_windowMain), m_WindowName);
setAllSensitivities();
FV_View * pView = static_cast<FV_View *>(_pFrame->getCurrentView());
if(pView && pView->isInFrame(pView->getPoint()))
{
fl_BlockLayout * pBL = pView->getCurrentBlock();
fl_FrameLayout * pFrame = static_cast<fl_FrameLayout *>(pBL->myContainingLayout());
if(pFrame->getContainerType() != FL_CONTAINER_FRAME)
{
UT_ASSERT_HARMLESS(UT_SHOULD_NOT_HAPPEN);
return;
}
if(pFrame->getFrameWrapMode() >= FL_FRAME_WRAPPED_TO_RIGHT)
{
setWrapping(true);
}
else
{
setWrapping(false);
}
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(m_wWrapButton),getWrapping());
if(positionMode() == FL_FRAME_POSITIONED_TO_BLOCK)
{
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON( m_wPosParagraph),TRUE);
}
else if(positionMode() == FL_FRAME_POSITIONED_TO_COLUMN)
{
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(m_wPosColumn),TRUE);
}
else if(positionMode() == FL_FRAME_POSITIONED_TO_PAGE)
{
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(m_wPosPage),TRUE);
}
}
}
示例2: setCurFrameProps
void AP_Dialog_FormatFrame::setCurFrameProps(void)
{
XAP_Frame * frame = m_pApp->getLastFocussedFrame();
if (!frame) {
if (m_bSensitive) {
m_bSensitive = false;
setAllSensitivities();
}
return;
}
FV_View * pView = static_cast<FV_View *>(frame->getCurrentView());
if (!pView) {
if (m_bSensitive) {
m_bSensitive = false;
setAllSensitivities();
}
return;
}
PT_DocPosition pos = pView->getPoint();
if (/* m_bSettingsChanged || */ m_iOldPos == pos) {
// comparing the actual cell pos would be even better; but who cares :)
return;
}
m_iOldPos = pos;
if (!pView->isInFrame(pos)) {
if (m_bSensitive) {
m_bSensitive = false;
setAllSensitivities();
}
return;
}
m_bLineToggled = false;
m_borderLineStyleRight = LS_NORMAL;
m_borderLineStyleLeft = LS_NORMAL;
m_borderLineStyleTop = LS_NORMAL;
m_borderLineStyleBottom = LS_NORMAL;
UT_RGBColor black(0,0,0);
UT_RGBColor white(255,255,255);
m_borderColor = black;
m_borderColorRight = black;
m_borderColorLeft = black;
m_borderColorTop = black;
m_borderColorBottom = black;
m_borderThicknessRight = 1.0f;
m_borderThicknessLeft = 1.0f;
m_borderThicknessTop = 1.0f;
m_borderThicknessBottom = 1.0f;
m_sBorderThickness = "1.00pt",
m_sBorderThicknessRight = "1.00pt";
m_sBorderThicknessLeft = "1.00pt";
m_sBorderThicknessTop = "1.00pt";
m_sBorderThicknessBottom = "1.00pt";
m_backgroundColor = white;
m_bSetWrapping = false;
m_iFramePositionTo = FL_FRAME_POSITIONED_TO_BLOCK;
PD_Document * pDoc = pView->getDocument();
PL_StruxDocHandle sdh;
m_bSensitive = false;
if (pDoc->getStruxOfTypeFromPosition(pos, PTX_SectionFrame, &sdh))
if (PT_AttrPropIndex api = pDoc->getAPIFromSDH(sdh)) {
const PP_AttrProp * pAP = 0;
if (pDoc->getAttrProp(api, &pAP))
if (pAP) {
m_bSensitive = true;
#define REPLACE_CELL_PROPERTY(X) \
do { \
const gchar * prop = 0; \
if (pAP->getProperty(X, prop)) \
m_vecProps.addOrReplaceProp(X, prop); \
else \
m_vecProps.removeProp(X); \
} while (0)
REPLACE_CELL_PROPERTY("right-style");
REPLACE_CELL_PROPERTY("left-style");
REPLACE_CELL_PROPERTY("top-style");
REPLACE_CELL_PROPERTY("bot-style");
REPLACE_CELL_PROPERTY("right-thickness");
REPLACE_CELL_PROPERTY("left-thickness");
//.........这里部分代码省略.........