home *** CD-ROM | disk | FTP | other *** search
- /////////////////////////////////////////////////////////////////////////////
- //
- // File : OutputLine.h
- // Project : MsgTrace
- // Component : MsgTracer
- //---------------------------------------------------------------------------
- // Description : defines an output line
- //
- /////////////////////////////////////////////////////////////////////////////
- //
- // SourceSafe Strings. Do not change.
- //---------------------------------------------------------------------------
- // $Author: jeskes $
- // $Date: $
- // $Revision: $
- //
- /////////////////////////////////////////////////////////////////////////////
-
- #ifndef OUTPUTLINE_H
- #define OUTPUTLINE_H
-
- /////////////////////////////////////////////////////////////////////////////
-
- class COutputLineFormat;
-
- /////////////////////////////////////////////////////////////////////////////
-
- class COutputLine : public CString
- {
- //---------------------------------------------------------------------------
- // construction
- //---------------------------------------------------------------------------
- public:
- COutputLine();
- COutputLine( LPCSTR pszText );
- COutputLine( const CString& sText );
- COutputLine( const COutputLine& sToCopy );
-
- virtual ~COutputLine();
-
- //---------------------------------------------------------------------------
- // operators
- //---------------------------------------------------------------------------
- public:
- COutputLine& operator=( const COutputLine& aToCopy );
- COutputLine& operator=( const CString& sToCopy );
- COutputLine& operator=( LPCSTR lpszToCopy );
-
- //---------------------------------------------------------------------------
- // format
- //---------------------------------------------------------------------------
- protected:
- static COutputLineFormat m_aDefaultFormat;
- COutputLineFormat* m_pFormat;
-
- public:
- void SetFormat( const COutputLineFormat& );
- const COutputLineFormat& GetFormat() const;
- };
-
- /////////////////////////////////////////////////////////////////////////////
-
- class COutputLineFormat : public CObject
- {
- //---------------------------------------------------------------------------
- // construction
- //---------------------------------------------------------------------------
- public:
- COutputLineFormat();
- COutputLineFormat( const COutputLineFormat& aToCopy );
-
- virtual ~COutputLineFormat();
-
- //---------------------------------------------------------------------------
- // operators
- //---------------------------------------------------------------------------
- public:
- COutputLineFormat& operator=( const COutputLineFormat& aToCopy );
-
- //---------------------------------------------------------------------------
- // tab stops
- //---------------------------------------------------------------------------
- protected:
- int m_nTabStops;
- // number of tab stops
-
- int* m_pnTabStopPositions;
- // array of tab stops
-
- public:
- void InitTabStops( int nTabStops = 0, const int* = NULL );
- void SetTabStop( int nIndex, int nTabPos );
-
- int GetTabStops() const;
- const int* GetTabStopPositions() const;
- const int* GetTabStopPositionsPixel( const CDC& ) const;
- };
-
- /////////////////////////////////////////////////////////////////////////////
- #endif
-