Skip to content

setStyleNumberWrappedParagraphsAttribute("no-limit") not valid #141

@fschmid

Description

@fschmid

I do:

StyleGraphicPropertiesElement gsp =
(StyleGraphicPropertiesElement) OdfXMLFactory.newOdfElement(contentDom,
StyleGraphicPropertiesElement.ELEMENT_NAME);
gsp.setStyleNumberWrappedParagraphsAttribute("no-limit");

and get:
The method setStyleNumberWrappedParagraphsAttribute(Integer) in the type StyleGraphicPropertiesElement is not applicable for the arguments (String)

The odf docs says:
20.318style:number-wrapped-paragraphs
The style:number-wrapped-paragraphs attribute specifies the number of paragraphs that can wrap around a frame if the anchor position of a frame or drawing shape is a paragraph or a character, and the wrap mode specified by the style:wrap attribute is left, right, parallel, or dynamic.
This attribute is only recognized in frames or styles that have a style:wrap attribute attached with a value of left, right, parallel, or dynamic.
The defined values for the style:number-wrapped-paragraphs attribute are:
●no-limit: there is no limit on the number of paragraphs that may wrap around a frame.
●a value of type positiveInteger
The style:number-wrapped-paragraphs attribute is usable with the following element: style:graphic-properties 17.21.
The values of the style:number-wrapped-paragraphs attribute are no-limit or a value of type positiveInteger 18.2.

so how do I set "no-limit" ? Use 0?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions