Skip to main content
Known Participant
December 7, 2006
Question

Page numbering

  • December 7, 2006
  • 11 replies
  • 849 views
Is there a way to fire the InDesign page numbering dialog?
I can't find it's ActionID in ShuksanID,h.
Tks.

Oscar.
This topic has been closed for replies.

11 replies

Known Participant
December 11, 2006
Yes I need this dialog because I must perform a TOC actualisation after the page renumbering.

Oscar.
Participating Frequently
December 11, 2006
>but it bombs
why?

Do you need this dialog?

try to use commands kModifySectionSettingsCmdBoss and
kNewSectionCmdBoss.
Known Participant
December 11, 2006
Tks, Strizh but it bombs.
pageUIDRef is valid and dialog too.
Have to see.

Oscar.
Participating Frequently
December 11, 2006
UIDRef pageUIDRef = ....<br /><br />InterafacePtr<IUIDData> pagaData(dialog, UseDefaultIID());<br />ASSERT(pagaData);<br />pageData->Set(pageUIDRef);<br /><br />dialog->Open();
Known Participant
December 11, 2006
As you've mentioned I have to perform a

//Before Open dialog SET page UID see kSectionDialogBoss interfaces

I can't find a way to display or set the desired page as current.

Tks,
Oscar.
Known Participant
December 7, 2006
Fabulous!
Many thanks!

Oscar.
Participating Frequently
December 7, 2006
try and you'll see
Known Participant
December 7, 2006
Ok, but doing so provides the same functionality as invoking the menu entry?

Oscar.
Participating Frequently
December 7, 2006
#include "SectionUIID.h"<br /><br />void MYActionComponent::DoDialog()<br />{<br /> do<br /> {<br /> // Get the application interface and the DialogMgr.<br /> InterfacePtr<IApplication> application(gSession->QueryApplication());<br /> ASSERT(application);<br /> if (application == nil) {<br /> break;<br /> }<br /> InterfacePtr<IDialogMgr> dialogMgr(application, UseDefaultIID());<br /> ASSERT(dialogMgr);<br /> if (dialogMgr == nil) {<br /> break;<br /> }<br /><br /> // Load the plug-in's resource.<br /> PMLocaleId nLocale = LocaleSetting::GetLocale();<br /> RsrcSpec dialogSpec<br /> (<br /> nLocale, // Locale index from PMLocaleIDs.h.<br /> kSectionUIPluginID, //// SectionUI Plug-in ID<br /> kViewRsrcType, // This is the kViewRsrcType.<br /> kSectionUIDialogRsrcID,// kSectionUIDialogRsrcID for needed dialog.<br /> kTrue // Initially visible.<br /> );<br /><br /> // CreateNewDialog takes the dialogSpec created above, and also<br /> // the type of dialog being created (kMovableModal).<br /> IDialog* dialog = dialogMgr->CreateNewDialog(dialogSpec, IDialog::kMovableModal);<br /> ASSERT(dialog);<br /> if (dialog == nil) {<br /> break;<br /> }<br /><br />//Before Open dialog SET page UID see kSectionDialogBoss interfaces<br /><br /> // Open the dialog.<br /> dialog->Open();<br /><br /> } while (false);
Known Participant
December 7, 2006
Tks, but I can't find any reference about performing such a task.
I have zeo experience with InDesign UI.
Sorry,

Oscar.