Question about IDashedAttributeValues interface

Hi to everyone,<br />I have a question about IDashedAttributeValues interface.<br />If I would like to apply custom dashes kDashedAttributeValuesBoss to a page item. I would expect that my code will look like this:<br /><br />InterfacePtr<IDashedAttributeValues> pAttribute(::CreateObject(kDashedAttributeValuesBoss));<br /><br />pAttribute->SetPhase( nPhase );<br />pAttribute->SetCornerAdjustment((IDashedAttributeValues::CornerAdjustment)nCornerAdjust ment);<br />pAttribute->SetValue( 0, nDash0 );<br /><br />But InDesign crashes at SetValue code. I could understand InDesign. It is out of range. But, how to specify the length of value array or to add value into array?<br /><br />Thanks in advance,<br />Alexander Staroverov<br />Developer Engineer<br />Comosoft GmbH

Thank you to all, I have found the answer in SDK samples:<br /><br />void SnpGraphicHelper::AddDashedValues(const K2Vector<PMReal>& dashAndGapValues)<br />{<br />IDataBase* db = fItemList.GetDataBase();<br />InterfacePtr<IDocument> theDocument(db, db->GetRootUID(), UseDefaultIID());<br />     InterfacePtr<IUIDData> uidData(::CreateObject2<IUIDData>(kDashedAttributeValuesBoss));<br />     ASSERT(uidData != nil);<br />     uidData->Set(::GetUIDRef(theDocument));<br />     InterfacePtr<IDashedAttributeValues> dashedAttributeValues(uidData, UseDefaultIID());<br />     if (dashedAttributeValues != nil && dashAndGapValues.size() > 0) {<br />          for (int32 i = 0; i < dashAndGapValues.size(); i++) {<br />               dashedAttributeValues->SetValue(i, dashAndGapValues[i]);<br />          }<br />          this->AddAnAttribute(dashedAttributeValues);<br />     }<br />}

Similar Messages

  • Question about message interface

    I developed a jdbc to file scenario, it works, but I'm confused.
    I designed a message interface for jdbc outbound,
    CustomerRow
    |--row
         |--CUST_NO
         |--......
    I set Document Name = 'resultset' in jdbc sender adapter.
    I can see payload in SXMB_MONI.
    <?xml version="1.0" encoding="utf-8" ?>
    - <resultset>
    - <row>
      <CUST_NO>pp3433</CUST_NO>
      <SALES_ORG>org1</SALES_ORG>
      <DISTRIBUTION_CHANNEL>dis1</DISTRIBUTION_CHANNEL>
      <DIVISION>div1</DIVISION>
      <FLAG>N</FLAG>
      <LAST_UPDATE>2008/11/05 15:24:53:843</LAST_UPDATE>
      </row>
    - <row>
      <CUST_NO>ppy3233</CUST_NO>
      <SALES_ORG>org2</SALES_ORG>
      <DISTRIBUTION_CHANNEL>dis2</DISTRIBUTION_CHANNEL>
      <DIVISION>div2</DIVISION>
      <FLAG>N</FLAG>
      <LAST_UPDATE>2008/11/05 15:24:53:843</LAST_UPDATE>
      </row>
      </resultset>
    You noticed that resultset is not 'CustomerRow' in message interface which I defined.
    I don't know how it can work.

    The parameter Document Name should ideallly contain ur Message Type root name. As u have changed it to 'resultset', it is replaced at the sender adapter and then flow continues.
    There are very few occasions when success raises a question
    Regards,
    Prateek

  • Question about Serizable interface

    Which one of the following are true:
    - Serizable interface defines no memebers.
    - Serializable inteface extends the externalizable interface.
    - only an object that implements the serializable interface can be saved and restored by serialization facilities.

    Next time don't wait till Sunday midnight to do homework that has to be submitted Monday morning.
    db
    Hint: You can find the answers to all 3 questions in the API for Serializable
    {color:0000ff}http://java.sun.com/javase/6/docs/api/java/io/Serializable.html{color}

  • Question about inbound interface

    Hi!
    Here, there is an inbound interface using idocs.
    My question is: if there are five idocs ready to be processed, is the function module executed five times? I mean, one time for each idoc or is there a single function module execution that processes the five idocs?
    Thanks!
    Regards,
    Cristian

    hi,  Cristian
    Actually it depend on IDOC inbound setting for your message type.
    in WE20, go to Partner Profiles:Inbound parameters setting.
    you will be request to set Process Code for Inbound.
    if you choose some Process Code, which support Packet Inbound, you IDOC will be executed Packetize.  E.G. once 5 IDOCs.
    And you inbound function also needed to support Packet.

  • Question about documentation & interface inheritance

    If I have interface Foo that extends interface Bar, I'm wondering if there's a way for Foo to add more documentation to one of Bar's methods.
    For example, if I have:
    public interface Foo {
      * The "stuff" that gets done by this method should be more properly defined in the implementing class.
      void doStuff();
    public interface Bar extends Foo {
    }Is there any way for me to specify for Bar to override the doc on the doStuff() method inherited from Foo (such that it might read something like "The doStuff() method of all implementers of Bar should [behave in x manner]")?
    I realize I'm probably not articulating myself totally clearly, so let me know if I need to shed light on anything.
    Thanks!
    Edited by: Caryy on Nov 30, 2010 4:06 PM

    jverd wrote:
    I think you're allowed to declare an identical doStuff() method in Bar and give it its own documentation. It won't just get concatenated on to the supertype's doc, but the javadoc tool might generate a link to the parent method like it does when a class overrides or implement a method.Wow... >_< I thought I tried that and failed before asking this question, but it appears that you are correct (I must have typo'd or something)! Thanks for the fast reply and sorry for the n00b question....

  • A question about using INTERFACE?

    I was writing a xml dom application..
    I tried to use some sample code,
    it works fine..
    I import some class for xml parsing..
    import org.w3c.dom.Node;
    import org.w3c.dom.NodeList;
    and I open the Node.java and NodeList.java in the dom directory, and see the Node is an public interface
    public interface Node {
    my question is..
    if Node is an interface, why I can use directly the function of Node object in my DOM application code..
    like:
    Node node;
    String val=node.getNodeValue()
    I don't understand that.
    why we can declare an object of Node(which is interface), and use it's function??

    If Node is an interface, why I can use directly
    the function of Node object in my DOM
    application code..
    like:
    Node node;
    String val=node.getNodeValue()
    I don't understand that. why we can declare an
    object of Node(which is interface), and use it's
    function??
    Just like u can use the Connection interface in JDBC to
    create a Statement interface object.
    U can have objects whose reference belongs to an interface type. That way the ppl here at SUN have
    restricted you from running any other methods other
    than those listed in the interface object reference. This
    creates a very strict inheritance heirarchy which is
    impossible to break.
    For example, you cannot possiblly run or create any
    other methods than those listed in the Connection
    interface in JDBC API. This is bcoz although the object
    at runtime might denote an implementation of the
    interface BUT the reference through which u have
    access to it is only a predefined interface.

  • A question about share interface in java card

    I meet a big problem in java card recently.
    I try to develop a loyalty and a purse in the JCOP 20 . I use the share interface to share data between two applets.At first I write two small applets to test the share interface.Then I manully dowon the two applets into the card but it doesn't work. The error always happen to the "getAppletShareableInterfaceObject" method.
    Following is part of the code.
    buffer[0]=(byte)0x06; buffer[1]=(byte)0x05; buffer[2]=(byte)0x04; buffer[3]=(byte)0x03; buffer[4]=(byte)0x02; buffer[5]=(byte)0x01; buffer[6]=(byte)0x01;
    //server applet ID
    AID loyaltyAID2 = JCSystem.lookupAID(buffer, (short) 0,(byte)7);
    if(loyaltyAID2==null) ISOException.throwIt((short)0x0902);
    loyaltySIO = (JavaLoyaltyInterface) JCSystem.getAppletShareableInterfaceObject(loyaltyAID2,(byte)0);
    //...........................................error happen in this line
    I try to find the error I find the error, so I trace to the server applet,I add a "ISOException.throwIt " method in the getShareableInterfaceObject in the server applet.
    I find if I add it,the "getAppletShareableInterfaceObject" will return but get the null object.
    It's correct.But when I remark the "ISOException.throwIt" and just return "this" ,the card will get "6F00".
    Following is my code.
    public Shareable getShareableInterfaceObject(AID clientAID,byte parameter)
    //ISOException.throwIt((short)0x9999);
    return this; } error happen in this line
    TKS...

    Yes I did do it,I modify the sample code of the SUN micro's loality and purse .Following is my source code.
    Client code(purseeasy).......
    //=========================
    package purseeasy;
    import com.sun.javacard.samples.JavaLoyalty.JavaLoyaltyInterface;
    import javacard.framework.*;
    public class purseeasy extends javacard.framework.Applet
    private byte[] echoBytes;
    private static final short LENGTH_ECHO_BYTES = 256;
         public purseeasy()
         echoBytes = new byte[LENGTH_ECHO_BYTES];
    register();
    public static void install(byte[] bArray, short bOffset, byte bLength)
    new purseeasy();
    public void process(APDU apdu)
    byte buffer[] = apdu.getBuffer();
    short bytesRead = apdu.setIncomingAndReceive();
    short echoOffset = (short)0;
    switch(buffer[2])
    case 0x31:
    AID loyaltyAID1 =JCSystem.getAID();
    short i=loyaltyAID1.getBytes(buffer,(short)0);
    if(loyaltyAID1==null)
              ISOException.throwIt((short)0x0901);
    buffer[0]=(byte)0xd1;buffer[1]=(byte)0x58;
         buffer[2]=(byte)0x00;buffer[3]=(byte)0x00;
         buffer[4]=(byte)0x01;buffer[5]=(byte)0x00;
         buffer[6]=(byte)0x00;buffer[7]=(byte)0x00;
         buffer[8]=(byte)0x00;buffer[9]=(byte)0x00;
         buffer[10]=(byte)0x00;buffer[11]=(byte)0x00;
         buffer[12]=(byte)0x00;buffer[13]=(byte)0x00;
         buffer[14]=(byte)0x31;buffer[15]=(byte)0x00;
         AID loyaltyAID2 = JCSystem.lookupAID(buffer,
    (short)0,(byte)16);
    if(loyaltyAID2==null)
         ISOException.throwIt((short)0x0902);
         JavaLoyaltyInterface loyaltySIO =
    (JavaLoyaltyInterface)
         JCSystem.getAppletShareableInterfaceObject(loyaltyAID2,(byte)1);
    if(loyaltySIO ==null)
         ISOException.throwIt((short)0x0903);
    loyaltySIO.grantPoints (buffer);
    break;
    apdu.setOutgoingAndSend((short)0, (short)18);
    //=====================================
    //Server program....share interface
    package com.sun.javacard.samples.JavaLoyalty;
    import javacard.framework.Shareable;
    public interface JavaLoyaltyInterface extends Shareable
    public abstract void grantPoints (byte[] buffer);
    //=============================================
    //Server program....loyalty
    package com.sun.javacard.samples.JavaLoyalty;
    import javacard.framework.*;
    public class JavaLoyalty extends javacard.framework.Applet     implements JavaLoyaltyInterface
    public static void install(byte[] bArray, short bOffset,
    byte bLength)
    {new JavaLoyalty(bArray, bOffset, bLength);
    public JavaLoyalty(byte[] bArray, short bOffset, byte
    bLength)
    register();
    public Shareable getShareableInterfaceObject(AID
    clientAID,byte parameter)
    return (this);
    public void process(APDU apdu)
    byte buffer[] = apdu.getBuffer();
    short bytesRead = apdu.setIncomingAndReceive();
    apdu.setOutgoingAndSend((short)0, (short)18);
    public void grantPoints (byte[] buffer)
         buffer[0]=0x08;
         buffer[1]=0x08;
         buffer[2]=0x08;
         buffer[3]=0x08;
         buffer[4]=0x08;
         buffer[5]=0x08;
         buffer[6]=0x08;
         buffer[7]=0x08;
    Could you tell me what wrong with my code???
    Thanks....

  • Question about photo interface...please help

    hi. i'll explain what i want to do, and hopefully you can help. when exporting a photo album from iphoto to iweb, it creates thumbnails...and then when you double click on one of those thumnails, it brings up a much nicer looking interface with that photo nice and big, and all the others lined up above. Is there anyway i can skip the first set of thumbnails, and only display the second method of display. so when someone clicks on my photo page, they are presented with a nice big photo, and all the others lined up above. thanks...much appreciated, ben

    Add your photos to your website as a flash slideshow using, for example, the FAExporter plugin......
    http://roddymckay.com/VisualMedia/FlashAlbumExporter.html

  • Hi,all i think it seems to be silly question about markable interface

    i know that markable interface doesnt consists any methods.But when we implements those interfaces how they behave to service the class.
    ex.
    public class MyClass implements java.io.Serializable
    MyClass is serializable but the java.io.Serializable doesnt consist any methods how it service to MyClass

    you implement the Serializable interface just to let the API/JVM to know that the instances of the class can be serialized.
    These kind of interfaces are called marker interfaces.
    By the way some time ago there was a good discussion on marker interfaces on this forums. Try searching you might find it.

  • My question about second INTERFACE DESIGN

    i create one interface( main interface created by JFRAME)
    in main interface i want to click button
    then create second interface.
    i should use which class to build second interface?
    i tried JFrame but it doesnot work
    JFrame is top cotainer .and it need main() also
    thanks in advance
    please give some hints

    i tried JFrame but it doesnot work - JFrame is top cotainer .and it need main() alsoThat's not true - you can create a JFrame instance without it having its own main() method.
    When the user clicks the button, do this:JFrame secondFrame = new JFrame("Second Frame");
    secondFrame.add(....whatever you need to add to it - JPanels etc...);
    secondFrame.setBounds(100,100,400,300);
    secondFrame.show();

  • [SOLVED] Question about Bridge Interface in VirtualBox

    Hi,
    So I use bridge interface option in VirtualBox opposed to the default NAT one.
    From what I see, the two interfaces(original one and bridged one) are isolated, such that the guest OS cannot intercept traffic of host OS and vice versa, is that correct?
    Cause I cannot see the interface bridged by VirtualBox in host OS and cannot see the actual interface in guest OS.
    Thank you.
    Last edited by darrenldl (2013-09-12 02:30:39)

    I'm not sure what you mean by isolated, do you mean that the guest machine won't be able to communicate with the host system? I don't think that the case. I'm not an expert on this myself and it's a bit of a blind man describing an elephant, but from what I understand a bridged interface acts as an independent host on your network. As far as any other machine is concerned, the guest and host are 2 machines. Are you able to ping the host os' ip from the guest machine? If you are able to ping across, then they are sharing the same network segment. This means if you want the bridge to not be able to see what's going on on your network, you'll have to use some firewall or subnet tricks to get that to happen.

  • Question about Builder interface

    I'm just curious if there's a guide to the different icons in the Navigator pane of Builder? I have two different files, both mx:Modules but one has a blue bar in the icon while the other has a black one....

    Got it figured out. I was just copying over modules as starters for 
    the next one. But this didn't create the linkage in the Project 
    Properties to designate it as a module. Now they are all registered 
    and added as applications to the Project Properties and working fine.
    thanx

  • A few questions about the FCE interface

    I'm new at FCE, but I've done video editing for a few years in Windows (Vegas Movie Studio mostly, it was pretty good but limited in the number of video and audio tracks). I've finally made the jump to Mac and I'm excited getting started. The ability to do keyframes and motion is outstanding and I can't wait to play with LiveType and Soundtrack.
    There's a few things I'm not sure I understand about the FCE interface. I'm working on my first project and it's going to me mostly made up of short (4-10 second) video clips and still photos (with pan and zoom and some motion) and background music. I've done several of these in the past in other software, this project is my learning one for FCE.
    However, I can't understand why some things happen they way they do. If I drag a clip or still from the bin to somewhere in the middle of my existing sequence where there are no items on the video track, it 'parts the seas', moving all video on all tracks to the right and cuts my audio track wide open leaving a huge gap to make room for the clip or still even if it has no audio. The same thing happens in reverse if I'm deleting a still or clip, it chops it out and scoots everything over. I think I want to manage my own gaps rather than FCE trying to manage it for me. Does this have something to do with ripple editing - something that I must not have learned in my Windows video editing experience?
    I've ordered a few tutorial books based on recommendations in this forum, they're on their way. I didn't expect to be immediately proficient, but it seems I'm not understanding something fundamental about the interface.
    There's other questions too, like when I move a video clip from one track to another (up or down, not left or right), why does it move the audio portion of that clip to another audio track? Sometimes it stomps on something I already had on that track. Can't I unlink those somehow?
    When I bring two clips or stills together and attempt to overlap them (which I think should mean I'm doing some type of transition), it seems to just truncate one or the other. I suppose I just need to get used to that?
    Thanks for any suggestions you may have.
    iMac 20" intel   Mac OS X (10.4.10)  

    You need to get comfortable with targeting your tracks and, as mentioned, locking off tracks you don't want to affect.
    You say you want to add a clip/still to the "middle" of a sequence ... I take it there are clips to either side of this spot that you don't want to affect. Then I would set In and Out (I and O) points in the timeline to define the space you want the clip to occupy. If you don't want audio to carry over, then lock off whatever audio tracks you have edited. Then do an Overwrite by either dragging the clip to the far right of the screen to get the Overwrite pop up or by using the F10 key.
    The Delete key to the right of your keyboard (sometimes under the help key) does a ripple delete. The Delete key under the number keys (sometimes a backspace key) removes a highlighted portion of video without rippling the timeline.
    If you lay in a new clip with audio and don't want to affect an existing track, target a separate set .. so if you have a clip on V1 with its audio on A1/A2 and you want to overwrite the video but add new audio, target V1 and A3/A4.
    As to overlapping clips .. if you want to use transitions, overwrite your first clip. Overwrite the second right up against it .. don't try to overlap. Now select your transition and drop it down between the two clips. NOTE: FCE needs handles ... like about a spare 15 frames of info on both clips
    I strongly reccomend Tom Wolsky's book on FCE. It has tutorials and is a great way to start. I've never used Vegas but FCE is a very deep program ... it takes time, practise and patience (and you online manual is a great resource too)

  • The question about Interface Mapping in BPM

    Hello,
    I am a few confused about  an Interface Mapping in BPM at the Design step.
    I have a task to transmit and trasform two messages of two sender file adapter to  two IDOCs messages and then to send them to SAP system.
    I use BPM.
    But I don't understand what types of message interfaces should I use for source and target interfaces in Interface Mapping? As to the target interface I understand it must be abstract but which of interfaces exactly?
    Actually there are some questions here:
    1) If the source interface should be abstract or real in Interface Mapping?
    2) If the target interface should be  the abstract interface of Receive Step object or the abstract interface of Send Step object?
    3) And what the message types should I use for the source and target message interfaces in Interface Mapping? If I understand correctly that these message types

    hi igor,
    you have to import the IDOC Types under the imported objects in the integration repository objects,
    what are all the data that coming out from the file adapter, you design the datatype.
    the target IDOC should be real and you do the mapping for the all necessary fields.
    refer: --
    File to IDOC:
    Re: how to Sending XML data to idoc
    IDOC Mapping:
    http://help.sap.com/saphelp_crm40/helpdata/en/77/a1d48b1ce06d40932e0a26f3c117ce/frameset.htm

  • Question about Interface

    Hi everyone,
    I have a question about interface :
    an interface can only have abstract methods, right ?
    so how come ResultSet (which is an interface) has methods like next() which can't be abstract otherwise it wouldn't do anything ?
    thanks for answering !

    an interface can only have abstract methods, right ?Yes. All methods in an interface are inherently public and abstract.
    so how come ResultSet (which is an interface) has
    methods like next() which can't be abstract otherwise
    it wouldn't do anything ?It defines the next() method for classes that implement the interface. When you get a ResultSet reference returned from a method call, you're not getting a reference to an interface; you're getting a reference to an object that implements that interface (or null, as the case may be).

Maybe you are looking for

  • Setting the fg/bg color of a 1 bit image

    Is there a simple way to set the foreground and background colors of a one bit image? What I need to do is draw a bitmap on a Canvas component where all black pixels in the loaded (gif) Image paint as my custom foreground color and all white pixels p

  • Help required on Asynchronous Logon in Background

    Hi All, We have a requirement in which we have to input characters into a web form (for e.g. Vendor master data) in Russian character set. After this is submitted, it is set for approval by some Western European codepage (English)/login. So the appro

  • Portal eventing between bsp and VC

    Hi everybody I need to use portal eventing to have a bsp and a VC iview communicate. The bsp iview should be displayed within the VC iview as html view, raise a portal event with some sort of parameters inside, and then be dynamically hidden by the m

  • Function keys

    just getting started on motion, first time i worked with it the function keys worked fine. next time i opened it, the only one that worked was F1. most of the other ones just beep and didn't do what they're supposed to do. i have the commands set for

  • TableView Sort

    Hello, I've the below code in my RENDER_CELL_START method and I do see the radio buttons properly on my tableview. The problem is that when I sort the tableview the radio selection is messed up totally. Sometimes more than 1 selection is changed and