summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNoel Power <noel.power@suse.com>2013-04-15 15:01:49 +0100
committerNoel Power <noel.power@suse.com>2013-04-15 15:01:49 +0100
commit7b542db859221cae585df458fd9f330d4b11d142 (patch)
treeee1e602608297f7acd54918f349a6ab812759a94
parentfix Worksheet.Cells by now allowing TableSheet range to change from updates (diff)
downloadcore-7b542db859221cae585df458fd9f330d4b11d142.tar.gz
core-7b542db859221cae585df458fd9f330d4b11d142.zip
bnc#813528 stub out some missing XPageSetup api
Change-Id: I992a444c844d4103fcf3dd762aaeec85dc4c011d
-rw-r--r--oovbaapi/ooo/vba/excel/XPageSetup.idl3
-rw-r--r--sc/source/ui/vba/vbapagesetup.cxx26
-rw-r--r--sc/source/ui/vba/vbapagesetup.hxx7
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();