Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New cell pseudo-type text #15

Closed
jferard opened this issue Nov 13, 2016 · 2 comments
Closed

New cell pseudo-type text #15

jferard opened this issue Nov 13, 2016 · 2 comments
Milestone

Comments

@jferard
Copy link
Owner

jferard commented Nov 13, 2016

Some cells may contain complex text, similar to the footer/header text. With new cell pseudo-type, it would be easy to do that.
String version:
TableCell.setStringValue("string")
Outputs a very short XML:

<table:table-cell office:value-type="string" office:string-value="string"/>

Text version (see syntax for builder here #14):
TableCell.setTextValue(TextValue.builder().<some methods to build the text value>.build())
Outputs a longer XML:

<table:table-cell office:value-type="string" calcext:value-type="string">
    <text:p>
        <text:span text:style-name="...">te</text:span><text:span text:style-name="...">xt</text:span>
    </text:p>
</table:table-cell>
@jferard jferard added this to the 0.2.0 milestone Nov 13, 2016
@jferard jferard mentioned this issue Nov 18, 2016
@jferard
Copy link
Owner Author

jferard commented Nov 19, 2016

There is in 0_1_2 branch a new class Text. It should work with a little glue...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant