diff options
author | Noel Power <noel.power@suse.com> | 2013-04-15 15:01:49 +0100 |
---|---|---|
committer | Noel Power <noel.power@suse.com> | 2013-04-15 15:01:49 +0100 |
commit | 7b542db859221cae585df458fd9f330d4b11d142 (patch) | |
tree | ee1e602608297f7acd54918f349a6ab812759a94 | |
parent | 70aff4a7f7abe0c768238733ca8900b746e60189 (diff) |
bnc#813528 stub out some missing XPageSetup api
Change-Id: I992a444c844d4103fcf3dd762aaeec85dc4c011d
-rw-r--r-- | oovbaapi/ooo/vba/excel/XPageSetup.idl | 3 | ||||
-rw-r--r-- | sc/source/ui/vba/vbapagesetup.cxx | 26 | ||||
-rw-r--r-- | sc/source/ui/vba/vbapagesetup.hxx | 7 |
3 files changed, 35 insertions, 1 deletions
diff --git a/oovbaapi/ooo/vba/excel/XPageSetup.idl b/oovbaapi/ooo/vba/excel/XPageSetup.idl index 8b12f550e08a..b58cfe10b895 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 fe0403c056b9..86d09a0924eb 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 fb234200aec1..da73b336376b 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(); |