Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
2e2b262e
Kaydet (Commit)
2e2b262e
authored
Eyl 18, 2001
tarafından
Bertram Nolte
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Added new Java example.
üst
ac50b4f0
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
143 additions
and
0 deletions
+143
-0
Makefile
odk/examples/java/ToDo/Makefile
+121
-0
ToDo.java
odk/examples/java/ToDo/ToDo.java
+0
-0
XToDo.idl
odk/examples/java/ToDo/XToDo.idl
+22
-0
No files found.
odk/examples/java/ToDo/Makefile
0 → 100644
Dosyayı görüntüle @
2e2b262e
# Builds the java demo component.
PRJ
=
..
$(PS)
..
$(PS)
..
SETTINGS
=
../../../settings
# Include settings makefile depending on platform/compiler
ifeq
"$(MAKECMDGOALS)"
"win_microcxx"
-include
$(SETTINGS)/win_microcxx_settings.mk
ifndef
PS
$(error
Platform/Compiler
settings
file
not
found)
endif
SHAREDLIB_OUT
=
$(OUT_BIN)
endif
ifeq
"$(MAKECMDGOALS)"
"solaris_workshopcxx"
-include
$(SETTINGS)/solaris_workshopcxx_settings.mk
ifndef
PS
$(error
Platform/Compiler
settings
file
not
found)
endif
SHAREDLIB_OUT
=
$(OUT_LIB)
endif
ifeq
"$(MAKECMDGOALS)"
"linux_gcc"
-include
$(SETTINGS)/linux_gcc_settings.mk
ifndef
PS
$(error
Platform/Compiler
settings
file
not
found)
endif
SHAREDLIB_OUT
=
$(OUT_LIB)
endif
# Define non-platform/compiler specific settings
include
$(SETTINGS)/dk.mk
include
$(SETTINGS)/std.mk
# Define non-platform/compiler specific settings
# Targets
.PHONY
:
ALL
ALL
:
@
echo
-------------------------------------------------------------
@
echo
You must supply a target where TARGET is one of the following:
@
echo
@
echo
win_microcxx : Windows using Microsoft C++ compiler/linker
@
echo
solaris_workshopcxx : Solaris using Sun Workshop C++ compiler
@
echo
linux_gcc : Linux using gcc
@
echo
-------------------------------------------------------------
REGISTERFLAGFILE
=
$(OUT_MISC)$(PS)
register_components_todo_is_ok.flag
OUT_COMPONENT
=
$(OUT_CLASS)$(PS)
todo
COMPONENT_RDB
=
$(OUT_BIN)$(PS)
ToDo.rdb
COMPONENT_JAR
=
$(OUT_CLASS)$(PS)
ToDo.jar
COMPONENT_MANIFESTFILE
=
Manifest
IDLFILES
=
XToDo.idl
# normally the idl file should be stored in a directory tree fitting the module structure,
# for the example we know the module structure
PACKAGE
=
org
$(PS)
OpenOffice
JAVAFILES
=
ToDo.java
GENJAVAFILES
=
$
(
patsubst %.idl,
$(OUT_MISC)$(PS)$(PACKAGE)$(PS)
%.java,
$(IDLFILES)
)
GENURDFILES
=
$
(
patsubst %.idl,
$(OUT_MISC)$(PS)
%.urd,
$(IDLFILES)
)
CLASSFILES
=
$
(
patsubst %.java,
$(OUT_COMPONENT)$(PS)
%.class,
$(JAVAFILES)
)
CLASSFILES
+=
$
(
patsubst %.java,
$(OUT_COMPONENT)$(PS)$(PACKAGE)$(PS)
%.class,
$(GENJAVAFILES)
)
DK_CLASSPATH
=
$
(
subst
$(EMPTYSTRING)
$(EMPTYSTRING)
,,
\
$(CLASSES_DIR)$(PS)
jurt.jar
\
$(PATH_SEPARATOR)$(CLASSES_DIR)$(PS)
unoil.jar
\
$(PATH_SEPARATOR)$(CLASSES_DIR)$(PS)
ridl.jar
\
$(PATH_SEPARATOR)$(CLASSES_DIR)$(PS)
sandbox.jar
\
$(PATH_SEPARATOR)$(CLASSES_DIR)$(PS)
java_uno.jar
\
$(PATH_SEPARATOR)$(CLASSES_DIR)$(PS)
juh.jar
\
$(PATH_SEPARATOR)$(CLASSES_DIR)$(PS)
jut.jar
\
$(PATH_SEPARATOR)$(OUT_COMPONENT)
\
)
OFFICE_FILEURL
=
$
(
subst
\,
/,
$(OFFICE_PROGRAM_PATH)
)
OFFICE_CLASSPATH
=
$
(
subst
$(CLASSES_DIR)
,
$(OFFICE_PROGRAM_PATH)$(PS)
classes,
$(DK_CLASSPATH)
)
win_microcxx
:
$(COMPONENT_JAR) $(REGISTERFLAGFILE)
solaris_workshopcxx
:
$(COMPONENT_JAR) $(REGISTERFLAGFILE)
linux_gcc
:
$(COMPONENT_JAR) $(REGISTERFLAGFILE)
include
$(SETTINGS)/stdtarget.mk
$(OUT_COMPONENT)
:
$(OUT) $(OUT_CLASS)
$(MKDIR)
$(OUT_COMPONENT)
$(GENJAVAFILES)
:
$(IDLFILES)
$(BIN_DIR)$(PS)
idlc
-I
.
-I
$(IDL_DIR)
-O
$(OUT_MISC)
$(IDLFILES)
$(BIN_DIR)$(PS)
regmerge
$(COMPONENT_RDB)
/UCR
$(GENURDFILES)
$(BIN_DIR)$(PS)
regmerge
$(COMPONENT_RDB)
/
$(BIN_DIR)$(PS)$(DKREGISTRYNAME)
$(BIN_DIR)$(PS)
javamaker
-BUCR
-Torg
.OpenOffice.XToDo
-O
$(OUT_MISC)
$(COMPONENT_RDB)
$(CLASSFILES)
:
$(OUT_COMPONENT) $(GENJAVAFILES) $(JAVAFILES)
javac
-classpath
$(DK_CLASSPATH)
-d
$(OUT_COMPONENT)
$(GENJAVAFILES)
$(JAVAFILES)
$(COMPONENT_JAR)
:
$(CLASSFILES)
jar cvfm
$(COMPONENT_JAR)
Manifest
-C
$(OUT_COMPONENT)
.
$(REGISTERFLAGFILE)
:
$(REGISTERFLAGFILE)
ifneq
"$(OFFICE_PROGRAM_PATH)"
""
$(BIN_DIR)$(PS)regmerge
$(OFFICE_PROGRAM_PATH)$(PS)applicat.rdb
/UCR
$(GENURDFILES)
$(COPY)
$(COMPONENT_JAR)
$(OFFICE_PROGRAM_PATH)$(PS)classes
java
-classpath
$(OFFICE_CLASSPATH)
com.sun.star.tools.uno.RegComp
"$(URLPREFIX)$(OFFICE_FILEURL)/applicat.rdb"
register
"$(URLPREFIX)$(OFFICE_FILEURL)/classes/ToDo.jar"
com.sun.star.loader.Java2
@echo
bla
>
$(REGISTERFLAGFILE)
else
@echo
--------------------------------------------------------------------------------
@echo
If
you
want
to
install
your
component
automatically,
please
set
an
@echo
OFFICE_PROGRAM_PATH
environment
variable
to
a
valid
office
installation.
@echo
--------------------------------------------------------------------------------
endif
odk/examples/java/ToDo/ToDo.java
0 → 100644
Dosyayı görüntüle @
2e2b262e
This diff is collapsed.
Click to expand it.
odk/examples/java/ToDo/XToDo.idl
0 → 100644
Dosyayı görüntüle @
2e2b262e
//
Guard
against
multiple
includes
#
ifndef
_ORG_OPENOFFICE_IDL_
#
define
_ORG_OPENOFFICE_IDL__
///
Template
for
OpenOffice
ToDo
add
-
in
component
idl
file
.
/**
Provides
lifetime
control
by
reference
counting
and
the
possibility
of
querying
for
other
interfaces
of
the
same
logical
object
.
*/
#
include
<
com
/
sun
/
star
/
uno
/
XInterface
.
idl>
module
org
{
module
OpenOffice
{
interface
XToDo
:
com
::
sun
::
star
::
uno
::
XInterface
{
void
recalc
(
[
in
]
any
aInstance
)
;
}
;
}
;
}
;
#
endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment