GIFExportFileDialog Class Reference

To provide a custom open file dialog for GIF Animation Export. This class has been derived because the help system uses the name of the class - in this case, "ExportFileDialog" - to determine which help page the button should link to. In order to get this help button to link to a separate "Export Animated GIF" help page, we have created a derived class of "ExportFileDialog" that the Export Animated GIF command can display. More...

#include <filedlgs.h>

Inheritance diagram for GIFExportFileDialog:

ExportFileDialog BaseFileDialog List of all members.

Public Member Functions

 GIFExportFileDialog (LPCTSTR lpszFilter)
 Implements the options button installed for WEBSTER This opens the GIF Animation properties tabs dialog.
virtual BOOL HandleOptions ()
 Implements the options button installed for WEBSTER This opens the GIF Animation properties tabs dialog.
virtual BOOL ExplorerInitDialog (wxWindow *hDlg)
 Should be called when the explorer style dialog boxes need setting up.

Private Member Functions

 DECLARE_DYNAMIC (GIFExportFileDialog)

Detailed Description

To provide a custom open file dialog for GIF Animation Export. This class has been derived because the help system uses the name of the class - in this case, "ExportFileDialog" - to determine which help page the button should link to. In order to get this help button to link to a separate "Export Animated GIF" help page, we have created a derived class of "ExportFileDialog" that the Export Animated GIF command can display.

Author:
Ranbir_Rana (Xara Group Ltd) <camelotdev@xara.com>
Date:
07/07/97

Definition at line 600 of file filedlgs.h.


Constructor & Destructor Documentation

GIFExportFileDialog::GIFExportFileDialog LPCTSTR  lpszFilter  ) 
 

Implements the options button installed for WEBSTER This opens the GIF Animation properties tabs dialog.

Author:
Ranbir_Rana (Xara Group Ltd) <camelotdev@xara.com>
Date:
07/07/97
Returns:
-

Definition at line 3994 of file filedlgs.cpp.

03994                                                           :ExportFileDialog(lpszFilter)
03995 {
03996     // Base class does all the work.
03997 }


Member Function Documentation

GIFExportFileDialog::DECLARE_DYNAMIC GIFExportFileDialog   )  [private]
 

BOOL GIFExportFileDialog::ExplorerInitDialog wxWindow *  hDlg  )  [virtual]
 

Should be called when the explorer style dialog boxes need setting up.

Author:
Ranbir_Rana (Xara Group Ltd) <camelotdev@xara.com>
Date:
07/07/97
Returns:
TRUE if it worked else FALSE.

Reimplemented from ExportFileDialog.

Definition at line 4077 of file filedlgs.cpp.

04078 {
04079 PORTNOTE("other", "Remove MFC code" )
04080 #if !defined(EXCLUDE_FROM_XARALX)
04081     // Do nothing of not on explorer type dialog boxes
04082     if (!CCamApp::IsNewWindowsUI())
04083         return TRUE;
04084 
04085     // Set up and initialise any buttons and controls.
04086 
04087     //The "show preview"
04088     CheckDlgButton(_R(IDC_SHOWPREVIEW), BaseFileDialog::ShowPreviewBitmap != FALSE);
04089     
04090     // Get a handle to the options button.
04091     wxWindow* Icon = FindWindow( _R(IDC_FILEDLG_OPTIONS));
04092     
04093     // Ungrey the options button.
04094     ::EnableWindow(Icon, TRUE); 
04095 
04096     //Graham 27/10/97: And the "use as default" button
04097     Icon = FindWindow( _R(IDC_USEASDEFAULT));
04098     ::ShowWindow(Icon, SW_HIDE);
04099 #endif
04100     
04101     // Everything OK.
04102     return TRUE;
04103 }

BOOL GIFExportFileDialog::HandleOptions  )  [virtual]
 

Implements the options button installed for WEBSTER This opens the GIF Animation properties tabs dialog.

Author:
Ranbir_Rana (Xara Group Ltd) <camelotdev@xara.com>
Date:
07/07/97
Returns:
-

Reimplemented from ExportFileDialog.

Definition at line 4011 of file filedlgs.cpp.

04012 {
04013 PORTNOTETRACE("other", "GIFExportFileDialog::HandleOptions - Do nothing - Use NgScan" );
04014 #if !defined(EXCLUDE_FROM_XARALX)
04015     // Get a ptr to the correct op. 
04016     OpDescriptor* pOpDesc = OpDescriptor::FindOpDescriptor(OPTOKEN_EXPORTGIFANIMTABSDLG);
04017 
04018     if (pOpDesc != NULL)
04019     {
04020         // If the animation properties dialog is open, close it.
04021         if (GIFAnimationPropertyTabsDlg::GetGIFAnimationPropertyTabsDlg())
04022         {
04023             // Get a ptr to the dlg.
04024             GIFAnimationPropertyTabsDlg* pDlg = GIFAnimationPropertyTabsDlg::GetGIFAnimationPropertyTabsDlg();
04025 
04026             // Ensure it is a valid ptr.
04027             if(pDlg)
04028             {
04029                 // Close the dialog.
04030                 pDlg->Close();      
04031                 pDlg->End();            
04032             }
04033         }
04034     
04035         // Select the "Animation colours tab".
04036         GIFAnimationPropertyTabsDlg::SetPageToOpen(0);
04037 
04038         // Hide the Frame propertiestab. This flag is set back to TRUE in the destructor of AnimExOptns.
04039         GIFAnimationPropertyTabs::SetIncludeFramePropertiesTab(FALSE);
04040 
04041         // This ensures that the dialog process works correctly.
04042         ControlHelper::InformModalDialogOpened();
04043 
04044         // Open the dialog.
04045         pOpDesc->Invoke();
04046 
04047         // Get a ptr to the dialog.
04048         GIFAnimationPropertyTabsDlg* pDlg = GIFAnimationPropertyTabsDlg::GetGIFAnimationPropertyTabsDlg();
04049 
04050         // Ensure the ptr is valid.
04051         if (pDlg)
04052         {
04053             // Send our DIM_CANCEL message.
04054             BROADCAST_TO_CLASS( DialogMsg( pDlg->WindowID, DIM_CANCEL, 0 ), DialogOp );
04055         }
04056 
04057         // The dialog has closed.
04058         ControlHelper::InformModalDialogClosed();
04059     }
04060 #endif
04061         
04062     // Everything ok.
04063     return TRUE;
04064 }


The documentation for this class was generated from the following files:
Generated on Sat Nov 10 03:54:49 2007 for Camelot by  doxygen 1.4.4