[Bug 62639] DataFormatter can never set its provided locale

2018-08-20 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=62639

--- Comment #2 from Patrice ROCHEMONT  ---
Why not enable to use the exact locale used when creating the cell style in the
document ?

see https://stackoverflow.com/a/51939623/10252155

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org



[GitHub] poi pull request #122: Set table and table cell widths to percentage, twips,...

2018-08-20 Thread asfgit
Github user asfgit closed the pull request at:

https://github.com/apache/poi/pull/122


---

-
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org



RE: Upgrade OOXML schema to 3rd edition?

2018-08-20 Thread Murphy, Mark
If we can shift to 3rd edition without major rewrites, then that is fine. I 
looked at bug #56205, and it appears that 3rd edition should be ok. Most of the 
changes are in Word anyway, and that is not really a stable API yet.

-Original Message-
From: Alain FAGOT BÉAREZ [mailto:abea...@for-scala.it] 
Sent: Friday, August 17, 2018 8:57 AM
To: POI Developers List 
Subject: RE: Upgrade OOXML schema to 3rd edition?

As far as I understand, this will only generate the CT* and ST* classes for the 
complete OOXML jar. But the ooxml-lite will not be affected until we write 
tests that use the new classes.

I can only see one benefit for those who like Greg depend on some features not 
yet wrapped in org.apache.poi API: where they have access to the CT* object 
from the higher level API, they can start with low level tweaking. 

I still miss the down side of the upgrade. 

Best regards, 
Alain 


⁣Gesendet mit BlueMail ​


 Originale Nachricht 
Von: "Murphy, Mark" 
Gesendet: Fri Aug 17 09:13:33 GMT-03:00 2018
An: 'POI Developers List' 
Betreff: RE: Upgrade OOXML schema to 3rd edition?

This is fine for reading documents which conform to the newer standards, but we 
should always make sure that on write we conform to the least common standard 
so that older versions of Office can read them. That is if we write in 2010 
format, 2003 application will ignore bits that they don't recognize such as the 
string percent value being discussed in the user list.

-Original Message-
From: Andreas Beeker [mailto:kiwiwi...@apache.org] 
Sent: Thursday, August 16, 2018 6:04 PM
To: POI Developers List 
Subject: Upgrade OOXML schema to 3rd edition?

Hi,

as we have a discussion on the user list - how about upgrading to OOXML v3? 
(see bug #56205)

Andi

PS: I'm still busy with removing OPOIFS ... but I think I could move this one 
in ...




Re: [VOTE] Apache XMLBeans 3.0.1 release (RC1)

2018-08-20 Thread pj.fanning
I've updated the staged artifacts for xmlbeans 3.0.1.

https://repository.apache.org/content/repositories/staging/org/apache/xmlbeans/xmlbeans/3.0.1/
and https://dist.apache.org/repos/dist/dev/poi/xmlbeans/  



--
Sent from: http://apache-poi.1045710.n5.nabble.com/POI-Dev-f2312866.html

-
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org



[Bug 62639] DataFormatter can never set its provided locale

2018-08-20 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=62639

PJ Fanning  changed:

   What|Removed |Added

 Resolution|INVALID |FIXED

--- Comment #1 from PJ Fanning  ---
Resolved in trunk and will appear in 4.0.0 release.

https://github.com/apache/poi/commit/a611b66fd195952c6262cb5eb49da1a740cf2aaa

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org



[Bug 62639] DataFormatter can never set its provided locale

2018-08-20 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=62639

Patrice ROCHEMONT  changed:

   What|Removed |Added

 Resolution|--- |INVALID
 Status|NEW |RESOLVED

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org



[Bug 62639] DataFormatter can never set its provided locale

2018-08-20 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=62639

Patrice ROCHEMONT  changed:

   What|Removed |Added

 OS||All
   Keywords||APIBug

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org



[Bug 62639] New: DataFormatter can never set its provided locale

2018-08-20 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=62639

Bug ID: 62639
   Summary: DataFormatter can never set its provided locale
   Product: POI
   Version: 3.17-FINAL
  Hardware: PC
Status: NEW
  Severity: major
  Priority: P2
 Component: POI Overall
  Assignee: dev@poi.apache.org
  Reporter: patrice.rochem...@gmail.com
  Target Milestone: ---

Hi, 
I use POI 3.17 version. 
And i found that the formated date cell for instance allways follow the current
locale. 

Analysis : 

With "this.localeIsAdapting = true;" in the constructor with 3 arguments 
we can never set localsAdapting to false in the Construstor with 2
arguments. 

it will always be true for field localIsAdapting. 

in  "this(locale, false, emulateCSV);"


//snipppet org.apache.poi.ss.usermodel.DataFormatter -

/**
 * Creates a formatter using the given locale.
 *
 * @param  emulateCSV whether to emulate CSV output.
 */
public DataFormatter(Locale locale, boolean emulateCSV) {
this(locale, false, emulateCSV);
}

/**
 * Creates a formatter using the given locale.
 * @param  localeIsAdapting (true only if locale is not user-specified)
 * @param  emulateCSV whether to emulate CSV output.
 */
private DataFormatter(Locale locale, boolean localeIsAdapting, boolean
emulateCSV) {
this.localeIsAdapting = true;
localeChangedObservable.addObserver(this);
// localeIsAdapting must be true prior to this first
checkForLocaleChange call.
localeChangedObservable.checkForLocaleChange(locale);
// set localeIsAdapting so subsequent checks perform correctly
// (whether a specific locale was provided to this DataFormatter or
DataFormatter should
// adapt to the current user locale as the locale changes)
this.localeIsAdapting = localeIsAdapting;
this.emulateCSV = emulateCSV;
}


Best Regards,
Rochemont Patrice.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org