Highlighted

Boss for "Smart Text Reflow"

Enthusiast ,
May 08, 2020

Copy link to clipboard

Copied

Which boss is used for "Smart Text Reflow" (found under indesign's Preference/Type)?

Adobe Community Professional
Correct answer by Manan Joshi | Adobe Community Professional

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

TOPICS
SDK

Views

401

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Boss for "Smart Text Reflow"

Enthusiast ,
May 08, 2020

Copy link to clipboard

Copied

Which boss is used for "Smart Text Reflow" (found under indesign's Preference/Type)?

Adobe Community Professional
Correct answer by Manan Joshi | Adobe Community Professional

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

TOPICS
SDK

Views

402

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
May 08, 2020 0
Adobe Community Professional ,
May 09, 2020

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 09, 2020 0
Enthusiast ,
May 09, 2020

Copy link to clipboard

Copied

Thanks for your reply.

I need to toggle the checkbox selection.

I found 'kSetSmartTextPrefsCmdBoss' but it is not working.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 09, 2020 0
Adobe Community Professional ,
May 09, 2020

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 09, 2020 0
Enthusiast ,
May 09, 2020

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);

 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 09, 2020 0
Adobe Community Professional ,
May 09, 2020

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 09, 2020 1
Chinnadk LATEST
Enthusiast ,
May 09, 2020

Copy link to clipboard

Copied

Hi Manan,

 

Thanks for your suggestion.

I put this code in the startupservice and it is working fine.

 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 09, 2020 0