Package: openoffice.org-report-builder Version: 1:1.2.1+OOo3.2.1-9 Severity: important
Edit a report. Menu Format/Page Change left margin and top margin, e.g. to 1cm. Click "OK" Menu Format/Page Margins are back to previous value. Expected behaviour: Margin stays at set value. Note that the report is not set as dirty (the "save" button stays greyed out if it was before). Contrast with: Edit a report. Menu Format/Page Change bottom margin and/or top margin, e.g. to 1cm., but don't touch left margin, nor right margin. Click "OK" Menu Format/Page Margins are as set (e.g. 1cm). Report is set as dirty (the "save" button is active). Upstream bugtracker says it works (cannot reproduce bug) with the Ubuntu package. See http://www.openoffice.org/issues/show_bug.cgi?id=116187 I saw a difference in how left/right and top/bottom margins are treated in the report-builder code, so I wanted to test out the attached patch, but then openoffice.org FTBFS for me on an issue most probably unrelated to that patch (dpkg-gencontrol errors out on a syntax error in Suggests field: ). Changing the margins directly manually in the .odb file also works. -- Package-specific info: Identifier: com.sun.reportdesigner Version: 1.2.1 URL: vnd.sun.star.expand:$UNO_SHARED_PACKAGES_CACHE/uno_packages/K1Jfsa_/report-builder.oxt is registered: yes Media-Type: application/vnd.sun.star.package-bundle Description: Create with the Report Builder stylish, smart-looking database reports. The flexible report editor can define group and page headers as well as group and page footers and even calculation fields are available to accomplish complex database reports. bundled Packages: { URL: vnd.sun.star.expand:$UNO_SHARED_PACKAGES_CACHE/uno_packages/K1Jfsa_/report-builder.oxt/registry/schema/org/openoffice/Office/UI/ReportCommands.xcs is registered: yes Media-Type: application/vnd.sun.star.configuration-schema Description: URL: vnd.sun.star.expand:$UNO_SHARED_PACKAGES_CACHE/uno_packages/K1Jfsa_/report-builder.oxt/registry/schema/org/openoffice/Office/UI/DbReportWindowState.xcs is registered: yes Media-Type: application/vnd.sun.star.configuration-schema Description: URL: vnd.sun.star.expand:$UNO_SHARED_PACKAGES_CACHE/uno_packages/K1Jfsa_/report-builder.oxt/registry/schema/org/openoffice/Office/ReportDesign.xcs is registered: yes Media-Type: application/vnd.sun.star.configuration-schema Description: URL: vnd.sun.star.expand:$UNO_SHARED_PACKAGES_CACHE/uno_packages/K1Jfsa_/report-builder.oxt/sun-report-builder.jar is registered: yes Media-Type: application/vnd.sun.star.uno-component;type=Java Description: URL: vnd.sun.star.expand:$UNO_SHARED_PACKAGES_CACHE/uno_packages/K1Jfsa_/report-builder.oxt/registry/data/org/openoffice/Setup.xcu is registered: yes Media-Type: application/vnd.sun.star.configuration-data Description: URL: vnd.sun.star.expand:$UNO_SHARED_PACKAGES_CACHE/uno_packages/K1Jfsa_/report-builder.oxt/registry/data/org/openoffice/Office/Accelerators.xcu is registered: yes Media-Type: application/vnd.sun.star.configuration-data Description: URL: vnd.sun.star.expand:$UNO_SHARED_PACKAGES_CACHE/uno_packages/K1Jfsa_/report-builder.oxt/registry/data/org/openoffice/Office/Embedding.xcu is registered: yes Media-Type: application/vnd.sun.star.configuration-data Description: URL: vnd.sun.star.expand:$UNO_SHARED_PACKAGES_CACHE/uno_packages/K1Jfsa_/report-builder.oxt/registry/data/org/openoffice/Office/DataAccess.xcu is registered: yes Media-Type: application/vnd.sun.star.configuration-data Description: URL: vnd.sun.star.expand:$UNO_SHARED_PACKAGES_CACHE/uno_packages/K1Jfsa_/report-builder.oxt/registry/data/org/openoffice/Office/Paths.xcu is registered: yes Media-Type: application/vnd.sun.star.configuration-data Description: URL: vnd.sun.star.expand:$UNO_SHARED_PACKAGES_CACHE/uno_packages/K1Jfsa_/report-builder.oxt/registry/data/org/openoffice/Office/ReportDesign.xcu is registered: yes Media-Type: application/vnd.sun.star.configuration-data Description: URL: vnd.sun.star.expand:$UNO_SHARED_PACKAGES_CACHE/uno_packages/K1Jfsa_/report-builder.oxt/registry/data/org/openoffice/Office/ExtendedColorScheme.xcu is registered: yes Media-Type: application/vnd.sun.star.configuration-data Description: URL: vnd.sun.star.expand:$UNO_SHARED_PACKAGES_CACHE/uno_packages/K1Jfsa_/report-builder.oxt/registry/data/org/openoffice/Office/UI/Controller.xcu is registered: yes Media-Type: application/vnd.sun.star.configuration-data Description: URL: vnd.sun.star.expand:$UNO_SHARED_PACKAGES_CACHE/uno_packages/K1Jfsa_/report-builder.oxt/registry/data/org/openoffice/Office/UI/DbReportWindowState.xcu is registered: yes Media-Type: application/vnd.sun.star.configuration-data Description: URL: vnd.sun.star.expand:$UNO_SHARED_PACKAGES_CACHE/uno_packages/K1Jfsa_/report-builder.oxt/registry/data/org/openoffice/Office/UI/ReportCommands.xcu is registered: yes Media-Type: application/vnd.sun.star.configuration-data Description: URL: vnd.sun.star.expand:$UNO_SHARED_PACKAGES_CACHE/uno_packages/K1Jfsa_/report-builder.oxt/registry/data/org/openoffice/TypeDetection/Types.xcu is registered: yes Media-Type: application/vnd.sun.star.configuration-data Description: URL: vnd.sun.star.expand:$UNO_SHARED_PACKAGES_CACHE/uno_packages/K1Jfsa_/report-builder.oxt/registry/data/org/openoffice/TypeDetection/Filter.xcu is registered: yes Media-Type: application/vnd.sun.star.configuration-data Description: } -- System Information: Debian Release: squeeze/sid APT prefers testing APT policy: (600, 'testing'), (600, 'stable'), (500, 'stable'), (300, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 2.6.32-5-xen-amd64 (SMP w/4 CPU cores) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages openoffice.org-report-builder depends on: ii default-jre [java5-runtime 1:1.6-40 Standard Java or Java compatible R ii gcj-4.4-jre [java5-runtime 4.4.5-2 Java runtime environment using GIJ ii gcj-jre [java5-runtime] 4:4.4.5-1 Java runtime environment using GIJ ii libbase-java-openoffice.or 1.0.0-OOo31-2 A general purpose base service lib ii libcommons-logging-java 1.1.1-8 commmon wrapper interface for seve ii libflute-java-openoffice.o 1.3.0-OOo31-3 Java CSS parser using SAC (OOo 3.1 ii libfonts-java-openoffice.o 1.0.0-OOo31-2 Java fonts layouting library (OOo ii libformula-java-openoffice 0.2.0-OOo31-2 Excel(tm) style formula expression ii liblayout-java-openoffice. 0.2.9-OOo31-3 Java layouting framework (OOo 3.1 ii libloader-java-openoffice. 1.0.0-OOo31-2 Java general purpose resource load ii libpentaho-reporting-flow- 0.9.2-OOo31-3 report library for java (OOo 3.1 b ii librepository-java-openoff 1.0.0-OOo31-2 abstraction library for accessing ii libsac-java 1.3-3 Simple API for CSS Java library ii libserializer-java-openoff 1.0.0-OOo31-2 igeneral serializaton framework ( ii libxml-java-openoffice.org 1.0.0-OOo31-2 namespace aware SAX-Parser utility ii openjdk-6-jre [java5-runti 6b18-1.8.3-2 OpenJDK Java runtime, using Hotspo ii openoffice.org-common 1:3.2.1-9 office productivity suite -- arch- ii openoffice.org-core 1:3.2.1-9 office productivity suite -- arch- ii openoffice.org-java-common 1:3.2.1-9 office productivity suite -- arch- ii openoffice.org-report-buil 1:3.2.1-9 OpenOffice.org extension for build openoffice.org-report-builder recommends no packages. openoffice.org-report-builder suggests no packages. Versions of packages openoffice.org-base depends on: ii default-jre [java5-run 1:1.6-40 Standard Java or Java compatible R ii gcj-4.4-jre [java5-run 4.4.5-2 Java runtime environment using GIJ ii gcj-jre [java5-runtime 4:4.4.5-1 Java runtime environment using GIJ ii libc6 2.11.2-6+squeeze1 Embedded GNU C Library: Shared lib ii libgcc1 1:4.4.5-4 GCC support library ii libhsqldb-java 1.8.0.10-9 Java SQL database engine ii libstdc++6 4.4.5-4 The GNU Standard C++ Library v3 ii openjdk-6-jre [java5-r 6b18-1.8.3-2 OpenJDK Java runtime, using Hotspo ii openoffice.org-base-co 1:3.2.1-9 office productivity suite -- share ii openoffice.org-core 1:3.2.1-9 office productivity suite -- arch- ii openoffice.org-java-co 1:3.2.1-9 office productivity suite -- arch- ii ure 1.6.1+OOo3.2.1-7 OpenOffice.org UNO runtime environ -- debconf information: openoffice.org/running: shared/openofficeorg-running:
--- reportdesign/source/core/api/ReportDefinition.cxx 2010-05-26 20:28:22.000000000 +0200 +++ reportdesign/source/core/api/ReportDefinition.cxx 2010-12-20 18:17:52.000000000 +0100 @@ -389,7 +389,7 @@ registerPropertyNoMember(PROPERTY_ISLANDSCAPE, ++i,nBound, ::getBooleanCppuType() ,&bFalse); registerPropertyNoMember(MAP_CHAR_LEN(SC_UNO_PAGE_LEFTBORDER), ++i,nBound, ::getCppuType((const table::BorderLine*)0) ,&eBorderLine); registerPropertyNoMember(MAP_CHAR_LEN(SC_UNO_PAGE_LEFTBRDDIST), ++i,nBound, ::getCppuType((const sal_Int32*)0) ,&nZero); - registerPropertyNoMember(PROPERTY_LEFTMARGIN, ++i,beans::PropertyAttribute::BOUND, ::getCppuType((const sal_Int32*)0) ,&nMargin); + registerPropertyNoMember(PROPERTY_LEFTMARGIN, ++i,nBound,::getCppuType((const sal_Int32*)0) ,&nMargin); //registerPropertyNoMember(MAP_CHAR_LEN(SC_UNO_PAGE_LEFTFTRCONT), ++i,nBound,::getCppuType((const uno::Reference< sheet::XHeaderFooterContent >*)0) ,NULL); //registerPropertyNoMember(MAP_CHAR_LEN(SC_UNO_PAGE_LEFTHDRCONT), ++i,nBound,::getCppuType((const uno::Reference< sheet::XHeaderFooterContent >*)0) ,NULL); registerPropertyNoMember(PROPERTY_NUMBERINGTYPE, ++i,nBound,::getCppuType((const sal_Int16*)0) ,&nNummeringType); @@ -399,7 +399,7 @@ registerPropertyNoMember(MAP_CHAR_LEN(SC_UNO_PAGE_PAPERTRAY), ++i,nBound,::getCppuType((const ::rtl::OUString*)0) ,&sPaperTray); registerPropertyNoMember(MAP_CHAR_LEN(SC_UNO_PAGE_RIGHTBORDER), ++i,nBound,::getCppuType((const table::BorderLine*)0) ,&eBorderLine); registerPropertyNoMember(MAP_CHAR_LEN(SC_UNO_PAGE_RIGHTBRDDIST),++i,nBound,::getCppuType((const sal_Int32*)0) ,&nZero); - registerPropertyNoMember(PROPERTY_RIGHTMARGIN, ++i,beans::PropertyAttribute::BOUND,::getCppuType((const sal_Int32*)0) ,&nMargin); + registerPropertyNoMember(PROPERTY_RIGHTMARGIN, ++i,nBound,::getCppuType((const sal_Int32*)0) ,&nMargin); //registerPropertyNoMember(MAP_CHAR_LEN(SC_UNO_PAGE_RIGHTFTRCON), ++i,nBound,::getCppuType((const uno::Reference< sheet::XHeaderFooterContent >*)0) ,NULL); //registerPropertyNoMember(MAP_CHAR_LEN(SC_UNO_PAGE_RIGHTHDRCON), ++i,nBound,::getCppuType((const uno::Reference< sheet::XHeaderFooterContent >*)0) ,NULL); registerPropertyNoMember(MAP_CHAR_LEN(SC_UNO_PAGE_SCALETOPAG), ++i,nBound,::getCppuType((const sal_Int16*)0) ,&n16Zero);
Index: openoffice.org-3.2.1/ooo-build-3-2-1-4/patches/dev300/report-builder-margins.diff =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 +++ openoffice.org-3.2.1/ooo-build-3-2-1-4/patches/dev300/report-builder-margins.diff 2010-12-20 19:00:53.000000000 +0100 @@ -0,0 +1,20 @@ +--- reportdesign/source/core/api/ReportDefinition.cxx 2010-05-26 20:28:22.000000000 +0200 ++++ reportdesign/source/core/api/ReportDefinition.cxx 2010-12-20 18:17:52.000000000 +0100 +@@ -389,7 +389,7 @@ + registerPropertyNoMember(PROPERTY_ISLANDSCAPE, ++i,nBound, ::getBooleanCppuType() ,&bFalse); + registerPropertyNoMember(MAP_CHAR_LEN(SC_UNO_PAGE_LEFTBORDER), ++i,nBound, ::getCppuType((const table::BorderLine*)0) ,&eBorderLine); + registerPropertyNoMember(MAP_CHAR_LEN(SC_UNO_PAGE_LEFTBRDDIST), ++i,nBound, ::getCppuType((const sal_Int32*)0) ,&nZero); +- registerPropertyNoMember(PROPERTY_LEFTMARGIN, ++i,beans::PropertyAttribute::BOUND, ::getCppuType((const sal_Int32*)0) ,&nMargin); ++ registerPropertyNoMember(PROPERTY_LEFTMARGIN, ++i,nBound,::getCppuType((const sal_Int32*)0) ,&nMargin); + //registerPropertyNoMember(MAP_CHAR_LEN(SC_UNO_PAGE_LEFTFTRCONT), ++i,nBound,::getCppuType((const uno::Reference< sheet::XHeaderFooterContent >*)0) ,NULL); + //registerPropertyNoMember(MAP_CHAR_LEN(SC_UNO_PAGE_LEFTHDRCONT), ++i,nBound,::getCppuType((const uno::Reference< sheet::XHeaderFooterContent >*)0) ,NULL); + registerPropertyNoMember(PROPERTY_NUMBERINGTYPE, ++i,nBound,::getCppuType((const sal_Int16*)0) ,&nNummeringType); +@@ -399,7 +399,7 @@ + registerPropertyNoMember(MAP_CHAR_LEN(SC_UNO_PAGE_PAPERTRAY), ++i,nBound,::getCppuType((const ::rtl::OUString*)0) ,&sPaperTray); + registerPropertyNoMember(MAP_CHAR_LEN(SC_UNO_PAGE_RIGHTBORDER), ++i,nBound,::getCppuType((const table::BorderLine*)0) ,&eBorderLine); + registerPropertyNoMember(MAP_CHAR_LEN(SC_UNO_PAGE_RIGHTBRDDIST),++i,nBound,::getCppuType((const sal_Int32*)0) ,&nZero); +- registerPropertyNoMember(PROPERTY_RIGHTMARGIN, ++i,beans::PropertyAttribute::BOUND,::getCppuType((const sal_Int32*)0) ,&nMargin); ++ registerPropertyNoMember(PROPERTY_RIGHTMARGIN, ++i,nBound,::getCppuType((const sal_Int32*)0) ,&nMargin); + //registerPropertyNoMember(MAP_CHAR_LEN(SC_UNO_PAGE_RIGHTFTRCON), ++i,nBound,::getCppuType((const uno::Reference< sheet::XHeaderFooterContent >*)0) ,NULL); + //registerPropertyNoMember(MAP_CHAR_LEN(SC_UNO_PAGE_RIGHTHDRCON), ++i,nBound,::getCppuType((const uno::Reference< sheet::XHeaderFooterContent >*)0) ,NULL); + registerPropertyNoMember(MAP_CHAR_LEN(SC_UNO_PAGE_SCALETOPAG), ++i,nBound,::getCppuType((const sal_Int16*)0) ,&n16Zero); Index: openoffice.org-3.2.1/ooo-build-3-2-1-4/patches/dev300/apply =================================================================== --- openoffice.org-3.2.1.orig/ooo-build-3-2-1-4/patches/dev300/apply 2010-12-20 19:00:40.000000000 +0100 +++ openoffice.org-3.2.1/ooo-build-3-2-1-4/patches/dev300/apply 2010-12-20 19:01:23.000000000 +0100 @@ -3987,6 +3987,7 @@ basegfx-clipstate.diff, i#72418, thorsten slideshow-clipstate.diff, i#72418, thorsten slideshow-clipfix.diff, i#112422, thorsten +report-builder-margins.diff, lmamane [ Fixes <= ooo320-m16 ] svtools-wmf-clipperf-m16.diff, n#535304, thorsten