How to observe the command "duplicate swatch"?

I want to be notified each time the kDuplicateSwatchCmdBoss is run, so I tried to write an observer of swatch.

My first attempt was to inherit from SwatchesObserver, but I could not run, and I couldn't find any documentation to explain how it was better than using Cobserve. (Someone in this forum already used SwatchesObserver?) So now I inherit from Cobserve.

Still not got very far because I need to attach it to a widget in my method CResponder::Respond (), but I can't an IObserver interface on any of the widget IDs for all that looks like it would be for the swatch list. kSwatchesPanelWidgetID? kSwatchListPanelWidgetID?

Here's what the code looks like in the answering machine:

InterfacePtr < IApplication > theApp (GetExecutionContextSession ()-> QueryApplication());
Assert (theApp);


PanelMgr InterfacePtr < IPanelMgr > (PAP-> QueryPanelManager());
Assert (panelMgr);


IControlView * swatchesCV = panelMgr-> GetPanelFromWidgetID (kSwatchListPanelWidgetID);
Assert (swatchesCV);


InterfacePtr < IObserver > iSwatchObserver (swatchesCV, IID_IVIPSWATCHOBSERVER);
Assert (iSwatchObserver); / / this assertion always fails


If (iSwatchObserver! = nil) {}
iSwatchObserver-> AutoAttach();
}

Here's what I added to my file .fr:

AddIn
{
kSwatchLibWidgetBoss,
kInvalidClass,
{
IID_IVIPSWATCHOBSERVER, kVIPSwatchObserverImpl,
}
},

Anyone know what I am doing wrong?

Thank you

Bob

You're right, I did not notice that detail. The UDList is replaced by the new UID and the former disappeared.

This and the missing notification a smell as the command was implemented centuries ago.

As you can see, the kAddSwatchesCmdBoss which adds the sample created in the list will follow later.

How about this:

You can find the original by name shade, if you take the name of the new grade and strip the end 'copy' or 'copy 2 '. See kDuplicateSwatchCmdBoss IID_ISTRINGDATA for the actual string.

As an alternative, implement a class of distinct renderingobject (boss) instead of overlay your data.

In this case, you must also implement a kRenderingObjectService which in the IRenderObjectService is requested (by the command duplicate) to perform the double real.

IID_IK2SERVICEPROVIDER kRenderClassProviderImpl,

IID_IRENDEROBJECTSERVICE, myImpl...

Delete regarding: the delete action will create a "color without a name" (if you chose this option remove... dialog) and replace all references to the shade with references to no named color. You can detect this case of the kNewColorCmdBoss: IID_IRENDERINGOBJECT: visible flag...
Much later, there will be a kDeleteSwatchesCmdBoss with a nested kDeleteColorCmdBoss (at least if we don't talk about kPMColorBoss objects). Hard to find, my trace output has 46000 lines for such an operation...
Dirk

Tags: InDesign

Similar Questions

  • Is there an online class to learn exactly how to use the command prompt which is quite through. OR y at - it clear a book that explains in detail for this? Who should I contact?

    I would like to know how to use the command prompt.  The nethodology type in the cmd prompt with the syntax and the Liposuction, in other words, the real return to a command prompt. I downloaded about evertthing I can find about this, but can't seem to put it all.

    My OS is Windows XP Pro sp3, lots of RAM, my address is * address email is removed from the privacy *.   I would like to take a rough online study if one is available if it is not too expensive.

    It really depends on what you mean by "to a command prompt."

    If you open a command prompt window (for example, in start > run > cmd > OK), you can enter a number of orders.  The list of available commands, including their syntax, is here--> http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/ntcmds.mspx?mfr=true

    You can also follow the links here:http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/ntcmds_o.mspx

    If you want to get more sophisticated - automating command-line tasks - you can start here: http://technet.microsoft.com/en-us/scriptcenter/default.aspx

  • How to decrease the speed "duplicate"?

    How to decrease the speed "duplicate"? I use this script, but my eth0 show me 100 MB/s: run {allocate channel ch1 device type disk rate 10 m;}   allocate channel rates auxiliary ach1 devices type disc 10 m;   target database duplicate to dbtest02 of the active database. } What I did wrong?

    A transfer on the network will use all of the bandwidth is available. If you want to limit the consumption of bandwidth, check with the network team, if they can implement all controls using intermediate switches between the two servers.

    Hemant K Collette

  • How to use the command import on the production environment?

    Hi gurus of the OFA.

    I want to know about the production environment OAF and development environment, the differences between them and how to use the command import on the production environment?



    Concerning

    Ajay Sharma
  • How to use the command line in w/Merge Vista?-need to cut password expires...

    I use Vista Home Basic by Fusion on a Mac Intel. The instructions to stop Vista expire a password is to use the command-line under Vista. I already know these instructions, so my question is:

    How to use the command line inside Vista, on a virtual machine?

    Thanks for your help in advance, I don't want to mess something else.

    Jacob.

    With assistance from the command-line on Vista is no different if it is to be run on a virtual machine or on a physical machine, so just like you would on any physical machine.

  • How to use the commands on the cmd prompt witout using a string like 'netstat' but I need output

    How use the commands on the cmd prompt witout using a string like netstat but I need output
    example: C:\ > netstat-an... will give its results
    But if the keyword netstat is blocked...
    I want to use the command netstat another way... can I convert it to binary, and then I can run or something else
    Please answer my questin

    Netstat is simply a file program located in the folder C:\Windows\System32.   It appears as "netstat.exe.  If you rename (or copy / paste / rename) to "abc.exe" then you can run it using 'abc' instead of 'netstat '.

    HTH,
    JW

  • How to stop the command line defragmentation Vista 64?

    I started "defrag - v w" command line 15 hours ago and I think she's still going because I do not have a command line prompt and the hard drive light flashes quickly (and somewhat randomly).  Anyone know how to stop the defrag process command line without altering anything?

    Key does nothing and the Task Manager shows that defragmentation is running.

    The f

    CTRL-c should stop.

  • How to run the command in Windows 7?

    Original title: HOW can I PUT to the TOP of THE COMMAND WINDOW TO INSTALL a PROGRAM IN WINDOWS 7 a LITTLE WI... UNDER XP, I WENT TO RUN AND OPEN NOCK THEN HE TYPED IN THE COMMAND

    INXP I COULD BRING UP THE LITTLE TH WINDOW TYPE IN THE INSTALLATION PROGRAM. EXE TO INSTALL THE PROGRAM I CAN T FIND THAT IN WINOWS 7

    As long as you are trying to run a 16-bit program on 64-bit Windows, then try either Windows key + R or click Start (or press the Windows key), and then simply type (or paste it into your order for the text box search programs and files ), then press on .

    If you think you really need to run window, you can add it by customizing the Start Menu. Right-click the Start button, and then select Properties. Click the Customize button at the top right.


    Figure 1.0 - Customize Start Menu dialog

    Scroll down about three quarters of the way down the list of options and place a check next to run the command. Click OK to save your changes and OK to save the Properties dialog box again.

    The familiar run command should be back on your Start menu in the menu on the right pane. The window run keep a history of previous orders drop.

    • "Have you tried it turned off then on again? '-'The IT Crowd' Roy (Emmy award-winning British comedy)
  • How to observe the events of closing on a library?

    This morning, I wrote a new class to try and observe the events of closing for libraries. The idea is that I can know when my library is closed (by code or user) and perform actions.

    The class inherits from Cobserve and implements AutoAttach, AutoDetach and update. Which is used by the functions is IID_LIBRARYSERVICE.

    My update function looks like this:

    If ((Protocol == IID_ILIBRARYSERVICE) & & (change == kLibraryCloseLibCmdBoss))
    {
    ICommand * ptrCommand = (ICommand *) ptrChangedBy;

    If (ptrCommand! = nil)
    {
    const UIDList list = ptrCommand-> GetItemListReference();

    If ((List.Length () > 0) & & (ptrCommand-> GetCommandState() == ICommand::kNotDone)))
    {

    Do something - go through the list, but only expect one.

    Match UIDRef of library going to be closed.
    }
    }
    }

    In the resource file, I wrote an AddIn

    AddIn
    {
    kLibraryBoss,
    kInvalidClass,
    {
    IID_MYLIBRARYOBSERVER, kMyLibraryObserverImpl
    }
    }

    The performance of the plug-in, I get no call in the code with the exception of CREATE_PMINTERFACE.

    There are no samples in the SDK for libraries, so I'm not sure that I use the correct object or the boss in the add-in.

    Anyone who has tried to do this? Thanks in advance for any help.

    IK2ServiceRegistry::QueryDefaultServiceProvider (kLibraryServiceID) of use, it returns a kLibraryProviderBoss.

    This pattern has as object to look at.

    For example, you had AutoAttach during a boot service.

    BTW, the itemlist of kLibraryCloseLibCmdBoss is empty. Take a look at her IID_ILIBRARYCMDDATA instead, it specifies the library as a source.

    As long as you use a private IID or a boss for the observer, it doesn't really matter where you put it. Sometimes I would be component snap mine on the observed object (e.g. paper) even if for go-away notifications, I would choose something more long life. Often I put them on the same private boss who operates the boot service, or any other easily accessible boss - for example, see how many others live on kSessionBoss...

    Dirk

  • How to extend the ralations duplicate?

    Hi all
    I tableA (code, street_name, street_number, att1, att2) and theres duplicate code, street_name and street_numbers.
    I have found using code duplication:
    Select code from tableA where code in (select code from tableA group by code having count (*) > 1)
    but at the same time, the code has been changed and I have other code and the old street_name and the old street_number
    so tableA now have:
    oldCODE, street_name, street_number and newCODE, street_name, street_number - double street_name and street_number!.
    tableA have 7000 files.
    Question how is this double street_name and street_number with this different code (old and new CODE)?
    Thanks in advance
    Gordan

    Published by: useruseruser on August 25, 2008 09:48

    Here is a test:

    SQL> with tbl as
      2  (select 1 id, 'str1' str, 12 nb from dual union all
      3   select 2 id, 'str1' str, 12 nb from dual union all
      4   select 3 id, 'str1' str, 12 nb from dual union all
      5   select 4 id, 'str2' str, 13 nb from dual union all
      6   select 5 id, 'str3' str, 14 nb from dual)
      7  select str, nb, max(ltrim(sys_connect_by_path(id,' - '),' -')) keep (dense_rank last order by length(sys_connect_by_path(id,' - ')))dup_id
      8  from   tbl
      9  connect by prior id < id and prior str = str and prior nb = nb
     10  group by str, nb
     11  having count(*)>1;
    
    STR          NB DUP_ID
    ---- ---------- --------------------------------------------------------------------------------
    str1         12 1 - 2 - 3
    
    SQL>
    

    However, not sure how to distinguish the old code and the new.

    Nicolas.

  • Send an email from VBA Excel generates the message OK but I don't know how to tell thunderbird to "sendnow". How to structure the command?

    This is the code I use to access the command-line for thunderbird. What I send to Thunderbird the email which was built?

    Dim strCommand As String

    strCommand = "C:\Program Files\Mozilla Thunderbird\thunderbird"
    strCommand = strCommand & " -compose " & Chr$(34) & "mailto:" & strTo & "?"
    strCommand = strCommand & "subject=" & Chr$(34) & strSubject & Chr$(34) & "&"
    strCommand = strCommand & "body=" & Chr$(34) & strBody & Chr$(34)
    
    Call Shell(strCommand, vbNormalFocus)
    

    Automatic sending of mail is not supported. It is extremely difficult to get malware to spew spam with your email client if it does not have an automated shipping option.

    I suggest you use vbs > code SMTP to send your mail. If you use Google or Outlook.com e-mail sent using the SMTP server can be synchronized in the sent folder.

  • How to hide the command prompt window when using exec system

    Hello, I use the exec system VI to do some transfers of files for a LabVIEW application.  I'm afraid that the black white scroll text command prompt window that appears when exec system is called might scare users this LabVIEW application non-tech savy.  Is there a way to hide the command prompt window?

    Feed a REAL running reduced entry.

    Mike...

  • How to use the command shutdown in vista?

    I used the shutdown command to make sure that the computer is turned off at some point in XP, but I just wanted to put my own computer to shut down after accidentally booting to Vista Home in order to download a large file while I was at work.

    I tried shutdown-s t 9000, which should have set a time limit of two and a half hours, but he gave me the help screen message.
    I saw that the main difference is that dashes had been changed to slashes, but "shutdown /s /t 9000" also failed.

    What is the correct syntax to use the command? I confirmed that 'shutdown-s-t 9000' works very well in my XP virtual machine, if that is the new syntax to accomplish the same thing with Vista? I tried "run as administrator" to the command-line nothing helps.

    Hello
    It is the command to shut down the computer in Vista.
    SHUTDOWN [/s] [t / xxx]
     
    xxx/t:  The value of the timeout prior to xxx seconds. (The valid range is 0-600, with a default value of 30. The use of / t xxx implies the /f option.
     
    /s: Shut down the computer.
     
    /f: Force running applications to close without prior notice to users. (/ f is automatically defined when used in conjunction with xxx/t).
  • Reference Dell 6200 - how to disable the command prompt 'more' of the 'show running-config '.

    There must be a simple way to do it, but I'm not.

    10xs

    Gaash

    I'm not aware of a way to disable "- More - or (q) ITU ' output.  This feature is integrated in the firmware in order to display the output of the list longer than that of the screen. The 6200 CLI does not include the command "terminal length."  The PowerConnect 8024 has this feature.

    Hope this helps

  • How to disable the command CHKDSK - Check Disk start up for Windows 7

    I have some problems, when I start my laptop I am prompted with a black screen saying

    I found no solutions on how to disable this on my computer, but I want to because after the seconds say 1, its stays for a while... and I've left on during some time, the screen is still asleep when I turn... The page is black... Can someone help me to disable the calendar checking for windows 7? Thank you very much! : D

    Hi PikaBrian,

    Welcome to the Microsoft Answers site!

    To disable automatic disk checking at the start of Windows through registry, go to the following registry key:

    Important: This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base:

    322756 how to back up and restore the registry in Windows: http://support.microsoft.com/kb/322756

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager

    In the right pane, double click BootExecute.

    The default value of the key is autocheck autochk *

    * means that each drive is checked for consistency. Just add /K:C to the end before *. /K switch will disable autocheck on C: drive at Windows startup. If the final value should look like this:

    / k: C to autocheck autochk *.

    If you want to add more drives, the key should look like this: (by disabling the drives C and D)

    / k: D / k: C autocheck autochk *.

    If you want to restore all default, just replace the key with the default i.e.

    autocheck autochk *.

    You can also follow the link given below and check if it is of no help.

    http://social.answers.Microsoft.com/forums/en-us/vistaperformance/thread/a8ab415b-4559-45C6-99a4-a54e27e5a836

     

    Hope this information is useful.

    Amrita M

    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

Maybe you are looking for

  • CSV file will not work in Excel after update of the Sierra

    Excel is not able to properly open CSV files more. I have two MacMinis to work with the same version of Excel/Office, but one with macOS Sierra displays all the data in the first column. Must be a problem that macOS as Sierra mess up to the deliminte

  • no blue ink new cartridge

    Cartridge HP ordered online, the alignment looked good.  first page or 2 looked good, now without the blue ink.  Printer is a 10 yr old Office Jet G85.  Any chance of HP has some bad cartridges or is it just time for the new printer?

  • deskjet4580: scan

    I was able to scan via an icon on my laptop and now I get a message that says "add a scanner". Comcast has just installed a new modem/router, do not know if this cause.

  • When I type my cursor moves to another space.

    When I type and im on a roll, my cursor jumps to rank higher, or somewhere other than where im typing.   I also put the I bar in the corner if it is not the positioning of the cursor.  Gets really fustrating.  I want to write stories and when im at f

  • How can I disable the guest user to close the PC while the Admin is connected?

    I'm running Windows 7 Ultimate. I found out how to disable the guest user closing at all via the local security policy, but then they can't stop even if the Admin account is offline. To clarify a bit, say I want to give my PC to someone, I usually cl