diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2019-09-13 16:29:07 +0200 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2019-09-16 13:19:28 +0200 |
commit | c7ca124efd08097a1005ea56773d4def87efebcb (patch) | |
tree | 6c3279e1aeddf42dc57075cc315855e7f1e1b37a /vcl/inc | |
parent | bdcf58bdb178402bad25ea1459af3611648eb196 (diff) |
move WriteGradient and ReadGradient to the TypeSerializer class
Change-Id: I40f72470c2a5a4a9ffff45ccc3295e7a8f1f3584
Reviewed-on: https://gerrit.libreoffice.org/78876
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'vcl/inc')
-rw-r--r-- | vcl/inc/TypeSerializer.hxx | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/vcl/inc/TypeSerializer.hxx b/vcl/inc/TypeSerializer.hxx new file mode 100644 index 000000000000..99d4609d5d2a --- /dev/null +++ b/vcl/inc/TypeSerializer.hxx @@ -0,0 +1,38 @@ +/* -*- 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_VCL_INC_TYPESERIALIZER_HXX +#define INCLUDED_VCL_INC_TYPESERIALIZER_HXX + +#include <vcl/dllapi.h> +#include <tools/GenericTypeSerializer.hxx> +#include <vcl/gradient.hxx> + +class VCL_DLLPUBLIC TypeSerializer : public tools::GenericTypeSerializer +{ +public: + TypeSerializer(SvStream& rStream); + + void readGradient(Gradient& rGradient); + void writeGradient(Gradient& rGradient); +}; + +#endif + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |