Import style from external document

Is there a helper class to import styles similar to load text styles (without the gui) in paragraph styles flyout menu, or does the work have to be done manually creating style if it doesn't exist and editing if it does etc..
Any pointers appreciated

Here is a snippet of code I use to merge styles from a master document to another document.
Entry: IDatabase* docdb (database for dest doc)
    ISysFileData* sourceFileData (file information for src doc)
do
    InterfacePtr<IDocument> docp((IDocument*)docdb->Instantiate(docdb->GetRootUID(), IDocument::kDefaultIID));
    //    Load the character and paragraph styles
    InterfacePtr<ICommand> charParaCmd(CmdUtils::CreateCommand(kLoadStyleCmdBoss));
    if (charParaCmd == NULL) break;
    InterfacePtr<IBoolData> cpOverrideLocalStyles(charParaCmd, UseDefaultIID());
    if (cpOverrideLocalStyles == NULL) break;
    cpOverrideLocalStyles->Set(true);
    InterfacePtr<ISysFileData> cpSysFile(charParaCmd, IID_ISYSFILEDATA);
    if (cpSysFile == NULL) break;
    cpSysFile->Set(sourceFileData->GetSysFile());
    InterfacePtr<IIntData> cpLoadOptions(charParaCmd, IID_IINTDATA);
    if (cpLoadOptions == NULL) break;
    cpLoadOptions->Set(ILoadStyleCmdData::kLoadParaCharStyles);
    InterfacePtr<ISelectivelyLoadStyleCmdData> cpLoadStyleCmdInfo(charParaCmd, IID_ISELECTIVELYLOADSTYLECMDDATA);
    if (cpLoadStyleCmdInfo == NULL) break;
    cpLoadStyleCmdInfo->SetGlobalClashResolutionStrategy(StyleClashResolutionTypes::kLoadAllW ithOverwrite);
    UIDList itemList(docp->GetDocWorkSpace());
    charParaCmd->SetItemList(itemList);
    status = CmdUtils::ProcessCommand(charParaCmd);
} while (false);
Hope it helps.

Similar Messages

  • In Pages 09 we can do Mail Merge and Import Styles from a document. Can someone please explain how we can do this with the new version of Pages 5.1. Even Apple solutions are only valid for Pages Version 09. What a DOWN GRADE!

    In Pages 09 we can do Mail Merge and Import Styles from a document. Can someone please explain how we can do this with the new version of Pages 5.1. Even Apple solutions are only valid for Pages Version 09. What a DOWN GRADE! Thank god Pages 09 is still there.

    …and the other 98 missing features.
    Just use Pages '09, which should be in your Applications/iWork folder.
    Rate/review Pages 5 in the App Store.
    Peter

  • Is it possible to copy formats and styles from one document to another?

    Is it possible to copy formats and styles from one document to another?
    Or use a commen styledocument as a masterdocument?

    Only by creating a template with what you want.
    Apple has removed the ability to import styles inPAges 5 along with almost 100 other features.
    Peter

  • Importing Users from external table in obiee 11g

    Hi Every one,
    Do any one help me giving suggestions that how we can import users from external table.
    I am using obiee 11.1.1.6.
    In that external table Which i am using there are 56K users.
    They are able to login to obiee analytics.
    But for setting object level security I need to make diffrent groups with these users to assign the dashbords and required objects in front end.
    But how can we get all these users into BI server or presentation server to make them into groups.
    Thanks in advance.
    Edited by: 861096 on Mar 13, 2012 8:44 AM

    Hi,
    or if your lowest level is the same like
    Day->month->year->Total
    Day->businessMonth->businessyear->Total
    Then yes, it is.
    Create the first, then you start to create the second by adding your top(business year) level on the same level as the one you have (year) both under your total.
    Then when you would add your second base level, there is a special option for it, something like use other hierarchy level/shared level (sorry can't recall and does not have a connection right now) then you select your existing day level under your businessmonth level.
    Hope this helps,
    Regards,
    D

  • How do I import photos from external hard drive to iCloud library?

    I have saved many photos to an external hard drive for security. I would like to store at least some of them in iCloud so I have direct access from Photos. Is this possible please?

    how do I import photos from external hard drive to iCloud library?
    Just like you'd do it with iPhoto.  Drag the photos or folder of photos into the open Photos Library window or onto the Photos icon in the Dock.
    If you have the iCloud Photo Library activated in Photos the new photos will be copied to the online iCloud Photo Library along with the rest of the photos in your library.  Remember, with the iCloud Photo Liberty it's all the photos or none.  You may have to purchase additional iCloud space to store all of your photos.

  • Sapscirpt get style from word document

    Hi everybody,
    i'm printing a external text in <b>my PO SAPscript</b>, but i need have the same text like one in <b>MSWord</b>, exactly the same font, style, paragraph, what do you recommend for this?, how can i take the same font in my SAPscript text? is it possible download the MSWord font(the same style).
    <b>note</b>: for maintenance of my text i'm using SO10 transaction.
    Greetings =)

    Hi,
    T/code SPAD--> for maintaining Printer /font and other spool related settings.
    No. You can't import the styles from MS word to sap script.
    You can copy your word document to standard text. But you have to maintain CHAR/PARAGRAPH formats in SE73.
    Lanka

  • How do I import data from external hard drive onto new iMac?

    How do I import data from an external hard drive onto my new iMac?

    If you think about it logically if you want to move something from one place to another well do just exactly that
    Drag & Drop its as simple as that click on the file/folder keep it pressed down & move the file/folder to where you want it on your Mac
    If its photo's drag them onto the iPhoto icon on the dock if its music drag it onto the iTunes icon documents into guess what documents
    Hope this helps

  • HELP!  JOB ON THE LINE-  Need to import fields from one document to another document

    In a nutshell I have a set of documents and we now have a new structure for those documents. Either I have to cut and paste all the data from one to another or figure out how to import fields to another document.
    I have two documents. Both are different but require the same information. Basically I need to have one file with fields import specified fields from another document. Ex., Name on document 1, I need the file to know to get the Name field on document 2 and import it into the specified field on document 1. I will have multiple fields that need to do this importing. I REALLY NEED TO FIGURE THIS OUT B/C I HAVE A TON OF DOCUMENTS THAT NEED TO BE COMPLETED.

    If you are talking about the field structure, not the content that Bernd commented on, make a copy of the document with the fields. Open the file and use replace pages to replace the pages with the new document layout. After you have replaced the pages, you will have to select the field tools and move the fields to the proper location. If the form was made in Designer, I am not sure of the process. There is likely a similar process in Designer, but I don't use Designer and can't comment. You may have to go to the Designer forum in such a case, unless other Acrobat users here can help.

  • Importing photos from external hard drive.

    I had stored my photos on a external hard drive from power book G4(which had iphoto4.0.3).
    I recently purchased IMac G5. I cannot import my photos into G5(has iphoto5.4) from external hard drive. I get a message saying you have installed a new version of iphoto.
    How can I get my photos back on the new machine?
    Thank you in advance.

    Shyman
    Had another idea. Since you were not upgrading a computer to iPhoto 5 - which would upgrade your existing iPhoto Library Folder (database) and since you, I presume, already have a working iPhoto 5 Library Folder -- perhaps we have to trick iPhoto into doing the upgrade.
    Quit iPhoto5. Move to the desktop or rename the existing iPhoto 5 Library Folder.
    But also move or delete the existing iPhoto 5 preferences file:
    You will find it in your Home directory:
    (Home/your account) >Library>Preferences>com.apple.iPhoto.plist
    Remove or trash the preference (.plist file) and restart iPhoto.
    This will get iPhoto 5 to launch like it was the very first time. With only the backup in your Pictures Folder it will try to open with it and do the upgrade.
    Peter

  • Importing iphoto from external hard drive

    I was wondering if importing 4 gigs of photos takes longer than 30 minutes to import from external hard drive. The iphoto status after importing still shows "working" as the bar graph "charges" continuously. Does this mean it is still importing? Should it show any other info such as the number and title of photos being imported? Should I stop it after awhile and try a new method of importing? Help.

    maxus2:
    What method are you using, the copy files or use aliases? I imported 14,000+ files from my second HD and it took between one and two hours, I don't remember exactly as I was doing it 10-12 folders at a time. I was using the alias method thus giving me an 8G library folder on my boot drive for about 25.5G (14,100) of image files. See my reply in this thread, http://discussions.apple.com/thread.jspa?threadID=327144&tstart=0, more some more thoughts on the alias method.

  • Importing Testcases from Word Document

    I want to import testcase form Word Document document to MTM tool. Are there any tools available for acheving this?
    The testcases table to import is not getting recognosed when I tried with "Test Case Migrator Plus".
    Able to import if the testcases are stored in excel. However, the entry stroke in a same cell is getting created as new test step. i.e New test steps is getting added in MTM tool if test step is written with a line break in excel.
    Any help on this would be great.

    Hello.
    Glad to receive your reply.
    Based on this link: http://tcmimport.codeplex.com/,
    test Case Migrator Plus tool allows test related artifacts, present in Excel and MHT/Word formats, to be imported into Team Foundation Server.
    I think that it support importing test cases from Word format into TFS. Then you can run those test cases in MTM.
    As I mentioned in my previous reply,
    Except Test Case Migrator Plus, and I don’t find any other tools which support this kind of import.
    If you get issues when you use “Test Case Migrator Plus” to import test case from Word Document to TFS, you can start a discussion onhttp://tcmimport.codeplex.com/discussions
    for better response.
    Best regards,
    Amanda Zhu [MSFT]
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • No images shown when importing images from external HD

    This only happened recently so I'm not sure if this was due to an update in Aperture or MacOS.
    Anyways, when I try to import images from an external HD, I cannot see the images. The images are there when I check thru Finder but I cannot see any from the import window in Aperture.
    The problem is also inconsistent. There are folders where I can see images but for most I cannot see anything.
    For local disk it works.
    Why does this happen and how can I solve this? thanks

    Are you sure they aren't in your library already? Have you tried de-selecting "don't import duplicates" and see if that changes anything?

  • HT1449 how do i import iTunes from external hard drive

    I had itunes on our old PC. We moved iTunes to an external Harddrive and replaced our PC with a iMac. I would like to move my iTunes back onto the computer from external HD.  I followed some instructions posted but nothing happened.  I think I am missing something.

    Try Here...
    Move iTunes Library from PC to MAC
    http://www.macworld.com/article/146958/2010/03/move_itunes_windows_mac.html

  • Importing keywords from external database

    I have a simple request that seems to be impossible. Back in the days before LIghtroom, I had a database that identified most of my images, cross-referenced to their filename.  Rather than manually keyword these thousands of images, I would like to import the keywords based on the data already inputted into the database. Is there any way to accomplish this?
    TIA,
    Richard

    Richard,
    I assume you're talking about photos already imported into LR.
    AFAIK there's now way to batch update keywords for photos in the catalog, as PlugIns are currently not allowed to modify keywords.
    LR/Transporter PlugIn provides a way to import metadata from a file, but not keywords. LR/Transporter suggests a partial workaround for this (see "The Keyword Conundrum" on this LR/Transporter page).
    Beat Gossweiler
    Switzerland

  • Importing keywords from external file

    Is there any way to import keywords from a text file into Aperture to automatically tag images? For example, if I have a spreadsheet with a list of names and numbers can I enter the image numbers in the spreadsheet (on the iPhone) and then import that data to the Aperture album with the images. Kinda like a merge of the data.

    Entry Number
    Name
    Image Number Start
    Image number stop
    1
    John Doe
    DSC_001
    DSC_003
    2
    Bob Smith
    DSC_004
    DSC_006
    3
    Betty Sue
    DSC_007
    DSC_009
    I am thinking something like this. however, I would have the first two columns and would enter the image numbers.
    Or like this
    Entry Number
    Name
    Image Number
    1
    John Doe
    DSC_001
    1
    John Doe
    DSC_002
    1
    John Doe
    DSC_003
    2
    Bob Smith
    DSC_004
    2
    Bob Smith
    DSC_005
    2
    Bob Smith
    DSC_006
    3
    Betty Sue
    DSC_007
    3
    Betty Sue
    DSC_008
    3
    Betty Sue
    DSC_009

Maybe you are looking for

  • Scrollbar does not work in PDF documents

    When FF opens an PDF document the scrollbar does not work. If it is a one page document I can use Page up/Page down to toggle between top and bottom of page. If it is a multiple page document I can use PageUp/Page down and the arrow keys.

  • Playing iTunes Through Airport Express (PC)

    I am looking for advice to have success playing iTunes through my stereo speakers. The environment is PC and I have an Airport base station attached to my modem. The airport express is plugged in downstairs and I have the connection to the receiver t

  • I TRY TO PLAY A VIDEO AND A MESSAGE THAT SAYS THE MOVIE IS NOT IN A FORMAT THAT QUICKTIME PLAYER UNDERSTANDS

    I TRY TO PLAY A VIDEO AND A MESSAGE THAT SAYS THE MOVIE IS NOT IN A FORMAT THAT QUICKTIME PLAYER UNDERSTANDS.  WHAT DO I DO?

  • 10.5.4 and pdf files

    Ever since I updated my system to 10.5.4 whenever I go to download a .pdf file with Safari, all I get is a gray screen and the little spinner thing., they never download. Did something get turned off by mistake?? I've had to open another browser, Fir

  • Missing TOC icons in MMC snap-in

    Working on the help for a Microsoft Management Console (MMC) snap-in application. The merge goes well, and the help itself is fine. The interesting/perplexing part is that if you click on a Help button inside the application, the default TOC book and