How set custom compser as default compser?

Hello All,
I have created a custom composer.I want to set my composer as default composer.
How to set custom composer as default composer to indesign?
please,help me?

Hi govind_85,
You can create your own implementation of document open command interceptor (see responder, observer, etc) and use this code:
do{
        InterfacePtr<IStoryList> pStoryList(GetExecutionContextSession()->GetActiveContext()->GetConte xtDocument(), IStoryList::kDefaultIID);
        ASSERT(pStoryList);
        if(nil == pStoryList)
            break;
        int32 storyCount = pStoryList->GetUserAccessibleStoryCount();
        if(storyCount <= 0)
            break;
        for(int32 i = 0; i != storyCount; i++)
            InterfacePtr<ITextModel> pTextModel(pStoryList->GetNthUserAccessibleStoryUID(i), ITextModel::kDefaultIID);
            ASSERT(pTextModel);
            if(nil == pTextModel)
                continue;                       
            InterfacePtr<ITextAttrClassID> pTextAttrCid(CreateObject(kTextAttrComposerBoss), ITextAttrClassID::kDefaultIID);
            ASSERT(pTextAttrCid);
            if(nil == pTextAttrCid)
                continue;
            pTextAttrCid->SetClassData(kMySLCParagraphComposerBoss); //this is your composer boss id
            InterfacePtr<ICommand> pApplyAttrCmd(Utils<ITextAttrUtils>()->BuildApplyTextAttrCmd(pTextMod el, 0, pTextModel->TotalLength() - 1, pTextAttrCid, kParaAttrStrandBoss), ICommand::kDefaultIID);
            ASSERT(pApplyAttrCmd);
            if(nil == pApplyAttrCmd)
                continue;
             CmdUtils::ProcessCommand(pApplyAttrCmd);
            pTextAttrCid.forget();
    }while(kFalse);

Similar Messages

  • Setting Custom printer to default

    Printing is not work for me with Read 8.1 on Linux (Ubuntu). It only works if I set printer to Custom and give it an explicit command, e.g. "Lpr -Plp4".
    However whenever I restart reader it does not keep custom as the default but goes back to the value set in "LPDEST" environment variable, anyone know how to fix this?

    Hello Neha,
    Clicking on the properties button does not seem to have any effect, i.e. no text is displayed.
    In the Printer dialog box I have on the left:
    Name lp4 (from pull down menu)
    status lp4 is ready
    Type Unknown
    when I run "strace -s 256 -f -ff -o log1 acroread"
    and using the "default printer" in the pull down menu I get this line amongst others in the main log
    readv(3, [{"*acroread*lprCommand:\t/usr/bin/lpr -Plp4\n", 41}, {"\0\0\0", 3}], 2) = 44
    and this line in the subprocess log
    execve("/usr/bin/lpr", ["lpr", "-P", "lp4", "/tmp/acroread_1128_1128/AcroPTv0YZ"], [/* 81 vars */]) = 0
    but no print output.
    Doing the same but choosing to use the "custom printer /usr/bin/lpr -Plp4" gave this line in the main log
    readv(3, [{"*acroread*lprCommand:\t/usr/bin/lpr -Plp4\n", 41}, {"\0\0\0", 3}], 2) = 44
    and this line in the suprocess log
    execve("/usr/bin/lpr", ["lpr", "-Plp4", "/tmp/acroread_1128_1128/Acro2p8I98"], [/* 81 vars */]) = 0
    and it prints output
    If do the same again but use the "custom printer /usr/bin/lpr -P lp4" I get
    readv(3, [{"*acroread*lprCommand:\t/usr/bin/lpr -Plp4\n", 41}, {"\0\0\0", 3}], 2) = 44
    execve("/usr/bin/lpr", ["lpr", "-P", "lp4", "/tmp/acroread_1128_1128/AcroPTv0YZ"], [/* 81 vars */]) = 0
    and again it prints output
    thanks,
    Dave.

  • Setting customized keyboard as default

    Everyday I need to be able to type English, Esperanto and German. Right now I have a customized US English keyboard to type Esperanto characters and I also have a German keyboard and I swap between them to type German. What I find annoying is that I can't choose this US Esperanto keyboard as default. I downloaded it and installed it, but I can't set it as my default, so I have to swap keyboards all the time. What I would really like to do is especially customize this keyboard to run Dvorak and also easily type German letters, but I'm afraid I won't be able to set it as default as the only keyboard on my system. In any case, all I want to know: is there is any way to select a customized keyboard as default? Thanks in advance.
    Macbook Mac OS X (10.4.8)

    I think this is the best one can do:
    http://www.macosxhints.com/article.php?story=20060601175751872

  • HOW TO CUSTOM CODE SAVING/DEFAULT FILE ITEM BLOBS IN PORTAL

    I am trying to create a link for Portal users to allow them to upload a
    specific File type in Portal. This is taking advantage of Portal's Content
    Management features (not the same as iFS). I want to know what API's to use
    and the steps to perform to create a process for users to upload a file to
    Portal with default settings such as the filename is the Display Name and the
    image/icon is set accordingly to the extension in the filename. i.e.
    mydocument.doc would display in Portal as mydocument.doc with a Microsoft Word
    image/icon (in Portal /images/word.gif) rendered next to it. This is very
    similar to the List View in a Portal Page. Can a Portal Developer lead me in
    the right direction how to do this. If the PLSQL code wasn't obfuscated, I
    could see how Oracle developed the PORTAL.wwsbr_ui_bulkaction.render_list
    procedure for it's almost exactly what I need to accomplish.

    Recommend you use Firefox and firebug it is best tool ever invented!
    <UCM>\shared\config\templates
    Also document.newcollectionform.submit(); is just a default function.
    Document = Currentpage
    newCollectionForm = Name of form
    submit(); = Default javascript event to submit form.
    Here is the form :
    <form name=newcollectionform method=POST action="/<ucm>/idcplg">
    <input type="hidden" name="IdcService" value="COLLECTION_NEW">
    <input type="hidden" name="hasParentCollectionID" value="true">
    <input type="hidden" name="dParentCollectionID" value="2">
    <input type="hidden" name="dCollectionInherit" value="0">
    <input type="hidden" name="dCreateDate" value="18/05/2005 16:37">
    </form>

  • How set Elements9 Organizer as default to upload raw images from card reader? Defaults to Lightroom

    How do I set Elements9 Organizer as my default to upload raw images from computer's  sd card reader?  It defaults to Lightroom.

    The two raw files you've uploaded to dropbox are corrupted so Lightroom and Photoshop are giving you the correct message.  At least with these two, the embedded JPG preview is there but the raw data is not correct so cannot be rendered.  Here is the error that Canon's own software gives when the files are attempted to be edited:
    You should reattempt to copy the images from the memory cards to your computer using a card reader and an operating-system function (Explorer or Finder) to do it rather than LR or a cable connected to the camera, then see if things work any better.  If you already used a card reader, then try a different one and see if the situation improves.
    If you cannot get a better set of images by retransferring them, then we can work through how to extract the embedded JPG previews en masse.

  • How set all settings to default settings or factory default

    How to set browser setting to factory default settings.

    Use the Android OS settings.
    * open the Android OS settings
    * select Apps
    * select Firefox
    * select clear data

  • How set custom parametrized listener? java.lang.IllegalStateException

    I'm adding my custom listener to HtmlCommandLink. And I found, that if listener's constructor has no parameters, then it works well, and if it has some parameter, then exception occurs.
    Here is the code with parameterless constructor:
    link.addActionListener(new SelectListener());
    And here is the code with parametrized constructor:
    link.addActionListener(new SelectListener(12));
    (the meaning of parameter is unimportant)
    The exception is follows:
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: Buggy.SelectListener
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:256)
         org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390)
    root cause
    java.lang.IllegalStateException: Buggy.SelectListener
         javax.faces.component.StateHolderSaver.restore(StateHolderSaver.java:98)
         javax.faces.component.UIComponentBase.restoreAttachedState(UIComponentBase.java:1406)
         javax.faces.component.UIComponentBase.restoreState(UIComponentBase.java:1272)
         javax.faces.component.UICommand.restoreState(UICommand.java:332)
         javax.faces.component.html.HtmlCommandLink.restoreState(HtmlCommandLink.java:876)
         javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1141)
         javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1157)
         javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1157)
         javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1157)
         com.sun.faces.application.StateManagerImpl.restoreState(StateManagerImpl.java:581)
         com.sun.faces.application.StateManagerImpl.restoreView(StateManagerImpl.java:89)
         com.sun.faces.application.ViewHandlerImpl.restoreView(ViewHandlerImpl.java:290)
         com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:141)
         com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
         com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
         org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390)

    P.S. Exception occures not while this code is excuting, but while one clicks the link.

  • How to set date field in custom form to default to {NOW} plus one year.

    I am developing a subscription site. I have the custom form for inputing a users information. I have the subscribe date set up as a default field of {NOW} that works great.
    Now I need the renewal field to default to exactly one year from the subscribe date.
    Any help would definitely be appreciated.
    thanks in advance

    PHP? http://us2.php.net/manual/en/function.date-modify.php
    Alec Fehl, MCSE, A+, ACE, ACI
    Adobe Community Expert
    AUTHOR:
    Microsoft Office 2007 PowerPoint: Comprehensive Course (Labyrinth
    Publications)
    Welcome to Web Design and HTML (Labyrinth Publications)
    CO-AUTHOR:
    Microsoft Office 2007: Essentials (Labyrinth Publications)
    Computer Concepts and Vista (Labyrinth Publications)
    Mike Meyers' A+ Guide to Managing and Troubleshooting PCs (McGraw-Hill)
    Internet Systems and Applications (EMC Paradigm)

  • How can set custom advanced print setting to default?

    Hi
    I am using job automation program called enfocus switch and
    Every time it automatically print out  PDF file, i wanted it to be printed out with bleed mark and page information.
    As i go to advanced print setup, i can achieve this by set setting to custom setting that has checked bleed mark and page info.
    Is there any way to set custom setting as default so Evey time enfocus program print out PDF, it is printed out with bleed marks and page info.
    Thanks

    this is what i wanted it to be default. checked bleed marks & page information
    went to setting-adobePDF. coudn't find any thing related to bleedmark and page info.
    Hope this give you more detail thank you for your time.

  • When I change from "remember History" to "use custom settings" it defaults back to remember history when I close the window. How do I keep my new setting?

    I need 3rd party cookies enabled for a specific site. When I try to save custom settings, it defaults back to remember history and I can't open what I need on the site

    Enabling thirds-party cookies is the default and if there aren't any other changes made then Firefox will show "Remember History"
    Choosing the "Use custom settings for history" setting doesn't make any changes.<br />
    If Firefox shows the "Use custom settings for history" setting then that is an indication that at least one of the history and cookie settings are not the default to make you aware that changes were If all History settings are default then you see "Firefox will: (Never) Remember History" and the custom settings are hidden.<br />

  • How to set the user's Default joboptions directory?

    Hello Experts,
    When we installed Acrobat Pro 8.x on our Win XP Pro systems our systems were NOT in a Windows Domain.  At that time the default location for user-created/customized joboptions files was:
    C:\Documents and Settings\<Username>\Application Data\Adobe\Adobe PDF\Settings
    where <Username> is the name of the LOCAL Windows user.
    A few years ago we migrated to a Windows Domain and converted our LOCAL users to domain users and disabled, but did not delete, the LOCAL user's account.  We did not remove the LOCAL user's Documents and Settings directory structure either.
    Our users now log into a DOMAIN rather than the LOCAL account.
    As a result of that process the user's Documents and Settings directory structure changed to;
      C:\Documents and Settings\<Username.DOMAINNAME>
    where DOMAINNAME is, of course, our Windows Domain Name.
    Now we are beginning to use Acrobat Distiller joboptions and I notice that when Acrobat/Distiller goes to save a user-created/customized joboptions file the default location has remained;
      C:\Documents and Settings\<Username>\Application Data\Adobe\Adobe PDF\Settings
    which is NOT the user who is logged in
    Acrobat/Distiller should use the Documents and Settings directory of the user who is actually logged in which is;
      C:\Documents and Settings\<Username.DOMAINNAME>\Application Data\Adobe\Adobe PDF\Settings
    This anomaly has created some confusion and appears to have created a dependency of the old LOCAL user's Documents and Settings directory preventing us from deleting it.
    Question:
    How can we force Acrobat/Distiller to use the Documents and Settings directory of the logged in user (eg: the Domain user)?
    In other words, how do we set the user's default joboptions directory?
    Pointers/tips/and tricks are most welcome.

    if the user is the one running the program, you can always get the home directory using System.getProperties ("user.home");
    If you are trying to get the properties of another user, you could try using setProperties to change the user name first, before getiting the home directory, but it probably won't work because of the security manager. You could read the /etc/passwd file and parse the path out, but once again, the user of the code would have to have appropriate permission.

  • How to set QuickTime export setting to 1080p as default? Thank you! ;-)

    HI there,
    I was wondering how to set the export settings to 1080p when exporting a video (after trimming for instance)...
    It is set to "Movie" by default, I'm not to sure what resolution or data rate "Movie" format is (identical to original file)... since according to apple the other export options are:
    Thanks.

    Cool, so would it be the same if I save the file as "Movie" or "1080p" once I've trimmed the original file?
    No, the 1080p option would re-compress the file as a 1080p H.264/AAC file. This means the compression format may be chaged from its original compression format and that the quality MAY be reduced due to the process of recompression. Basically, it all depends on what the original compression format, settings, and quality were like to begin with. If the original data was in a low compression editing format, then recompressing the data to H.264/AAC should produce a much smaller file with little or no loss in visual quality while recompressing a high compression format may produce little or now change in the file size but noticeably reduce the visual quality. Since "quality" is a highly subjective term, you should really be running your own tests to see which output you prefer rather than asking for opinions from others here.
    Also, my question was if I could change the default export settings:
    Depends on what you mean by "change" the default settings. The Apple H.264 presets are context adaptive in nature. They are, within certain limits, self-adjusting depending on the video content being transcoded and the specific preset selected. For instance, small target dispay dimensions will produce lower average data rates which means the final file will be smaller but you cannot manually change the frame rate, set key frame frequency, set a/v data rate limits, create custom anamorphic encodes, manually set the profile/level combination, set the entropy mode, etc.

  • How to set custom size of Close Button e.g. 32x32  of Title Window in Flex 4

    How to set custom size of Close Button e.g. 32x32 of Title Window in Flex 4?

    Hi
    Here is the code of the Button in the skin class of spark title window.
    <s:Button id="closeButton" skinClass="spark.skins.spark.TitleWindowCloseButtonSkin"
                              width="15" height="15" right="7" top="7" />
    So first change the default height and width from 15 to 32. Then in the Button Skin class i.e. spark.skins.spark.TitleWindowCloseButtonSkin change paths to modify the cross symbol.
    Hope this helps
    Rush-me

  • How does one define a default style for a custom Flex component?

    How does one define a default style for a custom Flex component?
    hello
    I created a new set of Flex component library slib.swc (Flex 4.5). Would also like to have a default style. defaults.css file, making it the default style of the component library.
    Like flex the builder install directory of sdks \ 4.5.0 \ frameworks out \ libs directory has a spark.swc file, open with Winrar will see defaults.css this file. Defaults.css file defines the default style of the flex spark components.
    How can it be achieved?
    As follows
    slib.swc contains a CLabelEx components, and a defaults.css file
    defaults.css source file as follows:
    @ namespace s "library :/ / ns.adobe.com / flex / spark";
    @ namespace mx "library :/ / ns.adobe.com / flex / mx";
    @ namespace cn "http://os.slib.cn";
    cn | CLabelEx
            styBackgroundAlpha: 1;
            styBackgroundColor: # 569CC0;
            styBorderAlpha: 1;
            styBorderColor: # 569CC0;
            styBorderWeight: 1;
            styCornerRadius: 3;
    In slib.swc the application MyLabel.mxml of the source file as follows:
    <? xml version = "1.0" encoding = "utf-8"?>
    <s: Application, the xmlns: fx = "http://ns.adobe.com/mxml/2009
                               xmlns: s = "library :/ / ns.adobe.com / flex / spark"
                               xmlns: mx = "library :/ / ns.adobe.com / flex / mx"
                               xmlns: cn = "http://os.slib.cn
                               the minWidth = "955" The minHeight = "600">
            <fxeclarations>
            </ fxeclarations>
            <cn:CLabelEx x="67" y="112"/>
    </ s: Application>
    I hope CLabelEx default use cn | CLabelEx, style to display its appearance.
    I refer to above approach, but failed to achieve. Can you please re-Detailed
    Thanks!

    dj is right. Any Folder can be a picture folder.
    Create a root level folder and add it to your Pictures Library in Windows.  It will show up with all the scattered pictures from other programs. It can even be a different dirve if you like.  You  can even specify one to be the default save location for pictures in this dialog.
    Navigate to Pictures in your Libraries in Windows Explorer Right Click and select Properties.
    Message was edited by: Rikk Flohr forgot the instructions...

  • 10.6.6 - How to set custom view options for specific folders

    How is it that Windows has had the ability to ability to set custom folder view options forever and OSX can't. What is the big deal? Just do it. Whenever I set the folder view options it changes the view for all the folders. I can do folder specific changes as long as the finder window is open then I close it and open it again every folder is the same again. It's just an annoyance and it's something so rudimentary it's embarrassing.

    Try the following:
    I want to have, say, one folder in list view
    Open that folder, set it to list view, type command-J, and in the view-options window that opens, check the box at the top for "Always open in list view".
    then the subfolder of that folder I want to have in cover flow view. permanently.
    Open that folder, change it to cover-flow view, and in the view-options window check the box at the top for "Always open in cover-flow."
    Those two folders should "remember" the custom views that were set for them.
    There's additional discussion about the meaning of the"Use as defaults" button in this thread
    http://discussions.apple.com/thread.jspa?messageID=13063792
    My own take is that folders that have not been customized by checking the "Always open in xxx view" box will by default open in the same view (icon vs list vs column, etc) that was in effect for the previously opened folder. *Within each view*, you can set the default parameters (text size, etc) for a new folder by setting up a folder the way you like and then checking the view options box for "Use as defaults" at the bottom.

Maybe you are looking for

  • Is there a way to reference a private variable from one class in another?

    My first class starts off by declaring variables like so: class tStudent {   // declare student name, id, grades 1 & 2, and gpa   private String fname, lname, g1, g2;   private int id;   private double gpa;   // define a constructor for a new student

  • WARNING: Actions on button and MovieClip

    I have the following code that I am trying to get to work with ActionScript 3.0: on (rollOver) { gotoAndPlay("s1"); on (releaseOutside, rollOut) { this.gotoAndPlay("s2"); on (release) { this.gotoAndPlay("s2"); The problem is that ActionScript 3.0 wil

  • Problem in executing cursor for loop

    hi all, I am facing following problem. We are using cron utility on unix to run pl/sql stored procedure. This procedure in turn calls separate procedures. However any one of the procedure does not end in pl/sql even though it has completed its intend

  • Power Mac G5 - Geforce 6600 LE - 2 * 30" Apple Cinema Displays

    Guys Just gone mad and bought the above items. Have 2 questions 1) have connected both displays and cannot connect both firewire cables as only have one 800 port - what impact does this have on the display - is it worth getting a firewire hub? 2) I c

  • HD Hardware Set Up query

    I've been dragged kicking and screaming into the world of HD video editing after years of working happily with DV Pal. I'm on a hugely steep learning curve as far as codecs and working with the right hardware set up is concerned and would really appr