CS3 / Win: Observe copy/paste action of a page item

Hi
I like to observe the manual copy and paste of a page item.
How can I do that?
What do I have to attach to the observer?
I get the action kAddToHierarchyCmdBoss and kNewPageItemCmdBoss when I copy and paste a page item. this works.
Now the problem:
In the text story of my page item there is a table. I can get the number of tables and the ITableModel of the text story in my application, thats not a problem. But I can't get the ITableModel in my observer (kAddToHierarchyCmdBoss ) if I paste the page item. The interface is always nil. I don't know why and I am looking for a solution.
Maybe the text story is not finished when I get the kAddToHierarchyCmdBoss.
Is it possible to observe if a text story is finished? I mean the copy of a text story is finished.
Thanks a lot.
Kind regard
Hans

I am checking in myDocObserver cmd->GetCommandState() == ICommand::kDone?

Similar Messages

  • How to observe Copy&Paste ?( not just AddToHierarchy)

    Hello!
    I need to observe Copy&Paste event.
    The approach with Doc Observer attached ( protocol IID_IHIERARCHY_DOCUMENT) gives me ability to catch
    theChange = kNewPageItemCmdBoss and AddToHierarchyCmdBoss.
    My problem is that this events occur also on another use cases then Copy&Paste ( for example - just create Frame).
    But i need to perform some custom action ONLY if Copy&Paste ( of Frames) occur.
    ( actually, i need Paste event )
    How can i do this ?
    Any help will be appreciated.
    Thanks.

    No, there isn't any way to hook these events.
    And even if you could, would it be for ALL copy/paste operations, only for some, for certainly data types?   I would recommend that you look at simply hooking the standard OS clipboard/scrap operations.

  • Using Default Cut/Copy/Paste Actions

    After reading through the posts here, it seems that a lot of people use the method in the tutorial to implement cut/copy/paste in menus and toolbars.(http://java.sun.com/docs/books/tutorial/uiswing/components/generaltext.html)
    I tried this, and it works, but the toolbar and menu entries are set to "cut-to-clipboard", etc. I have tried applying setName, but it doesn't seem to help. I want to be able to show just "Cut" with the appropriate icon.
    Anyone know what I'm missing?
    adam

    cutAction.putValue( Action.NAME, "Cut" );

  • How to restrict Copy or Paste action in a TEXT item ??

    Hi All,
    I have a requirement that I have to restrict user from doing any Copy or Paste activity in TEXT item.
    Any help would be highly obliged..
    Thanks,
    Pushpendra

    this thread may help you
    How to disable copy-paste operation in af:inputText

  • Need Cut/Copy/Paste Actions when Right click on JTextArea,JTextField

    How to Implement Cut/Copy/Paste from Contextmenu in JTextFeilds and JTextAreas.
    Thanks and Regards,
    PavanKrs

    Untested code, may take some massaging to work, but this is the gist of it:
    JPopupMenu popup = new JPopupMenu();
    JMenuItem item = new JMenuItem(new DefaultEditorKit.CutAction());
    item.setText("Cut");
    popup.add(item);
    item = new JMenuItem(new DefaultEditorKit.CopyAction());
    item.setText("Copy");
    popup.add(item);
    item = new JMenuItem(new DefaultEditorKit.PasteAction());
    item.setText("Paste");
    popup.add(item);
    textField.setComponentPopupMenu(popup);

  • How can I copy/paste text from one page to another?

    I feel like I am taking crazy pills... is there really no way to copy a text box (or group) from one page to another while creating books in Aperture 3?  Lets say I have my entire book laid out and I want to add one paragraph at the end on one page which will push text and photos down a half page or so... in most programs for the last decade or so they added really cool functionality... cut/paste...  It seems like the apple developers are aware of it because they are in the context menus but they don't work on text, only photo boxes.  Additionally, you can copy/paste text but it erases all formatting.
    Seriously, am I missing something?  I have trouble believing that they can't include this function.
    Anyone else have this issue?

    Update... it seems to only happen with text boxes which I create.  So when I try an existing theme I can cut/copy/paste just fine, but in that same theme if you edit the layout and add a new text box, I can't copy paste it anywhere... the options are in the menu but nothing happens.
    Thoughts? Solutions?
    I am running 3.4.3 on a MacBook Pro OS X 10.8.3

  • I'm composing an e-mail, and I copy/paste from a web page.

    Let's suppose I copy / paste from a web document. For the sake of argument I'm using Mail.  A black box appears around the pasted part (with a "X" in the corner).
    But, if I do a second paste, the new text is always inside the old box, therefore screwing up the indent.
    I can't get the curser to start outside the box. How can I get rid of the box while composing?
    Yes, the box disappears when I click outside it, but re-appears if I go for a new line below it.
    Here's an example of how it looks.
    #1. The fox.
           The quick brown fox jumped over the i-mac.
            #2.  I'm frustrated that I can't paste or type where the first line started, indent wise.
    Once the curser is after the word i-mac, and I try to move it down, the next line always goes to the indent of "The" and not #1.

    I take you are trying to write an email within Safari, try this open Safari and click on the Safari menu and select reset Safari. 

  • Preventing PrintScreen and Copy+Paste Function on Portal Pages

    Hi,
    There are some javascript codes available over internet which can be implemented on ordinary web pages to prevent PrintScreen and Copy+Paste functions.
    We tried to implement the same codes by putting into MasterHead but no success.
    We need to know if this is not possible, if possible how?
    regards

    Download and run Leopard Cache Cleaner and do a deep cleaning of all the cache files.  reboot.

  • Copy value from report to page item

    Hi all,
    Does anyone knows how to copy an item value from a report to a page item, each time the report runs??
    thanks

    Hi,
    Take a look at this thread. column link - call java script & assign current report column value to item
    Regards,

  • IDCS2 Observing Change of Focus in a page item

    I have a plugin a little like BasicPersistence but with a much more involved UI.
    At the moment I am updating the persistent data in the same way as BP (i.e. Menu option on the Panel) but this is quite cumbersome for the user and they regularly forget to do this before selecting another item.
    Because of the large number of widgets on my panel, it does not make sense to update the persistent info after each one is changed.
    I was going to add an "Update" button to the Panel, but wondered if there was a more elegant solution that would update the current selection automatically before it lost focus.
    Is there an observer that would inform me that a page item is about to lose focus?
    If so, would this be an appropriate time to update the persistent info for the current selection?
    Will this observer also take care of Change-of-Front-document and Close-Document?
    Are there any other events I should watch out for?
    Should I just add the button to the panel and avoid a potential headache?
    Thanks in advance,
    Jackeen

    Hi,
    I think you should provide a little more detailed information about u r problem. This will help to provide solutions.
    Regards,
    Hemanth

  • Flash CS3 crashing with copy/paste between 2 files

    Hi.
    I am a flash games developer, and I am currently working on a game that is truly massive.
    The main file size is over 250MB.
    It's been a work in progress for about 4 months of solid work.
    Due to the size of the file, I prefer to create things like characters and objects in another file. I then need to import it over, replacing old movieclips.
    When copying and pasting now, it always crashes, or tells me that its run out of virtual memory.
    It appears to be impossible to get it all over, even bit by bit.
    I've saved and compacted, I've saved as, I've moved it onto another disk drive.
    All of the above seemed to help temporarily, but I'm now at a stage where nothing is working.
    I don't think the file is corrupted in anyway. I've had no problems with any other component of flash. Just the copying.
    I just don't understand what's so intensive about moving over an object of about 10-20 mb.
    My computer is quite high performance, 5.6ghz, 4gb of ram.
    I've asked for help on so many forums now, and all i get is criticism at my file size. Well it can't be helped. It's a massive game.
    I've tried using a runtime shared library, but unfortunately it doesn't allow attachmovie to get it from the library. It seems the identifier is only being used to connect the 2 libraries when you set up a runtime shared library.
    attachmovie is very important to the code and it can't be done any other way.
    Please please help.
    I'm at a point where I need those movieclips in the main file...

    Hello Michelle,
    Ok, So I was getting frustrated so I copied the file I was
    working on onto a thumb drive. Just for the heck of it I tried
    opening and running it from the thumb drive and for some reason it
    works! I really can't figure out why though. Same computer and
    everything but if I just read straight from the USB key it works
    completely fine. I'm really confused with this problem now. I also
    am getting the same crashing error when I open certain files from a
    certain folder.
    I'm running XP. I refuse to update to Vista :)
    but it seems that we are having the same problem despite the
    different Operating systems. So this is a very interesting
    problem...
    Any one else have any help tips for us?

  • How Can I Maintain Layout when Copying/Pasting from Web to Pages?

    Whenever I try to copy and paste from a webpage that lays out text appearing to be in two columns (such as at http://nfs.sparknotes.com/hamlet/page_2.epl) using Firefox or Safari into either Pages or Word 2004, I lose the page layout. Instead of placing the text left and right, it alternately places one line from the left above another from the right.
    I try to Paste and Match Style but that doesn't help. Does anyone have a suggestion? Is it my browser settings? Word processor preferences? One of my students is able to do it properly using, ugh, a PC, so I know it's possible with one of those things.
    Thanks.

    Other than taking a picture of it (a "screenshot") and pasting it into Pages as an image, you cannot. What you see in a browser has very little to do with what the source actually looks like -- the source is just text with the intended display instructions imbedded. That's why the text lines viewed in a narrow browser window will break differently than when viewed in a wide browser window. When you copy from the browser window, you'll likely get the text string without any of the formatting html tags.

  • Fields don't recognize their value has changed when a copy/paste value in inputed

    I'm having a minor hiccup with my copy and paste buttons.
    I have check boxes that, when checked, make other fields visible.  The copy/paste actions recognize when the check box value is 1 and paste accordingly in the new instance of the subform, however, the invisible fields do not become visible, despite the check box value being 1 in the new instance.  I feel like I'm missing something simple....possibly something that forces the scripting within the check box field to run since it is not recognizing that it's value has changed?  If I manually click the check box in the new instance, the scripting works and the invisible fields become visible so I know its not an issue with creating new instances.
    Any suggestions will be appreciated...I am new to this...
    Scott

    Still interested in solving this issue....anyone? please?

  • Copy/Paste more than 64K from Excel to Oracle Forms

    We need to copy from Excel more than 64K of data into Oracle Forms 10g. After the copy/paste action. The data will be split and saved in the database. The data contains 6000 fields of each 14 characters.
    What we tried: Create a Long field in forms (maximum size 64K) and process the data which is in this field. But by using PLSQL the maximum size is only 32K. So currently we can only copy and process 32K at a time.
    Is there a way to process over 64K from an excelsheet via Oracle Forms 10g R2?
    Can it be done via Java and how?
    Is it possible to read the clipboard in parts of 30K blocks and paste it in the Long field block with multirecords?
    Restrictions:
    We are not allowed to do file upload and process it on the server side.
    Thanks for your help!

    Hello,
    In the form, you can use Text Items that have datatype as long, so you can strore 64K.
    I do not understand the problem with the PL/SQL, because you can pass 32Ko chunks as many as needed.
    <p>Also, see this article</p>
    Francois

  • Copy Paste On Tabular Form

    I have a great need to produce an APEX (version 2.2.1) tabular form in
    which users would be able to do Excel-like copy/paste of tabular form
    fields from one part of the form to another.
    For example, a user would want to somehow (ideally highlight with the mouse - not sure if this is possible) select the first 2 rows of the form and then
    copy/paste these to, say, rows 7 and 8, overwriting any values in
    those form fields. Or, select field 2 (this would be on row 2) under column A and then copy/paste this field to, say, fields 3 through 10 under the same column A.
    I am currently trying to do this using javascript, but am not sure how to go
    about it and would appreciate any help or advice.
    Thank you very much.
    Elie

    Hello Vikas.
    Thank you very much for creating your sample page. I liked the way you're
    duplicating entire rows in the form.
    I'm sorry for not responding sooner. I have been under the gun, sort-to-speak
    at my work place. I've been playing with another tool (explained below) to see
    if it could help me out with my application.
    The issue before me is that users need the flexibility of an Excel like interface
    in which they are able to do any sort of copy/paste/fill operations as desired
    prior to submitting their changes to Oracle. This kind of functionality is what
    I've been trying to, if not duplicate, at least get part way there in Apex. And
    this is what spurred me on to post my question to you and to this Forum.
    I went ahead and dabbled my way through all sorts of javascript (learned an awful lot, I might add) and have come up with a sample tabular form in which I'm able
    to copy a single form field to any selected row / column combination in the form.
    I've copied my app ( App 19379, Page 12 ) up to the Apex forum.
    Here's the link:
    http://apex.oracle.com/pls/otn
    Workspace = play
    Login username = [email protected]
    Login password = playtoo
    Originally, this app brought up a second page (Paste Page) as a popup in which
    users could select which columns and rows they wanted to copy a form field to.
    They would then click a "Go" button on this Paste popup page. This "Go" button
    would then run a javascript function "do_paste()" in the calling page. This function
    would copy the form field to the designated columns and rows. This worked fine.
    However, I wanted a solution in which everything is entirely on a single page
    rather than having a popup page appear.
    And so, I modified my page 12 so that the user could designate the target
    columns and rows entirely on the same page (page 12), and so, eliminate
    the popup page.
    This works to a point.
    The user first clicks "Copy". This displays (via a javascript function) the
    contents of the selected form field in a text box. This also displays the
    target fields "From Column", "To Column", "From Row", "To Row".
    The Copy button is replaced with a "Go" button. The user then designates
    target columns and rows and clicks "Go". This causes the selected form
    field to be copied to the designated targets.
    Unfortunately, clicking the "Go" button also causes the page to be submitted.
    This submit operation causes the form to be refreshed which then completely
    erases the copy action and the form ends up with the original data. The user
    does not see that anything has happened. However, under the wraps, my
    javascript do_paste() function was invoked but then it's result was reversed
    by the submit action.
    I do not know how to get around this submit action (which refreshes the form,
    thereby reversing my do_paste() function). I could, of course, bring back the
    popup page. The paste does work with that. I was just hoping I could do the
    copy/paste all on one page.
    In any case, this represents my current state with respect to an Apex solution
    to my need.
    I did in the meantime find another interesting solution to my problem.
    Years ago in another job I had worked with a tool called Oraxcel (now
    called SQLXL - www.oraxcel.com). This tool is an add-in into Excel and provides an API between Excel and Oracle (as well as various other dbms systems: mysql, sql server, db2, etc.).
    Well, I downloaded a free trial copy and have been playing with it.
    In a nutshell, I can now allow users to continue using Excel to do
    copy/paste/fill operations and provide [ via VBA buttons and macros
    that interface with Oracle - actually it is using Oracle's product "Oracle
    Objects For OLE (OO4O) ] them the ability to upload the excel data (new and
    modified and deleted rows) to Oracle tables, download from Oracle tables (from a package/ref cursor or a table), create Excel LOVs that are dynamically populated from Oracle, and provide validations run from a package and display error
    messages to the Excel page.
    In effect, Excel becomes the "front end" to my Oracle schema.
    As it turns out, in my particular application, Apex pages still play a critical role
    as users need to interface with these as well. However, the SQLXL product
    appears to be a neat solution allowing users Excel like flexibility to copy,
    paste, fill, and other operations that Excel does so well while still interfacing
    with Oracle.
    Am still playing with this tool and built a small "proof of concept".
    In any case, thank you again so much for your help and your sample page.
    I would like to incorporate the neat way you're duplicating rows in the form
    as I believe this will come in handy in naother APEX app I'm currently
    working on in another project at my work place.
    Elie

Maybe you are looking for