https://bugs.documentfoundation.org/show_bug.cgi?id=149733

--- Comment #1 from Jambunathan K <kjambunat...@gmail.com> ---
# #+ODT_PREFERRED_OUTPUT_FORMAT: pdf

#+odt_prettify_xml: 

#+ATTR_ODT: :width 5 (inner-frame :style "FrameStyleAuto")
#+begin_textbox
This uses style *=FrameStyleAuto=* from *=content.xml=*. /*This  is
rotatable*/.
#+end_textbox

#+ATTR_ODT: :width 5 (inner-frame :style "FrameStyleCustom")
#+begin_textbox
This uses style *=FrameStyleCustom=* from *=styles.xml=*. /*This  is NOT
rotatable*/.
#+end_textbox

The =XML= definitions of *=FrameStyleCustom=* and *=FrameStyleAuto=*
are identical, and looks as below (save for the =style:style-name=)

#+begin_src nxml
<style:style style:name="FrameStyleAuto"
             style:family="graphic">
  <style:graphic-properties draw:wrap-influence-on-position="once-concurrent"
                            style:horizontal-pos="center"
                            style:horizontal-rel="paragraph-content"
                            style:vertical-pos="top"
                            style:vertical-rel="paragraph"
                            style:wrap="none"
                            text:anchor-type="char" />
</style:style>
#+end_src

My Question is

#+begin_quote
Above example suggests that LibreOffice chooses between a *=textbox=*
and *=a shape=* based *NOT ON /the XML definition/ of the style*, but
*on /the type/ ---/custom/ or /automatic/---of the style* ... This
observed behaviour is very quriky and suspicious ...
#+end_quote

Other issues:

- Other problems :: Why does ~=style:wrap="none"=~ not taking effect
  for the textbox above?

- Fill color of the style is blue :: Where does it come from?

  - The *=style:default-style=* for /graphics/ does not specify a color

  - While examining *=Tools -> Options -> LibreOffice -> Application
    Colors=*, none of the colors come closer to the fill color.

#+begin_src nxml
<style:default-style style:family="graphic">
 <style:graphic-properties draw:end-line-spacing-horizontal="0.283cm"
                           draw:end-line-spacing-vertical="0.283cm"
                           draw:shadow-offset-x="0.3cm"
                           draw:shadow-offset-y="0.3cm"
                           draw:start-line-spacing-horizontal="0.283cm"
                           draw:start-line-spacing-vertical="0.283cm"
                           style:flow-with-text="false" />
 <!-- style:paragraph-properties and style:text-properties are snipped -->
</style:default-style>
#+end_src

#+ATTR_ODT: :target "automatic_styles"
#+begin_src nxml
<style:style style:name="FrameStyleAuto"
             style:family="graphic">
  <style:graphic-properties draw:wrap-influence-on-position="once-concurrent"
                            style:horizontal-pos="center"
                            style:horizontal-rel="paragraph-content"
                            style:vertical-pos="top"
                            style:vertical-rel="paragraph"
                            style:wrap="none"
                            text:anchor-type="char" />
</style:style>
#+end_src

#+ATTR_ODT: :target "extra_styles"
#+begin_src nxml
<style:style style:name="FrameStyleAuto"
             style:family="graphic">
  <style:graphic-properties draw:wrap-influence-on-position="once-concurrent"
                            style:horizontal-pos="center"
                            style:horizontal-rel="paragraph-content"
                            style:vertical-pos="top"
                            style:vertical-rel="paragraph"
                            style:wrap="none"
                            text:anchor-type="char" />
</style:style>
#+end_src

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to