htmldll_m_links.o \
htmldll_m_list.o \
htmldll_m_pre.o \
+ htmldll_m_span.o \
htmldll_m_style.o \
htmldll_m_tables.o \
+ htmldll_styleparams.o \
htmldll_winpars.o \
htmldll_htmllbox.o
HTMLDLL_ODEP = $(_____pch_wxprec_htmldll_wx_wxprec_h_gch___depname)
htmllib_m_links.o \
htmllib_m_list.o \
htmllib_m_pre.o \
+ htmllib_m_span.o \
htmllib_m_style.o \
htmllib_m_tables.o \
+ htmllib_styleparams.o \
htmllib_winpars.o \
htmllib_htmllbox.o
HTMLLIB_ODEP = $(_____pch_wxprec_htmllib_wx_wxprec_h_gch___depname)
wx/html/htmlwin.h \
wx/html/htmprint.h \
wx/html/m_templ.h \
+ wx/html/styleparams.h \
wx/html/winpars.h \
wx/wxhtml.h \
wx/htmllbox.h \
monodll_m_links.o \
monodll_m_list.o \
monodll_m_pre.o \
+ monodll_m_span.o \
monodll_m_style.o \
monodll_m_tables.o \
+ monodll_styleparams.o \
monodll_winpars.o \
monodll_htmllbox.o \
monodll_debugrpt.o \
monolib_m_links.o \
monolib_m_list.o \
monolib_m_pre.o \
+ monolib_m_span.o \
monolib_m_style.o \
monolib_m_tables.o \
+ monolib_styleparams.o \
monolib_winpars.o \
monolib_htmllbox.o \
monolib_debugrpt.o \
monodll_m_pre.o: $(srcdir)/src/html/m_pre.cpp $(MONODLL_ODEP)
$(CXXC) -c -o $@ $(MONODLL_CXXFLAGS) $(srcdir)/src/html/m_pre.cpp
+monodll_m_span.o: $(srcdir)/src/html/m_span.cpp $(MONODLL_ODEP)
+ $(CXXC) -c -o $@ $(MONODLL_CXXFLAGS) $(srcdir)/src/html/m_span.cpp
+
monodll_m_style.o: $(srcdir)/src/html/m_style.cpp $(MONODLL_ODEP)
$(CXXC) -c -o $@ $(MONODLL_CXXFLAGS) $(srcdir)/src/html/m_style.cpp
monodll_m_tables.o: $(srcdir)/src/html/m_tables.cpp $(MONODLL_ODEP)
$(CXXC) -c -o $@ $(MONODLL_CXXFLAGS) $(srcdir)/src/html/m_tables.cpp
+monodll_styleparams.o: $(srcdir)/src/html/styleparams.cpp $(MONODLL_ODEP)
+ $(CXXC) -c -o $@ $(MONODLL_CXXFLAGS) $(srcdir)/src/html/styleparams.cpp
+
monodll_winpars.o: $(srcdir)/src/html/winpars.cpp $(MONODLL_ODEP)
$(CXXC) -c -o $@ $(MONODLL_CXXFLAGS) $(srcdir)/src/html/winpars.cpp
monolib_m_pre.o: $(srcdir)/src/html/m_pre.cpp $(MONOLIB_ODEP)
$(CXXC) -c -o $@ $(MONOLIB_CXXFLAGS) $(srcdir)/src/html/m_pre.cpp
+monolib_m_span.o: $(srcdir)/src/html/m_span.cpp $(MONOLIB_ODEP)
+ $(CXXC) -c -o $@ $(MONOLIB_CXXFLAGS) $(srcdir)/src/html/m_span.cpp
+
monolib_m_style.o: $(srcdir)/src/html/m_style.cpp $(MONOLIB_ODEP)
$(CXXC) -c -o $@ $(MONOLIB_CXXFLAGS) $(srcdir)/src/html/m_style.cpp
monolib_m_tables.o: $(srcdir)/src/html/m_tables.cpp $(MONOLIB_ODEP)
$(CXXC) -c -o $@ $(MONOLIB_CXXFLAGS) $(srcdir)/src/html/m_tables.cpp
+monolib_styleparams.o: $(srcdir)/src/html/styleparams.cpp $(MONOLIB_ODEP)
+ $(CXXC) -c -o $@ $(MONOLIB_CXXFLAGS) $(srcdir)/src/html/styleparams.cpp
+
monolib_winpars.o: $(srcdir)/src/html/winpars.cpp $(MONOLIB_ODEP)
$(CXXC) -c -o $@ $(MONOLIB_CXXFLAGS) $(srcdir)/src/html/winpars.cpp
htmldll_m_pre.o: $(srcdir)/src/html/m_pre.cpp $(HTMLDLL_ODEP)
$(CXXC) -c -o $@ $(HTMLDLL_CXXFLAGS) $(srcdir)/src/html/m_pre.cpp
+htmldll_m_span.o: $(srcdir)/src/html/m_span.cpp $(HTMLDLL_ODEP)
+ $(CXXC) -c -o $@ $(HTMLDLL_CXXFLAGS) $(srcdir)/src/html/m_span.cpp
+
htmldll_m_style.o: $(srcdir)/src/html/m_style.cpp $(HTMLDLL_ODEP)
$(CXXC) -c -o $@ $(HTMLDLL_CXXFLAGS) $(srcdir)/src/html/m_style.cpp
htmldll_m_tables.o: $(srcdir)/src/html/m_tables.cpp $(HTMLDLL_ODEP)
$(CXXC) -c -o $@ $(HTMLDLL_CXXFLAGS) $(srcdir)/src/html/m_tables.cpp
+htmldll_styleparams.o: $(srcdir)/src/html/styleparams.cpp $(HTMLDLL_ODEP)
+ $(CXXC) -c -o $@ $(HTMLDLL_CXXFLAGS) $(srcdir)/src/html/styleparams.cpp
+
htmldll_winpars.o: $(srcdir)/src/html/winpars.cpp $(HTMLDLL_ODEP)
$(CXXC) -c -o $@ $(HTMLDLL_CXXFLAGS) $(srcdir)/src/html/winpars.cpp
htmllib_m_pre.o: $(srcdir)/src/html/m_pre.cpp $(HTMLLIB_ODEP)
$(CXXC) -c -o $@ $(HTMLLIB_CXXFLAGS) $(srcdir)/src/html/m_pre.cpp
+htmllib_m_span.o: $(srcdir)/src/html/m_span.cpp $(HTMLLIB_ODEP)
+ $(CXXC) -c -o $@ $(HTMLLIB_CXXFLAGS) $(srcdir)/src/html/m_span.cpp
+
htmllib_m_style.o: $(srcdir)/src/html/m_style.cpp $(HTMLLIB_ODEP)
$(CXXC) -c -o $@ $(HTMLLIB_CXXFLAGS) $(srcdir)/src/html/m_style.cpp
htmllib_m_tables.o: $(srcdir)/src/html/m_tables.cpp $(HTMLLIB_ODEP)
$(CXXC) -c -o $@ $(HTMLLIB_CXXFLAGS) $(srcdir)/src/html/m_tables.cpp
+htmllib_styleparams.o: $(srcdir)/src/html/styleparams.cpp $(HTMLLIB_ODEP)
+ $(CXXC) -c -o $@ $(HTMLLIB_CXXFLAGS) $(srcdir)/src/html/styleparams.cpp
+
htmllib_winpars.o: $(srcdir)/src/html/winpars.cpp $(HTMLLIB_ODEP)
$(CXXC) -c -o $@ $(HTMLLIB_CXXFLAGS) $(srcdir)/src/html/winpars.cpp
src/html/m_links.cpp
src/html/m_list.cpp
src/html/m_pre.cpp
+ src/html/m_span.cpp
src/html/m_style.cpp
src/html/m_tables.cpp
+ src/html/styleparams.cpp
src/html/winpars.cpp
<!-- wxHTML users: -->
src/generic/htmllbox.cpp
wx/html/htmlwin.h
wx/html/htmprint.h
wx/html/m_templ.h
+ wx/html/styleparams.h
wx/html/winpars.h
wx/wxhtml.h
<!-- wxHTML users: -->
$(OBJS)\htmldll_m_links.obj \\r
$(OBJS)\htmldll_m_list.obj \\r
$(OBJS)\htmldll_m_pre.obj \\r
+ $(OBJS)\htmldll_m_span.obj \
$(OBJS)\htmldll_m_style.obj \\r
$(OBJS)\htmldll_m_tables.obj \\r
+ $(OBJS)\htmldll_styleparams.obj \
$(OBJS)\htmldll_winpars.obj \\r
$(OBJS)\htmldll_htmllbox.obj\r
HTMLLIB_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \\r
$(OBJS)\htmllib_m_links.obj \\r
$(OBJS)\htmllib_m_list.obj \\r
$(OBJS)\htmllib_m_pre.obj \\r
+ $(OBJS)\htmllib_m_span.obj \
$(OBJS)\htmllib_m_style.obj \\r
$(OBJS)\htmllib_m_tables.obj \\r
+ $(OBJS)\htmllib_styleparams.obj \
$(OBJS)\htmllib_winpars.obj \\r
$(OBJS)\htmllib_htmllbox.obj\r
QADLL_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \\r
$(OBJS)\monodll_m_links.obj \\r
$(OBJS)\monodll_m_list.obj \\r
$(OBJS)\monodll_m_pre.obj \\r
+ $(OBJS)\monodll_m_span.obj \
$(OBJS)\monodll_m_style.obj \\r
$(OBJS)\monodll_m_tables.obj \\r
+ $(OBJS)\monodll_styleparams.obj \
$(OBJS)\monodll_winpars.obj \\r
$(OBJS)\monodll_htmllbox.obj \\r
$(OBJS)\monodll_debugrpt.obj \\r
$(OBJS)\monolib_m_links.obj \\r
$(OBJS)\monolib_m_list.obj \\r
$(OBJS)\monolib_m_pre.obj \\r
+ $(OBJS)\monolib_m_span.obj \
$(OBJS)\monolib_m_style.obj \\r
$(OBJS)\monolib_m_tables.obj \\r
+ $(OBJS)\monolib_styleparams.obj \
$(OBJS)\monolib_winpars.obj \\r
$(OBJS)\monolib_htmllbox.obj \\r
$(OBJS)\monolib_debugrpt.obj \\r
$(OBJS)\monodll_m_pre.obj: ..\..\src\html\m_pre.cpp\r
$(CXX) -q -c -P -o$@ $(MONODLL_CXXFLAGS) ..\..\src\html\m_pre.cpp\r
\r
+$(OBJS)\monodll_m_span.obj: ..\..\src\html\m_span.cpp
+ $(CXX) -q -c -P -o$@ $(MONODLL_CXXFLAGS) ..\..\src\html\m_span.cpp
+
$(OBJS)\monodll_m_style.obj: ..\..\src\html\m_style.cpp\r
$(CXX) -q -c -P -o$@ $(MONODLL_CXXFLAGS) ..\..\src\html\m_style.cpp\r
\r
$(OBJS)\monodll_m_tables.obj: ..\..\src\html\m_tables.cpp\r
$(CXX) -q -c -P -o$@ $(MONODLL_CXXFLAGS) ..\..\src\html\m_tables.cpp\r
\r
+$(OBJS)\monodll_styleparams.obj: ..\..\src\html\styleparams.cpp
+ $(CXX) -q -c -P -o$@ $(MONODLL_CXXFLAGS) ..\..\src\html\styleparams.cpp
+
$(OBJS)\monodll_winpars.obj: ..\..\src\html\winpars.cpp\r
$(CXX) -q -c -P -o$@ $(MONODLL_CXXFLAGS) ..\..\src\html\winpars.cpp\r
\r
$(OBJS)\monolib_m_pre.obj: ..\..\src\html\m_pre.cpp\r
$(CXX) -q -c -P -o$@ $(MONOLIB_CXXFLAGS) ..\..\src\html\m_pre.cpp\r
\r
+$(OBJS)\monolib_m_span.obj: ..\..\src\html\m_span.cpp
+ $(CXX) -q -c -P -o$@ $(MONOLIB_CXXFLAGS) ..\..\src\html\m_span.cpp
+
$(OBJS)\monolib_m_style.obj: ..\..\src\html\m_style.cpp\r
$(CXX) -q -c -P -o$@ $(MONOLIB_CXXFLAGS) ..\..\src\html\m_style.cpp\r
\r
$(OBJS)\monolib_m_tables.obj: ..\..\src\html\m_tables.cpp\r
$(CXX) -q -c -P -o$@ $(MONOLIB_CXXFLAGS) ..\..\src\html\m_tables.cpp\r
\r
+$(OBJS)\monolib_styleparams.obj: ..\..\src\html\styleparams.cpp
+ $(CXX) -q -c -P -o$@ $(MONOLIB_CXXFLAGS) ..\..\src\html\styleparams.cpp
+
$(OBJS)\monolib_winpars.obj: ..\..\src\html\winpars.cpp\r
$(CXX) -q -c -P -o$@ $(MONOLIB_CXXFLAGS) ..\..\src\html\winpars.cpp\r
\r
$(OBJS)\htmldll_m_pre.obj: ..\..\src\html\m_pre.cpp\r
$(CXX) -q -c -P -o$@ $(HTMLDLL_CXXFLAGS) ..\..\src\html\m_pre.cpp\r
\r
+$(OBJS)\htmldll_m_span.obj: ..\..\src\html\m_span.cpp
+ $(CXX) -q -c -P -o$@ $(HTMLDLL_CXXFLAGS) ..\..\src\html\m_span.cpp
+
$(OBJS)\htmldll_m_style.obj: ..\..\src\html\m_style.cpp\r
$(CXX) -q -c -P -o$@ $(HTMLDLL_CXXFLAGS) ..\..\src\html\m_style.cpp\r
\r
$(OBJS)\htmldll_m_tables.obj: ..\..\src\html\m_tables.cpp\r
$(CXX) -q -c -P -o$@ $(HTMLDLL_CXXFLAGS) ..\..\src\html\m_tables.cpp\r
\r
+$(OBJS)\htmldll_styleparams.obj: ..\..\src\html\styleparams.cpp
+ $(CXX) -q -c -P -o$@ $(HTMLDLL_CXXFLAGS) ..\..\src\html\styleparams.cpp
+
$(OBJS)\htmldll_winpars.obj: ..\..\src\html\winpars.cpp\r
$(CXX) -q -c -P -o$@ $(HTMLDLL_CXXFLAGS) ..\..\src\html\winpars.cpp\r
\r
$(OBJS)\htmllib_m_pre.obj: ..\..\src\html\m_pre.cpp\r
$(CXX) -q -c -P -o$@ $(HTMLLIB_CXXFLAGS) ..\..\src\html\m_pre.cpp\r
\r
+$(OBJS)\htmllib_m_span.obj: ..\..\src\html\m_span.cpp
+ $(CXX) -q -c -P -o$@ $(HTMLLIB_CXXFLAGS) ..\..\src\html\m_span.cpp
+
$(OBJS)\htmllib_m_style.obj: ..\..\src\html\m_style.cpp\r
$(CXX) -q -c -P -o$@ $(HTMLLIB_CXXFLAGS) ..\..\src\html\m_style.cpp\r
\r
$(OBJS)\htmllib_m_tables.obj: ..\..\src\html\m_tables.cpp\r
$(CXX) -q -c -P -o$@ $(HTMLLIB_CXXFLAGS) ..\..\src\html\m_tables.cpp\r
\r
+$(OBJS)\htmllib_styleparams.obj: ..\..\src\html\styleparams.cpp
+ $(CXX) -q -c -P -o$@ $(HTMLLIB_CXXFLAGS) ..\..\src\html\styleparams.cpp
+
$(OBJS)\htmllib_winpars.obj: ..\..\src\html\winpars.cpp\r
$(CXX) -q -c -P -o$@ $(HTMLLIB_CXXFLAGS) ..\..\src\html\winpars.cpp\r
\r
$(OBJS)\htmldll_m_links.o \\r
$(OBJS)\htmldll_m_list.o \\r
$(OBJS)\htmldll_m_pre.o \\r
+ $(OBJS)\htmldll_m_span.o \
$(OBJS)\htmldll_m_style.o \\r
$(OBJS)\htmldll_m_tables.o \\r
+ $(OBJS)\htmldll_styleparams.o \
$(OBJS)\htmldll_winpars.o \\r
$(OBJS)\htmldll_htmllbox.o\r
HTMLLIB_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \\r
$(OBJS)\htmllib_m_links.o \\r
$(OBJS)\htmllib_m_list.o \\r
$(OBJS)\htmllib_m_pre.o \\r
+ $(OBJS)\htmllib_m_span.o \
$(OBJS)\htmllib_m_style.o \\r
$(OBJS)\htmllib_m_tables.o \\r
+ $(OBJS)\htmllib_styleparams.o \
$(OBJS)\htmllib_winpars.o \\r
$(OBJS)\htmllib_htmllbox.o\r
QADLL_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) $(GCCFLAGS) \\r
$(OBJS)\monodll_m_links.o \\r
$(OBJS)\monodll_m_list.o \\r
$(OBJS)\monodll_m_pre.o \\r
+ $(OBJS)\monodll_m_span.o \
$(OBJS)\monodll_m_style.o \\r
$(OBJS)\monodll_m_tables.o \\r
+ $(OBJS)\monodll_styleparams.o \
$(OBJS)\monodll_winpars.o \\r
$(OBJS)\monodll_htmllbox.o \\r
$(OBJS)\monodll_debugrpt.o \\r
$(OBJS)\monolib_m_links.o \\r
$(OBJS)\monolib_m_list.o \\r
$(OBJS)\monolib_m_pre.o \\r
+ $(OBJS)\monolib_m_span.o \
$(OBJS)\monolib_m_style.o \\r
$(OBJS)\monolib_m_tables.o \\r
+ $(OBJS)\monolib_styleparams.o \
$(OBJS)\monolib_winpars.o \\r
$(OBJS)\monolib_htmllbox.o \\r
$(OBJS)\monolib_debugrpt.o \\r
$(OBJS)\monodll_m_pre.o: ../../src/html/m_pre.cpp\r
$(CXX) -c -o $@ $(MONODLL_CXXFLAGS) $(CPPDEPS) $<\r
\r
+$(OBJS)\monodll_m_span.o: ../../src/html/m_span.cpp
+ $(CXX) -c -o $@ $(MONODLL_CXXFLAGS) $(CPPDEPS) $<
+
$(OBJS)\monodll_m_style.o: ../../src/html/m_style.cpp\r
$(CXX) -c -o $@ $(MONODLL_CXXFLAGS) $(CPPDEPS) $<\r
\r
$(OBJS)\monodll_m_tables.o: ../../src/html/m_tables.cpp\r
$(CXX) -c -o $@ $(MONODLL_CXXFLAGS) $(CPPDEPS) $<\r
\r
+$(OBJS)\monodll_styleparams.o: ../../src/html/styleparams.cpp
+ $(CXX) -c -o $@ $(MONODLL_CXXFLAGS) $(CPPDEPS) $<
+
$(OBJS)\monodll_winpars.o: ../../src/html/winpars.cpp\r
$(CXX) -c -o $@ $(MONODLL_CXXFLAGS) $(CPPDEPS) $<\r
\r
$(OBJS)\monolib_m_pre.o: ../../src/html/m_pre.cpp\r
$(CXX) -c -o $@ $(MONOLIB_CXXFLAGS) $(CPPDEPS) $<\r
\r
+$(OBJS)\monolib_m_span.o: ../../src/html/m_span.cpp
+ $(CXX) -c -o $@ $(MONOLIB_CXXFLAGS) $(CPPDEPS) $<
+
$(OBJS)\monolib_m_style.o: ../../src/html/m_style.cpp\r
$(CXX) -c -o $@ $(MONOLIB_CXXFLAGS) $(CPPDEPS) $<\r
\r
$(OBJS)\monolib_m_tables.o: ../../src/html/m_tables.cpp\r
$(CXX) -c -o $@ $(MONOLIB_CXXFLAGS) $(CPPDEPS) $<\r
\r
+$(OBJS)\monolib_styleparams.o: ../../src/html/styleparams.cpp
+ $(CXX) -c -o $@ $(MONOLIB_CXXFLAGS) $(CPPDEPS) $<
+
$(OBJS)\monolib_winpars.o: ../../src/html/winpars.cpp\r
$(CXX) -c -o $@ $(MONOLIB_CXXFLAGS) $(CPPDEPS) $<\r
\r
$(OBJS)\htmldll_m_pre.o: ../../src/html/m_pre.cpp\r
$(CXX) -c -o $@ $(HTMLDLL_CXXFLAGS) $(CPPDEPS) $<\r
\r
+$(OBJS)\htmldll_m_span.o: ../../src/html/m_span.cpp
+ $(CXX) -c -o $@ $(HTMLDLL_CXXFLAGS) $(CPPDEPS) $<
+
$(OBJS)\htmldll_m_style.o: ../../src/html/m_style.cpp\r
$(CXX) -c -o $@ $(HTMLDLL_CXXFLAGS) $(CPPDEPS) $<\r
\r
$(OBJS)\htmldll_m_tables.o: ../../src/html/m_tables.cpp\r
$(CXX) -c -o $@ $(HTMLDLL_CXXFLAGS) $(CPPDEPS) $<\r
\r
+$(OBJS)\htmldll_styleparams.o: ../../src/html/styleparams.cpp
+ $(CXX) -c -o $@ $(HTMLDLL_CXXFLAGS) $(CPPDEPS) $<
+
$(OBJS)\htmldll_winpars.o: ../../src/html/winpars.cpp\r
$(CXX) -c -o $@ $(HTMLDLL_CXXFLAGS) $(CPPDEPS) $<\r
\r
$(OBJS)\htmllib_m_pre.o: ../../src/html/m_pre.cpp\r
$(CXX) -c -o $@ $(HTMLLIB_CXXFLAGS) $(CPPDEPS) $<\r
\r
+$(OBJS)\htmllib_m_span.o: ../../src/html/m_span.cpp
+ $(CXX) -c -o $@ $(HTMLLIB_CXXFLAGS) $(CPPDEPS) $<
+
$(OBJS)\htmllib_m_style.o: ../../src/html/m_style.cpp\r
$(CXX) -c -o $@ $(HTMLLIB_CXXFLAGS) $(CPPDEPS) $<\r
\r
$(OBJS)\htmllib_m_tables.o: ../../src/html/m_tables.cpp\r
$(CXX) -c -o $@ $(HTMLLIB_CXXFLAGS) $(CPPDEPS) $<\r
\r
+$(OBJS)\htmllib_styleparams.o: ../../src/html/styleparams.cpp
+ $(CXX) -c -o $@ $(HTMLLIB_CXXFLAGS) $(CPPDEPS) $<
+
$(OBJS)\htmllib_winpars.o: ../../src/html/winpars.cpp\r
$(CXX) -c -o $@ $(HTMLLIB_CXXFLAGS) $(CPPDEPS) $<\r
\r
$(OBJS)\htmldll_m_links.obj \\r
$(OBJS)\htmldll_m_list.obj \\r
$(OBJS)\htmldll_m_pre.obj \\r
+ $(OBJS)\htmldll_m_span.obj \
$(OBJS)\htmldll_m_style.obj \\r
$(OBJS)\htmldll_m_tables.obj \\r
+ $(OBJS)\htmldll_styleparams.obj \
$(OBJS)\htmldll_winpars.obj \\r
$(OBJS)\htmldll_htmllbox.obj\r
HTMLDLL_RESOURCES = \\r
$(OBJS)\htmllib_m_links.obj \\r
$(OBJS)\htmllib_m_list.obj \\r
$(OBJS)\htmllib_m_pre.obj \\r
+ $(OBJS)\htmllib_m_span.obj \
$(OBJS)\htmllib_m_style.obj \\r
$(OBJS)\htmllib_m_tables.obj \\r
+ $(OBJS)\htmllib_styleparams.obj \
$(OBJS)\htmllib_winpars.obj \\r
$(OBJS)\htmllib_htmllbox.obj\r
QADLL_CXXFLAGS = /M$(__RUNTIME_LIBS_333)$(__DEBUGRUNTIME) /DWIN32 \\r
$(OBJS)\monodll_m_links.obj \\r
$(OBJS)\monodll_m_list.obj \\r
$(OBJS)\monodll_m_pre.obj \\r
+ $(OBJS)\monodll_m_span.obj \
$(OBJS)\monodll_m_style.obj \\r
$(OBJS)\monodll_m_tables.obj \\r
+ $(OBJS)\monodll_styleparams.obj \
$(OBJS)\monodll_winpars.obj \\r
$(OBJS)\monodll_htmllbox.obj \\r
$(OBJS)\monodll_debugrpt.obj \\r
$(OBJS)\monolib_m_links.obj \\r
$(OBJS)\monolib_m_list.obj \\r
$(OBJS)\monolib_m_pre.obj \\r
+ $(OBJS)\monolib_m_span.obj \
$(OBJS)\monolib_m_style.obj \\r
$(OBJS)\monolib_m_tables.obj \\r
+ $(OBJS)\monolib_styleparams.obj \
$(OBJS)\monolib_winpars.obj \\r
$(OBJS)\monolib_htmllbox.obj \\r
$(OBJS)\monolib_debugrpt.obj \\r
$(OBJS)\monodll_m_pre.obj: ..\..\src\html\m_pre.cpp\r
$(CXX) /c /nologo /TP /Fo$@ $(MONODLL_CXXFLAGS) ..\..\src\html\m_pre.cpp\r
\r
+$(OBJS)\monodll_m_span.obj: ..\..\src\html\m_span.cpp
+ $(CXX) /c /nologo /TP /Fo$@ $(MONODLL_CXXFLAGS) ..\..\src\html\m_span.cpp
+
$(OBJS)\monodll_m_style.obj: ..\..\src\html\m_style.cpp\r
$(CXX) /c /nologo /TP /Fo$@ $(MONODLL_CXXFLAGS) ..\..\src\html\m_style.cpp\r
\r
$(OBJS)\monodll_m_tables.obj: ..\..\src\html\m_tables.cpp\r
$(CXX) /c /nologo /TP /Fo$@ $(MONODLL_CXXFLAGS) ..\..\src\html\m_tables.cpp\r
\r
+$(OBJS)\monodll_styleparams.obj: ..\..\src\html\styleparams.cpp
+ $(CXX) /c /nologo /TP /Fo$@ $(MONODLL_CXXFLAGS) ..\..\src\html\styleparams.cpp
+
$(OBJS)\monodll_winpars.obj: ..\..\src\html\winpars.cpp\r
$(CXX) /c /nologo /TP /Fo$@ $(MONODLL_CXXFLAGS) ..\..\src\html\winpars.cpp\r
\r
$(OBJS)\monolib_m_pre.obj: ..\..\src\html\m_pre.cpp\r
$(CXX) /c /nologo /TP /Fo$@ $(MONOLIB_CXXFLAGS) ..\..\src\html\m_pre.cpp\r
\r
+$(OBJS)\monolib_m_span.obj: ..\..\src\html\m_span.cpp
+ $(CXX) /c /nologo /TP /Fo$@ $(MONOLIB_CXXFLAGS) ..\..\src\html\m_span.cpp
+
$(OBJS)\monolib_m_style.obj: ..\..\src\html\m_style.cpp\r
$(CXX) /c /nologo /TP /Fo$@ $(MONOLIB_CXXFLAGS) ..\..\src\html\m_style.cpp\r
\r
$(OBJS)\monolib_m_tables.obj: ..\..\src\html\m_tables.cpp\r
$(CXX) /c /nologo /TP /Fo$@ $(MONOLIB_CXXFLAGS) ..\..\src\html\m_tables.cpp\r
\r
+$(OBJS)\monolib_styleparams.obj: ..\..\src\html\styleparams.cpp
+ $(CXX) /c /nologo /TP /Fo$@ $(MONOLIB_CXXFLAGS) ..\..\src\html\styleparams.cpp
+
$(OBJS)\monolib_winpars.obj: ..\..\src\html\winpars.cpp\r
$(CXX) /c /nologo /TP /Fo$@ $(MONOLIB_CXXFLAGS) ..\..\src\html\winpars.cpp\r
\r
$(OBJS)\htmldll_m_pre.obj: ..\..\src\html\m_pre.cpp\r
$(CXX) /c /nologo /TP /Fo$@ $(HTMLDLL_CXXFLAGS) ..\..\src\html\m_pre.cpp\r
\r
+$(OBJS)\htmldll_m_span.obj: ..\..\src\html\m_span.cpp
+ $(CXX) /c /nologo /TP /Fo$@ $(HTMLDLL_CXXFLAGS) ..\..\src\html\m_span.cpp
+
$(OBJS)\htmldll_m_style.obj: ..\..\src\html\m_style.cpp\r
$(CXX) /c /nologo /TP /Fo$@ $(HTMLDLL_CXXFLAGS) ..\..\src\html\m_style.cpp\r
\r
$(OBJS)\htmldll_m_tables.obj: ..\..\src\html\m_tables.cpp\r
$(CXX) /c /nologo /TP /Fo$@ $(HTMLDLL_CXXFLAGS) ..\..\src\html\m_tables.cpp\r
\r
+$(OBJS)\htmldll_styleparams.obj: ..\..\src\html\styleparams.cpp
+ $(CXX) /c /nologo /TP /Fo$@ $(HTMLDLL_CXXFLAGS) ..\..\src\html\styleparams.cpp
+
$(OBJS)\htmldll_winpars.obj: ..\..\src\html\winpars.cpp\r
$(CXX) /c /nologo /TP /Fo$@ $(HTMLDLL_CXXFLAGS) ..\..\src\html\winpars.cpp\r
\r
$(OBJS)\htmllib_m_pre.obj: ..\..\src\html\m_pre.cpp\r
$(CXX) /c /nologo /TP /Fo$@ $(HTMLLIB_CXXFLAGS) ..\..\src\html\m_pre.cpp\r
\r
+$(OBJS)\htmllib_m_span.obj: ..\..\src\html\m_span.cpp
+ $(CXX) /c /nologo /TP /Fo$@ $(HTMLLIB_CXXFLAGS) ..\..\src\html\m_span.cpp
+
$(OBJS)\htmllib_m_style.obj: ..\..\src\html\m_style.cpp\r
$(CXX) /c /nologo /TP /Fo$@ $(HTMLLIB_CXXFLAGS) ..\..\src\html\m_style.cpp\r
\r
$(OBJS)\htmllib_m_tables.obj: ..\..\src\html\m_tables.cpp\r
$(CXX) /c /nologo /TP /Fo$@ $(HTMLLIB_CXXFLAGS) ..\..\src\html\m_tables.cpp\r
\r
+$(OBJS)\htmllib_styleparams.obj: ..\..\src\html\styleparams.cpp
+ $(CXX) /c /nologo /TP /Fo$@ $(HTMLLIB_CXXFLAGS) ..\..\src\html\styleparams.cpp
+
$(OBJS)\htmllib_winpars.obj: ..\..\src\html\winpars.cpp\r
$(CXX) /c /nologo /TP /Fo$@ $(HTMLLIB_CXXFLAGS) ..\..\src\html\winpars.cpp\r
\r
$(OBJS)\monodll_m_links.obj &\r
$(OBJS)\monodll_m_list.obj &\r
$(OBJS)\monodll_m_pre.obj &\r
+ $(OBJS)\monodll_m_span.obj &
$(OBJS)\monodll_m_style.obj &\r
$(OBJS)\monodll_m_tables.obj &\r
+ $(OBJS)\monodll_styleparams.obj &
$(OBJS)\monodll_winpars.obj &\r
$(OBJS)\monodll_htmllbox.obj &\r
$(OBJS)\monodll_debugrpt.obj &\r
$(OBJS)\monolib_m_links.obj &\r
$(OBJS)\monolib_m_list.obj &\r
$(OBJS)\monolib_m_pre.obj &\r
+ $(OBJS)\monolib_m_span.obj &
$(OBJS)\monolib_m_style.obj &\r
$(OBJS)\monolib_m_tables.obj &\r
+ $(OBJS)\monolib_styleparams.obj &
$(OBJS)\monolib_winpars.obj &\r
$(OBJS)\monolib_htmllbox.obj &\r
$(OBJS)\monolib_debugrpt.obj &\r
$(OBJS)\htmldll_m_links.obj &\r
$(OBJS)\htmldll_m_list.obj &\r
$(OBJS)\htmldll_m_pre.obj &\r
+ $(OBJS)\htmldll_m_span.obj &
$(OBJS)\htmldll_m_style.obj &\r
$(OBJS)\htmldll_m_tables.obj &\r
+ $(OBJS)\htmldll_styleparams.obj &
$(OBJS)\htmldll_winpars.obj &\r
$(OBJS)\htmldll_htmllbox.obj\r
HTMLLIB_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) &\r
$(OBJS)\htmllib_m_links.obj &\r
$(OBJS)\htmllib_m_list.obj &\r
$(OBJS)\htmllib_m_pre.obj &\r
+ $(OBJS)\htmllib_m_span.obj &
$(OBJS)\htmllib_m_style.obj &\r
$(OBJS)\htmllib_m_tables.obj &\r
+ $(OBJS)\htmllib_styleparams.obj &
$(OBJS)\htmllib_winpars.obj &\r
$(OBJS)\htmllib_htmllbox.obj\r
QADLL_CXXFLAGS = -bd $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) &\r
$(OBJS)\monodll_m_pre.obj : .AUTODEPEND ..\..\src\html\m_pre.cpp\r
$(CXX) -bt=nt -zq -fo=$^@ $(MONODLL_CXXFLAGS) $<\r
\r
+$(OBJS)\monodll_m_span.obj : .AUTODEPEND ..\..\src\html\m_span.cpp
+ $(CXX) -bt=nt -zq -fo=$^@ $(MONODLL_CXXFLAGS) $<
+
$(OBJS)\monodll_m_style.obj : .AUTODEPEND ..\..\src\html\m_style.cpp\r
$(CXX) -bt=nt -zq -fo=$^@ $(MONODLL_CXXFLAGS) $<\r
\r
$(OBJS)\monodll_m_tables.obj : .AUTODEPEND ..\..\src\html\m_tables.cpp\r
$(CXX) -bt=nt -zq -fo=$^@ $(MONODLL_CXXFLAGS) $<\r
\r
+$(OBJS)\monodll_styleparams.obj : .AUTODEPEND ..\..\src\html\styleparams.cpp
+ $(CXX) -bt=nt -zq -fo=$^@ $(MONODLL_CXXFLAGS) $<
+
$(OBJS)\monodll_winpars.obj : .AUTODEPEND ..\..\src\html\winpars.cpp\r
$(CXX) -bt=nt -zq -fo=$^@ $(MONODLL_CXXFLAGS) $<\r
\r
$(OBJS)\monolib_m_pre.obj : .AUTODEPEND ..\..\src\html\m_pre.cpp\r
$(CXX) -bt=nt -zq -fo=$^@ $(MONOLIB_CXXFLAGS) $<\r
\r
+$(OBJS)\monolib_m_span.obj : .AUTODEPEND ..\..\src\html\m_span.cpp
+ $(CXX) -bt=nt -zq -fo=$^@ $(MONOLIB_CXXFLAGS) $<
+
$(OBJS)\monolib_m_style.obj : .AUTODEPEND ..\..\src\html\m_style.cpp\r
$(CXX) -bt=nt -zq -fo=$^@ $(MONOLIB_CXXFLAGS) $<\r
\r
$(OBJS)\monolib_m_tables.obj : .AUTODEPEND ..\..\src\html\m_tables.cpp\r
$(CXX) -bt=nt -zq -fo=$^@ $(MONOLIB_CXXFLAGS) $<\r
\r
+$(OBJS)\monolib_styleparams.obj : .AUTODEPEND ..\..\src\html\styleparams.cpp
+ $(CXX) -bt=nt -zq -fo=$^@ $(MONOLIB_CXXFLAGS) $<
+
$(OBJS)\monolib_winpars.obj : .AUTODEPEND ..\..\src\html\winpars.cpp\r
$(CXX) -bt=nt -zq -fo=$^@ $(MONOLIB_CXXFLAGS) $<\r
\r
$(OBJS)\htmldll_m_pre.obj : .AUTODEPEND ..\..\src\html\m_pre.cpp\r
$(CXX) -bt=nt -zq -fo=$^@ $(HTMLDLL_CXXFLAGS) $<\r
\r
+$(OBJS)\htmldll_m_span.obj : .AUTODEPEND ..\..\src\html\m_span.cpp
+ $(CXX) -bt=nt -zq -fo=$^@ $(HTMLDLL_CXXFLAGS) $<
+
$(OBJS)\htmldll_m_style.obj : .AUTODEPEND ..\..\src\html\m_style.cpp\r
$(CXX) -bt=nt -zq -fo=$^@ $(HTMLDLL_CXXFLAGS) $<\r
\r
$(OBJS)\htmldll_m_tables.obj : .AUTODEPEND ..\..\src\html\m_tables.cpp\r
$(CXX) -bt=nt -zq -fo=$^@ $(HTMLDLL_CXXFLAGS) $<\r
\r
+$(OBJS)\htmldll_styleparams.obj : .AUTODEPEND ..\..\src\html\styleparams.cpp
+ $(CXX) -bt=nt -zq -fo=$^@ $(HTMLDLL_CXXFLAGS) $<
+
$(OBJS)\htmldll_winpars.obj : .AUTODEPEND ..\..\src\html\winpars.cpp\r
$(CXX) -bt=nt -zq -fo=$^@ $(HTMLDLL_CXXFLAGS) $<\r
\r
$(OBJS)\htmllib_m_pre.obj : .AUTODEPEND ..\..\src\html\m_pre.cpp\r
$(CXX) -bt=nt -zq -fo=$^@ $(HTMLLIB_CXXFLAGS) $<\r
\r
+$(OBJS)\htmllib_m_span.obj : .AUTODEPEND ..\..\src\html\m_span.cpp
+ $(CXX) -bt=nt -zq -fo=$^@ $(HTMLLIB_CXXFLAGS) $<
+
$(OBJS)\htmllib_m_style.obj : .AUTODEPEND ..\..\src\html\m_style.cpp\r
$(CXX) -bt=nt -zq -fo=$^@ $(HTMLLIB_CXXFLAGS) $<\r
\r
$(OBJS)\htmllib_m_tables.obj : .AUTODEPEND ..\..\src\html\m_tables.cpp\r
$(CXX) -bt=nt -zq -fo=$^@ $(HTMLLIB_CXXFLAGS) $<\r
\r
+$(OBJS)\htmllib_styleparams.obj : .AUTODEPEND ..\..\src\html\styleparams.cpp
+ $(CXX) -bt=nt -zq -fo=$^@ $(HTMLLIB_CXXFLAGS) $<
+
$(OBJS)\htmllib_winpars.obj : .AUTODEPEND ..\..\src\html\winpars.cpp\r
$(CXX) -bt=nt -zq -fo=$^@ $(HTMLLIB_CXXFLAGS) $<\r
\r
# End Source File\r
# Begin Source File\r
\r
+SOURCE=..\..\include\wx\html\styleparams.h
+# End Source File
+# Begin Source File
+
SOURCE=..\..\include\wx\html\winpars.h\r
# End Source File\r
# End Group\r
# End Source File\r
# Begin Source File\r
\r
+SOURCE=..\..\src\html\m_span.cpp
+# End Source File
+# Begin Source File
+
SOURCE=..\..\src\html\m_style.cpp\r
# End Source File\r
# Begin Source File\r
# End Source File\r
# Begin Source File\r
\r
+SOURCE=..\..\src\html\styleparams.cpp
+# End Source File
+# Begin Source File
+
SOURCE=..\..\src\html\winpars.cpp\r
# End Source File\r
# End Group\r
# End Source File\r
# Begin Source File\r
\r
+SOURCE=..\..\include\wx\html\styleparams.h
+# End Source File
+# Begin Source File
+
SOURCE=..\..\include\wx\html\winpars.h\r
# End Source File\r
# End Group\r
RelativePath="..\..\include\wx\html\m_templ.h">\r
</File>\r
<File\r
+ RelativePath="..\..\include\wx\html\styleparams.h">
+ </File>
+ <File
RelativePath="..\..\include\wx\html\winpars.h">\r
</File>\r
</Filter>\r
RelativePath="..\..\src\html\m_pre.cpp">\r
</File>\r
<File\r
+ RelativePath="..\..\src\html\m_span.cpp">
+ </File>
+ <File
RelativePath="..\..\src\html\m_style.cpp">\r
</File>\r
<File\r
RelativePath="..\..\src\html\m_tables.cpp">\r
</File>\r
<File\r
+ RelativePath="..\..\src\html\styleparams.cpp">
+ </File>
+ <File
RelativePath="..\..\src\html\winpars.cpp">\r
</File>\r
</Filter>\r
RelativePath="..\..\include\wx\html\m_templ.h">\r
</File>\r
<File\r
+ RelativePath="..\..\include\wx\html\styleparams.h">
+ </File>
+ <File
RelativePath="..\..\include\wx\html\winpars.h">\r
</File>\r
</Filter>\r
>\r
</File>\r
<File\r
+ RelativePath="..\..\include\wx\html\styleparams.h"
+ >
+ </File>
+ <File
RelativePath="..\..\include\wx\html\winpars.h"\r
>\r
</File>\r
>\r
</File>\r
<File\r
+ RelativePath="..\..\src\html\m_span.cpp"
+ >
+ </File>
+ <File
RelativePath="..\..\src\html\m_style.cpp"\r
>\r
</File>\r
>\r
</File>\r
<File\r
+ RelativePath="..\..\src\html\styleparams.cpp"
+ >
+ </File>
+ <File
RelativePath="..\..\src\html\winpars.cpp"\r
>\r
</File>\r
>\r
</File>\r
<File\r
+ RelativePath="..\..\include\wx\html\styleparams.h"
+ >
+ </File>
+ <File
RelativePath="..\..\include\wx\html\winpars.h"\r
>\r
</File>\r
>\r
</File>\r
<File\r
+ RelativePath="..\..\include\wx\html\styleparams.h"
+ >
+ </File>
+ <File
RelativePath="..\..\include\wx\html\winpars.h"\r
>\r
</File>\r
>\r
</File>\r
<File\r
+ RelativePath="..\..\src\html\m_span.cpp"
+ >
+ </File>
+ <File
RelativePath="..\..\src\html\m_style.cpp"\r
>\r
</File>\r
>\r
</File>\r
<File\r
+ RelativePath="..\..\src\html\styleparams.cpp"
+ >
+ </File>
+ <File
RelativePath="..\..\src\html\winpars.cpp"\r
>\r
</File>\r
>\r
</File>\r
<File\r
+ RelativePath="..\..\include\wx\html\styleparams.h"
+ >
+ </File>
+ <File
RelativePath="..\..\include\wx\html\winpars.h"\r
>\r
</File>\r
- wxGrid: add possibility to prevent resizing of individual rows/columns.
- wxGrid: allow changing the horizontal alignment of numeric cells.
- wxHTML: add support for table borders width (Laurent Humbertclaude).
+- wxHTML: add limited support for span elements styles (Nigel Paton).
- Added wxMouseEventsManager.
- Building OpenGL library is now enabled by default.
- Fixed wxDataViewCtrl::Set{Foreground,Background}Colour().
PRE
SAMP
SMALL
+SPAN
STRIKE
STRONG
SUB
UL
@endcode
+@subsection overview_html_suppstyles_list List of supported styles
+
+wxHTML doesn't really have CSS support but it does support a few simple styles:
+you can use @c "text-align", @c "width", @c "vertical-align" and @c
+"background" with all elements and for @c SPAN elements the @c "color", @c
+"font-size" and @c "font-weight" are additionally recognized.
+
*/
FORCE_LINK(m_hline) \
FORCE_LINK(m_links) \
FORCE_LINK(m_tables) \
+ FORCE_LINK(m_span) \
FORCE_LINK(m_style)
// (or ("WhaT.jpg") if with_quotes == true)
wxString GetParam(const wxString& par, bool with_quotes = false) const;
+ // Return true if the string could be parsed as an HTML colour and false
+ // otherwise.
+ static bool ParseAsColour(const wxString& str, wxColour *clr);
+
// Convenience functions:
bool GetParamAsColour(const wxString& par, wxColour *clr) const;
bool GetParamAsInt(const wxString& par, int *clr) const;
--- /dev/null
+/////////////////////////////////////////////////////////////////////////////
+// Name: wx/html/styleparams.h
+// Purpose: wxHtml helper code for extracting style parameters
+// Author: Nigel Paton
+// RCS-ID: $Id$
+// Copyright: wxWidgets team
+// Licence: wxWindows licence
+/////////////////////////////////////////////////////////////////////////////
+
+#ifndef _WX_HTML_STYLEPARAMS_H_
+#define _WX_HTML_STYLEPARAMS_H_
+
+#include "wx/defs.h"
+
+#if wxUSE_HTML
+
+#include "wx/arrstr.h"
+
+class WXDLLIMPEXP_FWD_HTML wxHtmlTag;
+
+// This is a private class used by wxHTML to parse "style" attributes of HTML
+// elements. Currently both parsing and support for the parsed values is pretty
+// trivial.
+class WXDLLIMPEXP_HTML wxHtmlStyleParams
+{
+public:
+ // Construct a style parameters object corresponding to the style attribute
+ // of the given HTML tag.
+ wxHtmlStyleParams(const wxHtmlTag& tag);
+
+ // Check whether the named parameter is present or not.
+ bool HasParam(const wxString& par) const
+ {
+ return m_names.Index(par, false /* ignore case */) != wxNOT_FOUND;
+ }
+
+ // Get the value of the named parameter, return empty string if none.
+ wxString GetParam(const wxString& par) const
+ {
+ int index = m_names.Index(par, false);
+ return index == wxNOT_FOUND ? wxString() : m_values[index];
+ }
+
+private:
+ // Arrays if names and values of the parameters
+ wxArrayString
+ m_names,
+ m_values;
+};
+
+#endif // wxUSE_HTML
+
+#endif // _WX_HTML_STYLEPARAMS_H_
int GetFontSize() const {return m_FontSize;}
void SetFontSize(int s);
+ // Try to map a font size in points to the HTML 1-7 font size range.
+ void SetFontPointSize(int pt);
int GetFontBold() const {return m_FontBold;}
void SetFontBold(int x) {m_FontBold = x;}
int GetFontItalic() const {return m_FontItalic;}
Returns @true on success and @false if @a par is not colour specification or
if the tag has no such parameter.
+
+ @see ParseAsColour()
*/
bool GetParamAsColour(const wxString& par, wxColour* clr) const;
*/
bool HasParam(const wxString& par) const;
+ /**
+ Parses the given string as an HTML colour.
+
+ This function recognizes the standard named HTML 4 colours as well as
+ the usual RGB syntax.
+
+ @since 2.9.1
+
+ @see wxColour::Set()
+
+ @return @true if the string was successfully parsed and @a clr was
+ filled with the result or @false otherwise.
+ */
+ static bool ParseAsColour(const wxString& str, wxColour *clr);
+
//@{
/**
This method scans the given parameter. Usage is exactly the same as sscanf's
</HEAD>
<BODY TEXT="#000000" BGCOLOR="#B3B6E0" LINK="#0000FF" VLINK="#FF0000" ALINK="#000088">
+ <!-- Test of (very limited) CSS styles support -->
+ <table border="0" cellspacing="0" cellpadding="5" style="width:100%; background:#C0C0C0;">
+ <tr style="vertical-align:middle">
+ <td style="text-align:left">
+ <span style="font-size: 24pt; font-weight: bold;">Header using styles</span>
+ </td>
+
+ <td style="text-align:right">
+ <span style="font-size:9pt">
+ <a href="tables.htm">Next</a>
+ </span>
+ </td>
+ </tr>
+ </table>
+
<font size=+2>
<b><a href="tables.htm">click here to go to tables test page</a></b>
<p>
<p>
<b><a href="regres.htm">some wxHTML regression tests</a></b>
</font>
+
<p>
Agrave = 'à'
<p>
#endif
#include "wx/html/htmlpars.h"
+#include "wx/html/styleparams.h"
+
#include "wx/vector.h"
#include <stdio.h> // for vsscanf
#if WXWIN_COMPATIBILITY_2_8
m_sourceStart = source->begin();
#endif
+
+ // Try to parse any style parameters that can be handled simply by
+ // converting them to the equivalent HTML 3 attributes: this is a far cry
+ // from perfect but better than nothing.
+ static const struct EquivAttr
+ {
+ const char *style;
+ const char *attr;
+ } equivAttrs[] =
+ {
+ { "text-align", "ALIGN" },
+ { "width", "WIDTH" },
+ { "vertical-align", "VALIGN" },
+ { "background", "BGCOLOR" },
+ };
+
+ wxHtmlStyleParams styleParams(*this);
+ for ( unsigned n = 0; n < WXSIZEOF(equivAttrs); n++ )
+ {
+ const EquivAttr& ea = equivAttrs[n];
+ if ( styleParams.HasParam(ea.style) && !HasParam(ea.attr) )
+ {
+ m_ParamNames.Add(ea.attr);
+ m_ParamValues.Add(styleParams.GetParam(ea.style));
+ }
+ }
}
wxHtmlTag::~wxHtmlTag()
return wxSscanf(parval, format, param);
}
-bool wxHtmlTag::GetParamAsColour(const wxString& par, wxColour *clr) const
+/* static */
+bool wxHtmlTag::ParseAsColour(const wxString& str, wxColour *clr)
{
wxCHECK_MSG( clr, false, wxT("invalid colour argument") );
- wxString str = GetParam(par);
-
// handle colours defined in HTML 4.0 first:
if (str.length() > 1 && str[0] != wxT('#'))
{
return false;
}
+bool wxHtmlTag::GetParamAsColour(const wxString& par, wxColour *clr) const
+{
+ const wxString str = GetParam(par);
+ return !str.empty() && ParseAsColour(str, clr);
+}
+
bool wxHtmlTag::GetParamAsInt(const wxString& par, int *clr) const
{
if ( !HasParam(par) )
--- /dev/null
+/////////////////////////////////////////////////////////////////////////////
+// Name: src/html/m_span.cpp
+// Purpose: wxHtml module for span handling
+// Author: Nigel Paton
+// RCS-ID: $Id$
+// Copyright: wxWidgets team
+// Licence: wxWindows licence
+/////////////////////////////////////////////////////////////////////////////
+
+#include "wx/wxprec.h"
+
+#ifdef __BORLANDC__
+ #pragma hdrstop
+#endif
+
+#if wxUSE_HTML
+
+#include "wx/html/forcelnk.h"
+#include "wx/html/m_templ.h"
+#include "wx/fontenum.h"
+#include "wx/tokenzr.h"
+#include "wx/html/styleparams.h"
+
+FORCE_LINK_ME(m_span)
+
+
+TAG_HANDLER_BEGIN(SPAN, "SPAN" )
+
+ TAG_HANDLER_VARS
+ wxArrayString m_Faces;
+
+ TAG_HANDLER_CONSTR(SPAN) { }
+
+ TAG_HANDLER_PROC(tag)
+ {
+ wxColour oldclr = m_WParser->GetActualColor();
+ int oldsize = m_WParser->GetFontSize();
+ int oldbold = m_WParser->GetFontBold();
+
+ // Load any style parameters
+ wxHtmlStyleParams styleParams(tag);
+
+ wxString str;
+
+ str = styleParams.GetParam(wxS("color"));
+ if ( !str.empty() )
+ {
+ wxColour clr;
+ if ( wxHtmlTag::ParseAsColour(str, &clr) )
+ {
+ m_WParser->SetActualColor(clr);
+ m_WParser->GetContainer()->InsertCell(new wxHtmlColourCell(clr));
+ }
+ }
+
+ str = styleParams.GetParam(wxS("font-size"));
+ if ( !str.empty() )
+ {
+ // Point size
+ int foundIndex = str.Find(wxS("pt"));
+ if (foundIndex != wxNOT_FOUND)
+ {
+ str.Truncate(foundIndex);
+
+ long sizeValue;
+ if (str.ToLong(&sizeValue) == true)
+ {
+ // Set point size
+ m_WParser->SetFontPointSize(sizeValue);
+ m_WParser->GetContainer()->InsertCell(
+ new wxHtmlFontCell(m_WParser->CreateCurrentFont()));
+ }
+ }
+ // else: check for other ways of specifying size (TODO)
+ }
+
+ str = styleParams.GetParam(wxS("font-weight"));
+ if ( !str.empty() )
+ {
+ // Only bold and normal supported just now
+ if ( str == wxS("bold") )
+ {
+ m_WParser->SetFontBold(true);
+ m_WParser->GetContainer()->InsertCell(
+ new wxHtmlFontCell(m_WParser->CreateCurrentFont()));
+ }
+ else if ( str == wxS("normal") )
+ {
+ m_WParser->SetFontBold(false);
+ m_WParser->GetContainer()->InsertCell(
+ new wxHtmlFontCell(m_WParser->CreateCurrentFont()));
+ }
+ }
+
+ ParseInner(tag);
+
+ if (oldbold != m_WParser->GetFontBold())
+ {
+ m_WParser->SetFontBold(oldbold);
+ m_WParser->GetContainer()->InsertCell(new wxHtmlFontCell(m_WParser->CreateCurrentFont()));
+ }
+ if (oldsize != m_WParser->GetFontSize())
+ {
+ m_WParser->SetFontSize(oldsize);
+ m_WParser->GetContainer()->InsertCell(new wxHtmlFontCell(m_WParser->CreateCurrentFont()));
+ }
+ if (oldclr != m_WParser->GetActualColor())
+ {
+ m_WParser->SetActualColor(oldclr);
+ m_WParser->GetContainer()->InsertCell(new wxHtmlColourCell(oldclr));
+ }
+
+ return true;
+ }
+
+TAG_HANDLER_END(SPAN)
+
+
+TAGS_MODULE_BEGIN(Spans)
+
+ TAGS_MODULE_ADD(SPAN)
+
+TAGS_MODULE_END(Spans)
+
+#endif // wxUSE_HTML
--- /dev/null
+/////////////////////////////////////////////////////////////////////////////
+// Name: src/html/styleparams.cpp
+// Purpose: wxHtml helper code for extracting style parameters
+// Author: Nigel Paton
+// RCS-ID: $Id$
+// Copyright: wxWidgets team
+// Licence: wxWindows licence
+/////////////////////////////////////////////////////////////////////////////
+
+#include "wx/wxprec.h"
+#include "wx/tokenzr.h"
+#include "wx/html/htmltag.h"
+#include "wx/html/styleparams.h"
+
+#ifdef __BORLANDC__
+ #pragma hdrstop
+#endif
+
+#if wxUSE_HTML
+
+wxHtmlStyleParams::wxHtmlStyleParams(const wxHtmlTag& tag)
+{
+ wxString wd = tag.GetParam(wxT("STYLE"));
+
+ // Make sure no whitespace
+ wd.Trim(true).Trim(false);
+ if ( wd.empty() )
+ return;
+
+ // Check for bracketed entries
+ // Only support element properties and not pseudo-element or pseudo-classes
+ if (wd.Find('{') == 0)
+ {
+ // Extract string up to end bracket
+ int endBracket = wd.Find('}');
+ if (endBracket != wxNOT_FOUND)
+ {
+ // Replace original string with bracketed options
+ wd = wd.SubString(1, endBracket - 1);
+ // Make sure no whitespace
+ wd.Trim(true).Trim(false);
+ }
+ else
+ {
+ // Syntax problem change to blank string
+ wd = "";
+ }
+ }
+
+ // Should now have a semi-colon delimited list of options
+ // Each option is a name and a value separated by a colon
+ // Split the list into names and values
+ wxStringTokenizer tkz(wd, wxT(";"), wxTOKEN_STRTOK);
+ while ( tkz.HasMoreTokens() )
+ {
+ wxString token = tkz.GetNextToken();
+ // Split into name and value
+ int colonIndex = token.Find(':');
+ if ((colonIndex != wxNOT_FOUND) && // Not a name value pair
+ (colonIndex != 0)) // No name
+ {
+ wxString tempString;
+ // Extract and trim name
+ tempString = token.SubString(0, colonIndex - 1);
+ tempString.Trim(true).Trim(false);
+ // Add to name list
+ m_names.Add(tempString);
+
+ // Extract and trim values
+ tempString = token.SubString(colonIndex + 1, token.Length() - 1);
+ tempString.Trim(true).Trim(false);
+ // Add to values list
+ m_values.Add(tempString);
+ }
+ }
+}
+
+#endif // wxUSE_HTML
m_FontScale = font_scale;
}
+void wxHtmlWinParser::SetFontPointSize(int pt)
+{
+ if (pt <= m_FontsSizes[0])
+ m_FontSize = 1;
+ else if (pt >= m_FontsSizes[6])
+ m_FontSize = 7;
+ else
+ {
+ // Find the font closest to the given value with a simple linear search
+ // (binary search is not worth it here for so small number of elements)
+ for ( int n = 0; n < 6; n++ )
+ {
+ if ( (pt > m_FontsSizes[n]) && (pt <= m_FontsSizes[n + 1]) )
+ {
+ // In this range, find out which entry it is closest to
+ if ( (pt - m_FontsSizes[n]) < (m_FontsSizes[n + 1] - pt) )
+ m_FontSize = n;
+ else
+ m_FontSize = n + 1;
+
+ break;
+ }
+ }
+ }
+}
wxFont* wxHtmlWinParser::CreateCurrentFont()
{