Kaydet (Commit) d6cf80c1 authored tarafından Ivo Hinkelmann's avatar Ivo Hinkelmann

CWS-TOOLING: integrate CWS l10nframework01

üst e87ea379
......@@ -65,6 +65,7 @@ CDEFS+=-xalias_level=compatible
.ENDIF
# --- Common ----------------------------------------------------------
.IF "$(L10N_framework)"==""
# BEGIN ----------------------------------------------------------------
# auto generated Target:tests by codegen.pl
......@@ -85,7 +86,6 @@ SHL1OBJS= \
# here, because not yet delivered. Need the functionality to test, so
# we're linking it in statically. Need to keep this in sync with
# source/makefile.mk
SHL1TARGET= tests
SHL1STDLIBS= $(SALLIB) \
$(CPPUNITLIB) \
......@@ -95,7 +95,7 @@ SHL1IMPLIB= i$(SHL1TARGET)
DEF1NAME =$(SHL1TARGET)
SHL1VERSIONMAP = export.map
.ENDIF
# END ------------------------------------------------------------------
#APP2TARGET= bmpdemo
......@@ -127,6 +127,7 @@ SLOFILES=$(SHL1OBJS)
.INCLUDE : _cppunit.mk
# --- Enable test execution in normal build ------------------------
.IF "$(L10N_framework)"==""
unittest : $(SHL1TARGETN)
@echo ----------------------------------------------------------
......@@ -135,3 +136,4 @@ unittest : $(SHL1TARGETN)
$(TESTSHL2) -sf $(mktmp ) $(SHL1TARGETN)
ALLTAR : unittest
.ENDIF
......@@ -65,7 +65,7 @@ CFLAGS+=-I$(SOLARINCDIR)/cairo
.IF "$(verbose)"!="" || "$(VERBOSE)"!=""
CDEFS+= -DVERBOSE
.ENDIF
.IF "$(L10N_framework)"==""
SLOFILES = $(SLO)$/cairo_cachedbitmap.obj \
$(SLO)$/cairo_cairo.obj \
$(SLO)$/cairo_canvas.obj \
......@@ -131,7 +131,7 @@ SHL1VERSIONMAP=exports.map
DEF1NAME=$(SHL1TARGET)
DEF1EXPORTFILE=exports.dxp
.ENDIF
# ==========================================================================
.INCLUDE : target.mk
......@@ -37,7 +37,7 @@ ENABLE_EXCEPTIONS = TRUE
.INCLUDE : settings.mk
DLLPRE =
.IF "$(L10N_framework)"==""
SLOFILES = \
$(SLO)$/cf_service.obj
......@@ -55,6 +55,6 @@ SHL1LIBS = $(SLB)$/$(TARGET).lib
SHL1DEF = $(MISC)$/$(SHL1TARGET).def
DEF1NAME = $(SHL1TARGET)
.ENDIF
.INCLUDE : target.mk
......@@ -45,7 +45,7 @@ DLLPRE =
.IF "$(verbose)"!="" || "$(VERBOSE)"!=""
CDEFS+= -DVERBOSE
.ENDIF
.IF "$(L10N_framework)"==""
SLOFILES = $(SLO)$/null_canvasbitmap.obj \
$(SLO)$/null_canvascustomsprite.obj \
$(SLO)$/null_canvasfont.obj \
......@@ -68,7 +68,7 @@ SHL1VERSIONMAP=exports.map
DEF1NAME=$(SHL1TARGET)
DEF1EXPORTFILE=exports.dxp
.ENDIF
# ==========================================================================
.INCLUDE : target.mk
......@@ -45,7 +45,7 @@ DLLPRE =
.IF "$(verbose)"!="" || "$(VERBOSE)"!=""
CDEFS+= -DVERBOSE
.ENDIF
.IF "$(L10N_framework)"==""
SLOFILES = $(SLO)$/simplecanvasimpl.obj
SHL1TARGET=$(TARGET).uno
......@@ -60,6 +60,7 @@ SHL1VERSIONMAP=exports.map
DEF1NAME=$(SHL1TARGET)
DEF1EXPORTFILE=exports.dxp
.ENDIF
# ==========================================================================
......
......@@ -51,7 +51,7 @@ CDEFS+= -DPROFILER
#CFLAGS +:= /Ox /Ot # THIS IS IMPORTANT
.IF "$(L10N_framework)"==""
SLOFILES = \
$(SLO)$/cachedprimitivebase.obj \
$(SLO)$/canvascustomspritehelper.obj \
......@@ -95,7 +95,7 @@ DEFLIB1NAME =$(TARGET)
.IF "$(GUI)" == "WNT"
SHL1STDLIBS += $(WINMMLIB) $(KERNEL32LIB)
.ENDIF
.ENDIF
# ==========================================================================
......
......@@ -40,7 +40,7 @@ COMP1TYPELIST=dtrans
# --- Settings -----------------------------------------------------
.INCLUDE : settings.mk
.IF "$(L10N_framework)"==""
# ------------------------------------------------------------------
SLOFILES= \
......@@ -66,5 +66,6 @@ DEF1NAME= $(SHL1TARGET)
DEF1EXPORTFILE= exports.dxp
# --- Targets ------------------------------------------------------
.ENDIF # L10N_framework
.INCLUDE : target.mk
......@@ -41,7 +41,7 @@ TARGET4=dnd
# --- Settings -----------------------------------------------------
.INCLUDE : settings.mk
.IF "$(L10N_framework)"==""
# --- mcnttype dynlib ----------------------------------------------
......@@ -180,6 +180,7 @@ DEF3NAME= $(SHL3TARGET)
DEF3EXPORTFILE= exports.dxp
.ENDIF # "$(GUI)"=="OS2"
.ENDIF # L10N_framework
.INCLUDE : target.mk
......@@ -49,17 +49,18 @@ CDEFS+= -DEDITDEBUG
SRS1NAME=$(TARGET)
SRC1FILES = dlgegif.src \
egifstr.src
.IF "$(L10N_framework)"==""
SLOFILES= $(SLO)$/egif.obj \
$(SLO)$/dlgegif.obj \
$(SLO)$/giflzwc.obj
.ENDIF
# ==========================================================================
RESLIB1NAME=$(TARGET2)
RESLIB1SRSFILES=$(SRS)$/$(TARGET).srs
.IF "$(L10N_framework)"==""
SHL1TARGET= egi$(DLLPOSTFIX)
SHL1IMPLIB= egif
SHL1STDLIBS= $(TOOLSLIB) $(VCLLIB) $(CPPULIB) $(SVTOOLLIB) $(SALLIB)
......@@ -75,7 +76,7 @@ SHL1OBJS= $(SLO)$/egif.obj
SHL1VERSIONMAP=exports.map
SHL1DEF= $(MISC)$/$(SHL1TARGET).def
DEF1NAME=$(SHL1TARGET)
.ENDIF
# ==========================================================================
.INCLUDE : target.mk
......@@ -49,15 +49,15 @@ CDEFS+= -DEDITDEBUG
SRS1NAME=$(TARGET)
SRC1FILES= dlgeos2.src \
eos2mstr.src
.IF "$(L10N_framework)"==""
SLOFILES = $(SLO)$/eos2met.obj \
$(SLO)$/dlgeos2.obj
.ENDIF
# ==========================================================================
RESLIB1NAME=$(TARGET2)
RESLIB1SRSFILES=$(SRS)$/$(TARGET).srs
.IF "$(L10N_framework)"==""
SHL1TARGET= eme$(DLLPOSTFIX)
SHL1IMPLIB= eos2met
SHL1STDLIBS= $(TOOLSLIB) $(VCLLIB) $(SVTOOLLIB) $(CPPULIB) $(SALLIB)
......@@ -72,7 +72,7 @@ SHL1OBJS= $(SLO)$/eos2met.obj
SHL1VERSIONMAP=exports.map
SHL1DEF= $(MISC)$/$(SHL1TARGET).def
DEF1NAME=$(SHL1TARGET)
.ENDIF
# ==========================================================================
.INCLUDE : target.mk
......@@ -49,15 +49,15 @@ CDEFS+= -DEDITDEBUG
SRS1NAME=$(TARGET)
SRC1FILES= dlgepbm.src \
epbmstr.src
.IF "$(L10N_framework)"==""
SLOFILES = $(SLO)$/epbm.obj \
$(SLO)$/dlgepbm.obj
.ENDIF
# ==========================================================================
RESLIB1NAME=$(TARGET2)
RESLIB1SRSFILES=$(SRS)$/$(TARGET).srs
.IF "$(L10N_framework)"==""
SHL1TARGET= epb$(DLLPOSTFIX)
SHL1IMPLIB= epbm
SHL1STDLIBS= $(TOOLSLIB) $(VCLLIB) $(CPPULIB) $(SVTOOLLIB) $(SALLIB)
......@@ -73,7 +73,7 @@ SHL1OBJS= $(SLO)$/epbm.obj
SHL1VERSIONMAP=exports.map
SHL1DEF= $(MISC)$/$(SHL1TARGET).def
DEF1NAME=$(SHL1TARGET)
.ENDIF
# ==========================================================================
.INCLUDE : target.mk
......@@ -50,15 +50,15 @@ CDEFS+= -DEDITDEBUG
SRS1NAME=$(TARGET)
SRC1FILES= dlgepgm.src \
epgmstr.src
.IF "$(L10N_framework)"==""
SLOFILES = $(SLO)$/epgm.obj \
$(SLO)$/dlgepgm.obj
.ENDIF
# ==========================================================================
RESLIB1NAME=$(TARGET2)
RESLIB1SRSFILES=$(SRS)$/$(TARGET).srs
.IF "$(L10N_framework)"==""
SHL1TARGET= epg$(DLLPOSTFIX)
SHL1IMPLIB= epgm
SHL1STDLIBS= $(TOOLSLIB) $(VCLLIB) $(CPPULIB) $(SVTOOLLIB) $(SALLIB)
......@@ -74,7 +74,7 @@ SHL1OBJS= $(SLO)$/epgm.obj
SHL1VERSIONMAP=exports.map
SHL1DEF= $(MISC)$/$(SHL1TARGET).def
DEF1NAME=$(SHL1TARGET)
.ENDIF
# ==========================================================================
.INCLUDE : target.mk
......@@ -50,15 +50,15 @@ CDEFS+= -DEDITDEBUG
SRS1NAME=$(TARGET)
SRC1FILES = dlgepct.src \
epictstr.src
.IF "$(L10N_framework)"==""
SLOFILES = $(SLO)$/epict.obj \
$(SLO)$/dlgepct.obj
.ENDIF
# ==========================================================================
RESLIB1NAME=$(TARGET2)
RESLIB1SRSFILES=$(SRS)$/$(TARGET).srs
.IF "$(L10N_framework)"==""
SHL1TARGET= ept$(DLLPOSTFIX)
SHL1IMPLIB= epict
SHL1STDLIBS= $(TOOLSLIB) $(VCLLIB) $(SVTOOLLIB) $(CPPULIB) $(SALLIB)
......@@ -74,7 +74,7 @@ SHL1OBJS= $(SLO)$/epict.obj
SHL1VERSIONMAP=exports.map
SHL1DEF= $(MISC)$/$(SHL1TARGET).def
DEF1NAME=$(SHL1TARGET)
.ENDIF
# ==========================================================================
.INCLUDE : target.mk
......@@ -49,15 +49,15 @@ CDEFS+= -DEDITDEBUG
SRS1NAME=$(TARGET)
SRC1FILES= dlgeppm.src \
eppmstr.src
.IF "$(L10N_framework)"==""
SLOFILES = $(SLO)$/eppm.obj \
$(SLO)$/dlgeppm.obj
.ENDIF
# ==========================================================================
RESLIB1NAME=$(TARGET2)
RESLIB1SRSFILES=$(SRS)$/$(TARGET).srs
.IF "$(L10N_framework)"==""
SHL1TARGET= epp$(DLLPOSTFIX)
SHL1IMPLIB= eppm
SHL1STDLIBS= $(TOOLSLIB) $(VCLLIB) $(CPPULIB) $(SVTOOLLIB) $(SALLIB)
......@@ -73,6 +73,7 @@ SHL1OBJS= $(SLO)$/eppm.obj
SHL1VERSIONMAP=exports.map
SHL1DEF= $(MISC)$/$(SHL1TARGET).def
DEF1NAME=$(SHL1TARGET)
.ENDIF
# ==========================================================================
......
......@@ -50,16 +50,17 @@ CDEFS+= -DEDITDEBUG
SRS1NAME=$(TARGET)
SRC1FILES = dlgeps.src \
epsstr.src
.IF "$(L10N_framework)"==""
EXCEPTIONSFILES=$(SLO)$/eps.obj
SLOFILES = $(SLO)$/eps.obj \
$(SLO)$/dlgeps.obj
.ENDIF
# ==========================================================================
RESLIB1NAME=$(TARGET)
RESLIB1SRSFILES=$(SRS)$/$(TARGET).srs
.IF "$(L10N_framework)"==""
SHL1TARGET= eps$(DLLPOSTFIX)
SHL1IMPLIB= eps
SHL1STDLIBS= $(TOOLSLIB) $(VCLLIB) $(VCLLIB) $(SVTOOLLIB) $(CPPULIB) $(SALLIB)
......@@ -75,6 +76,7 @@ SHL1OBJS= $(SLO)$/eps.obj
SHL1VERSIONMAP=exports.map
SHL1DEF= $(MISC)$/$(SHL1TARGET).def
DEF1NAME=$(SHL1TARGET)
.ENDIF
# ==========================================================================
......
......@@ -40,7 +40,7 @@ DEPTARGET=veras
.INCLUDE : settings.mk
# --- Allgemein ----------------------------------------------------------
.IF "$(L10N_framework)"==""
.IF "$(editdebug)"!="" || "$(EDITDEBUG)"!=""
CDEFS+= -DEDITDEBUG
.ENDIF
......@@ -63,6 +63,7 @@ SHL1OBJS= $(SLO)$/eras.obj
SHL1VERSIONMAP=exports.map
SHL1DEF= $(MISC)$/$(SHL1TARGET).def
DEF1NAME=$(SHL1TARGET)
.ENDIF
# ==========================================================================
......
......@@ -44,7 +44,7 @@ DEPTARGET=vetiff
.IF "$(editdebug)"!="" || "$(EDITDEBUG)"!=""
CDEFS+= -DEDITDEBUG
.ENDIF
.IF "$(L10N_framework)"==""
SLOFILES = $(SLO)$/etiff.obj
# ==========================================================================
......@@ -63,7 +63,7 @@ SHL1OBJS= $(SLO)$/etiff.obj
SHL1VERSIONMAP=exports.map
SHL1DEF= $(MISC)$/$(SHL1TARGET).def
DEF1NAME=$(SHL1TARGET)
.ENDIF
# ==========================================================================
.INCLUDE : target.mk
......@@ -45,7 +45,7 @@ DEPTARGET=vexpm
.IF "$(editdebug)"!="" || "$(EDITDEBUG)"!=""
CDEFS+= -DEDITDEBUG
.ENDIF
.IF "$(L10N_framework)"==""
SLOFILES = $(SLO)$/expm.obj
# ==========================================================================
......@@ -64,7 +64,7 @@ SHL1OBJS= $(SLO)$/expm.obj
SHL1VERSIONMAP=exports.map
SHL1DEF= $(MISC)$/$(SHL1TARGET).def
DEF1NAME=$(SHL1TARGET)
.ENDIF
# ==========================================================================
.INCLUDE : target.mk
......@@ -39,7 +39,7 @@ ENABLE_EXCEPTIONS=TRUE
.INCLUDE : settings.mk
# --- Files --------------------------------------------------------
.IF "$(L10N_framework)"==""
SLOFILES = $(SLO)$/cgm.obj \
$(SLO)$/chart.obj \
$(SLO)$/class0.obj \
......@@ -76,6 +76,7 @@ SHL1STDLIBS = \
$(TOOLSLIB) \
$(CPPULIB) \
$(SALLIB)
.ENDIF
# --- Targets --------------------------------------------------------------
......
......@@ -44,7 +44,7 @@ DEPTARGET=vidxf
.IF "$(editdebug)"!="" || "$(EDITDEBUG)"!=""
CDEFS+= -DEDITDEBUG
.ENDIF
.IF "$(L10N_framework)"==""
EXCEPTIONSFILES=\
$(SLO)$/dxfentrd.obj \
$(SLO)$/dxf2mtf.obj
......@@ -76,6 +76,7 @@ SHL1VERSIONMAP=exports.map
SHL1DEF= $(MISC)$/$(SHL1TARGET).def
DEF1NAME=$(SHL1TARGET)
.ENDIF
# ==========================================================================
......
......@@ -44,7 +44,7 @@ DEPTARGET=vieps
.IF "$(editdebug)"!="" || "$(EDITDEBUG)"!=""
CDEFS+= -DEDITDEBUG
.ENDIF
.IF "$(L10N_framework)"==""
SLOFILES = $(SLO)$/ieps.obj
# ==========================================================================
......@@ -64,7 +64,7 @@ SHL1VERSIONMAP=exports.map
SHL1DEF= $(MISC)$/$(SHL1TARGET).def
DEF1NAME=$(SHL1TARGET)
.ENDIF
# ==========================================================================
.INCLUDE : target.mk
......@@ -44,7 +44,7 @@ DEPTARGET=vios2met
.IF "$(editdebug)"!="" || "$(EDITDEBUG)"!=""
CDEFS+= -DEDITDEBUG
.ENDIF
.IF "$(L10N_framework)"==""
SLOFILES = $(SLO)$/ios2met.obj
# ==========================================================================
......@@ -65,7 +65,7 @@ SHL1VERSIONMAP=exports.map
SHL1DEF= $(MISC)$/$(SHL1TARGET).def
DEF1NAME=$(SHL1TARGET)
.ENDIF
# ==========================================================================
.INCLUDE : target.mk
......
......@@ -44,7 +44,7 @@ DEPTARGET=vipbm
.IF "$(editdebug)"!="" || "$(EDITDEBUG)"!=""
CDEFS+= -DEDITDEBUG
.ENDIF
.IF "$(L10N_framework)"==""
SLOFILES = $(SLO)$/ipbm.obj
# ==========================================================================
......@@ -64,6 +64,7 @@ SHL1VERSIONMAP=exports.map
SHL1DEF= $(MISC)$/$(SHL1TARGET).def
DEF1NAME=$(SHL1TARGET)
.ENDIF
# ==========================================================================
......
......@@ -44,7 +44,7 @@ DEPTARGET=vipcd
.IF "$(editdebug)"!="" || "$(EDITDEBUG)"!=""
CDEFS+= -DEDITDEBUG
.ENDIF
.IF "$(L10N_framework)"==""
SLOFILES = $(SLO)$/ipcd.obj
# ==========================================================================
......@@ -64,6 +64,7 @@ SHL1VERSIONMAP=exports.map
SHL1DEF= $(MISC)$/$(SHL1TARGET).def
DEF1NAME=$(SHL1TARGET)
.ENDIF
# ==========================================================================
......
......@@ -44,7 +44,7 @@ DEPTARGET=vipcx
.IF "$(editdebug)"!="" || "$(EDITDEBUG)"!=""
CDEFS+= -DEDITDEBUG
.ENDIF
.IF "$(L10N_framework)"==""
SLOFILES = $(SLO)$/ipcx.obj
# ==========================================================================
......@@ -64,6 +64,7 @@ SHL1VERSIONMAP=exports.map
SHL1DEF= $(MISC)$/$(SHL1TARGET).def
DEF1NAME=$(SHL1TARGET)
.ENDIF
# ==========================================================================
......
......@@ -44,7 +44,7 @@ DEPTARGET=vipict
.IF "$(editdebug)"!="" || "$(EDITDEBUG)"!=""
CDEFS+= -DEDITDEBUG
.ENDIF
.IF "$(L10N_framework)"==""
SLOFILES = $(SLO)$/ipict.obj
# ==========================================================================
......@@ -64,6 +64,7 @@ SHL1VERSIONMAP=exports.map
SHL1DEF= $(MISC)$/$(SHL1TARGET).def
DEF1NAME=$(SHL1TARGET)
.ENDIF
# ==========================================================================
......
......@@ -44,7 +44,7 @@ DEPTARGET=vipsd
.IF "$(editdebug)"!="" || "$(EDITDEBUG)"!=""
CDEFS+= -DEDITDEBUG
.ENDIF
.IF "$(L10N_framework)"==""
SLOFILES = $(SLO)$/ipsd.obj
# ==========================================================================
......@@ -64,6 +64,7 @@ SHL1VERSIONMAP=exports.map
SHL1DEF= $(MISC)$/$(SHL1TARGET).def
DEF1NAME=$(SHL1TARGET)
.ENDIF
# ==========================================================================
......
......@@ -44,7 +44,7 @@ DEPTARGET=viras
.IF "$(editdebug)"!="" || "$(EDITDEBUG)"!=""
CDEFS+= -DEDITDEBUG
.ENDIF
.IF "$(L10N_framework)"==""
SLOFILES = $(SLO)$/iras.obj
# ==========================================================================
......@@ -64,6 +64,7 @@ SHL1VERSIONMAP=exports.map
SHL1DEF= $(MISC)$/$(SHL1TARGET).def
DEF1NAME=$(SHL1TARGET)
.ENDIF
# ==========================================================================
......
......@@ -44,7 +44,7 @@ DEPTARGET=vitga
.IF "$(editdebug)"!="" || "$(EDITDEBUG)"!=""
CDEFS+= -DEDITDEBUG
.ENDIF
.IF "$(L10N_framework)"==""
SLOFILES = $(SLO)$/itga.obj
# ==========================================================================
......@@ -64,6 +64,7 @@ SHL1VERSIONMAP=exports.map
SHL1DEF= $(MISC)$/$(SHL1TARGET).def
DEF1NAME=$(SHL1TARGET)
.ENDIF
# ==========================================================================
......
......@@ -44,7 +44,7 @@ DEPTARGET=vitiff
.IF "$(editdebug)"!="" || "$(EDITDEBUG)"!=""
CDEFS+= -DEDITDEBUG
.ENDIF
.IF "$(L10N_framework)"==""
SLOFILES = $(SLO)$/itiff.obj \
$(SLO)$/lzwdecom.obj \
$(SLO)$/ccidecom.obj
......@@ -68,6 +68,7 @@ SHL1VERSIONMAP=exports.map
SHL1DEF= $(MISC)$/$(SHL1TARGET).def
DEF1NAME=$(SHL1TARGET)
.ENDIF
# ==========================================================================
......
......@@ -42,6 +42,7 @@ EXTERNAL_WARNINGS_NOT_ERRORS := TRUE
.INCLUDE : settings.mk
# --- Files --------------------------------------------------------
.IF "$(L10N_framework)"==""
.IF "$(TEST)" != ""
CDEFS+=-DTEST
......@@ -62,6 +63,7 @@ SLOFILES= \
$(SLO)$/score.obj \
$(SLO)$/monst.obj
.ENDIF
.ENDIF
SRS1NAME=$(TARGET)
SRC1FILES=gegner.src strings.src
......@@ -70,6 +72,9 @@ RESLIB1IMAGES= $(PRJ)$/res
RESLIB1NAME=tfu
RESLIB1SRSFILES=$(SRS)$/invader.srs
.IF "$(L10N_framework)"==""
.IF "$(TEST)"!=""
APP1TARGET= $(TARGET)
APP1OBJS= $(OBJFILES)
......@@ -85,7 +90,7 @@ APP1STDLIBS= $(CPPULIB) \
.ELSE
SHL1TARGET= tfu$(DLLPOSTFIX)
SHL1IMPLIB= itfu
SHL1IMPLIB= i
SHL1STDLIBS=\
$(VCLLIB) \
$(TOOLSLIB) \
......@@ -103,10 +108,11 @@ SHL1DEF=$(MISC)$/$(SHL1TARGET).def
.ENDIF
# --- Targets -------------------------------------------------------
.ENDIF
.INCLUDE : target.mk
.IF "$(L10N_framework)"==""
ALLTAR: \
$(BIN)$/applicat.rdb
......@@ -147,3 +153,7 @@ $(MISC)$/$(SHL1TARGET).def: makefile.mk
.ENDIF
.ELSE
pseudo:
.ENDIF
......@@ -42,6 +42,7 @@ GEN_HID=TRUE
.INCLUDE : settings.mk
# --- Allgemein ---------------------------------------------------
.IF "$(L10N_framework)"==""
LIB1TARGET=$(SLB)$/go.lib
LIB1FILES=\
......@@ -78,6 +79,7 @@ DEF1EXPORTFILE =goodies.dxp
# THB: exports list goodies checked for 6.0 Final 6.12.2001
# Note: explicit exports only necessary for VCL graphic filters (see there)
.ENDIF
# --- Targets -----------------------------------------------------------
......@@ -86,6 +88,7 @@ DEF1EXPORTFILE =goodies.dxp
.IF "$(depend)"==""
# --- Goodies-Filter-Datei ---
.IF "$(L10N_framework)"==""
$(MISC)$/$(SHL1TARGET).flt: makefile.mk
@echo ------------------------------
......@@ -98,3 +101,5 @@ $(MISC)$/$(SHL1TARGET).flt: makefile.mk
@echo CT>>$@
.ENDIF
.ENDIF
......@@ -39,7 +39,7 @@ ENABLE_EXCEPTIONS=TRUE
# --- Settings -----------------------------------------------------
.INCLUDE : settings.mk
.IF "$(L10N_framework)"==""
# --- Common ----------------------------------------------------------
# BEGIN ----------------------------------------------------------------
......@@ -65,12 +65,13 @@ SHL1VERSIONMAP = export.map
SLOFILES=$(SHL1OBJS)
# --- Targets ------------------------------------------------------
.ENDIF # L10N_framework
.INCLUDE : target.mk
.INCLUDE : _cppunit.mk
# --- Enable test execution in normal build ------------------------
.IF "$(L10N_framework)"==""
unittest : $(SHL1TARGETN)
@echo ----------------------------------------------------------
@echo - start unit test on library $(SHL1TARGETN)
......@@ -78,3 +79,5 @@ unittest : $(SHL1TARGETN)
$(TESTSHL2) -sf $(mktmp ) $(SHL1TARGETN)
ALLTAR : unittest
.ENDIF # L10N_framework
tr transex3 : tools NULL
tr transex3 : tools libxslt berkeleydb lucene NULL
tr transex3 usr1 - all tr_mkout NULL
tr transex3\inc nmake - all tr_inc NULL
tr transex3\source nmake - all tr_src tr_inc NULL
tr transex3\layout nmake - all rt_layout tr_src tr_inc NULL
tr transex3\java\l10nconv nmake - all tr_conv NULL
tr transex3\java\receditor nmake - all tr_rece NULL
tr transex3\source\help nmake - all tr_bla_help NULL
tr transex3\source\filter\utils nmake - all tr_bla_utils NULL
tr transex3\source\filter\merge nmake - all tr_bla_merge tr_bla_utils NULL
mkdir: %_DEST%\inc%_EXT%\transex3
mkdir: %_DEST%\bin%_EXT%
mkdir: %_DEST%\bin%_EXT%\help
mkdir: %_DEST%\bin%_EXT%\help\com
mkdir: %_DEST%\bin%_EXT%\help\com\sun
mkdir: %_DEST%\bin%_EXT%\help\com\sun\star
mkdir: %_DEST%\bin%_EXT%\help\com\sun\star\help
..\%__SRC%\bin\cfgex.exe %_DEST%\bin%_EXT%\cfgex.exe
..\%__SRC%\bin\cfgex %_DEST%\bin%_EXT%\cfgex
......@@ -20,6 +26,14 @@ mkdir: %_DEST%\inc%_EXT%\transex3
..\%__SRC%\bin\txtconv %_DEST%\bin%_EXT%\txtconv
..\%__SRC%\bin\tralay.exe %_DEST%\bin%_EXT%\tralay.exe
..\%__SRC%\bin\tralay %_DEST%\bin%_EXT%\tralay
..\%__SRC%\bin\ulfconv %_DEST%\bin%_EXT%\ulfconv
..\%__SRC%\class\FCFGMerge.jar %_DEST%\bin%_EXT%\FCFGMerge.jar
..\%__SRC%\class\HelpIndexerTool.jar %_DEST%\bin%_EXT%\HelpIndexerTool.jar
..\%__SRC%\bin\HelpLinker %_DEST%\bin%_EXT%\HelpLinker
..\%__SRC%\bin\HelpCompiler %_DEST%\bin%_EXT%\HelpCompiler
..\%__SRC%\bin\HelpCompiler.exe %_DEST%\bin%_EXT%\HelpCompiler.exe
..\%__SRC%\bin\HelpLinker.exe %_DEST%\bin%_EXT%\HelpLinker.exe
..\%__SRC%\bin\HelpLinker* %_DEST%\bin%_EXT%
..\%__SRC%\class\converter\converter.jar %_DEST%\bin%_EXT%\converter.jar
..\%__SRC%\doc\converter_javadoc.zip %_DEST%\bin%_EXT%\converter_javadoc.zip
......@@ -38,3 +52,8 @@ mkdir: %_DEST%\inc%_EXT%\transex3
..\inc\utf8conv.hxx %_DEST%\inc%_EXT%\transex3\utf8conv.hxx
..\%__SRC%\lib\transex.lib %_DEST%\lib%_EXT%\transex.lib
..\%__SRC%\lib\libtransex.a %_DEST%\lib%_EXT%\libtransex.a
..\source\help\compilehelp.hxx %_DEST%\inc%_EXT%\transex3\compilehelp.hxx
#..\source\help\helplinkerdllapi.h %_DEST%\inc%_EXT%\transex3\helplinkerdllapi.h
..\%__SRC%\lib\* %_DEST%\lib%_EXT%\*
..\%__SRC%\class\com\sun\star\help\* %_DEST%\bin%_EXT%\help\com\sun\star\help\*
#*************************************************************************
#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# Copyright 2008 by Sun Microsystems, Inc.
#
# OpenOffice.org - a multi-platform office productivity suite
#
# $RCSfile: FCFGMerge.cfg,v $
#
# $Revision: 1.5 $
#
# This file is part of OpenOffice.org.
#
# OpenOffice.org is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
# only, as published by the Free Software Foundation.
#
# OpenOffice.org is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License version 3 for more details
# (a copy is included in the LICENSE file that accompanied this code).
#
# You should have received a copy of the GNU Lesser General Public License
# version 3 along with OpenOffice.org. If not, see
# <http://www.openoffice.org/license.html>
# for a copy of the LGPLv3 License.
#
#*************************************************************************
#************************************************
# Specify the verbose mode of this tool.
# 1 = show errors only
# 2 = show errors/warnings (default)
# 3 = show errors/warnings and some generic infos
# 4 = show anything (including detailed infos)
#
# [OPTIONAL]
#************************************************
loglevel = 2
#************************************************
# This extension is used for all XML files. It doesnt
# matter if its used for reading fragments or writing
# XML packages.
# Must be given without any additional signes like "."
# or "*."!
#
# [REQUIRED]
#************************************************
extension_xcu=xcu
#************************************************
# This extension is used for all Package files. It doesnt
# matter if its used for reading such files or writing
# it.
# Must be given without any additional signes like "."
# or "*."!
#
# [REQUIRED]
#************************************************
extension_pkg=pkg
#************************************************
# These values are used to generate a correct XML
# header.
# Note: The property "xmlpackage" must be specified
# via command line. There exists more then one
# possible value.
#
# [REQUIRED]
#************************************************
xmlversion = 1.0
xmlencoding = UTF-8
xmlpath = org.openoffice.TypeDetection
#xmlpackage =
#************************************************
# These values are used to name the configuration
# sets inside the generated XCM file for different
# item groups like e.g. types, filters etcpp.
#
# [REQUIRED]
#************************************************
setname_types = Types
setname_filters = Filters
setname_frameloaders = FrameLoaders
setname_contenthandlers = ContentHandlers
subdir_types = types
subdir_filters = filters
subdir_frameloaders = frameloaders
subdir_contenthandlers = contenthandlers
#************************************************
# This delimiter is used to split every
# item list of the package configuration files
# (which are temp. created by the make proccess)
# into its tokens.
#
# [REQUIRED]
#************************************************
delimiter=,
#************************************************
# Enable/disable removing of leading/trailing withespaces
# during splitting stringlists.
#
# [REQUIRED]
#************************************************
trim=true
#************************************************
# Enable/disable removing of leading/trailing "-signs
# during splitting stringlists.
#
# [REQUIRED]
#************************************************
decode=false
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: FCFGMerge.java,v $
* $Revision: 1.5 $
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License version 3
* only, as published by the Free Software Foundation.
*
* OpenOffice.org is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License version 3 for more details
* (a copy is included in the LICENSE file that accompanied this code).
*
* You should have received a copy of the GNU Lesser General Public License
* version 3 along with OpenOffice.org. If not, see
* <http://www.openoffice.org/license.html>
* for a copy of the LGPLv3 License.
*
************************************************************************/
package com.sun.star.filter.config.tools.merge;
//_______________________________________________
import java.lang.*;
import java.util.*;
import java.io.*;
import com.sun.star.filter.config.tools.utils.*;
//_______________________________________________
/**
* Its a simple command line tool, which can merge different XML fragments
* together. Such fragments must exist as files on disk, will be moved into
* one file together on disk.
*
*
*/
public class FCFGMerge
{
//___________________________________________
// const
private static final java.lang.String CFGFILE = "com/sun/star/filter/config/tools/merge/FCFGMerge.cfg";
private static final java.lang.String PROP_LOGLEVEL = "loglevel";
//___________________________________________
// main
public static void main(java.lang.String[] sCmdLine)
{
FCFGMerge.printCopyright();
// create log object in default mode "WARNINGS"
// If a command line parameter indicates another
// level - change it!
Logger aLog = new Logger();
try
{
// merge config file and overwrite properties
// via command line
ConfigHelper aCfg = null;
aCfg = new ConfigHelper(CFGFILE, sCmdLine);
// update log level
int nLogLevel = aCfg.getInt(PROP_LOGLEVEL, Logger.LEVEL_WARNINGS);
aLog = new Logger(nLogLevel);
// help requested?
if (aCfg.isHelp())
{
FCFGMerge.printHelp();
System.exit(-1);
}
// create new merge object and start operation
Merger aMerger = new Merger(aCfg, aLog);
aMerger.merge();
}
catch(java.lang.Throwable ex)
{
aLog.setException(ex);
System.exit(-1);
}
System.exit(0);
}
//___________________________________________
/** prints out a copyright message on stdout.
*/
private static void printCopyright()
{
java.lang.StringBuffer sOut = new java.lang.StringBuffer(256);
sOut.append("FCFGMerge\n");
sOut.append("Copyright: 2003 by Sun Microsystems, Inc.\n");
sOut.append("All Rights Reserved.\n");
System.out.println(sOut.toString());
}
//___________________________________________
/** prints out a help message on stdout.
*/
private static void printHelp()
{
java.lang.StringBuffer sOut = new java.lang.StringBuffer(256);
sOut.append("____________________________________________________________\n");
sOut.append("usage: FCFGMerge cfg=<file name>\n" );
sOut.append("parameters:\n" );
sOut.append("\tcfg=<file name>\n" );
sOut.append("\t\tmust point to a system file, which contains\n" );
sOut.append("\t\tall neccessary configuration data for the merge process.\n");
sOut.append("\n\tFurther cou can specify every parameter allowed in the\n" );
sOut.append("\n\tconfig file as command line parameter too, to overwrite\n" );
sOut.append("\n\tthe value from the file.\n" );
System.out.println(sOut.toString());
}
}
Main-Class: com.sun.star.filter.config.tools.merge.FCFGMerge
This diff is collapsed.
#*************************************************************************
#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# Copyright 2008 by Sun Microsystems, Inc.
#
# OpenOffice.org - a multi-platform office productivity suite
#
# $RCSfile: makefile.mk,v $
#
# $Revision: 1.9.102.1 $
#
# This file is part of OpenOffice.org.
#
# OpenOffice.org is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
# only, as published by the Free Software Foundation.
#
# OpenOffice.org is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License version 3 for more details
# (a copy is included in the LICENSE file that accompanied this code).
#
# You should have received a copy of the GNU Lesser General Public License
# version 3 along with OpenOffice.org. If not, see
# <http://www.openoffice.org/license.html>
# for a copy of the LGPLv3 License.
#
#*************************************************************************
PRJ = ..$/..$/..
TARGET = FCFGMerge
PRJNAME = filter
PACKAGE = com$/sun$/star$/filter$/config$/tools$/merge
# --- Settings -----------------------------------------------------
.INCLUDE: settings.mk
#----- compile .java files -----------------------------------------
#.IF "$(L10N_framework)"==""
OWNCOPY = \
$(MISC)$/$(TARGET)_copied.done
#JARFILES = \
# ridl.jar \
# unoil.jar \
# jurt.jar \
# juh.jar \
# java_uno.jar
CFGFILES = \
FCFGMerge.cfg
JAVACLASSFILES = \
$(CLASSDIR)$/$(PACKAGE)$/Merger.class \
$(CLASSDIR)$/$(PACKAGE)$/FCFGMerge.class
CUSTOMMANIFESTFILE = \
Manifest.mf
MAXLINELENGTH = 100000
#----- make a jar from compiled files ------------------------------
JARCLASSDIRS = \
com$/sun$/star$/filter$/config$/tools$/utils \
com$/sun$/star$/filter$/config$/tools$/merge
JARTARGET = $(TARGET).jar
JARCOMPRESS = TRUE
# --- targets -----------------------------------------------------
.INCLUDE : target.mk
.IF "$(SOLAR_JAVA)" != "" || "$(GUI)"=="OS2"
ALLTAR : $(OWNCOPY)
.IF "$(JARTARGETN)" != ""
$(JARTARGETN) : $(OWNCOPY)
.ENDIF
$(OWNCOPY) : $(CFGFILES)
-$(MKDIRHIER) $(CLASSDIR)$/$(PACKAGE)
$(COPY) $? $(CLASSDIR)$/$(PACKAGE) && $(TOUCH) $@
.ENDIF # "$(SOLAR_JAVA)" != ""
#.ELSE
#pseudo:
#.ENDIF
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This diff is collapsed.
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: Logger.java,v $
* $Revision: 1.8 $
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License version 3
* only, as published by the Free Software Foundation.
*
* OpenOffice.org is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License version 3 for more details
* (a copy is included in the LICENSE file that accompanied this code).
*
* You should have received a copy of the GNU Lesser General Public License
* version 3 along with OpenOffice.org. If not, see
* <http://www.openoffice.org/license.html>
* for a copy of the LGPLv3 License.
*
************************************************************************/
package com.sun.star.filter.config.tools.utils;
//_______________________________________________
// imports
import java.lang.*;
import java.util.*;
//_______________________________________________
// definition
/** can be used to print out some debug messages
* and group it into warnings/errors or info statements.
*
*
*/
public class Logger
{
//___________________________________________
// const
/** only error message will be shown. */
public static final int LEVEL_ERRORS = 1;
/** only errors and warnings will be shown. */
public static final int LEVEL_WARNINGS = 2;
/** enable errors/warnings and some global info
* message. */
public static final int LEVEL_GLOBALINFOS = 3;
/** enable anything! */
public static final int LEVEL_DETAILEDINFOS = 4;
//___________________________________________
// member
/** enable/disable different output level.
* e.g. warnings/errors/infos */
private int m_nLevel;
//___________________________________________
// ctor
/** initialize new debug object with the specified
* debug level.
*
* @param nLevel
* the new debug level.
* See const values LEVEL_xxx too.
*/
public Logger(int nLevel)
{
m_nLevel = nLevel;
}
//___________________________________________
// interface
/** initialize new debug object with a default
* debug level.
*/
public Logger()
{
m_nLevel = LEVEL_DETAILEDINFOS;
}
//___________________________________________
// interface
/** prints out an exception ... if the right level is set.
*
* @param ex
* the exception object
*/
public synchronized void setException(java.lang.Throwable ex)
{
if (m_nLevel >= LEVEL_ERRORS)
{
System.err.println("Exception:\n");
ex.printStackTrace();
}
}
//___________________________________________
// interface
/** prints out an error ... if the right level is set.
*
* @param sError
* the error message.
*/
public synchronized void setError(java.lang.String sError)
{
if (m_nLevel >= LEVEL_ERRORS)
System.err.println("Error :\t\""+sError+"\"");
}
//___________________________________________
// interface
/** prints out a warning ... if the right level is set.
*
* @param sWarning
* the warning message.
*/
public synchronized void setWarning(java.lang.String sWarning)
{
if (m_nLevel >= LEVEL_WARNINGS)
System.err.println("Warning :\t\""+sWarning+"\"");
}
//___________________________________________
// interface
/** prints out a global info message ... if the right level is set.
*
* Global infos should be used to describe a complex operation.
* E.g.: loading of a document.
* But not for every sub operation like e.g. analyzing lines
* during loading the document!
*
* @param sInfo
* the info message.
*/
public synchronized void setGlobalInfo(java.lang.String sInfo)
{
if (m_nLevel >= LEVEL_GLOBALINFOS)
System.out.println("Info :\t\""+sInfo+"\"");
}
//___________________________________________
// interface
/** prints out a mode detailed info message ... if the right level is set.
*
* Such detailed message are e.g. "analyze line [n] of file ...".
*
* @param sInfo
* the info message.
*/
public synchronized void setDetailedInfo(java.lang.String sInfo)
{
if (m_nLevel >= LEVEL_DETAILEDINFOS)
System.out.println("Detail :\t\""+sInfo+"\"");
}
}
/*_***********************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: MalformedCommandLineException.java,v $
* $Revision: 1.4 $
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License version 3
* only, as published by the Free Software Foundation.
*
* OpenOffice.org is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License version 3 for more details
* (a copy is included in the LICENSE file that accompanied this code).
*
* You should have received a copy of the GNU Lesser General Public License
* version 3 along with OpenOffice.org. If not, see
* <http://www.openoffice.org/license.html>
* for a copy of the LGPLv3 License.
*
**********************************************************************_*/
package com.sun.star.filter.config.tools.utils;
//_______________________________________________
// imports
import java.lang.*;
//___________________________________________
// types
/** indicates a malformed command line.
*
* E.g. it must be thrown if the command line contains one item more then once,
* or use unsupported format.
*/
public class MalformedCommandLineException extends java.lang.Exception
{
public MalformedCommandLineException() {}
public MalformedCommandLineException(java.lang.String sMsg) { super(sMsg); }
}
This diff is collapsed.
#*************************************************************************
#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# Copyright 2008 by Sun Microsystems, Inc.
#
# OpenOffice.org - a multi-platform office productivity suite
#
# $RCSfile: makefile.mk,v $
#
# $Revision: 1.9.98.2 $
#
# This file is part of OpenOffice.org.
#
# OpenOffice.org is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
# only, as published by the Free Software Foundation.
#
# OpenOffice.org is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License version 3 for more details
# (a copy is included in the LICENSE file that accompanied this code).
#
# You should have received a copy of the GNU Lesser General Public License
# version 3 along with OpenOffice.org. If not, see
# <http://www.openoffice.org/license.html>
# for a copy of the LGPLv3 License.
#
#*************************************************************************
PRJ = ..$/..$/..
TARGET = FCFGUtils
PRJNAME = filter
PACKAGE = com$/sun$/star$/filter$/config$/tools$/utils
# --- Settings -----------------------------------------------------
.INCLUDE: settings.mk
#----- compile .java files -----------------------------------------
JAVACLASSFILES = \
$(CLASSDIR)$/$(PACKAGE)$/AnalyzeStartupLog.class \
$(CLASSDIR)$/$(PACKAGE)$/ConfigHelper.class \
$(CLASSDIR)$/$(PACKAGE)$/Logger.class \
$(CLASSDIR)$/$(PACKAGE)$/FileHelper.class \
$(CLASSDIR)$/$(PACKAGE)$/MalformedCommandLineException.class \
$(CLASSDIR)$/$(PACKAGE)$/Cache.class \
$(CLASSDIR)$/$(PACKAGE)$/XMLHelper.class
MAXLINELENGTH = 100000
# --- targets -----------------------------------------------------
.INCLUDE : target.mk
This diff is collapsed.
This diff is collapsed.
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: HelpFileDocument.java,v $
* $Revision: 1.2 $
*
* This file is part of OpenOffice.org.
*
* OpenOffice.org is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License version 3
* only, as published by the Free Software Foundation.
*
* OpenOffice.org is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License version 3 for more details
* (a copy is included in the LICENSE file that accompanied this code).
*
* You should have received a copy of the GNU Lesser General Public License
* version 3 along with OpenOffice.org. If not, see
* <http://www.openoffice.org/license.html>
* for a copy of the LGPLv3 License.
*
************************************************************************/
package com.sun.star.help;
import java.io.File;
import java.io.Reader;
import java.io.FileInputStream;
import java.io.InputStreamReader;
//import java.io.FileReader;
import java.io.StringReader;
import org.apache.lucene.document.Document;
import org.apache.lucene.document.Field;
/** Lucene Document for help files */
public class HelpFileDocument
{
/** Creates reader for UTF-8 files
*/
private static Reader getReaderForFile( File aFile )
throws java.io.FileNotFoundException, java.io.UnsupportedEncodingException {
Reader aReader;
if( aFile != null ) {
FileInputStream fis = new FileInputStream( aFile );
aReader = new InputStreamReader( fis, "UTF-8" );
}
else {
aReader = new StringReader( "" );
}
return aReader;
}
/** Makes a document for a File.
*/
public static Document Document( String aModule, File aCaptionFile, File aContentFile )
throws java.io.FileNotFoundException, java.io.UnsupportedEncodingException {
Document doc = new Document();
// Add the path of the file as a field named "path". Use a field that is
// indexed (i.e. searchable), but don't tokenize the field into words.
File aFile = aCaptionFile != null ? aCaptionFile : aContentFile;
if( aFile != null )
{
String aPath = "#HLP#" + aModule + "/" + aFile.getName();
doc.add(new Field("path", aPath, Field.Store.YES, Field.Index.UN_TOKENIZED));
}
// Add the caption of the file to a field named "caption". Specify a Reader,
// so that the text of the file is tokenized and indexed, but not stored.
doc.add( new Field( "caption", getReaderForFile( aCaptionFile ) ) );
// Add the contents of the file to a field named "content". Specify a Reader,
// so that the text of the file is tokenized and indexed, but not stored.
doc.add( new Field( "content", getReaderForFile( aContentFile ) ) );
// return the document
return doc;
}
private HelpFileDocument() {}
}
This diff is collapsed.
This diff is collapsed.
RegistrationClassName: com.sun.star.help.HelpComponent
Class-Path: lucene-core-2.3.jar lucene-analyzers-2.3.jar
This diff is collapsed.
#*************************************************************************
#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# Copyright 2008 by Sun Microsystems, Inc.
#
# OpenOffice.org - a multi-platform office productivity suite
#
# $RCSfile: helplinker.pmk,v $
#
# $Revision: 1.4 $
#
# This file is part of OpenOffice.org.
#
# OpenOffice.org is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
# only, as published by the Free Software Foundation.
#
# OpenOffice.org is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License version 3 for more details
# (a copy is included in the LICENSE file that accompanied this code).
#
# You should have received a copy of the GNU Lesser General Public License
# version 3 along with OpenOffice.org. If not, see
# <http://www.openoffice.org/license.html>
# for a copy of the LGPLv3 License.
#
#*************************************************************************
# define HELPLINKER_DLLIMPLEMENTATION (see @ inc/xmlhelp/helplinkerdllapi.h)
CDEFS += -DHELPLINKER_DLLIMPLEMENTATION
VISIBILITY_HIDDEN=TRUE
This diff is collapsed.
......@@ -140,6 +140,7 @@ APP5STDLIBS+=-lsocket
.ENDIF
.INCLUDE : target.mk
.IF "$(L10N_framework)"==""
ALLTAR : $(BIN)$/applicat.rdb
......@@ -151,4 +152,4 @@ $(BIN)$/applicat.rdb : makefile.mk $(UNOUCRRDB)
$(REGCOMP) -register -r applicat.rdb \
-c i18nsearch.uno$(DLLPOST) \
-c i18npool.uno$(DLLPOST)
.ENDIF
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment