mirror of https://github.com/tongzx/nt5src
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
173 lines
2.8 KiB
173 lines
2.8 KiB
/*++
|
|
|
|
Copyright (C) Microsoft Corporation, 1995 - 1998
|
|
All rights reserved.
|
|
|
|
Module Name:
|
|
|
|
docdata.hxx
|
|
|
|
Abstract:
|
|
|
|
Document Property Sheet Data Set
|
|
|
|
Author:
|
|
|
|
Steve Kiraly (SteveKi) 10/25/95
|
|
|
|
Revision History:
|
|
|
|
--*/
|
|
#ifndef _DOCDATA_HXX
|
|
#define _DOCDATA_HXX
|
|
|
|
/********************************************************************
|
|
|
|
Document property data.
|
|
|
|
********************************************************************/
|
|
|
|
class TDocumentData : public MSingletonWin {
|
|
|
|
SIGNATURE( 'docp' )
|
|
SAFE_NEW
|
|
|
|
public:
|
|
|
|
VAR( HICON, hIcon );
|
|
VAR( UINT, uStartPage );
|
|
VAR( INT, iCmdShow );
|
|
VAR( IDENT, JobId );
|
|
VAR( BOOL, bValid );
|
|
VAR( DWORD, dwAccess);
|
|
VAR( BOOL, bNoAccess );
|
|
VAR( BOOL, bAdministrator );
|
|
VAR( HANDLE, hPrinter );
|
|
VAR( LPJOB_INFO_2, pJobInfo );
|
|
VAR( BOOL, bErrorSaving ); // Flag if error saving document data
|
|
VAR( INT, iErrorMsgId ); // Message String ID of error message
|
|
VAR( TString, strNotifyName );
|
|
|
|
enum Constants {
|
|
kPriorityLowerBound = MIN_PRIORITY,
|
|
kPriorityUpperBound = MAX_PRIORITY,
|
|
};
|
|
|
|
TDocumentData::
|
|
TDocumentData(
|
|
LPCTSTR pszDocumentName,
|
|
IN IDENT JobId,
|
|
INT iCmdShow,
|
|
LPARAM lParam
|
|
);
|
|
|
|
TDocumentData::
|
|
~TDocumentData(
|
|
VOID
|
|
);
|
|
|
|
BOOL
|
|
TDocumentData::
|
|
bLoad(
|
|
VOID
|
|
);
|
|
|
|
BOOL
|
|
TDocumentData::
|
|
bStore(
|
|
VOID
|
|
);
|
|
|
|
BOOL
|
|
TDocumentData::
|
|
bCheckForChange(
|
|
VOID
|
|
);
|
|
|
|
private:
|
|
|
|
//
|
|
// Job Info data class.
|
|
//
|
|
class TJobInfo {
|
|
|
|
SIGNATURE( 'jiif' )
|
|
|
|
public:
|
|
|
|
TJobInfo(
|
|
VOID
|
|
);
|
|
|
|
~TJobInfo(
|
|
VOID
|
|
);
|
|
|
|
BOOL
|
|
bUpdate(
|
|
IN LPJOB_INFO_2 pInfo
|
|
);
|
|
|
|
TString _strNotifyName;
|
|
DWORD _dwPriority;
|
|
DWORD _dwStartTime;
|
|
DWORD _dwUntilTime;
|
|
|
|
private:
|
|
|
|
//
|
|
// Prevent copying and assignment.
|
|
//
|
|
TJobInfo::
|
|
TJobInfo(
|
|
const TJobInfo &
|
|
);
|
|
|
|
TJobInfo &
|
|
TJobInfo::
|
|
operator =(
|
|
const TJobInfo &
|
|
);
|
|
|
|
};
|
|
|
|
BOOL
|
|
TDocumentData::
|
|
bGetJobInfo(
|
|
IN HANDLE hPrinter,
|
|
IN DWORD JobId,
|
|
OUT LPJOB_INFO_2 *pJobInfo
|
|
);
|
|
|
|
BOOL
|
|
TDocumentData::
|
|
bSetJobInfo(
|
|
IN HANDLE hPrinter,
|
|
IN DWORD JobId,
|
|
IN LPJOB_INFO_2 pJob
|
|
);
|
|
|
|
//
|
|
// Operator = and copy not defined.
|
|
//
|
|
TDocumentData &
|
|
TDocumentData::
|
|
operator =(
|
|
const TDocumentData &
|
|
);
|
|
|
|
TDocumentData::
|
|
TDocumentData(
|
|
const TDocumentData &
|
|
);
|
|
|
|
|
|
TJobInfo _JobInfo;
|
|
BOOL _bIsDataStored;
|
|
|
|
};
|
|
|
|
|
|
#endif
|
|
|
|
|