Get IStyleInfo when observing style changes.

Hello.
Is there a way to get information on the processed style when adding/deleting/editing character and paragraph styles?
I am using the doc observer and can act on these changes:
{ SDK_DEF_STRINGIZE(kDeleteParaStyleCmdBoss), 0x250 },
{ SDK_DEF_STRINGIZE(kDeleteCharStyleCmdBoss), 0x251 },
{ SDK_DEF_STRINGIZE(kEditTextStyleCmdBoss), 0x25d },
{ SDK_DEF_STRINGIZE(kCreateParaStyleCmdBoss), 0x20c },
{ SDK_DEF_STRINGIZE(kCreateCharStyleCmdBoss), 0x20d },
using the IID_ISTYLEINFO protocol.
I would like to get the IStyleInfo pointer, right in the update method but I can't from any of the parameters ( ISubject*, void* changedBy).

Got it :)<br /><br />To get the information about the created/deleted/changed style just get the command with:<br /><br /><code><br />                    InterfacePtr<ICommand> styleCmd((IPMUnknown*)changedBy, UseDefaultIID());<br />                    if(!styleCmd)<br />                    {<br />                         ELOG("Can't get the command");<br />                         break;<br />                    }<br /></code><br /><br />Now just get the needed interface depending on the used command. For example, to get the name of the newly created style use:<br /><br /><code><br />                    InterfacePtr<IStyleInfo> cmdStyleInfo(styleCmd, UseDefaultIID());<br />                    if(!cmdStyleInfo)<br />                    {<br />                         ELOG("Can't get the style info on the command");<br />                         break;<br />                    }<br /><br />                    // get the UID of the style we work with :D<br />                    DLOG2("The style which was changed=%s", cmdStyleInfo->GetName().GrabCString());<br /></code><br /><br />Pardal

Similar Messages

  • How to get informed when PO / Contract changed to ordered / released status

    Hi,
    I am working on a program which sends SRM PO and Contract data to a non-SAP system, one of the requirements is to send SRM data immediately after PO / Contract's status changed to Ordered / Released ( workflow is used here ).
    I tried to used BBP_DOC_CHANGE_BADI, but noticed throuhg debugger that the last time this BADI get called, I still didn't see Ordered / Released status in the Status table.
    Is any way to know status change for PO / Contract ?
    Thanks a lot,
    Wayne Liu

    Hello Wayne,
    Solution 1:
    You can use the SRM Alert Mangament to know when a contract was released, specifically the following events RELEASED_AGAIN
    RELEASED_NEWLY.
    Check IMG Cross-Application Basic Settings-> Event and Event Schema for Alert Management
    For PO I could not find a similar event, but there is a APPROVAL_PROCESS_DOC_APPROVED event which can be used if the PO was approved after ordering.
    In any case you can create your own events and event handlers using the SRM Alert Management BAdi BBP_ALERTING.
    Solution 2: Only for Contracts
    You can use the existing Distribution mechanism to distribute contracts to Non-SAP systems.
    Distribution of contracts is triggered whenever significant changes are done to the Contract (like Release, Lock, Unlock).
    Implement function module NOR3_CTR_TRANSFER for this purpose.
    Edited by: Sushil Kumar on Mar 22, 2010 9:41 AM

  • How to get notification when Calendar is changed.

    Hello All,
    How do I receive notifications on my iPhone/ipad when a shared calendar on icloud is changed/updated by someone else?
    Thanks!

    As I recall, log into icloud.com with a computer's browser, go to the calendar page and click the "Calendars" button (or in ML, look at the left panel).  In the list of calendars, find a shared one, click the small icon next to it.  There you'll have the option of being notified when a change is made.

  • How to automatically let the video getting scaled when the browser changes size

    Hi,
    I'm using a f4v file with dimension 1200x720 and I might upload a 1920x1080 version.
    You can see it at work on www.etmotionpictures.com
    I want to the movie to automatically (down)scale in the browser.
    So when I resize the browserwindow and refresh the page, I thought the movie would be resized to the new dimension of the browser-window but it didn't do it.
    Maybe I misunderstood what scalemode=letterbox is doing.
    By the way I used to generate the code and then paste it in a html file.
    Here is the code:
    I just realized it might have something to do with the fact that the width and height are added in the parameter and at the beginning when the object is declared. Do I need to change that in order for the video to automatically scale.
    Thanks for any help.
    I really appreciate it!!!
    Regards,
    Gosa
    ps: sorry for my english but I'm not a native english speaker. thanks for understanding.

    Hi,
    Thanks for helping me on the right track.
    I used swffit to accomplish what I wanted.
    Here is the link: http://swffit.millermedeiros.com
    Here is the code I used for anyone who want to do the same thing:
    <script type="text/javascript" src="swfobject.js"></script>
              <script type="text/javascript" src="swffit.js"></script>
              <script type="text/javascript">
                   /* swfobject.embedSWF("example.swf", "my_flash", "550", "400", "8.0.0"); */
                   var flashvars = {};
                   var params = {};
                   params.bgcolor = "#000000";
                   params.menu = "false";
                   params.quality = "high";
                   params.scale = "no_scale";
                   params.bgcolor = "#FFFFFF";
                   params.allowFullScreen = "true";
                   params.AllowScriptAccess = "always";
                   /* params.movie ="http://osmf.org/dev/1.5gm/StrobeMediaPlayback.swf"; */
                   flashvars.src="http%3A%2F%2Fwww.etcmotionpictures.com%2Fetc.f4v";
                   flashvars.playButtonOverlay="false";
                   flashvars.controlBarMode="none";
                   flashvars.controlBarAutoHide="false";
                   flashvars.autoPlay="true";
                   var attributes = {id: "my_flash"};
                   swfobject.embedSWF("http://osmf.org/dev/1.5gm/StrobeMediaPlayback.swf", "my_flash", "800", "450", "8.0.0", "", flashvars, params, attributes);
                   swffit.fit("my_flash"); //Since v2.3 swffit use the same size of swfobject by default (but you can set a new size if you want)
              </script>
    And of course a div tag in the body:
    <div id="my_flash"> </div>
    Greets,
    GoSa

  • Shared Reminders: How do I stop getting emails when changes are made?

    My wife and I both have iPhone 5's that we bought 2 weeks ago. We are sharing a calendar and a "Grocery" list in reminders. I have everything set up where it is working properly but I keep getting emails when a change is made to the grocery list. I don't get emails when there are changes to the calendar.
    I want to stop getting emails when there are changes made to our grocery list but I am not sure how to do it. We both have icloud accounts and we both have checked the box under preferences in my calendar for "in app notifications" for icloud invitations. When I open Reminders in icloud I don't see a preferences for reminders.
    If it helps , or makes any difference, my wife has a yahoo mail account and I have a hotmail account. She does not get emails about changes being made.
    thanks

    Did you try to switch Push "off" and fetch to "manually"? This way no mail is delivered until you choose to open the mail app. The moment you open Mail on your device, your mail account will be checked and if any, mail will be delivered.
    Fetch New Data
    This setting lets you turn Push on or off for MobileMe, Microsoft Exchange, Yahoo!, and any other push accounts on iPhone. Push accounts deliver new information to iPhone whenever new information appears on the server (some delays may occur). You might want to turn Push off to suspend delivery of email and other information, or to conserve battery life.
    When Push is off, and with accounts that don’t support push, data can still be fetched—that is, iPhone can check with the server and see if new information is available. Use the Fetch New Data setting to determine how often data is requested. For optimal battery life, don’t fetch too often.
    Turn Push on: Choose “Mail, Contacts, Calendars” > Fetch New Data, then tap to turn Push on.
    Set the interval to fetch data: Choose “Mail, Contacts, Calendars” > Fetch New Data, then choose how often you want to fetch data for all accounts.
    To conserve battery life, fetch less frequently.
    Setting Push to OFF (or setting Fetch to Manually on the Fetch New Data screen) overrides individual account settings.
    page 203 iPhone_User_Guide
    Message was edited by: Ingo2711

  • How do you make a customized template?? When I customize an original template it does not apply it to the whole document! How do you apply style changes permanently to your document???

    When one customize text styles or spacing between paragraphs. How do you apply settings permanently to a document???
    Should you create a new template???

    Happily, when you edit a document created by a given template, the changes aren't stored in the template.
    If you want to get a template embedding your changes, you need to use :
    File > Save as Template
    then use the newly created custom template as starting point.
    Yvan KOENIG (VALLAURIS, France) dimanche 22 janvier 2012
    iMac 21”5, i7, 2.8 GHz, 12 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
    My Box account  is : http://www.box.com/s/00qnssoyeq2xvc22ra4k
    My iDisk is : http://public.me.com/koenigyvan

  • [svn:fx-trunk] 9407: Reordering the if-statement in isMeasureFixed() exposed that hostFormat can be null when measure() is called if styles changed and measure is done before the next commitProperties .

    Revision: 9407
    Author:   [email protected]
    Date:     2009-08-19 15:11:34 -0700 (Wed, 19 Aug 2009)
    Log Message:
    Reordering the if-statement in isMeasureFixed() exposed that hostFormat can be null when measure() is called if styles changed and measure is done before the next commitProperties.  This states test exposed this.
    We should rethink if we want to clear hostFormat rather than have a hostFormatChanged flag.  If there is no hostFormat at measure then it has to be fixed because there is no line break format to check for auto-size.
    QE notes:
    Doc notes:
    Bugs: SDK-22779
    Reviewer: Gordon
    Tests run: checkintests
    Is noteworthy for integration: no
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-22779
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/RichEditableText.as

    Oh my god, it is too long! You definitely check out types, casting and especially ODP.Net (it does everything for you)... etc. They can help you to simplify your code. I do not have enough time to copy paste it to Studio and understand and solve your issue, so I got title of your message as your main question.
    In Oracle, you can create an autonumber field by using sequences object. This is really useful when you need to create a unique number to act as a primary key.
    Basically you can create a sequence simply typing;
    CREATE SEQUENCE MY_SEQUENCE;
    now you have a sequence called "MY_SEQUENCE"... Then, I advice you select a number from sequence;
    select MY_SEQUENCE.nextval from dual;
    I said I advice actually kinda must, although it called sequence, I cannot be sequential. Do not even try to predict the value. You can be sure that it is unique number so you can use it.
    Then insert you record and use that number part of your primary key. I think that's it. Have fun.

  • LTA is getting Double when EE changes Department /Designation in mid of the

    Hi Sapiants,
    LTA amount is getting Double when EE changes Department /Designation in mid of the month. what is the reason behind this problem.
    Regards
    vinmax

    Dear Delik,
    Now double appearance of LTA amount is gone by assigning the spec . to Pr.Cl. - 06 .Your answer helped buddy in this egard. but a new problem is coming. system is populaating some amount with a wagetype. though it is not part of IT 0008.
    Thanx
    Vinmax
    Edited by: kvin kvin on Jul 25, 2008 12:28 PM
    Edited by: kvin kvin on Jul 25, 2008 12:29 PM

  • In ical why does my wife get an email everytime I update our home calendar but when she makes changes I don't?

    I have shared a calendar with my wife aptely called "Home" to which every time I update or rearrange something she gets an email, I understand that this is quite useful for informing her of any changes but when she makes changes I receive no notifications/email. The problem I/she has is that when updating especially on the mac I change alot of things very quickly and she ends up with a flooded inbox informing her of small changes such as I've changed the time by half an hour or maybe a spelling has changed, does anybody out there know how to turn off the emails, we both regulary check the notifications bar on our ios devices and can see whats planned for the day etc so why burden the servers in the sky sending one way emails?? Any assistance would be greatly appreciated guys

    OK, I don't have the exact same problem, but here are a few things you could try.
    1. Go to www.icloud.com and login. Select your calendar from the icons and you will then see the cogwheel in the top right corner. Click on it and enter your settings. Under ADVANCED, there is a tick box saying "Send me a copy of event invitations and updates"
    2. On the shared calendar on the left hand side of the calendar you are in, it should show a list of your calendars. The shared ones are green whilst the others are just white/transparent - Click on the green one of the calendar that is being shared (The clarify, this needs to be done within your wifes icloud, not yours and she needs to click your "Home" calendar green bit). This opens up the Tick box "Email me when this calendar changes" - deselect this.
    Good luck.
    For what its worth, here is my problem. I keep getting invitations for all my girlfriends new appointments. They are coming up in the same invitations box that you get notified in when someone invites you to a lunch where you select reject, accept etc. But these just have an OK select button. I can't seem to find anything that rectifys this, and it has only happened since I upgraded to Mountain Lion, but my girlfriend has not.
    There is nothing on the web to describe this problem so far and I have gone through every setting trying to rectify it. If anyone can help on this one, that'd be great.

  • When syncing iPod touch to MacBook, I have selected to sync only events newer than 360 days. Yet I get message that sync will change 8000 events on "this computer"  most of which are years old and many are recurring events.  I'm afraid to proceed

    When syncing iPod touch to MacBook, I have selected to sync only events newer than 360 days. Yet I get message that sync will change 8000 events on "this computer"  most of which are years old and many are recurring events.  I'm afraid to proceed with sync. 

    Having the same problem here. As a first time mac user, Apple has certainly made a bad first impression.
    For me, the issue seems to occur when transferring files between computers that are connected to the same access point (when transferring files from wired computers on the network there is no issue). My vista laptop and every laptop I have tried has worked perfectly fine with this access point so I am 100% convinced it is the mac. Basically when I copy the files, after about 100mb, I am unable to access anything on the local network or internet until I restart Airport. The weird thing is that even though I am unable to access anything, the airport utility says it is connected. I might also note that the wireless signal strength is full.
    If I can't get this figured out in a few days, this computer is going back to the store where it came from and I will officially label myself anti-mac. This type of issue is just unacceptable for something so main stream.

  • How to get notified when changes happen on Hyper-V host or VMs

    Is there a way to get notified on Hyper-V host or VM changes? Our intention is to notify the system-administrators on any changes.
    1. How to get notified when new VM is created (or deleted) on Hyper-V.
    2. How to get notified when any memory/CPU/disk is added (or deleted) on any VM(s).
    In general: 
    - Get notified when any changes happens to Hyper-V host.
    - Get notified when any changes happens on any VMs.
    Our target servers are Windows Server(2008, 2008 R2, 2012, and 2012 R2)
    We tried to get the notification using "Event Viewer" on different Windows servers (2008, 2008 R2, 2012, and 2012 R2)
    We were able to get event-logs only on one of our 2012 R2 server as described below on creation/deletion of VMs (on another 2012 R2 server, we did not got any such event, Is there any setting required on host computer to get Hyper-V event-logs in "Event
    Viewer"?)
    Log Name:      Microsoft-Windows-Hyper-V-VMMS-Admin
    Source:        Microsoft-Windows-Hyper-V-VMMS
    Date:          12/18/2014 1:21:45 AM
    Event ID:      13002
    Task Category: None
    Level:         Information
    Keywords:      
    User:          SYSTEM
    Computer:      HPHyper-V.COMPUTERNAME.lab
    Description:
    A new virtual machine 'TestVM' was created. (Virtual machine ID A0FED305-7B1A-4BB5-952C-BA9634ACDA45)
    Log Name:      Microsoft-Windows-Hyper-V-VMMS-Admin
    Source:        Microsoft-Windows-Hyper-V-VMMS
    Date:          12/17/2014 10:57:01 PM
    Event ID:      13003
    Task Category: None
    Level:         Information
    Keywords:      
    User:          SYSTEM
    Computer:      HPHyper-V.COMPUTERNAME.lab
    Description: The virtual machine 'TestVM' was deleted. (Virtual machine ID A0FED305-7B1A-4BB5-952C-BA9634ACDA45)

    Thanks for your reply,
    Just to make it more clear:
    In our environment we have enabled Hyper-V on following Windows servers: 2012 R2, 2012, 2008 R2, 2008. The environment is very dynamic, VMs are getting created and deleted very frequently. Our intention is to get notified by any means on VM creation/deletion,
    currently we are relying on event-logs (we are OK with any different mechanism for such notification if there exists, i,e other than event-logs)
    We were able to get event-logs only on few of our 2012 R2 server on creation/deletion of VMs. On another 2012 R2 server, we did not got any such event (do we need to make some settings on 2012 R2 to get events? If yes, what are those settings).
    Also we are not getting any such event of VM creation/deletion on our Windows Server 2012, 2008, 2008 R2. Is there any setting required on hese host computer to get Hyper-V event-logs in "Event Viewer" for VM creation/deletion?

  • ???  I just installed Lightroom 5 from Amazon for my Mac with 10.10.1 software.  When I open it I get: "An error occurred when attempting to change modules".  It won't import photos and has no side panels under Library.  What should I do?

    I just installed Lightroom 5 from Amazon for my Mac with 10.10.1 software.  When I open it I get: "An error occurred when attempting to change modules".  It won't import photos and has no side panels under Library.  What should I do?

    I Nearly bought from Amazon too but I found a thread from Adobe stating that the only recognized outlet for lightoom is themselves and other outlets serial numbers will not be guaranteed.
    THat at was sufficient for me to buy direct from Adobe, hope you get it sorted.

  • Purchased Light Room 5, installed, registered .. but keep getting this screen "An error occurred when attempting to change modules. ... OK" ?? WTF? ?

    Installed Light Room 5.2 from Disc on my mac os x (latest, updated version)
    But keep getting this "An error occurred when attempting to change modules.. OK" no other options/selection and of course if I click OK ... it crashed out ...
    Can anyone help?
    For such a big company .. there isn't any chat option to get to someone to talk to  !!!

    Just because you are the only user on the computer doesn't mean you are the administrator.
    Also, the fact that you are being asked to re-enter your serial number each time you start means that it is not being remembered because something is either preventing it from being written to you disk or (less likely) something is erasing it. This does suggest that you lack certain permissions to make changes to your computer. Not only to save your serial number, but to have access to the Lightroom files needed to change modules (they are just plug-ins within Lightroom).
    Try creating a new user account and run Lightroom from there (making sure that it is part of the Administrator group).
    To get to chat support, you have to choose the options:

  • After installing Lightroom 3, we get a message saying "An Error occurred when attempting to change modules"

    After installing Lightroom 3, we get a message saying "An error occured when attempting to change modules"
    The Lightroom background comes up but I don't have the side information and no arrow to get it.
    Can anybody help.
    Debbie

    Best guess is a permissions problem although you haven't mentioned what operating system you are using.
    Have a look at: Error changing modules | Lightroom

  • Lightroom trial doesn't show complete menu selections or import button.  Also get error message on launch:  An error occurred when attempting to change modules.  I am unable to find/see the following file to try renaming the SLCache and SLStore files:  Sy

    Lightroom trial doesn't show complete menu selections or import button.  Also get error message on launch:  An error occurred when attempting to change modules.  I am unable to find/see the following file to try renaming the SLCache and SLStore files:  System Library/Application Support/Adobe.  Any ideas?  I only have 16 days left on the trial and have been unable to get it to work on my Macbook Pro.  This is all I am seeing after Lightroom opens.  Thanks!

    Thanks to both of you for attempting to help.  I finally figured out what was wrong . . . it was a Permissions problem.  Very frustrating, but after scouring the troubleshooting tips I finally found the one that solved my problem.  I had to add a User and give it Read/Write privileges to Lightroom.  The file I had to add the User to was Hidden on my Mac, so that added an even bigger challenge to the mystery.  Only a few days left on my trial version!  I hope I have time to try it out!

Maybe you are looking for