From 39b2de7545780d8897c9f28cbedfefd672cd53d7 Mon Sep 17 00:00:00 2001 From: Kohei Yoshida Date: Fri, 12 Aug 2011 00:08:26 -0400 Subject: Code page should be the same for the same drawing page. This removes O(n^2) from the process of querying the code pages for form elements. --- offapi/com/sun/star/document/XCodeNameQuery.idl | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'offapi/com/sun/star/document') diff --git a/offapi/com/sun/star/document/XCodeNameQuery.idl b/offapi/com/sun/star/document/XCodeNameQuery.idl index 6c3c992e32e8..4cddafee9da8 100644 --- a/offapi/com/sun/star/document/XCodeNameQuery.idl +++ b/offapi/com/sun/star/document/XCodeNameQuery.idl @@ -39,6 +39,10 @@ interface XCodeNameQuery { //------------------------------------------------------------------------- string getCodeNameForObject( [in] com::sun::star::uno::XInterface aObj ); + + string getCodeNameByIndex( [in] long nIndex ); + + long getPageIndexForObject( [in] com::sun::star::uno::XInterface aObj ); }; //============================================================================= -- cgit