Code

Hide canvas text, too, when lpe-path-length is invisible
[inkscape.git] / src / live_effects / lpe-path_length.h
1 #ifndef INKSCAPE_LPE_PATH_LENGTH_H
2 #define INKSCAPE_LPE_PATH_LENGTH_H
4 /** \file
5  * LPE <path_length> implementation.
6  */
8 /*
9  * Authors:
10  *   Maximilian Albert <maximilian.albert@gmail.com>
11  *
12  * Copyright (C) 2007-2008 Authors
13  *
14  * Released under GNU GPL, read the file 'COPYING' for more information
15  */
17 #include "live_effects/effect.h"
18 #include "live_effects/parameter/text.h"
19 #include "live_effects/parameter/unit.h"
21 namespace Inkscape {
22 namespace LivePathEffect {
24 class LPEPathLength : public Effect {
25 public:
26     LPEPathLength(LivePathEffectObject *lpeobject);
27     virtual ~LPEPathLength();
29     virtual Geom::Piecewise<Geom::D2<Geom::SBasis> > doEffect_pwd2 (Geom::Piecewise<Geom::D2<Geom::SBasis> > const & pwd2_in);
31     bool hideCanvasText();
33 private:
34     LPEPathLength(const LPEPathLength&);
35     LPEPathLength& operator=(const LPEPathLength&);
36     TextParamInternal info_text;
37     UnitParam unit;
38 };
40 } //namespace LivePathEffect
41 } //namespace Inkscape
43 #endif
45 /*
46   Local Variables:
47   mode:c++
48   c-file-style:"stroustrup"
49   c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
50   indent-tabs-mode:nil
51   fill-column:99
52   End:
53 */
54 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :