2023-06-06 10:09:36 -05:00
|
|
|
/* -*- 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 .
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2024-03-12 11:19:45 -05:00
|
|
|
#include <unordered_map>
|
2023-06-06 10:09:36 -05:00
|
|
|
#include "svgnode.hxx"
|
|
|
|
#include "svgstyleattributes.hxx"
|
|
|
|
#include <basegfx/matrix/b2dhommatrix.hxx>
|
|
|
|
|
2024-03-12 11:19:45 -05:00
|
|
|
typedef std::unordered_map<OUString, drawinglayer::primitive2d::Primitive2DContainer>
|
|
|
|
IdGraphicSourceMapper;
|
|
|
|
|
2023-06-06 10:09:36 -05:00
|
|
|
namespace svgio::svgreader
|
|
|
|
{
|
2023-07-12 01:12:30 -05:00
|
|
|
class SvgFilterNode : public SvgNode
|
2023-06-06 10:09:36 -05:00
|
|
|
{
|
2024-02-28 06:10:04 -06:00
|
|
|
private:
|
2024-03-12 11:19:45 -05:00
|
|
|
IdGraphicSourceMapper maIdGraphicSourceMapperList;
|
2024-02-28 06:10:04 -06:00
|
|
|
|
2023-06-06 10:09:36 -05:00
|
|
|
public:
|
2023-07-12 01:12:30 -05:00
|
|
|
SvgFilterNode(SVGToken aType, SvgDocument& rDocument, SvgNode* pParent);
|
2023-06-06 10:09:36 -05:00
|
|
|
virtual ~SvgFilterNode() override;
|
2023-06-06 12:04:50 -05:00
|
|
|
|
2024-03-12 11:19:45 -05:00
|
|
|
virtual void apply(drawinglayer::primitive2d::Primitive2DContainer& rTarget,
|
|
|
|
const SvgFilterNode* pParent) const;
|
2024-02-28 06:10:04 -06:00
|
|
|
|
2024-03-12 11:19:45 -05:00
|
|
|
void
|
|
|
|
addGraphicSourceToMapper(const OUString& rStr,
|
2024-03-13 08:30:30 -05:00
|
|
|
drawinglayer::primitive2d::Primitive2DContainer pGraphicSource) const;
|
2024-03-12 11:19:45 -05:00
|
|
|
const drawinglayer::primitive2d::Primitive2DContainer*
|
|
|
|
findGraphicSource(const OUString& rStr) const;
|
2023-06-06 10:09:36 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
} // end of namespace svgio::svgreader
|
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|