Paint.hxx (ff12d537) | Paint.hxx (95a18594) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 11 unchanged lines hidden (view full) --- 20 *************************************************************/ 21 22#ifndef SFX_SIDEBAR_PAINT_HXX 23#define SFX_SIDEBAR_PAINT_HXX 24 25#include <tools/color.hxx> 26#include <vcl/gradient.hxx> 27#include <vcl/wall.hxx> | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 11 unchanged lines hidden (view full) --- 20 *************************************************************/ 21 22#ifndef SFX_SIDEBAR_PAINT_HXX 23#define SFX_SIDEBAR_PAINT_HXX 24 25#include <tools/color.hxx> 26#include <vcl/gradient.hxx> 27#include <vcl/wall.hxx> |
28#include <com/sun/star/awt/Gradient.hpp> |
|
28 29#include <boost/variant.hpp> 30 | 29 30#include <boost/variant.hpp> 31 |
32namespace cssu = ::com::sun::star::uno; 33 |
|
31namespace sfx2 { namespace sidebar { 32 33/** Abstraction of different ways to fill outlines. 34 Can be 35 - none (empty: outline is not filled) 36 - singular color 37 - gradient 38*/ 39class Paint 40{ 41public: 42 enum Type 43 { 44 NoPaint, 45 ColorPaint, 46 GradientPaint 47 }; 48 | 34namespace sfx2 { namespace sidebar { 35 36/** Abstraction of different ways to fill outlines. 37 Can be 38 - none (empty: outline is not filled) 39 - singular color 40 - gradient 41*/ 42class Paint 43{ 44public: 45 enum Type 46 { 47 NoPaint, 48 ColorPaint, 49 GradientPaint 50 }; 51 |
52 // Create a Paint object for an Any that may contain a color, a 53 // awt::Gradient, or nothing. 54 static Paint Create (const cssu::Any& rValue); 55 |
|
49 // Create paint with type NoPaint. 50 explicit Paint (void); 51 52 // Create a Paint object for the given color. 53 explicit Paint (const Color& rColor); 54 55 // Create a Paint object for the given gradient. 56 explicit Paint (const Gradient& rGradient); --- 21 unchanged lines hidden --- | 56 // Create paint with type NoPaint. 57 explicit Paint (void); 58 59 // Create a Paint object for the given color. 60 explicit Paint (const Color& rColor); 61 62 // Create a Paint object for the given gradient. 63 explicit Paint (const Gradient& rGradient); --- 21 unchanged lines hidden --- |