diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2011-04-07 16:44:45 +0100 |
---|---|---|
committer | Noel Power <noel.power@novell.com> | 2011-04-07 17:03:23 +0100 |
commit | 6006e2556d4eeff2396c17330dc68bc16aecee4f (patch) | |
tree | 89041fe4ac7e76a13f0618a8e3d13adb7286ab7a /oovbaapi/ooo | |
parent | hide macro menu item when disabled to reduce confusion (diff) | |
download | core-6006e2556d4eeff2396c17330dc68bc16aecee4f.tar.gz core-6006e2556d4eeff2396c17330dc68bc16aecee4f.zip |
fix cast to implementation objects failure from some vba objects
old calls attempting to cast to implementation objects now fail ( and crash on access ) because we now wrap some objects via a aggregation proxy. This patch fixes this
Diffstat (limited to 'oovbaapi/ooo')
-rw-r--r-- | oovbaapi/ooo/vba/excel/XWorkbook.idl | 7 | ||||
-rw-r--r-- | oovbaapi/ooo/vba/excel/XWorksheet.idl | 3 |
2 files changed, 7 insertions, 3 deletions
diff --git a/oovbaapi/ooo/vba/excel/XWorkbook.idl b/oovbaapi/ooo/vba/excel/XWorkbook.idl index f6e9e91704ad..7d4a70fbb1be 100644 --- a/oovbaapi/ooo/vba/excel/XWorkbook.idl +++ b/oovbaapi/ooo/vba/excel/XWorkbook.idl @@ -27,7 +27,7 @@ #ifndef __ooo_vba_excel_XWorkbook_idl__ #define __ooo_vba_excel_XWorkbook_idl__ -#include <com/sun/star/uno/XInterface.idl> +#include <com/sun/star/lang/XUnoTunnel.idl> #include <ooo/vba/XHelperInterface.idl> //============================================================================= @@ -40,8 +40,11 @@ interface XWorksheet; interface XWorksheets; interface XStyles; -interface XWorkbook : com::sun::star::uno::XInterface +interface XWorkbook { + + interface ::com::sun::star::lang::XUnoTunnel; + [attribute, readonly] boolean ProtectStructure; [attribute, readonly] XWorksheet ActiveSheet; [attribute, readonly] string CodeName; diff --git a/oovbaapi/ooo/vba/excel/XWorksheet.idl b/oovbaapi/ooo/vba/excel/XWorksheet.idl index 2b041199c97c..e3128181ee61 100644 --- a/oovbaapi/ooo/vba/excel/XWorksheet.idl +++ b/oovbaapi/ooo/vba/excel/XWorksheet.idl @@ -27,7 +27,7 @@ #ifndef __ooo_vba_excel_XWorksheet_idl__ #define __ooo_vba_excel_XWorksheet_idl__ -#include <com/sun/star/uno/XInterface.idl> +#include <com/sun/star/lang/XUnoTunnel.idl> #include <ooo/vba/XHelperInterface.idl> #include <com/sun/star/script/XInvocation.idl> #include <com/sun/star/container/XNamed.idl> @@ -49,6 +49,7 @@ interface XWorksheet interface ::ooo::vba::XHelperInterface; interface ::com::sun::star::script::XInvocation; interface ::com::sun::star::container::XNamed; + interface ::com::sun::star::lang::XUnoTunnel; [attribute] long Visible; [attribute, readonly] long StandardHeight; |