2010-10-27 12:43:08 +01:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-11-30 12:23:25 +00:00
|
|
|
/*
|
|
|
|
* This file is part of the LibreOffice project.
|
|
|
|
*
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*
|
|
|
|
* This file incorporates work covered by the following license notice:
|
|
|
|
*
|
|
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
* contributor license agreements. See the NOTICE file distributed
|
|
|
|
* with this work for additional information regarding copyright
|
|
|
|
* ownership. The ASF licenses this file to you under the Apache
|
|
|
|
* License, Version 2.0 (the "License"); you may not use this file
|
|
|
|
* except in compliance with the License. You may obtain a copy of
|
|
|
|
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
|
|
|
*/
|
2007-04-25 15:12:00 +00:00
|
|
|
#ifndef SC_VBA_VALIDATION_HXX
|
|
|
|
#define SC_VBA_VALIDATION_HXX
|
|
|
|
#include <cppuhelper/implbase1.hxx>
|
|
|
|
#include <com/sun/star/uno/XComponentContext.hpp>
|
2009-02-13 13:03:24 +00:00
|
|
|
#include <ooo/vba/excel/XValidation.hpp>
|
2007-04-25 15:12:00 +00:00
|
|
|
#include <com/sun/star/table/XCellRange.hpp>
|
2009-09-18 15:24:22 +00:00
|
|
|
#include <vbahelper/vbahelperinterface.hxx>
|
2007-04-25 15:12:00 +00:00
|
|
|
|
2009-02-13 13:03:24 +00:00
|
|
|
typedef InheritedHelperInterfaceImpl1<ov::excel::XValidation > ValidationImpl_BASE;
|
2007-04-25 15:12:00 +00:00
|
|
|
|
|
|
|
class ScVbaValidation : public ValidationImpl_BASE
|
|
|
|
{
|
|
|
|
css::uno::Reference< css::table::XCellRange > m_xRange;
|
|
|
|
|
|
|
|
public:
|
2009-02-13 13:03:24 +00:00
|
|
|
ScVbaValidation( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext >& xContext, const css::uno::Reference< css::table::XCellRange >& xRange ) : ValidationImpl_BASE( xParent, xContext ), m_xRange( xRange) {}
|
2007-04-25 15:12:00 +00:00
|
|
|
// Attributes
|
|
|
|
virtual ::sal_Bool SAL_CALL getIgnoreBlank() throw (css::uno::RuntimeException);
|
|
|
|
virtual void SAL_CALL setIgnoreBlank( ::sal_Bool _ignoreblank ) throw (css::uno::RuntimeException);
|
|
|
|
virtual ::sal_Bool SAL_CALL getInCellDropdown() throw (css::uno::RuntimeException);
|
|
|
|
virtual void SAL_CALL setInCellDropdown( ::sal_Bool _incelldropdown ) throw (css::uno::RuntimeException);
|
|
|
|
virtual ::sal_Bool SAL_CALL getShowInput() throw (css::uno::RuntimeException);
|
|
|
|
virtual void SAL_CALL setShowInput( ::sal_Bool _showinput ) throw (css::uno::RuntimeException);
|
|
|
|
virtual ::sal_Bool SAL_CALL getShowError() throw (css::uno::RuntimeException);
|
|
|
|
virtual void SAL_CALL setShowError( ::sal_Bool _showerror ) throw (css::uno::RuntimeException);
|
|
|
|
virtual ::rtl::OUString SAL_CALL getInputTitle() throw (css::uno::RuntimeException);
|
|
|
|
virtual void SAL_CALL setInputTitle( const ::rtl::OUString& _inputtitle ) throw (css::uno::RuntimeException);
|
|
|
|
virtual ::rtl::OUString SAL_CALL getErrorTitle() throw (css::uno::RuntimeException);
|
|
|
|
virtual void SAL_CALL setErrorTitle( const ::rtl::OUString& _errortitle ) throw (css::uno::RuntimeException);
|
|
|
|
virtual ::rtl::OUString SAL_CALL getInputMessage() throw (css::uno::RuntimeException);
|
|
|
|
virtual void SAL_CALL setInputMessage( const ::rtl::OUString& _inputmessage ) throw (css::uno::RuntimeException);
|
|
|
|
virtual ::rtl::OUString SAL_CALL getErrorMessage() throw (css::uno::RuntimeException);
|
|
|
|
virtual void SAL_CALL setErrorMessage( const ::rtl::OUString& _errormessage ) throw (css::uno::RuntimeException);
|
|
|
|
virtual ::rtl::OUString SAL_CALL getFormula1() throw (css::uno::RuntimeException) ;
|
|
|
|
virtual ::rtl::OUString SAL_CALL getFormula2() throw (css::uno::RuntimeException);
|
2013-04-05 09:45:38 +01:00
|
|
|
virtual sal_Int32 SAL_CALL getType() throw (css::uno::RuntimeException);
|
2007-04-25 15:12:00 +00:00
|
|
|
// Methods
|
|
|
|
virtual void SAL_CALL Delete( ) throw (css::uno::RuntimeException);
|
|
|
|
virtual void SAL_CALL Add( const css::uno::Any& Type, const css::uno::Any& AlertStyle, const css::uno::Any& Operator, const css::uno::Any& Formula1, const css::uno::Any& Formula2 ) throw (css::uno::RuntimeException);
|
2007-12-07 10:05:52 +00:00
|
|
|
// XHelperInterface
|
2012-03-24 14:00:06 +00:00
|
|
|
virtual rtl::OUString getServiceImplName();
|
2007-12-07 10:05:52 +00:00
|
|
|
virtual css::uno::Sequence<rtl::OUString> getServiceNames();
|
2007-04-25 15:12:00 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
2010-10-27 12:43:08 +01:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|