🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.indesign.sdk
Article #152

FitFrameToContent function for user page items

#152
From: Sofia_Kozlova
Date: Sun, 22 Mar 2009 12:50
22 lines
1260 bytes
Hi All,
I have my own document page item
Class
{
    kMyPageItemBoss,
    kSplineItemBoss,
    {
        IID_ISHAPE, kMyShapeImpl,
        IID_IPAGEITEMEVENTACTION, kMyPageItemEventActionImpl,
    }
}

How can I override functions from "Fitting" context menu for it?
I'd like to have only one item "Fit Frame to Content" in this menu and I want to resize my object by my own in this function.

Now my object disappears after launch "Fit Frame to Content" menu item.

I tried to add
IID_IFRAMECONTENTSUITE, kMyShapeContentImpl,
substitution, but my overridden functions (even constructor of MyShapeContentImpl) are not launched.

Any help will be very appreciated.
Technical Details
Message-ID: <59b85fc8.-1@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news2.glorb.com!newshub.sdsu.edu!webcrossing

Show Full Headers
Complete Article Headers
X-Google-Thread: f63e9,808b724fd5e75daf,start
X-Google-Attributes: gidf63e9,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: Sofia_Kozlova@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news2.glorb.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.indesign.sdk
Subject: FitFrameToContent function for user page items
Message-ID: <59b85fc8.-1@webcrossing.la2eafNXanI>
Date: Sun, 22 Mar 2009 05:50:33 -0700
Lines: 25
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit