Any comments on this initial attempt to make an idl for the printer
dialog to form a basis of uno-ifying the dialog ?

Might be ok to remove the FromTo stuff, we have references to the old
version of this spread throughout our existing code, but the current
dialog doesn't actually implement it so it never kicks in.

C.
#ifndef __com_sun_star_ui_dialogs_XPrinterPicker_idl__
#define __com_sun_star_ui_dialogs_XPrinterPicker_idl__

#ifndef __com_sun_star_lang_IllegalArgumentException_idl__
#include <com/sun/star/lang/IllegalArgumentException.idl>
#endif

#ifndef __com_sun_star_uno_XInterface_idl__
#include <com/sun/star/uno/XInterface.idl>
#endif

#ifndef __com_sun_star_ui_dialogs_XExecutableDialog_idl__
#include <com/sun/star/ui/dialogs/XExecutableDialog.idl>
#endif

#ifndef __com_sun_star_beans_PropertyValue_idl__
#include <com/sun/star/beans/PropertyValue.idl>
#endif

#ifndef __com_sun_star_awt_XWindowPeer_idl__
#include <com/sun/star/awt/XWindowPeer.idl>
#endif

//=============================================================================

module com { module sun { module star { module ui { module dialogs {

//=============================================================================
/** Specifies an interface for a PrinterPicker
*/
 
interface XPrinterPicker: com::sun::star::ui::dialogs::XExecutableDialog
{
	//-------------------------------------------------------------------------
	/**	Returns the number of copies to print.

	@returns 
		number of copies to print
	 */
	long getCopies();

	//-------------------------------------------------------------------------
	/**	Sets the number of copies to print.

        @param nCopies
		Number of Copies
	 */
	void setCopies( [in] long nCopies);

	//-------------------------------------------------------------------------
	/**	Returns true if print collation is selected

	@returns 
		true if printing output is to be collated
	 */
	boolean printCollate();

	//-------------------------------------------------------------------------
	/**	Sets the Collate setting to bCollate

        @param bCollate
		Sets Collate value
	 */
	void setCollate( [in] boolean bCollate );

	//-------------------------------------------------------------------------
	/**	Sets collation state to bEnable

        @param bEnables
		Enables/Disables Collate checkbox
	 */
	void enableCollate( [in] boolean bEnable );

	//-------------------------------------------------------------------------
	/**	Returns true if a "print selection" is enabled for printing.

	@returns 
		true if a selection is to be printed
	 */
	boolean printSelection();

	//-------------------------------------------------------------------------
	/**	Sets "print selection" state to bEnable

        @param bEnables
		Enables/Disables Selection toggle
	 */
	void enableSelection( [in] boolean bEnable );

	//-------------------------------------------------------------------------
	/**	Selects "print selection"

	 */
	void selectSelection();

	//-------------------------------------------------------------------------
	/**	Returns true if "print range" is enabled for printing.

	@returns 
		true if a range of pages is to be printed
	 */
	boolean printRange();

	//-------------------------------------------------------------------------
	/**	Sets "print range" state to bEnable

        @param bEnables
		Enables/Disables Range toggle
	 */
	void enableRange( [in] boolean bEnable );

	//-------------------------------------------------------------------------
	/**	Selects "print range"

	 */
	void selectRange();

	//-------------------------------------------------------------------------
	/**	Returns the value of the range of pages entry in the print dialog.

	@returns 
		The range of pages to print
	 */
	string getRange();

	//-------------------------------------------------------------------------
	/**	Sets the range of pages entry in the print dialog to sRange.

        @param sRange
		The range of pages to display in the range text entry
	 */
	void setRange( [in] string sRange);

	//-------------------------------------------------------------------------
	/**	Returns true if "print from X to Y" is enabled for printing.

	@returns 
		true if a from-to set of pages is to be printed
	 */
	boolean printFromTo();

	//-------------------------------------------------------------------------
	/**	Sets "print from X to Y" state to bEnable

        @param bEnables
		Enables/Disables From To toggle 
	 */
	void enableFromTo( [in] boolean bEnable );

	//-------------------------------------------------------------------------
	/**	Return X part of "print from X to Y"

	@returns 
		start of from-to range of pages to print
	 */
	long getFrom();

	//-------------------------------------------------------------------------
	/**	Return Y part of "print from X to Y"

	@returns 
		end of from-to range of pages to print
	 */
	long getTo();

	//-------------------------------------------------------------------------
	/**	Sets the X and Y parts of "print from X to Y"

        @param nFrom
		Starting point of range

        @param nTo
		Ending point of range
	 */
	void setFromTo( [in] long nFrom, [in] long nTo );

	//-------------------------------------------------------------------------
	/**	Sets the acceptable input range for values in "print from X to Y"

        @param nFrom
		Starting point of range

        @param nTo
		Ending point of range
	 */
	void setMinMaxFromTo( [in] long nMin, [in] long nMax );

	//-------------------------------------------------------------------------
	/**	Selects "print from X to Y"

	 */
	void selectFromTo();

	//-------------------------------------------------------------------------
	/**	Returns true if "print all" is enabled for printing.

	@returns 
		true if all pages are to be printed
	 */
	boolean printAll();

	//-------------------------------------------------------------------------
	/**	Sets "print all" state to bEnable

        @param nEnable
		Enables/Disables print all toggle
	 */
	void enableAll( [in] boolean bEnable );

	//-------------------------------------------------------------------------
	/**	Selects "print all"

	 */
	void selectAll();

	//-------------------------------------------------------------------------
	/**	Returns true if "print selected sheets" is selected

	@returns 
		true if selected sheets are to be printed
	 */
	boolean printSheetsSelection();

	//-------------------------------------------------------------------------
	/**	Sets "print selected sheets" state to bEnable

        @param nEnable
		Enables/Disables print Sheets Selection toggle
	 */
	void enableSheetsSelection( [in] boolean bEnable );

	//-------------------------------------------------------------------------
	/**	Selects "print sheet selection"

	 */
	void selectSheetsSelection();

	//-------------------------------------------------------------------------
	/**	Returns true if "print selected cells" is selected

	@returns 
		true if selected cells are to be printed
	 */
	boolean printCellsSelection();

	//-------------------------------------------------------------------------
	/**	Sets "print selected cells" state to bEnable

        @param nEnable
		Enables/Disables print Cells Selection toggle
	 */
	void enableCellsSelection( [in] boolean bEnable );

	//-------------------------------------------------------------------------
	/**	Selects "print selected cells"

	 */
	void selectCellsSelection();

	//-------------------------------------------------------------------------
	/**	Returns true if "print all sheets" is selected

	@returns 
		true if all sheets are to be printed
	 */
	boolean printSheetsAll();

	//-------------------------------------------------------------------------
	/**	Sets "print all sheets" state to bEnable

        @param nEnable
		Enables/Disables print All Sheets toggle
	 */
	void enableSheetsAll( [in] boolean bEnable );

	//-------------------------------------------------------------------------
	/**	Selects "print all sheets"

	 */
	void selectSheetsAll();

	//-------------------------------------------------------------------------
	/**	Select to show or hide the help button

        @param bShow
		Show/Hide Help button
	 */
	void showHelp( [in] boolean bShow );

	//-------------------------------------------------------------------------
	/**	Select to show or hide the extended options

        @param bShow
		Show/Hide Options button
	 */
	void showOptions( [in] boolean bShow );

	//-------------------------------------------------------------------------
	/**	Select to show or hide the spreadsheet options

        @param bShow
		Show/Hide Extended SpreadSheet toggles
	 */
	void showSpreadSheet( [in] boolean bShow );

	//-------------------------------------------------------------------------
	/**	Sets the parent window

        @param xParent
        	the parent window of the dialog
	 */
	void setParent( [in] com::sun::star::awt::XWindowPeer xParent );

	//-------------------------------------------------------------------------
	/**	Sets the default printer to use

        @see com::sun::star::view::PrinterDescriptor
	 */
	void setPrinter( [in] sequence< ::com::sun::star::beans::PropertyValue > xPrinter );

	//-------------------------------------------------------------------------
	/**	Gets the selected printer

        @see com::sun::star::view::PrinterDescriptor
	 */
	sequence< com::sun::star::beans::PropertyValue > getPrinter();

	//-------------------------------------------------------------------------
	/**	Sets the default printer options to use

        @see com::sun::star::view::PrintOptions
	 */
	void setOptions ( [in] sequence< ::com::sun::star::beans::PropertyValue > xOptions );

	//-------------------------------------------------------------------------
	/**	Gets the printer options

        @see com::sun::star::view::PrintOptions
	 */
	sequence< com::sun::star::beans::PropertyValue > getOptions();

};

//=============================================================================

}; }; }; }; };


#endif


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to