Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Protected Attributes
CNavCustomPutFileCallbackData Class Reference
Inheritance diagram for CNavCustomPutFileCallbackData:
Inheritance graph
Collaboration diagram for CNavCustomPutFileCallbackData:
Collaboration graph

List of all members.

Public Member Functions

 CNavCustomPutFileCallbackData (const Rect &inPanelRect, ResIDT inPanelResID, ESaveFormat inDefaultSaveFormat)
virtual ~CNavCustomPutFileCallbackData ()
virtual void InitControls (NavCBRecPtr inNavCallbackData)
virtual void SaveControlValues (NavCBRecPtr inNavCallbackData)
ESaveFormat GetSaveFormat ()
Handle GetDITLHandle ()
void SetFirstControlID (short inFirstID)
short GetFirstControlID ()
virtual void NegotiatePanelBounds (NavCBRecPtr inNavCallbackData)

Protected Attributes

ESaveFormat mSaveFormat
ControlHandle mSaveFormatPopupControl
Rect mPanelRect
short mLastTryWidth
short mLastTryHeight
StResource mResource
short mFirstControlID

Detailed Description

Definition at line 98 of file UCustomNavServicesDialogs.cpp.

Constructor & Destructor Documentation

CNavCustomPutFileCallbackData::CNavCustomPutFileCallbackData ( const Rect &  inPanelRect,
ResIDT  inPanelResID,
ESaveFormat  inDefaultSaveFormat 
) [inline]

Definition at line 101 of file UCustomNavServicesDialogs.cpp.

                : CNavCallbackData(inPanelRect, inPanelResID)
                , mSaveFormat(inDefaultSaveFormat)
                , mSaveFormatPopupControl(nil)
                  if (mSaveFormat == eSaveFormatUnspecified)
                    mSaveFormat = eSaveFormatHTML;

Definition at line 110 of file UCustomNavServicesDialogs.cpp.


Member Function Documentation

Handle CNavCallbackData::GetDITLHandle ( ) [inline, inherited]

Definition at line 39 of file UCustomNavServicesDialogs.cpp.

{ return mResource.Get(); }

Here is the caller graph for this function:

short CNavCallbackData::GetFirstControlID ( ) [inline, inherited]

Definition at line 42 of file UCustomNavServicesDialogs.cpp.

{ return mFirstControlID; };    // only valid after the NavCustomControl call

Definition at line 117 of file UCustomNavServicesDialogs.cpp.

{ return mSaveFormat; }

Here is the caller graph for this function:

void CNavCustomPutFileCallbackData::InitControls ( NavCBRecPtr  inNavCallbackData) [virtual]

Implements CNavCallbackData.

Definition at line 127 of file UCustomNavServicesDialogs.cpp.

  OSErr err = ::GetDialogItemAsControl(::GetDialogFromWindow(inNavCallbackData->window), mFirstControlID + eSaveFormatPanelFormatPopupID, &mSaveFormatPopupControl);
  ::SetControlValue(mSaveFormatPopupControl, (SInt32)mSaveFormat);

Here is the caller graph for this function:

void CNavCallbackData::NegotiatePanelBounds ( NavCBRecPtr  inNavCallbackData) [virtual, inherited]

Definition at line 62 of file UCustomNavServicesDialogs.cpp.

  Rect&   offeredRect   = inNavCallbackData->customRect;
  short   neededWidth   = offeredRect.left + (mPanelRect.right - mPanelRect.left);
  short   neededHeight  =  + (mPanelRect.bottom -;

  // first round of negotiations
  if (offeredRect.right == 0 && offeredRect.bottom == 0)
    // just tell it what dimensions we want
    offeredRect.right   = neededWidth;
    offeredRect.bottom  = neededHeight;
    // we are in the middle of negotiating
    if (mLastTryWidth != offeredRect.right)
      if (offeredRect.right < neededWidth)
        offeredRect.right = neededWidth;

    if (mLastTryHeight != offeredRect.bottom)
      if (offeredRect.bottom < neededHeight)
        offeredRect.bottom = neededHeight;
    mLastTryWidth   = offeredRect.right;
    mLastTryHeight  = offeredRect.bottom;

Here is the caller graph for this function:

void CNavCustomPutFileCallbackData::SaveControlValues ( NavCBRecPtr  inNavCallbackData) [virtual]

Implements CNavCallbackData.

Definition at line 136 of file UCustomNavServicesDialogs.cpp.

Here is the caller graph for this function:

void CNavCallbackData::SetFirstControlID ( short  inFirstID) [inline, inherited]

Definition at line 41 of file UCustomNavServicesDialogs.cpp.

{ mFirstControlID = inFirstID; }

Here is the caller graph for this function:

Member Data Documentation

short CNavCallbackData::mFirstControlID [protected, inherited]

Definition at line 55 of file UCustomNavServicesDialogs.cpp.

short CNavCallbackData::mLastTryHeight [protected, inherited]

Definition at line 53 of file UCustomNavServicesDialogs.cpp.

short CNavCallbackData::mLastTryWidth [protected, inherited]

Definition at line 52 of file UCustomNavServicesDialogs.cpp.

Rect CNavCallbackData::mPanelRect [protected, inherited]

Definition at line 51 of file UCustomNavServicesDialogs.cpp.

StResource CNavCallbackData::mResource [protected, inherited]

Definition at line 54 of file UCustomNavServicesDialogs.cpp.

Definition at line 121 of file UCustomNavServicesDialogs.cpp.

Definition at line 122 of file UCustomNavServicesDialogs.cpp.

The documentation for this class was generated from the following file: