sw/source/ui/vba/vbacheckbox.cxx | 86 --------------------------------------- sw/source/ui/vba/vbacheckbox.hxx | 48 --------------------- 2 files changed, 134 deletions(-)
New commits: commit 9c62e04bd52960b1a412f52d995e1a4c6fb4d69a Author: Stephan Bergmann <sberg...@redhat.com> Date: Fri Jan 27 15:28:28 2017 +0100 Remove unused sw/source/ui/vba/vbacheckbox.cxx ...which was listed as explicitly not copiled with 24a129b9f559f79df1d88e159760f907f4fdd37c "make it obvious some files are intentionally not compiled ( temporarily )" but not removed completely with 09abd826a0e26517ea722659491e8eb525a9b8bc "remove uncompiled source files" (which removed the other files from the first commit's list) Change-Id: I232fa73680a2fbc64c6b57b85a626695b86d5f7a diff --git a/sw/source/ui/vba/vbacheckbox.cxx b/sw/source/ui/vba/vbacheckbox.cxx deleted file mode 100644 index f15f3be..0000000 --- a/sw/source/ui/vba/vbacheckbox.cxx +++ /dev/null @@ -1,86 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * 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 . - */ -#include "vbacheckbox.hxx" -#include <vbahelper/vbahelper.hxx> -#include <tools/diagnose_ex.h> -#include <com/sun/star/text/XTextDocument.hpp> -#include <com/sun/star/text/XTextContent.hpp> -#include <com/sun/star/text/XTextViewCursor.hpp> -#include <com/sun/star/text/XTextViewCursorSupplier.hpp> -#include <ecmaflds.hxx> - -using namespace ::ooo::vba; -using namespace ::com::sun::star; - -SwVbaCheckBox::SwVbaCheckBox( const uno::Reference< ooo::vba::XHelperInterface >& rParent, const uno::Reference< uno::XComponentContext >& rContext, const uno::Reference< frame::XModel >& rModel, const uno::Reference< text::XFormField >& xFormField ) throw ( uno::RuntimeException ) : SwVbaCheckBox_BASE( rParent, rContext ), mxModel( rModel ), mxFormField( xFormField ) -{ - OUString sType = mxFormField->getFieldType(); - if( !sType.equalsIgnoreAsciiCaseAscii( ECMA_FORMCHECKBOX ) ) - { - throw uno::RuntimeException( "It is not a CheckBox" ); - } -} - -SwVbaCheckBox::~SwVbaCheckBox() -{ -} - -sal_Bool SAL_CALL SwVbaCheckBox::getValue() throw ( uno::RuntimeException ) -{ - sal_Bool bValue = sal_False; - sal_Int32 nCount = mxFormField->getParamCount(); - for( sal_Int32 i = 0; i < nCount; i++ ) - { - if( mxFormField->getParamName(i).equalsIgnoreAsciiCaseAscii( ECMA_FORMCHECKBOX_CHECKED ) ) - { - if( mxFormField->getParamValue(i).equalsIgnoreAsciiCase("on") ) - bValue = sal_True; - else - bValue = sal_False; - break; - } - } - return bValue; -} - -void SAL_CALL SwVbaCheckBox::setValue( sal_Bool value ) throw ( uno::RuntimeException ) -{ - OUString sValue = value ? OUString("on") : OUString("off"); - mxFormField->addParam( OUString( ECMA_FORMCHECKBOX_CHECKED ), sValue, sal_True ); -} - -OUString -SwVbaCheckBox::getServiceImplName() -{ - return OUString("SwVbaCheckBox"); -} - -uno::Sequence< OUString > -SwVbaCheckBox::getServiceNames() -{ - static uno::Sequence< OUString > aServiceNames; - if ( aServiceNames.getLength() == 0 ) - { - aServiceNames.realloc( 1 ); - aServiceNames[ 0 ] = "ooo.vba.word.CheckBox"; - } - return aServiceNames; -} - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/ui/vba/vbacheckbox.hxx b/sw/source/ui/vba/vbacheckbox.hxx deleted file mode 100644 index 68d5ed9..0000000 --- a/sw/source/ui/vba/vbacheckbox.hxx +++ /dev/null @@ -1,48 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/* - * 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 . - */ -#ifndef INCLUDED_SW_SOURCE_UI_VBA_VBACHECKBOX_HXX -#define INCLUDED_SW_SOURCE_UI_VBA_VBACHECKBOX_HXX - -#include <ooo/vba/word/XCheckBox.hpp> -#include <com/sun/star/text/XFormField.hpp> -#include <vbahelper/vbahelperinterface.hxx> - -typedef InheritedHelperInterfaceWeakImpl< ooo::vba::word::XCheckBox > SwVbaCheckBox_BASE; - -class SwVbaCheckBox : public SwVbaCheckBox_BASE -{ -private: - css::uno::Reference< css::frame::XModel > mxModel; - css::uno::Reference< css::text::XFormField > mxFormField; - -public: - SwVbaCheckBox( const css::uno::Reference< ooo::vba::XHelperInterface >& rParent, const css::uno::Reference< css::uno::XComponentContext >& rContext, const css::uno::Reference< css::frame::XModel >& rModel, const css::uno::Reference< css::text::XFormField >& xFormField ) throw ( css::uno::RuntimeException ); - virtual ~SwVbaCheckBox(); - - // Methods - sal_Bool SAL_CALL getValue() throw ( css::uno::RuntimeException ); - void SAL_CALL setValue( sal_Bool value ) throw ( css::uno::RuntimeException ); - - // XHelperInterface - virtual OUString getServiceImplName(); - virtual css::uno::Sequence<OUString> getServiceNames(); -}; -#endif // INCLUDED_SW_SOURCE_UI_VBA_VBACHECKBOX_HXX - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits