Article View: adobe.indesign.sdk
Article #4389How to create a textframe and insert text?
From: nixda
Date: Fri, 18 Jun 2004 12:54
Date: Fri, 18 Jun 2004 12:54
29 lines
1749 bytes
1749 bytes
Hi, How can I insert text into a selfmade textframe? I create the textframe by the following code: --------------------------------------------------------------------------- PMRect& Coordinates(0,0,100,100); //Get the layoutcontrolldata and hierarchy of the document InterfacePtr<ILayoutControlData> layoutcontroldata(Utils<ILayoutUtils>()->QueryFrontLayoutData()); InterfacePtr<IHierarchy> layerboss(layoutcontroldata->QueryActiveLayer()); UIDRef layer(GetUIDRef(layerboss)); //Get pointer to database IDataBase* db=layer.GetDataBase(); //Get current page and geometry UIDRef pageref=UIDRef(db,layoutcontroldata->GetPage()); InterfacePtr<IGeometry> pagegeometry(pageref,IID_IGEOMETRY); //Create new rectangle frame UIDRef newframe=Utils<IPathUtils>()->CreateRectangleSpline(layer,Coordinates,INewPageItemCmdData::kTextFrameAttributes); --------------------------------------------------------------------------- Is there any possibility of creating a frame already containing text? Up to now, I could only bring it off(by the ITextSelectionSuite) wether the frame is selected by the user and the cursor is inside. Please help...
Technical Details
Message-ID:
<3bb4aa2f.-1@webx.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!feed.news.schlund.de!schlund.de!newsfeed01.sul.t-online.de!t-online.de!webxShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f63e9,98478f347d3b68fe,start X-Google-Attributes: gidf63e9,public From: nixda Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!feed.news.schlund.de!schlund.de!newsfeed01.sul.t-online.de!t-online.de!webx Newsgroups: adobe.indesign.sdk Subject: How to create a textframe and insert text? Message-ID: <3bb4aa2f.-1@webx.la2eafNXanI> Date: Fri, 18 Jun 2004 05:54:19 -0700 Lines: 35 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit