From b8d977c0178f8ac4ee299722d50c1481a15b45c8 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 13 Feb 2017 08:17:10 +0200 Subject: convert CharCompressType to scoped enum and move it to svl, where it belongs Change-Id: Ic4d846419dfe2dd85de5ade8ed1a041867bbf1dc --- sw/inc/IDocumentSettingAccess.hxx | 6 +++--- sw/inc/chcmprse.hxx | 28 ---------------------------- sw/inc/doc.hxx | 1 - 3 files changed, 3 insertions(+), 32 deletions(-) delete mode 100644 sw/inc/chcmprse.hxx (limited to 'sw/inc') diff --git a/sw/inc/IDocumentSettingAccess.hxx b/sw/inc/IDocumentSettingAccess.hxx index ed7da1216f2a..cc0466b85da4 100644 --- a/sw/inc/IDocumentSettingAccess.hxx +++ b/sw/inc/IDocumentSettingAccess.hxx @@ -22,11 +22,11 @@ #include #include -#include #include class SvxForbiddenCharactersTable; namespace com { namespace sun { namespace star { namespace i18n { struct ForbiddenCharacters; } } } } +enum class CharCompressType; enum class DocumentSettingId { @@ -204,14 +204,14 @@ enum class DocumentSettingId @returns the current character compression mode. */ - virtual SwCharCompressType getCharacterCompressionType() const = 0; + virtual CharCompressType getCharacterCompressionType() const = 0; /** Set the character compression type for Asian characters. @param nMode [in] the new character compression type. */ - virtual void setCharacterCompressionType( /*[in]*/SwCharCompressType nType ) = 0; + virtual void setCharacterCompressionType( /*[in]*/CharCompressType nType ) = 0; /** Get the n32DummyCompatabilityOptions1 */ diff --git a/sw/inc/chcmprse.hxx b/sw/inc/chcmprse.hxx deleted file mode 100644 index 37574b3856c6..000000000000 --- a/sw/inc/chcmprse.hxx +++ /dev/null @@ -1,28 +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_INC_CHCMPRSE_HXX -#define INCLUDED_SW_INC_CHCMPRSE_HXX - -enum SwCharCompressType{ CHARCOMPRESS_NONE, - CHARCOMPRESS_PUNCTUATION, - CHARCOMPRESS_PUNCTUATION_KANA }; - -#endif -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/inc/doc.hxx b/sw/inc/doc.hxx index d8c2ba38118d..458d3bda4578 100644 --- a/sw/inc/doc.hxx +++ b/sw/inc/doc.hxx @@ -35,7 +35,6 @@ #include #include #include -#include #include #include #include -- cgit