The cause for this bug lays in following method 
(xmloff/source/draw/ximpstyl.cxx):
void SdXMLMasterPageContext::EndElement()

It gets called when the XML element "style:master-page" in styles.xml is
closed. That means that the master page is completely parsed. In the
EndElement method
((SdXMLStylesContext*)pContext)->SetMasterPageStyles(*this); is used to
set all default styles for the master page. The problem is that all user
modifications are already applied and are overwritten with this call.

A near idea is to set the default styles when creating the master page
and than apply all customizations. So I moved the SetMasterPageStyles
call to the constructor of the SdXMLMasterPageContext class (entering of
the XML element "style:master-page"). This solves the problem with the
size of the outline object, but it breaks the font. The size of the font
used in the master page are not set correctly.

My knowledge about libreoffice is too limited, to distinguish if I fall
from one bug into another one, or if this behaviour is reasonable.

Any hints/feedback how to handle this bug is welcome ;)

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to libreoffice in Ubuntu.
https://bugs.launchpad.net/bugs/641175

Title:
  [Upstream] Impress disregards Master Slide settings saving to .odp

Status in LibreOffice Productivity Suite:
  In Progress
Status in “libreoffice” package in Ubuntu:
  Triaged
Status in “openoffice.org” package in Ubuntu:
  Won't Fix

Bug description:
  Binary package hint: openoffice.org
  Binary package hint: libreoffice

  1) 
  LibreOffice:
  lsb_release -rd
  Description:        Ubuntu Natty (development branch)
  Release:        11.04

  OOo: 
  Lucid

  2) 
  LibreOffice:
  apt-cache policy libreoffice-impress
  libreoffice-impress:
    Installed: 1:3.3.1-1ubuntu4
    Candidate: 1:3.3.1-1ubuntu4
    Version table:
   *** 1:3.3.1-1ubuntu4 0
          500 http://us.archive.ubuntu.com/ubuntu/ natty/main i386 Packages
          100 /var/lib/dpkg/status

  OOo:
  OO 3.2.0 Impress (1:3.2.0-7ubuntu4.1)

  3) 
  For LibreOffice perform at the Terminal:

  loimpress -nologo

  click Next button -> Next Button -> Create Button -> View -> Master -> Slide
  Master -> Format -> Page... -> In Page Setup window (notice Orientation has
  highlighted Landscape radio button) Width 5.51" -> Height 2.68" -> Ok button
  -> In Master View window Close Master View -> Insert -> Slide -> File -> Save
  As... -> Name example -> File Type ODF Presentation odp -> Save button -> File
  -> Exit -> Perform at the Terminal:

  loimpress -nologo example.odp

  Insert -> Slide 
  The new page has the same configuration as the Master Slide.

  For OOo what is expected to happen is when following the steps:
  1. Open a new presentation.
  2. View Master Slide
  3. Change Page Size to Custom: 14,80 cm x 10,00 cm landscape.
  4. The lower text box now has a size that fits inside the page. (e.g. 14,00 x 
6,80 cm)
  5. Exit Master Slide View.
  6. Create a new page. The new page has a box size that fits the page. (the 
same as above)
  7. Save and Close the file.
  8. Reopen the file.
  9. Create a new page. The new page has the same configuration as the Master 
Slide.

  4) What happens instead for OOo & LibreOffice is now the box extends
  downwards vertically below the Master Slide settings.

  WORKAROUND: Reset the master page box size every time after reopening
  the file.

To manage notifications about this bug go to:
https://bugs.launchpad.net/df-libreoffice/+bug/641175/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to