[Libreoffice-commits] core.git: Branch 'distro/suse/suse-3.6' - oovbaapi/ooo sc/source

Noel Power noel.power at suse.com
Mon Apr 15 07:06:37 PDT 2013


 oovbaapi/ooo/vba/excel/XPageSetup.idl |    3 +++
 sc/source/ui/vba/vbapagesetup.cxx     |   26 ++++++++++++++++++++++++++
 sc/source/ui/vba/vbapagesetup.hxx     |    7 ++++++-
 3 files changed, 35 insertions(+), 1 deletion(-)

New commits:
commit 7b542db859221cae585df458fd9f330d4b11d142
Author: Noel Power <noel.power at suse.com>
Date:   Mon Apr 15 15:01:49 2013 +0100

    bnc#813528 stub out some missing XPageSetup api
    
    Change-Id: I992a444c844d4103fcf3dd762aaeec85dc4c011d

diff --git a/oovbaapi/ooo/vba/excel/XPageSetup.idl b/oovbaapi/ooo/vba/excel/XPageSetup.idl
index 8b12f55..b58cfe1 100644
--- a/oovbaapi/ooo/vba/excel/XPageSetup.idl
+++ b/oovbaapi/ooo/vba/excel/XPageSetup.idl
@@ -61,6 +61,9 @@ interface XPageSetup : com::sun::star::uno::XInterface
     [attribute] boolean CenterHorizontally;
     [attribute] boolean PrintHeadings;
     [attribute] long PaperSize;
+    [attribute] boolean PrintGridlines;
+    [attribute] string PrintTitleRows;
+    [attribute] string PrintTitleColumns;
 
 };
 
diff --git a/sc/source/ui/vba/vbapagesetup.cxx b/sc/source/ui/vba/vbapagesetup.cxx
index fe0403c..86d09a0 100644
--- a/sc/source/ui/vba/vbapagesetup.cxx
+++ b/sc/source/ui/vba/vbapagesetup.cxx
@@ -728,4 +728,30 @@ void SAL_CALL ScVbaPageSetup::setPaperSize( sal_Int32 paperSize) throw (css::uno
     {
     }
 }
+
+::sal_Bool SAL_CALL ScVbaPageSetup::getPrintGridlines() throw (uno::RuntimeException)
+{
+    return false;
+}
+
+void SAL_CALL ScVbaPageSetup::setPrintGridlines( ::sal_Bool /*_printgridlines*/ ) throw (uno::RuntimeException)
+{
+}
+
+::rtl::OUString SAL_CALL ScVbaPageSetup::getPrintTitleRows() throw (uno::RuntimeException)
+{
+    return ::rtl::OUString();
+}
+void SAL_CALL ScVbaPageSetup::setPrintTitleRows( const ::rtl::OUString& /*_printtitlerows*/ ) throw (css::uno::RuntimeException)
+{
+}
+::rtl::OUString SAL_CALL ScVbaPageSetup::getPrintTitleColumns() throw (uno::RuntimeException)
+{
+    return ::rtl::OUString();
+}
+
+void SAL_CALL ScVbaPageSetup::setPrintTitleColumns( const ::rtl::OUString& /*_printtitlecolumns*/ ) throw (uno::RuntimeException)
+{
+}
+
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sc/source/ui/vba/vbapagesetup.hxx b/sc/source/ui/vba/vbapagesetup.hxx
index fb23420..da73b33 100644
--- a/sc/source/ui/vba/vbapagesetup.hxx
+++ b/sc/source/ui/vba/vbapagesetup.hxx
@@ -85,7 +85,12 @@ public:
     virtual void SAL_CALL setPrintHeadings( sal_Bool printHeadings ) throw (css::uno::RuntimeException);
     virtual sal_Int32 SAL_CALL getPaperSize() throw (css::uno::RuntimeException);
     virtual void SAL_CALL setPaperSize( sal_Int32 paperSize ) throw (css::uno::RuntimeException);
-
+    virtual ::sal_Bool SAL_CALL getPrintGridlines() throw (css::uno::RuntimeException);
+    virtual void SAL_CALL setPrintGridlines( ::sal_Bool _printgridlines ) throw (css::uno::RuntimeException);
+    virtual ::rtl::OUString SAL_CALL getPrintTitleRows() throw (css::uno::RuntimeException);
+    virtual void SAL_CALL setPrintTitleRows( const ::rtl::OUString& _printtitlerows ) throw (css::uno::RuntimeException);
+    virtual ::rtl::OUString SAL_CALL getPrintTitleColumns() throw (css::uno::RuntimeException);
+    virtual void SAL_CALL setPrintTitleColumns( const ::rtl::OUString& _printtitlecolumns ) throw (css::uno::RuntimeException);
     // XHelperInterface
     virtual rtl::OUString getServiceImplName();
     virtual css::uno::Sequence<rtl::OUString> getServiceNames();


More information about the Libreoffice-commits mailing list