Get UID of Paragraph Style that is edited in Paragraph Style Options dialog

Paragraph styles can be edited in the "Paragraph Style Options" selectable dialog. I am adding an addition style option panel to this dialog. How can I retrieve the UID of the paragraph style that is currently being displayed in this "Paragraph Style Options" dialog? Can this be obtained in the dialog controller of the additional style option panel (I need to obtain this UID to display and store additional style data)?

Thanks Dirk
One more thing, continuing on the previous theme. I got the paragraph or character style using something like this (thanks to you)
InterfacePtr<IWidgetParent> iWidgetParent(this, IID_IWIDGETPARENT);
if (!iWidgetParent) break;
InterfacePtr<ISelectableDialogSwitcher> iSelectableDialog((ISelectableDialogSwitcher*)iWidgetParent->QueryParentFor(IID_ISELECTABLEDIALOGSWITCHER));
if (!iSelectableDialog) break;
InterfacePtr<IUIDData> iData(iSelectableDialog, IID_IUIDDATA);
if(iData->GetItemUID()==0) break;
InterfacePtr<ITextAttributes> textAttributes(iData->GetItemUID(),iData->GetItemDataBase(),IID_ITEXTATTRIBUTES);
if(!textAttributes) break;
However when I am trying to get text attributes for Find Change dialog, the IID_IUIDDATA == 0 and therefor returns nothing when trying to get attributes.
Now if I try this code
InterfacePtr<ITextAttributes> textAttributes((ITextAttributes*)iWidgetParent->QueryParentFor(IID_ISAVEDTEXTATTRIBUTES));
then I get the attributes for the find text or change text even when I am using grep dialog.
Theoretically I could get attributes from IFindChangeOptions interface, and I could figure if grep or text is enabled using GetGrepFlag function, but how do I know if I'm in find or change. It should be easy since they are different bosses like you mentioned previously, but I cant figure how to find that info in dialog.
Thanks

Similar Messages

  • HT1390 How do you get to the ITunes screen that gives you the movie rental option?

    How do i get to the movie rental screen in iTunes?

    Just tap on the movie that you want to rent in iTunes and the option to either Buy or Rent will popup in the movie description window. If the Rent button does not appear, it is not available for rental yet.

  • Graphic Style that adds stroke without changing fill?

    I'd like to assign a graphic style that adds to the existing style. For example, I need to add the same stroke to various objects that  have different fills. Can I do that with a Graphic Style? I know I can group the object and add the style to the group, but this complicates the structure of the file. I would rather the stroke was just added to the object itself. I looked at "additive styles", but don't think they are what I'm looking for.
    Thanks,

    Thanks, Jean-Claude. You just made my job much easier. I used to think I knew Illustrator, until I met some of the people on this forum.

  • How can you create a paragraph style that removes all spaces and forces everything to lower case?

    Hi,
    Is there anyway of using GREP (or some other magical wizardry) to create a paragraph style that automatically removes all spaces and forces words into lower case?
    Strange request i know....I'm wanting to use it for datamerged email addresses.
    Thanks

    so doing it through InDesign is a work around I'm exploring.
    Excel has the 'LOWER' function and the ability to record macros for a quick find/replace on the spaces - so that's definitely a good option if it can't be solved purely in InDesign.
    You can change case via scripting in InDesign. This AppleScript (OSX only) will set the case of the selected paragraph style to lower. It would be possible to add some code that would strip spaces as well:
    tell application "Adobe InDesign CS6"
        activate
            set StyleList to name of every paragraph style of active document
        set myDialog to make dialog with properties {name:"Document Paragraph Styles"}
        tell myDialog
            tell (make dialog column)
                tell (make border panel)
                    tell (make dialog column)
                        make static text with properties {static label:"Choose a Style", min width:150}
                    end tell
                    tell (make dialog column)
                        set myPresetsDropdown to make dropdown with properties {string list:StyleList, selected index:0, min width:150}
                    end tell
                end tell
            end tell
        end tell
        set myResult to show myDialog
        if myResult = true then
            --+1 gets the correct name because list starts at 0
            set myStyle to item ((selected index of myPresetsDropdown) + 1) of StyleList
        else
            return
        end if
        destroy myDialog
        tell active document
            set myStyle to paragraph style myStyle
            repeat with j from 1 to (count stories)
                repeat with i from 1 to (count paragraphs in story j)
                    if applied paragraph style of paragraph i of story j is myStyle then
                        --defines a variable to replace the generic this_text parameter in the handler
                        set SCText to the contents of paragraph i of story j
                        set contents of paragraph i of story j to my change_case_of(SCText)
                    end if
                end repeat
            end repeat
        end tell
    end tell
    on change_case_of(this_text)
        set the_comparison_string to "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
        set the_source_string to "abcdefghijklmnopqrstuvwxyz"
        set the_new_text to ""
        repeat with thisChar in this_text
            set x to the offset of thisChar in the_comparison_string
            if x is not 0 then
                set the_new_text to (the_new_text & character x of the_source_string) as string
            else
                set the_new_text to (the_new_text & thisChar) as string
            end if
        end repeat
        return the_new_text
    end change_case_of

  • Create a heading style that does not affect the whole paragraph?

    Hi, I would like to make a style for headings that only affects the first sentence. I want to have a style that is a certain bold type to be the heading for a section, but then I want body-text to continue without a new paragraph. Like this:
    "*Writing as a category.* Writing, more particularly, refers to two things: writing as a noun, the thing that is written; and writing as a verb, which designates the activity of writing..."
    Right now I am just using a character style for the first words but then I cant make adjustments to the spacing before this paragraph and it wont appear in the TOC.
    I don't know if I have made myself clear but I hope you get the point. Is there any way to do this in Pages?

    As far as I know, headers are available in the area entitled "Paragraph Styles" not "parts of Paragraphs Styles".
    Here is a quick and dirty workaround.
    I created my own custom character style "none 2" which I may apply to the end of a styled paragraph.
    Given that, I may have a paragraph whose beginning is 'styled' and end isn't.
    The drawback is that the entire paragraph appears in the TOC.
    In France we say "On ne peut avoir le beurre et l'argent du beurre"
    Yvan KOENIG (from FRANCE dimanche 15 février 2009 17:51:36)

  • Mapping XML tags to paragraph styles that contain nested styles

    I am importing XML into InDesign (CS5.5) and the tag mapping to styles is working fine until I get to a paragraph style that contains a nested style.
    I have a sentence that starts with a number:
    1the dog runs fast.
    In InDesing properly styled looks like this:
         1  The dog runs fast.
    (tab)1(tab)The dog runs fast.
    The number is styled with a character style (Number) and the whole sentence is styled with a paragraph style (Sentence). In order to get the tabs in between the number, I have a nested style within the paragraph style (Sentence). This triggers the tabs when it hits the character style (Number) like this:
    Number up to 2 Tab Characters
    In XML, it looks like this
    <sentencetag><numbertag>1</numbertag>The dog runs fast.</sentencetag>
    Sentencetag is mapped to Sentence paragrph style and Numbertag is mapped to Number character style, but the nested style for the tabs are not displaying. I just get this in IND.
    1the dog runs fast.
    Everything works beautifully until I hit the nested styles, which I do need to get to work somehow. Any help would be much appreciated.
    Thanks in advance!

    It sounds like your tab characters are actually disappearing from content in the XML. Jeff was responding to the fact that they need to be there, and you state that you originally had them in your document, but they are not showing up once imported through the XML.
    The tabs may be disappearing in the XML document due to the "TAB" character in your text editor not being a tab, or at least not properly-formed XML TAB equivalent, OR because you are not "importing whitespace elements" when you import your XML.
    Importing whitespace elements can wreak havoc on other things in your XML structure and styled layout within the Indesign document, so I would put the XML quivalent of TAB everywhere a tab should be in your XML, and make sure NOT to import whitespace (when importing XML using "Merge Content", select not to import whitespace items from the import options).
    I believe the XML friendly character code for a TAB character is "&#9;" or "&#09;" but have not tested this. Don't include quotes when adding the character code, just the ampersand, semicolon, and everything in-between.
    Also, sounds like your tags are mapping ok for you, so your XML should look something like:
    <sentencetag>&#9;<numbertag>1</numbertag>&#9;The dog runs fast</sentencetag>.
    It should't matter where you put the TAB character equivalent in relation to your nested tag.

  • Is Acrobat Pro right for us. We have an Employee Handbook that needs editing. Some is current pdf, some from an older version. Want to get all into one handbook, have the table of contents automatically adjust and link to specific pages from the ToC.

    Is Acrobat Pro right for us. We have an Employee Handbook that needs editing. Some is current pdf, some from an older version. Want to get all into one handbook, have the table of contents automatically adjust and link to specific pages from the ToC.

    You can download the trial version (http://helpx.adobe.com/acrobat/kb/acrobat-downloads.html) to convert the PDF back to WORD if you do not have the original. The conversion may not be perfect, but it is typically better than starting from scratch. You may be lucky and get a good result. You might check the settings (in the save screen) to try retain format versus retain text flow. The format version can be a pain to edit since it creates a bunch of text boxes. The flow version may require you to reformat in WORD, but you likely would want to do that anyway.

  • How do I edit a paragraph style in Muse?

    Is there a way to change a typeface or other detail in a paragraph stylesheet in Muse? I've tried duplicating the style, and then, when I delete the old one, I replace it with the new one. Is there a more direct way to do that?

    Hello,
    If you create a paragraph style, then change any attribute, the style has an override. If you'd like to keep this override and redefine the style click the "redefine selected style from attributes" button (highlighted in the screen shot.)
    More info is here:
    http://helpx.adobe.com/muse/using/creating-using-character-paragraph-styles.html

  • A paragraph style that applies to all other paragraph styles?

    Hi,
    how does one add a paragraph style that applies to all other paragraph styles?
    I tried applying my desired master styles to [Basic paragraph] and then based all other paragraph styles on [Basic paragraph], with some styles relating to it indirectly, e.g. Heading 1 is based on [Basic paragraph] but Heading 2 is based on Heading 1 and so on.
    That did not work as well as I'd expected though.
    Is there anything else I can do?
    Much obliged!

    A rule of thumb is to leave basic paragraph alone. Otherwise you may mess up other styles based on it.
    Just set up your new style - which may default to based on basic paragraph - and format it as you wish. Then base other styles on this.
    k

  • I've edited an image on Lightroom and gone back and edited again.  Is there anyway to get back to that original edit of the image?

    I've edited an image on Lightroom and gone back and edited again.  Is there anyway to get back to that original edit of the image?

    In the History Panel (on the left) of the Develop Module, click on any previous edit to see what the photo looked like at that step.
    If you are going to regularly want to see two versions of edits on a single photo, consider using either virtual copies or snapshots.

  • How do I get rid of the blank space after one paragraph and before the next paragraph startsin Pages '09?  I understand that I should not have a page break mid paragraph but that is what I want.

    How do I get rid of the blank space after one paragraph and before the next paragraph startsin Pages '09?  I understand that I should not have a page break mid paragraph but that is what I want.

    Hi stephanie,
    These are unrelated questions/statements.
    Space before and space after a paragraph are controled in the Text Inspector, as you've found out.
    Pages will create a page break whenever there is no room for another line on the page. That break can come anywhere in a paragraph.
    You may be thinking of Widow and Orphan prevention, and the other Pagination controls, found under the More button in the Text Inspector. (If that's what you found, then thanks for the refresher! I hadn't been to that pane for awhile, and had forgotten the variety of pagination controls available.
    Regards,
    Barry

  • I double-click on event  to see all the photos in that event displayed, but all I get is 1 large photo on the edit page.  To see the photos in that event, I have to scroll.  Need to be able to work with all the photos in that event, not one at a time.

    I double-click on event  to see all the photos in that event displayed, but all I get is 1 large photo on the edit page.  To see the photos in that event, I have to scroll.  Need to be able to work with all the photos in that event, not one at a time.

    Maybe you need to adjust the zoom slider in the lower left corner of the window?
    Regards
    Léonie

  • How do I get rid of the grid that appears when I want to edit a photo

    How can I get rid of the grid that has suddenly appeared when I edit photos?

    Make sure that you have installed East Asian language support.
    * http://en.wikipedia.org/wiki/Help:Multilingual_support_%28East_Asian%29 Wiki: Help:Multilingual support (East Asian)
    * http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/int_pr_install_languages.mspx?mfr=true - Microsoft Windows XP - Install East Asian language files on your computer

  • Hello because iphoto photos that have resolution of 4896 x 3672 I can not see bigger I get a warning and I can not edit

    Hello because iphoto photos that have resolution of 4896 x 3672 I can not see bigger I get a warning and I can not edit tank you please i need help

    Where did you get these images? A Canon 5D Mk III hass images that size, and no one has complained bout this issue.

  • Astuces pour les documents longues en pages; styles de caractère et paragraphe en pages

    Bonjour,
    Quelqu'un vient de me dire qu'on ne peut pas utiliser pages pour la rédaction d'un mémoire, à cause du fait qu'elle ne voit pas pages comme suffisant pour les styles de caractère et les styles de paragraphe.  J'avoue que pour les styles de caractère ça ne me parait pas tout à fait évident.  Par contre, je suis sur qu'il y a un moyen pour que Pages puisse marcher très biens pour les textes longs.  Est-ce que cette personne, très expérimenté dans la rédaction de textes longue, a raison, ou est-ce quelqu'un puisse me proposer un autre avis?  ou des conseils?  Je vous remercie en avance.

    Bonjour!
    Simple answer: Yes, Pages would work.
    Explanation:
    If I were to use any kind of word processor (including Pages) for a long document (in this case a memoir as you ask about) I would divide the memoir into chapters.   You do not want to get to the point that some corruption midway in a long document renders the whole document unrecoverable.
    I have seen older Apple Discussions that state that Pages gets slow when you hit 800 + pages.  See here a brief thread.  That is also contingent on version of Pages you have.
    What is the maximum file size for Pages?
    See here if you were to use iCloud for storage
    http://support.apple.com/en-us/HT202900
    From there "Pages for iCloud  Each Pages document can have an unlimited number of characters. You can paste about 2 million characters into a document at a time."
    Furthermore, Pages has many character styles so that you could make your memoir as exciting as possible.
    If you were to publish your memoirs you would want to know what format the printer/publisher can deal with. Personally, I would write and write and write it as simple text.  Later add the window dressing. 

Maybe you are looking for

  • Need to create a virtual server and give its access to another admin

    Dear Sir, I am a new admin and have 5 Blade server "HP ProLiant BL660c Gen8". I access these servers through HP enclosure. I have to install Hyper-V on server 1 which consisted of the OS windows server 2012 R2 Datacenter edition. I created a plan to

  • Slide names and descriptions?

    I am new to DPS and pretty average in InDesign. Where to I edit the name of the slides so that they appear when viewing the .folio in Adobe Content Viewer? It would appear in the menu on the left, and the vertical view of all slides in the .folio. Th

  • Connecting to Oracle remotely

    I've been trying to figure out how to connect to iSQLPlus or Enterprise Manager from outside my network. Is this possible? I've opened up port 1158 and 5560 on my router, and i've setup a domain name through a DNS so where my website works fine (it's

  • How can I preserve Client IP address?

    I am configuring the ACE for bridged mode. However, the real server is seeing VIP IP but not Client IPs. Our business requires that the real server must see client IPs. Do you have any idea how to set that up? I tried to turn ON/OFF normalization but

  • Are there any ill effects for turning up brightness all the way?

    Are there are any ill effects or long term effects if you turn up and leave the monitor's brightness at full? I'm not worried about the battery draining or anything, I'm just wondering if it wouldn't be as bright two years down the road compared to i