diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2024-04-10 16:50:51 +0100 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-04-18 09:16:12 +0200 |
commit | 828c1999e08c5bfad0a1d0e6e5ab07ee8bbc427e (patch) | |
tree | 65dfe08b2f389fd5b6d8a639fda2815815931b2e /writerfilter/source/rtftok/rtfcharsets.hxx | |
parent | 8e86df886f84fe69f13cfc367a5dd843e6ea917c (diff) |
move writerfilter inside sw
writerfilter wants to convert incoming RTF and OOXML files into
writer's document model. But it currently has to do so by
manipulating the limited subset that we expose through the UNO
API.
This is both slower and less accurate than having access
to the full document model.
So move it inside, and then we can strip out various hacks, and
optimise imports.
Change-Id: Ie1114d28130ef5f9a786531bc552cb8ee7768015
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165953
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'writerfilter/source/rtftok/rtfcharsets.hxx')
-rw-r--r-- | writerfilter/source/rtftok/rtfcharsets.hxx | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/writerfilter/source/rtftok/rtfcharsets.hxx b/writerfilter/source/rtftok/rtfcharsets.hxx deleted file mode 100644 index 826dea271f6b..000000000000 --- a/writerfilter/source/rtftok/rtfcharsets.hxx +++ /dev/null @@ -1,37 +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/. - */ - -#pragma once - -namespace writerfilter::rtftok -{ -/// RTF legacy charsets -struct RTFEncoding -{ - int charset; - int codepage; -}; -extern RTFEncoding const aRTFEncodings[]; -extern int nRTFEncodings; - -/// Font name can contain special suffixes used -/// to determine encoding for given font table entry -/// For example "Arial CE" is "Arial" with CP1250 encoding -/// List of these suffixes is not official and detected in a empirical -/// way thus may be inexact and incomplete. -struct RTFFontNameSuffix -{ - const char* suffix; - int codepage; -}; -extern RTFFontNameSuffix const aRTFFontNameSuffixes[]; - -} // namespace writerfilter::rtftok - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |