How to create the new page in the master page and make reference to the reference text framework previous page id?

I have problem to apply/create an element of the master page and how to run the previos page text block to create the page text

InterfacePtr<IPageSetupPrefs> iPageSetupPrefs (,static_cast<IPageSetupPrefs * > (:QueryPreferences() IID_IPAGEPREFERENCES, docRef)));

if (iPageSetupPrefs is nil) {

Assert (iPageSetupPrefs);

  break

}

InterfacePtr<ICommand> iNewPageCmd (CmdUtils:kNewPageCmdBossCreateCommand());

if (iNewPageCmd is nil) {

Assert (iNewPageCmd);

  break

}

InterfacePtr<IApplyMasterCmdData> iApplyMasterCmdData (iNewPageCmd, IID_IAPPLYMASTERCMDDATA );

if (iApplyMasterCmdData is nil) {

Assert (iPageCmdData);

  break

}

InterfacePtr<IPageCmdData> iPageCmdData (iNewPageCmd,UseDefaultIID());

if (iPageCmdData is nil) {

Assert (iPageCmdData);

  break

}

Int32 numPagesToInsert = 1;

PMRect pageSizeRect = iPageSetupPrefs->GetPageSizePref();

Int32 pos = iPageCmdData->GetNewPageInsertPosition();

ISpreadGeometry InterfacePtr<IGeometry> (spreadList->QueryNthSpread(0));

if (iSpreadGeometry is nil) {

Assert (iSpreadGeometry);

  break

}

spreadUIDRef =:GetUIDRef(iSpreadGeometry);

PMRect dfltPMRectPageSize = iPageSetupPrefs->GetPageSizePref();

PMReal pageWidth is dfltPMRectPageSize. Right () - dfltPMRectPageSize. Left ();

PMReal pageHeight is dfltPMRectPageSize. Bottom () - dfltPMRectPageSize. Back to top ();

PMRect usrDefPMRectPageSize (0, 0, pageWidth, pageHeight);

K2Vector< PMRect> pageBoundingBoxes;

for ( int32 i = 0; i < numPagesToInsert; ++ i) {

pageBoundingBoxes. push_back (usrDefPMRectPageSize);

}

iPageCmdData->SetNewPageCmdData(spreadUIDRef, numPagesToInsert, pos +1, & pageBoundingBoxes, nil);

/ / CreateSpreadFromSpread (docRef, spreadUIDRef);

InterfacePtr<IBoolData> iBoolData (iNewPageCmd,UseDefaultIID());

if (iBoolData is nil) {

Assert (iBoolData);

  break

}

bool16 allowShuffle;

if (this->GetShufflePref(allowShuffle, docRef) iskFailure) {

  break

}

iBoolData->Set(allowShuffle);

CmdUtils:ProcessCommand(iNewPageCmd);

Above code, able to create a page but the problem in applied master page?

Using document Pages face?

I think that your posToInsertAt for IPageCmdData::Set is incorrect.

If the doc does not have facing Pages, posToInsertAt = 1;

If doc is facing Pages and page insertion is the left-hand Page, posToInsertAt = 2;

If doc is facing Pages and insert page is the right Page, posToInsertAt = 1;

posToInsertAt = spread-> GetNumPages();

newDocCmd and newDocCmdData are not used, you can delete these.

Tags: InDesign

Similar Questions

  • How to create a new page when the user activates a box?

    I guess this would be a checkbox.  I am looking for a way to create a user, select Create a new page when the user runs out of space in the text box that is given.  So if possible is a way to create a new page with a text box continuous when the user selects create it a new page check box.  Thank you.

    Yes, if you create a new page in the designer of the LC (page 2) and deselect the number of minutes, so that when the form is displayed at the start, it is not an instance of the page. While the click event of the button would be:

    _page2.addInstance(true);
    

    You can design page 2 with which opposes always desired.

    Hope that helps,

    Niall

  • How to create a new page with the existing provision of the one that I already created?

    Well, I'm very new to DreamWeaver, just an info. I was ordered to develop a site for a company. There will be as a total of 10 pages on the site. I created the home page, and I'm now trying to make the other. But I don't know how I can take the basic layout, I created in the homepage so I can add information for other pages later. I tried to save as a template, but I had to create editable regions and those got in the way. I even tried to copy the code from the original, but then the Spry menus will not work correctly. I hope I passed my problem properly. Any help will be more useful.

    Thank you.

    1. Open index.html
    2. File > save as > page2.html
    3. Repeat for other pages of the site...
    4. Change content as needed.

    Nancy O.

    ALT-Web Design & Publishing

    Web | Graphics | Print | Media specialists

    http://ALT-Web.com/

    http://Twitter.com/ALTWEB

    http://ALT-Web.blogspot.com/

  • Need help! How to create a new page?

    Hello

    I'm in the middle of creating a business presentation and I need to chain it all carefully in adobe reader8, the problem is, I have no idea how to create new pages on this subject, and can therefore show coverage of said presentation. Help, please?

    Not possible with Adobe Reader.

  • How to create a new page to an existing page?

    Hello

    I know that there is a way to create a new Web page for my site, using the same layout from the other pages. What is the workflow for the same presentation? With copy and paste the code, I might add.

    Thank you!

    Jbug

    You can open an existing page and select file > save as to make an exact duplicate, save under a different name and then add the new content.

    If you work with DW templates, a .dwt file will exist in a models folder in your site. You choose file > New > Page from the model and choose the .dwt file make a child page.

  • PSE10: how to create the white text box with text in black? [was: question]

    trying to create a white text box in photo shop element 10 and black text, so write pop can not understand

    Open your photo in the complete edition

    In the top menu click Layer > New > layer & OK

    Select the rectangle Selection tool

    Drag a box on the top you photo where you want to place the text

    Ensure that the chip of high color at the bottom of the tool palette is set to white or press D to default to black & white, and click the rotation arrow to move the black chip behind the white chip

    Select the paint bucket tool and click in the middle of your rectangle to fill with white

    Go to the layers palette (window > layers) and put highlight the top layer then lower the opacity to around 50% slider

    Select the T tool and type in black, then save.

  • How to create a new project with other page with the new version of Muse layouts?

    Hello
    If someone would continue to operate as before with the inadmissible Muse version... is - this posible to have both versions installed? or how to create a new project with other page with the new version of Muse layouts?
    Or how to download third party) 3 different configurations (desktop/tablet/mobile) under the same url with a clean result, like up yet with the Muse does not?

    Thanks for any help,

    Patrick

    Use the new version! What you want to achieve, will work! Go to the 'Page' menu and choose 'Add another Layout' and the missed buttons are in plan view.

  • How to stop Contribute CS5 adding a paragraph when you create a new page via "copy of the current page.

    When I create a new page via 'Copy of the current page', the new page always gets an additional line of code. Contribute CS5 adds a paragraph that pushes my browsing down in the content area of my site. Can someone please help me get to stop this?

    <!--

    Code on the original page:

    < body >

    < div id = "container" >

    < div id = "header" >

    < div class = "logo" > < a href = "/" > < / has > < / div > <! - end .logo - >

    < div class = "navigation" >

    Code on the new page:

    < body >

    < div id = "container" >

    < div id = "header" >

    < div class = "logo" > < a href = "/" > < / has > < / div > <! - end .logo - >

    < style p = "margin-top: 0;" margin-bottom: 0; ' > < / p >

    < div class = "navigation" >


    ->

    If you are going to administer websites > users and roles > choose > change role settings > Editing > paragraph spacing, you put a line or two lines?

    If a line, select the two lines.

  • How to create a new folder in the voice tab 7 hp slate

    How to create a new folder in the voice tab 7 hp slate?

    I wish to cretae a folder in my home page.

    Please help me...

    Hello and welcome to the HP support community!

    You want to organize your icons in folders, or put a shortcut of data on your home page folder?

    The first is easy, this last not so much.

    Just hold your finger on an icon, and then drag it on another similar icon.  A "folder" will be done with the name "unnamed file".  Press and hold the words to change the name of the folder.

    I'm not aware of a way to file a record of data on the homepage...

    WyreNut

  • I need to update the screenshots for a new version of an app existing Itune application to download a new version. Since I did not create the original version, can you guide me how to create a new version with the new version number?

    I need to update the screenshots for a new version of an existing iTunes Connect App asks me to download a new version. Since I did not create the original version, can you guide me how to create a new version with the new version number?

    You must call the assistance of the company and ask them to help you with this. You can find contact information by logging on http://digitalpublishing.acrobat.com/ and looking at the Middle at the bottom of the page.

    Neil

  • Satellite P750 PSAY1A: how to create the recovery Toshiba on the new HARD drive partition

    Hello

    I have an old Toshiba Satellite P750 (PSAY1A-01Y022). I just upgraded my memory from 4 GB to 8 GB and am preparing to take my 500 GB HARD drive 1 TB. I had to order the disk online and wait to happen.

    I always try to understand how to create the arrival of my new HARD drive Toshiba Recovery Partition. I do the same thing for an old book, I handled based on something similar to it's original factory State.

    I have reflected on the recovery partition, but does not know how it was created. It is not NTFS. Does anyone have experience in the creation of a Toshiba Recovery on a new HARD drive Partition?

    And the help is very appreciated.

    Thanks and regards,
    Dinesh

    Recovery partition can be created when you use the original Toshiba Recovery disk and install recovery image. Before the partitions to boot OS install will be automatically created, recovery image copied on a recovery and then partition as last step recovery image installation starts.

    A sort of migration of files from one to the other HARD disk is not solution.

    Only for laptop with factory will work and the usable recovery partition.

  • How to create the menu on the LEFT, as in new BBM?

    Is there any sample how to create the menu on the left of the application as in the new BBM?

    As I know not - there's a good menu, context menu, top menu... but how to create left?

    It's just a TabbedPane: https://developer.blackberry.com/cascades/reference/bb__cascades__tabbedpane.html

  • Smartphones blackBerry how to create a new folder in the video folder in the media

    Hi, I'm trying to figure out how to create a new folder in the video folder in the media. I can easily create new folders in the pictures folder, but not in the videos... Why? Thanks in advance for your help.

    well I'm sorry, I think that I have not read your emails correctly.

    The media application doesn't care about records at all. It will read the files, the tags when they are available, playlists, but it will not show the files. with the exception of the pictures.

  • How to create the new folder on Oracle UCM?

    Hello

    After that I start the UCM_server I can't find how to create the new folder and I can't find the record of the 'Contribution records '. as shown in the attached picture.

    ucmfolder.JPG

    Hello

    Is it a new installation? You can configure the WCC with folder folder_g or framwork. You can use Server Admin-> component for Manager screen set up. It is recommended to use the framework with version dot 8 for optimizing the performance and scalability.

    About java applet question please check forums UCM browser compatibility issue

    Internet Explorer
    1. Click on Tools , then Internet Options
    2. Select the Security tab, and then select the custom level button
    3. Scroll to script Java applets
    4. Make sure the enable radio button is checked
    5. Click OK to save your preferences
    Chrome

    Chrome 42 version and more. From Chrome version 42 (released in April 2015), Chrome has disabled the way the browsers support plugins. More information

    Firefox
    1. Open the Firefox browser or restart it if it is already running
    2. In the Firefox menu, select Tools, and then click the option Add-ons
    3. In the Add-ons Manager window, select Plugins
    4. Click on plugin Java (TM) Platform (Windows) or the Java Applet plug-in (Mac OS X) to select the option
    5. Ensure that the option selected is Ask to activate or enable always or on older versions of Firefox, click the Activate button (if the button is disable, Java is already enabled)
    Safari
    1. Click on Safari and select Preferences
    2. Choose the Security option
    3. Select allow Plug-ins, and then click manage the Web site settings
    4. Click on the Java element, select an option (Ask, authorize or allow always) in the drop-down list When you visit other Web sites
    5. Click done, and then close the Safari preferences window
    Opera 4.x and Up
    1. Opera for Windows does not use Java, but an embedded already inside the Opera Web browser version.
    2. Opera for other platforms can supports Java. Please consult your Opera Platform documentation.
    3. For more information, please see the following Opera support article:
      Support for the Java software at the opera

    Thank you

    Amey

  • [JDev 12.1.3] The difference between the Type of Document "Facelets" and "JSP XML" when you create a new page?

    Hallo,

    that is the difference between choosing as a Type of Document "Facelets" and choosing "JSP XML" when you create a new page?

    Which is the best choiche and why? And is it possible to convert a page from one type to another?

    Thank you

    Federico

    Hi Federico

    JSPX both Faceletes are equal to the feature and after Jdev Release11gR2, both are supported in the ADF

    Facelets is deemed be better performance because it is more tight integrated with life cycle JSf and does not need to be compiled before running

    The future speaks Facelets (specification of JSF) and if start you a new project in development with JDeveloper 11 g R2 then we recommend you use Facelets for this reason

    See this good discussion -Diff b\w JSF and JSPX

    Thank you

Maybe you are looking for

  • advantage of ink printer deskjet 4625

    do I have to change the cartridge color the3 during execution

  • Results of analysis of material, laptop B570

    I did a scan of material for the first time on my lenovo B570. He noted the following: WPE001001-BL7A3D result code 10/06/2016 execution date 00: 24 PCI Express device Can you help me understand what it is? And what I do about it? Thank you Chuck Mon

  • Acer Aspire Nitro VN7 - 791G: Windows 7 to Windows 8.1

    Hello I installed Windows 7 on my VN7 - 791G. I changed the startup type in the bios using "Legacy" instead of "UEFI". Changed all my partitions (front: 4 partitions on the first drive [TPG], now: a single partition [MBR]). No partition more "Windows

  • MS customer protection

    I got a msg of error at the beginning of the installation of Windows Defender, telling me to remove 'The MS Customer Protection' on or off.  I have quoted me several other discussions in this Forum dealing with this very issue.  One mentioned that th

  • MF1522 Driver Suite and universal print driver

    The XP machine I'm working on that has two printers must be installed; Color LaserJet 3600n (connected network) and an all-in - one Laserjet MF1522 (USB connected). The first error I did installed the first 3600n. The second used for HP Universal pri