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
3a803946
Kaydet (Commit)
3a803946
authored
Eyl 09, 2009
tarafından
Mathias Bauer
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
merge commit to DEV300_m57
üst
572c44a1
4feb6e73
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
66 additions
and
18 deletions
+66
-18
SOFormulaParser.java
...der/java/com/sun/star/report/pentaho/SOFormulaParser.java
+2
-2
configuration.properties
...java/com/sun/star/report/pentaho/configuration.properties
+1
-0
FormatValueUtility.java
...ar/report/pentaho/layoutprocessor/FormatValueUtility.java
+35
-12
VariablesDeclarationLayoutController.java
...layoutprocessor/VariablesDeclarationLayoutController.java
+3
-1
DataStyleReadHandler.java
...star/report/pentaho/parser/data/DataStyleReadHandler.java
+1
-1
Accelerators.xcu
...lder/registry/data/org/openoffice/Office/Accelerators.xcu
+14
-0
makefile.mk
sdext/source/pdfimport/xpdfwrapper/makefile.mk
+4
-0
pnghelper.cxx
sdext/source/pdfimport/xpdfwrapper/pnghelper.cxx
+5
-1
makefile.mk
xpdf/makefile.mk
+1
-1
No files found.
reportbuilder/java/com/sun/star/report/pentaho/SOFormulaParser.java
Dosyayı görüntüle @
3a803946
...
...
@@ -155,7 +155,7 @@ public final class SOFormulaParser extends ComponentBase
;
// com.sun.star.sheet.XFormulaParser:
public
com
.
sun
.
star
.
sheet
.
FormulaToken
[]
parseFormula
(
String
aFormula
)
public
com
.
sun
.
star
.
sheet
.
FormulaToken
[]
parseFormula
(
String
aFormula
,
com
.
sun
.
star
.
table
.
CellAddress
aReferencePos
)
{
final
ArrayList
tokens
=
new
ArrayList
();
if
(
!
"="
.
equals
(
aFormula
)
)
...
...
@@ -239,7 +239,7 @@ public final class SOFormulaParser extends ComponentBase
return
(
FormulaToken
[])
tokens
.
toArray
(
new
FormulaToken
[
tokens
.
size
()]);
}
public
String
printFormula
(
com
.
sun
.
star
.
sheet
.
FormulaToken
[]
aTokens
)
public
String
printFormula
(
com
.
sun
.
star
.
sheet
.
FormulaToken
[]
aTokens
,
com
.
sun
.
star
.
table
.
CellAddress
aReferencePos
)
{
final
StringBuffer
ret
=
new
StringBuffer
();
for
(
int
i
=
0
;
i
<
aTokens
.
length
;
i
++)
...
...
reportbuilder/java/com/sun/star/report/pentaho/configuration.properties
Dosyayı görüntüle @
3a803946
...
...
@@ -140,6 +140,7 @@ com.sun.star.report.pentaho.output.namespace.oasis-data=urn:oasis:names:tc:opend
com.sun.star.report.pentaho.output.default.oasis-data
=
allow
com.sun.star.report.pentaho.output.tag.oasis-data.text
=
deny
com.sun.star.report.pentaho.output.tag.oasis-data.currency-symbol
=
deny
com.sun.star.report.pentaho.output.tag.oasis-data.embedded-text
=
deny
com.sun.star.report.pentaho.output.namespace.oasis-draw
=
urn:oasis:names:tc:opendocument:xmlns:drawing:1.0
com.sun.star.report.pentaho.output.default.oasis-draw
=
deny
...
...
reportbuilder/java/com/sun/star/report/pentaho/layoutprocessor/FormatValueUtility.java
Dosyayı görüntüle @
3a803946
...
...
@@ -32,6 +32,7 @@ package com.sun.star.report.pentaho.layoutprocessor;
import
java.text.SimpleDateFormat
;
import
java.util.Date
;
import
java.sql.Time
;
import
com.sun.star.report.pentaho.OfficeNamespaces
;
import
com.sun.star.report.OfficeToken
;
...
...
@@ -58,6 +59,7 @@ public class FormatValueUtility
public
static
final
String
VALUE_TYPE
=
"value-type"
;
private
static
SimpleDateFormat
dateFormat
;
private
static
SimpleDateFormat
timeFormat
;
private
FormatValueUtility
()
{
...
...
@@ -66,12 +68,24 @@ public class FormatValueUtility
public
static
String
applyValueForVariable
(
final
Object
value
,
final
AttributeMap
variableSection
)
{
String
ret
=
null
;
if
(
value
instanceof
Date
)
if
(
value
instanceof
Time
)
{
variableSection
.
setAttribute
(
OfficeNamespaces
.
OFFICE_NS
,
VALUE_TYPE
,
"time"
);
ret
=
formatTime
((
Time
)
value
);
variableSection
.
setAttribute
(
OfficeNamespaces
.
OFFICE_NS
,
"time-value"
,
ret
);
}
else
if
(
value
instanceof
java
.
sql
.
Date
)
{
variableSection
.
setAttribute
(
OfficeNamespaces
.
OFFICE_NS
,
VALUE_TYPE
,
"date"
);
ret
=
formatDate
((
Date
)
value
);
variableSection
.
setAttribute
(
OfficeNamespaces
.
OFFICE_NS
,
"date-value"
,
ret
);
}
else
if
(
value
instanceof
Date
)
{
variableSection
.
setAttribute
(
OfficeNamespaces
.
OFFICE_NS
,
VALUE_TYPE
,
"float"
);
ret
=
HSSFDateUtil
.
getExcelDate
((
Date
)
value
,
false
,
2
).
toString
();
variableSection
.
setAttribute
(
OfficeNamespaces
.
OFFICE_NS
,
"value"
,
ret
);
}
else
if
(
value
instanceof
Number
)
{
variableSection
.
setAttribute
(
OfficeNamespaces
.
OFFICE_NS
,
VALUE_TYPE
,
"float"
);
...
...
@@ -104,19 +118,20 @@ public class FormatValueUtility
public
static
void
applyValueForCell
(
final
Object
value
,
final
AttributeMap
variableSection
,
final
String
valueType
)
{
if
(
value
instanceof
Date
)
if
(
value
instanceof
Time
)
{
if
(
"date"
.
equals
(
valueType
)
)
{
variableSection
.
setAttribute
(
OfficeNamespaces
.
OFFICE_NS
,
"date-value"
,
formatDate
((
Date
)
value
));
}
else
{
variableSection
.
setAttribute
(
OfficeNamespaces
.
OFFICE_NS
,
"value"
,
String
.
valueOf
(
HSSFDateUtil
.
getExcelDate
((
Date
)
value
)));
}
variableSection
.
setAttribute
(
OfficeNamespaces
.
OFFICE_NS
,
"time-value"
,
formatTime
((
Time
)
value
));
}
else
if
(
value
instanceof
Number
)
else
if
(
value
instanceof
java
.
sql
.
Date
)
{
variableSection
.
setAttribute
(
OfficeNamespaces
.
OFFICE_NS
,
"date-value"
,
formatDate
((
Date
)
value
));
}
else
if
(
value
instanceof
Date
)
{
variableSection
.
setAttribute
(
OfficeNamespaces
.
OFFICE_NS
,
VALUE_TYPE
,
"float"
);
variableSection
.
setAttribute
(
OfficeNamespaces
.
OFFICE_NS
,
"value"
,
HSSFDateUtil
.
getExcelDate
((
Date
)
value
,
false
,
2
).
toString
());
}
else
if
(
value
instanceof
Number
)
{
variableSection
.
setAttribute
(
OfficeNamespaces
.
OFFICE_NS
,
"value"
,
String
.
valueOf
(
value
));
}
...
...
@@ -166,6 +181,14 @@ public class FormatValueUtility
}
return
dateFormat
.
format
(
date
);
}
private
static
synchronized
String
formatTime
(
final
Date
date
)
{
if
(
timeFormat
==
null
)
{
timeFormat
=
new
SimpleDateFormat
(
"'PT'HH'H'mm'M'ss'S'"
);
}
return
timeFormat
.
format
(
date
);
}
public
static
DataFlags
computeDataFlag
(
final
FormattedTextElement
element
,
final
FlowController
flowController
)
...
...
reportbuilder/java/com/sun/star/report/pentaho/layoutprocessor/VariablesDeclarationLayoutController.java
Dosyayı görüntüle @
3a803946
...
...
@@ -44,6 +44,7 @@ import org.jfree.report.flow.ReportTarget;
import
org.jfree.report.flow.layoutprocessor.AbstractLayoutController
;
import
org.jfree.report.flow.layoutprocessor.LayoutController
;
import
org.jfree.report.flow.layoutprocessor.LayoutControllerUtil
;
import
org.pentaho.reporting.libraries.formula.util.HSSFDateUtil
;
import
org.jfree.report.structure.Element
;
import
java.util.Date
;
import
java.text.SimpleDateFormat
;
...
...
@@ -150,13 +151,14 @@ public class VariablesDeclarationLayoutController
String
formula
=
FormatValueUtility
.
applyValueForVariable
(
value
,
variableSection
);
if
(
formula
==
null
)
formula
=
""
+
value
;
if
(
value
instanceof
Date
)
if
(
value
instanceof
java
.
sql
.
Date
)
{
final
Date
date
=
(
Date
)
value
;
final
SimpleDateFormat
dateFormat
=
new
SimpleDateFormat
(
"yyyy;MM;dd"
);
formula
=
"Date("
+
dateFormat
.
format
(
date
)
+
")"
;
}
variableSection
.
setAttribute
(
OfficeNamespaces
.
TEXT_NS
,
"formula"
,
"ooow:"
+
formula
);
return
variableSection
;
}
...
...
reportbuilder/java/com/sun/star/report/pentaho/parser/data/DataStyleReadHandler.java
Dosyayı görüntüle @
3a803946
...
...
@@ -70,7 +70,7 @@ public class DataStyleReadHandler extends ElementReadHandler
{
if
(
OfficeNamespaces
.
DATASTYLE_NS
.
equals
(
uri
)
||
OfficeNamespaces
.
STYLE_NS
.
equals
(
uri
))
{
final
DataStyleReadHandler
xrh
=
new
DataStyleReadHandler
(
"text"
.
equals
(
tagName
)
||
"currency-symbol"
.
equals
(
tagName
));
final
DataStyleReadHandler
xrh
=
new
DataStyleReadHandler
(
"text"
.
equals
(
tagName
)
||
"currency-symbol"
.
equals
(
tagName
)
||
"embedded-text"
.
equals
(
tagName
)
);
children
.
add
(
xrh
);
return
xrh
;
}
...
...
reportbuilder/registry/data/org/openoffice/Office/Accelerators.xcu
Dosyayı görüntüle @
3a803946
...
...
@@ -132,6 +132,20 @@
</prop>
</node>
<node
oor:name=
"SUBTRACT"
oor:op=
"replace"
>
<prop
oor:name=
"Command"
>
<value
xml:lang=
"en-US"
>
.uno:CollapseSection
</value>
<value
xml:lang=
"x-no-translate"
>
I10N SHORTCUTS - NO TRANSLATE
</value>
</prop>
</node>
<node
oor:name=
"ADD"
oor:op=
"replace"
>
<prop
oor:name=
"Command"
>
<value
xml:lang=
"en-US"
>
.uno:ExpandSection
</value>
<value
xml:lang=
"x-no-translate"
>
I10N SHORTCUTS - NO TRANSLATE
</value>
</prop>
</node>
</node>
</node>
</node>
...
...
sdext/source/pdfimport/xpdfwrapper/makefile.mk
Dosyayı görüntüle @
3a803946
...
...
@@ -41,6 +41,10 @@ EXTERNAL_WARNINGS_NOT_ERRORS := TRUE
.INCLUDE
:
settings.mk
.IF
"$(SYSTEM_ZLIB)"
==
"YES"
CFLAGS
+=
-DSYSTEM_ZLIB
.ENDIF
.IF
"$(ENABLE_PDFIMPORT)"
==
"NO"
@all
:
@echo
"PDF Import extension disabled."
...
...
sdext/source/pdfimport/xpdfwrapper/pnghelper.cxx
Dosyayı görüntüle @
3a803946
...
...
@@ -30,7 +30,11 @@
#include "pnghelper.hxx"
#include "zlib/zlib.h"
#ifdef SYSTEM_ZLIB
#include "zlib.h"
#else
#include <zlib/zlib.h>
#endif
using
namespace
pdfi
;
...
...
xpdf/makefile.mk
Dosyayı görüntüle @
3a803946
...
...
@@ -91,7 +91,7 @@ CONFIGURE_ACTION=./configure --without-x --enable-multithreaded --enable-excepti
BUILD_ACTION
=
$(GNUMAKE)
-j
$(EXTMAXPROCESS)
.ELSE
CONFIGURE_ACTION
=
BUILD_ACTION
=
cmd.exe /c ms_make.bat
BUILD_ACTION
=
cmd.exe /
d /
c ms_make.bat
.ENDIF
.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