Identify paragraph style override
Hi is there any way to identify that paragraph style is an override or not using indesign sdk?
Thanks in advance.
Hi is there any way to identify that paragraph style is an override or not using indesign sdk?
Thanks in advance.
You need to know the boss class of the attribute that you want to fetch. For that you need to search InDesign SDK or use InDesign debug build.
Also, internal attribute boss names might differ what is shown in the UI. It won't be exactly the same.
Refer the below code -
InterfacePtr<ITextAttrBreakBeforeMode> iTextAttrBreakBeforeMode((ITextAttrBreakBeforeMode*)paraStyleAttrListOverrides->QueryByClassID(kTextAttrGotoNextXBoss, IID_ITEXTATTRBREAKBEFOREMODE));
if(!iTextAttrBreakBeforeMode)
break;
if(iTextAttrBreakBeforeMode->Get() == Text::kAtColumn)
CAlert::InformationAlert("At next column");
// As per InDesign SDK for possible values of break mode -
kNoForcedBreak
kStartAnywhere
kAtColumn
kAtPage
kAtFrameBox
kAtOddPage
kAtEvenPage
- Rahul Rastogi
InDesign SDK C++ Custom Plugin Architect
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.