diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2013-12-04 21:01:18 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2013-12-04 21:28:30 +0100 |
commit | 5b7acdf8c8a4796a14fb07669fc92a0cbde3bd4f (patch) | |
tree | f9bc28ad433ebc579fd8c586ac3a6a1067dd1978 /writerfilter | |
parent | 0fb70733136f2382e7253ef0515a681c7cec724d (diff) |
writerfilter: remove unused WW8FFDATA in doctok
Change-Id: I62a5d45a818738fb06b1d80652c0ad6c0aee5f29
Diffstat (limited to 'writerfilter')
-rw-r--r-- | writerfilter/Library_writerfilter.mk | 1 | ||||
-rw-r--r-- | writerfilter/source/doctok/WW8Picture.cxx | 131 | ||||
-rw-r--r-- | writerfilter/source/doctok/resources.xmi | 6 |
3 files changed, 0 insertions, 138 deletions
diff --git a/writerfilter/Library_writerfilter.mk b/writerfilter/Library_writerfilter.mk index 05701cf4ff0d..fbf41c225109 100644 --- a/writerfilter/Library_writerfilter.mk +++ b/writerfilter/Library_writerfilter.mk @@ -124,7 +124,6 @@ $(eval $(call gb_Library_add_exception_objects,writerfilter,\ writerfilter/source/dmapper/WrapPolygonHandler \ writerfilter/source/doctok/WW8CpAndFc \ writerfilter/source/doctok/WW8FKPImpl \ - writerfilter/source/doctok/WW8Picture \ writerfilter/source/doctok/WW8PropertySetImpl \ writerfilter/source/doctok/WW8ResourceModelImpl \ writerfilter/source/doctok/WW8StructBase \ diff --git a/writerfilter/source/doctok/WW8Picture.cxx b/writerfilter/source/doctok/WW8Picture.cxx deleted file mode 100644 index 82bf56ce3010..000000000000 --- a/writerfilter/source/doctok/WW8Picture.cxx +++ /dev/null @@ -1,131 +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 <doctok/resources.hxx> - -namespace writerfilter { -namespace doctok -{ - -void WW8FFDATA::resolveNoAuto(Properties & /*rHandler*/) -{ -} - -sal_uInt32 WW8FFDATA::get_FLT() -{ - sal_uInt32 nResult = 0; - return nResult; -} - -static sal_uInt32 lcl_FFDATA_default_offset(WW8FFDATA & rRef) -{ - return 0xa + (rRef.getU16(0xa) + 2) * 2; -} - -static sal_uInt32 lcl_FFDATA_formatting_offset(WW8FFDATA & rRef) -{ - sal_uInt32 nResult = lcl_FFDATA_default_offset(rRef); - - switch (rRef.get_FLT()) - { - case 71: // forms checkbox - case 83: // forms listbox - nResult += 2; - break; - default: - nResult += (rRef.getU16(nResult) + 2) * 2; - break; - } - - return nResult; -} - -static sal_uInt32 lcl_FFDATA_help_offset(WW8FFDATA & rRef) -{ - sal_uInt32 nResult = lcl_FFDATA_formatting_offset(rRef); - - nResult += (rRef.getU16(nResult) + 2) * 2; - - return nResult; -} - -static sal_uInt32 lcl_FFDATA_tooltip_offset(WW8FFDATA & rRef) -{ - sal_uInt32 nResult = lcl_FFDATA_help_offset(rRef); - - nResult += (rRef.getU16(nResult) + 2) * 2; - - return nResult; -} - -OUString WW8FFDATA::get_default() -{ - OUString sResult; - - sal_uInt32 nOffset = lcl_FFDATA_default_offset(*this); - switch (get_FLT()) - { - case 70: - sResult = getString(nOffset); - - break; - default: - break; - } - - return sResult; -} - -OUString WW8FFDATA::get_formatting() -{ - return getString(lcl_FFDATA_formatting_offset(*this)); -} - -OUString WW8FFDATA::get_help() -{ - return getString(lcl_FFDATA_help_offset(*this)); -} - -OUString WW8FFDATA::get_tooltip() -{ - OUString sResult; - - sResult = getString(lcl_FFDATA_tooltip_offset(*this)); - - return sResult; -} - -sal_uInt16 WW8FFDATA::get_checked() -{ - sal_uInt16 nResult = 0; - - switch (get_FLT()) - { - case 71: - nResult = getU16(lcl_FFDATA_default_offset(*this)); - break; - default: - break; - } - - return nResult; -} -}} - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/writerfilter/source/doctok/resources.xmi b/writerfilter/source/doctok/resources.xmi index 409accffdc0c..11cb373ea37e 100644 --- a/writerfilter/source/doctok/resources.xmi +++ b/writerfilter/source/doctok/resources.xmi @@ -24216,12 +24216,6 @@ <!--Class METAFILEPICT--> <!--Class FFDATA--> <UML:Class xmi.id="FFDATA" name="FFDATA"> - <UML:ModelElement.stereotype> - <UML:Stereotype xmi.idref="ww8resource"/> - </UML:ModelElement.stereotype> - <UML:ModelElement.stereotype> - <UML:Stereotype xmi.idref="resolvenoauto"/> - </UML:ModelElement.stereotype> <UML:Classifier.feature> <UML:Attribute name="unknown"> <UML:ModelElement.taggedValue> |