Removed print.cpp, added tokenizr.tex
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1461 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
49
docs/latex/wx/tokenizr.tex
Normal file
49
docs/latex/wx/tokenizr.tex
Normal file
@@ -0,0 +1,49 @@
|
|||||||
|
\section{\class{wxStringTokenizer}}\label{wxstringtokenizer}
|
||||||
|
|
||||||
|
wxStringTokenizer helps you to break a string up into a number of tokens.
|
||||||
|
|
||||||
|
\wxheading{Derived from}
|
||||||
|
|
||||||
|
\helpref{wxObject}{wxobject}
|
||||||
|
|
||||||
|
\latexignore{\rtfignore{\wxheading{Members}}}
|
||||||
|
|
||||||
|
\membersection{wxStringTokenizer::wxStringTokenizer}\label{wxstringtokenizerwxstringtokenizer}
|
||||||
|
|
||||||
|
\func{}{wxStringTokenizer}{\param{const wxString\& }{to\_tokenize}, \param{const wxString\& }{delims = " \t\r\n"}, \param{bool }{ret\_delim = FALSE}}
|
||||||
|
|
||||||
|
Constructor. Pass the string to tokenze, a string containing delimiters,
|
||||||
|
a flag specifying whether delimiters are retained.
|
||||||
|
|
||||||
|
\membersection{wxStringTokenizer::\destruct{wxStringTokenizer}}\label{wxstringtokenizerdtor}
|
||||||
|
|
||||||
|
\func{}{\destruct{wxStringTokenizer}}{\void}
|
||||||
|
|
||||||
|
Destructor.
|
||||||
|
|
||||||
|
\membersection{wxStringTokenizer::CountTokens}\label{wxstringtokenizercounttokens}
|
||||||
|
|
||||||
|
\constfunc{virtual int}{CountTokens}{\void}
|
||||||
|
|
||||||
|
Returns the number of tokens in the input string.
|
||||||
|
|
||||||
|
\membersection{wxStringTokenizer::HasMoreToken}\label{wxstringtokenizerhasmoretoken}
|
||||||
|
|
||||||
|
\constfunc{virtual bool}{HasMoreToken}{\void}
|
||||||
|
|
||||||
|
Returns TRUE if the tokenizer has further tokens.
|
||||||
|
|
||||||
|
\membersection{wxStringTokenizer::NextToken}\label{wxstringtokenizernexttoken}
|
||||||
|
|
||||||
|
\constfunc{virtual wxString}{NextToken}{\void}
|
||||||
|
|
||||||
|
Returns the next token.
|
||||||
|
|
||||||
|
\membersection{wxStringTokenizer::GetString}\label{wxstringtokenizergetstring}
|
||||||
|
|
||||||
|
\constfunc{virtual wxString}{GetString}{\void}
|
||||||
|
|
||||||
|
Returns the input string.
|
||||||
|
|
||||||
|
|
||||||
|
|
@@ -1,82 +0,0 @@
|
|||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
// Name: print.cpp
|
|
||||||
// Purpose: Print framework
|
|
||||||
// Author: Julian Smart
|
|
||||||
// Modified by:
|
|
||||||
// Created: 17/09/98
|
|
||||||
// RCS-ID: $Id$
|
|
||||||
// Copyright: (c) Julian Smart
|
|
||||||
// Licence: wxWindows licence
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
#ifdef __GNUG__
|
|
||||||
#pragma implementation "print.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "wx/motif/print.h"
|
|
||||||
#include "wx/motif/printdlg.h"
|
|
||||||
|
|
||||||
#if !USE_SHARED_LIBRARY
|
|
||||||
IMPLEMENT_DYNAMIC_CLASS(wxPrinter, wxPrinterBase)
|
|
||||||
IMPLEMENT_CLASS(wxPrintPreview, wxPrintPreviewBase)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Printer
|
|
||||||
*/
|
|
||||||
|
|
||||||
wxPrinter::wxPrinter(wxPrintData *data):
|
|
||||||
wxPrinterBase(data)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
wxPrinter::~wxPrinter()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
bool wxPrinter::Print(wxWindow *parent, wxPrintout *printout, bool prompt)
|
|
||||||
{
|
|
||||||
// TODO. See wxPostScriptPrinter::Print for hints.
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool wxPrinter::PrintDialog(wxWindow *parent)
|
|
||||||
{
|
|
||||||
wxPrintDialog dialog(parent, & m_printData);
|
|
||||||
return (dialog.ShowModal() == wxID_OK);
|
|
||||||
}
|
|
||||||
|
|
||||||
bool wxPrinter::Setup(wxWindow *parent)
|
|
||||||
{
|
|
||||||
wxPrintDialog dialog(parent, & m_printData);
|
|
||||||
dialog.GetPrintData().SetSetupDialog(TRUE);
|
|
||||||
return (dialog.ShowModal() == wxID_OK);
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Print preview
|
|
||||||
*/
|
|
||||||
|
|
||||||
wxPrintPreview::wxPrintPreview(wxPrintout *printout, wxPrintout *printoutForPrinting, wxPrintData *data):
|
|
||||||
wxPrintPreviewBase(printout, printoutForPrinting, data)
|
|
||||||
{
|
|
||||||
DetermineScaling();
|
|
||||||
}
|
|
||||||
|
|
||||||
wxPrintPreview::~wxPrintPreview()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
bool wxPrintPreview::Print(bool interactive)
|
|
||||||
{
|
|
||||||
if (!m_printPrintout)
|
|
||||||
return FALSE;
|
|
||||||
wxPrinter printer(&m_printData);
|
|
||||||
return printer.Print(m_previewFrame, m_printPrintout, interactive);
|
|
||||||
}
|
|
||||||
|
|
||||||
void wxPrintPreview::DetermineScaling()
|
|
||||||
{
|
|
||||||
// TODO
|
|
||||||
}
|
|
||||||
|
|
@@ -236,7 +236,7 @@ int wxFileDialog::ShowModal(void)
|
|||||||
*/
|
*/
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
|
|
||||||
wxString theFilter = ( Strlen(m_wildCard) == 0 ) ? "*.*" : m_wildCard;
|
wxString theFilter = ( Strlen(m_wildCard) == 0 ) ? wxString("*.*") : m_wildCard;
|
||||||
wxString filterBuffer;
|
wxString filterBuffer;
|
||||||
|
|
||||||
if ( !strchr( theFilter, '|' ) ) { // only one filter ==> default text
|
if ( !strchr( theFilter, '|' ) ) { // only one filter ==> default text
|
||||||
|
@@ -119,7 +119,6 @@ COMMONOBJS = \
|
|||||||
$(MSWDIR)\mimetype.obj \
|
$(MSWDIR)\mimetype.obj \
|
||||||
$(MSWDIR)\module.obj \
|
$(MSWDIR)\module.obj \
|
||||||
$(MSWDIR)\object.obj \
|
$(MSWDIR)\object.obj \
|
||||||
$(MSWDIR)\postscrp.obj \
|
|
||||||
$(MSWDIR)\prntbase.obj \
|
$(MSWDIR)\prntbase.obj \
|
||||||
$(MSWDIR)\resource.obj \
|
$(MSWDIR)\resource.obj \
|
||||||
$(MSWDIR)\tbarbase.obj \
|
$(MSWDIR)\tbarbase.obj \
|
||||||
@@ -521,8 +520,6 @@ $(MSWDIR)\object.obj: $(COMMDIR)\object.$(SRCSUFF)
|
|||||||
|
|
||||||
$(MSWDIR)\odbc.obj: $(COMMDIR)\odbc.$(SRCSUFF)
|
$(MSWDIR)\odbc.obj: $(COMMDIR)\odbc.$(SRCSUFF)
|
||||||
|
|
||||||
$(MSWDIR)\postscrp.obj: $(COMMDIR)\postscrp.$(SRCSUFF)
|
|
||||||
|
|
||||||
$(MSWDIR)\prntbase.obj: $(COMMDIR)\prntbase.$(SRCSUFF)
|
$(MSWDIR)\prntbase.obj: $(COMMDIR)\prntbase.$(SRCSUFF)
|
||||||
|
|
||||||
$(MSWDIR)\resource.obj: $(COMMDIR)\resource.$(SRCSUFF)
|
$(MSWDIR)\resource.obj: $(COMMDIR)\resource.$(SRCSUFF)
|
||||||
|
@@ -131,9 +131,6 @@ COMMONOBJS = \
|
|||||||
# Fails when including png.h, on jmp_buf.
|
# Fails when including png.h, on jmp_buf.
|
||||||
# $(COMMDIR)\image.obj \
|
# $(COMMDIR)\image.obj \
|
||||||
|
|
||||||
# Don't need this
|
|
||||||
# $(COMMDIR)\postscrp.obj \
|
|
||||||
|
|
||||||
MSWOBJS = \
|
MSWOBJS = \
|
||||||
$(MSWDIR)\accel.obj \
|
$(MSWDIR)\accel.obj \
|
||||||
$(MSWDIR)\app.obj \
|
$(MSWDIR)\app.obj \
|
||||||
@@ -785,11 +782,6 @@ $(COMMDIR)/odbc.obj: $*.$(SRCSUFF)
|
|||||||
$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
|
$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
|
||||||
<<
|
<<
|
||||||
|
|
||||||
$(COMMDIR)/postscrp.obj: $*.$(SRCSUFF)
|
|
||||||
cl @<<
|
|
||||||
$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
|
|
||||||
<<
|
|
||||||
|
|
||||||
$(COMMDIR)/process.obj: $*.$(SRCSUFF)
|
$(COMMDIR)/process.obj: $*.$(SRCSUFF)
|
||||||
cl @<<
|
cl @<<
|
||||||
$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
|
$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
|
||||||
|
@@ -49,8 +49,7 @@ NONESSENTIALOBJS= \
|
|||||||
$(GENDIR)\msgdlgg.obj \
|
$(GENDIR)\msgdlgg.obj \
|
||||||
$(GENDIR)\helpxlp.obj \
|
$(GENDIR)\helpxlp.obj \
|
||||||
$(GENDIR)\colrdlgg.obj \
|
$(GENDIR)\colrdlgg.obj \
|
||||||
$(GENDIR)\fontdlgg.obj \
|
$(GENDIR)\fontdlgg.obj
|
||||||
$(COMMDIR)\postscrp.obj
|
|
||||||
|
|
||||||
COMMONOBJS = \
|
COMMONOBJS = \
|
||||||
$(COMMDIR)\cmndata.obj \
|
$(COMMDIR)\cmndata.obj \
|
||||||
|
@@ -38,8 +38,7 @@ NONESSENTIALOBJS= printps.obj \
|
|||||||
msgdlgg.obj \
|
msgdlgg.obj \
|
||||||
helpxlp.obj \
|
helpxlp.obj \
|
||||||
colrdlgg.obj \
|
colrdlgg.obj \
|
||||||
fontdlgg.obj \
|
fontdlgg.obj
|
||||||
postscrp.obj
|
|
||||||
|
|
||||||
COMMONOBJS = cmndata.obj \
|
COMMONOBJS = cmndata.obj \
|
||||||
config.obj \
|
config.obj \
|
||||||
|
@@ -47,8 +47,7 @@ NONESSENTIALOBJS= printps.obj &
|
|||||||
msgdlgg.obj &
|
msgdlgg.obj &
|
||||||
helpxlp.obj &
|
helpxlp.obj &
|
||||||
colrdlgg.obj &
|
colrdlgg.obj &
|
||||||
fontdlgg.obj &
|
fontdlgg.obj
|
||||||
postscrp.obj
|
|
||||||
|
|
||||||
COMMONOBJS = cmndata.obj &
|
COMMONOBJS = cmndata.obj &
|
||||||
config.obj &
|
config.obj &
|
||||||
|
Reference in New Issue
Block a user