Copy link to clipboard
Copied
Which boss is used for "Smart Text Reflow" (found under indesign's Preference/Type)?
The command boss is kSetAutoFlowOptionsCmdBoss. However looking at it the documentation does not mention any interface(the implementation is hiddent) that can be used to set the different options. So an alternative is to use the Facade::ITextPreferencesFacade class it has a method SetDynamicAutoFlowOptions which should serve the purpose.
-Manan
Copy link to clipboard
Copied
What do you mean by boss?
Do you asking about the benifits of Smat Text Reflow?!
If so, Smart Text Reflow is an InDesign type preference that will automatically add pages when you flow text into your layout or remove pages as text is deleted during editing.
Copy link to clipboard
Copied
Thanks for your reply.
I need to toggle the checkbox selection.
I found 'kSetSmartTextPrefsCmdBoss' but it is not working.
Copy link to clipboard
Copied
The command boss is kSetAutoFlowOptionsCmdBoss. However looking at it the documentation does not mention any interface(the implementation is hiddent) that can be used to set the different options. So an alternative is to use the Facade::ITextPreferencesFacade class it has a method SetDynamicAutoFlowOptions which should serve the purpose.
-Manan
Copy link to clipboard
Copied
Thank you Manan. Working fine.
InterfacePtr<IWorkspace> ws(GetExecutionContextSession()->QueryWorkspace());
if(ws==nil) break;
IDataBase* db = ::GetDataBase(ws);
Utils<Facade::ITextPreferencesFacade> tpfacade;
tpfacade->SetDynamicAutoFlowOptions(kFalse, Facade::kAtEndOfStory, kFalse, kFalse, kFalse, db);
Copy link to clipboard
Copied
I suppose you are setting the option at the application level, in that case i think you can pass a nil for the db. For document level db is needed, for application level nill would work. Confirm once from the method decleration.
-Manan
Copy link to clipboard
Copied
Hi Manan,
Thanks for your suggestion.
I put this code in the startupservice and it is working fine.