diff options
Diffstat (limited to 'scratch/sc-dptest/inc/global.hxx')
-rw-r--r-- | scratch/sc-dptest/inc/global.hxx | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/scratch/sc-dptest/inc/global.hxx b/scratch/sc-dptest/inc/global.hxx deleted file mode 100644 index e54df9cd8..000000000 --- a/scratch/sc-dptest/inc/global.hxx +++ /dev/null @@ -1,62 +0,0 @@ -#ifndef GLOBAL_HXX -#define GLOBAL_HXX - -#include "cppuhelper/implementationentry.hxx" - -#include <com/sun/star/beans/XPropertySet.hpp> -#include <com/sun/star/sheet/GeneralFunction.hpp> - -#include <stdio.h> -#include <string> - -namespace com { namespace sun { namespace star { - namespace beans { - class XPropertySet; - } - - namespace frame { - class XDesktop; - } - - namespace sheet { - class XSpreadsheet; - class XSpreadsheets; - class XSpreadsheetDocument; - } -}}} - -namespace dptest { - -::com::sun::star::uno::Reference< ::com::sun::star::frame::XDesktop > bootstrap(); - -::com::sun::star::uno::Reference< ::com::sun::star::sheet::XSpreadsheetDocument > - loadComponent(const ::com::sun::star::uno::Reference< - ::com::sun::star::frame::XDesktop>& xDesktop, const char* docPath); - -::rtl::OUString ascii(const sal_Char* cstr); - -const sal_Char* getStr(const ::rtl::OUString& ou); - -::com::sun::star::uno::Reference< ::com::sun::star::sheet::XSpreadsheet > - getSheetByName(const ::com::sun::star::uno::Reference< ::com::sun::star::sheet::XSpreadsheetDocument >& xSpDoc, - const ::rtl::OUString& name); - -void dumpAllPropertyNames(const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& xProps); - -template<typename T> -void getPropertyValue(const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& xProps, - const ::rtl::OUString& name, T& value) -{ - ::com::sun::star::uno::Any any = xProps->getPropertyValue(name); - any >>= value; -} - -::std::string getFunctionName(const ::com::sun::star::sheet::GeneralFunction func); - -::std::string getReferenceTypeName(const sal_Int32 refType); - -bool compare(double a, double b, double tol = 0.0000000001); - -} - -#endif |