19#include <com/sun/star/beans/XPropertySet.hpp>
28 const static sal_Int32 COLORINDICES[56] =
40 return COLORINDICES[
nIndex];
42ScVbaColorFormat::ScVbaColorFormat(
const uno::Reference< XHelperInterface >& xParent,
const uno::Reference< uno::XComponentContext >& xContext,
const uno::Reference< XHelperInterface >& xInternalParent,
const uno::Reference< drawing::XShape >& xShape,
const sal_Int16 nColorFormatType ) :
ScVbaColorFormat_BASE( xParent, xContext ), m_nColorFormatType( nColorFormatType )
48 uno::Reference< ov::msforms::XFillFormat > xFillFormat( xInternalParent, uno::UNO_QUERY_THROW );
50 }
catch ( uno::RuntimeException& )
77 throw uno::RuntimeException(
"Second parameter of ColorFormat is wrong." );
110 throw uno::RuntimeException(
"Second parameter of ColorFormat is wrong." );
117 sal_Int32 nColor =
getRGB();
156 return "ScVbaColorFormat";
159uno::Sequence< OUString >
164 "ooo.vba.msforms.ColorFormat"
Sequence< OUString > aServiceNames
sal_Int32 XLRGBToOORGB(sal_Int32 nCol)
sal_Int32 OORGBToXLRGB(sal_Int32 nCol)
static const sal_Int32 HAPICOLOR_OLIVEGREEN
static const sal_Int32 HAPICOLOR_BROWN
static const sal_Int32 HAPICOLOR_DARKTEAL
static const sal_Int32 HAPICOLOR_GRAY_40_PERCENT
static const sal_Int32 HAPICOLOR_PERIWINCKLE
static const sal_Int32 HAPICOLOR_BLACK
static const sal_Int32 HAPICOLOR_TEAL
static const sal_Int32 HAPICOLOR_TURQUOISE
static const sal_Int32 HAPICOLOR_PLUM
static const sal_Int32 HAPICOLOR_GRAY_50_PERCENT
static const sal_Int32 HAPICOLOR_PINK
static const sal_Int32 HAPICOLOR_YELLOW
static const sal_Int32 HAPICOLOR_NONAME
static const sal_Int32 HAPICOLOR_SKYBLUE
static const sal_Int32 HAPICOLOR_INDIGO
static const sal_Int32 HAPICOLOR_LIGHTTURQUOISE
static const sal_Int32 HAPICOLOR_OCEANBLUE
static const sal_Int32 HAPICOLOR_LIGHTORANGE
static const sal_Int32 HAPICOLOR_IVORY
static const sal_Int32 HAPICOLOR_DARKYELLOW
static const sal_Int32 HAPICOLOR_DARKPRUPLE
static const sal_Int32 HAPICOLOR_RED
static const sal_Int32 HAPICOLOR_ROSE
static const sal_Int32 HAPICOLOR_GRAY_25_PERCENT
static const sal_Int32 HAPICOLOR_BRIGHTGREEN
static const sal_Int32 HAPICOLOR_SEAGREEN
static const sal_Int32 HAPICOLOR_WHITE
static const sal_Int32 HAPICOLOR_GOLD
static const sal_Int32 HAPICOLOR_LIME
static const sal_Int32 HAPICOLOR_GRAY_80_PERCENT
static const sal_Int32 HAPICOLOR_LIGHTGREEN
static const sal_Int32 HAPICOLOR_PALEBLUE
static const sal_Int32 HAPICOLOR_AQUA
static const sal_Int32 HAPICOLOR_VIOLET
static const sal_Int32 HAPICOLOR_TAN
static const sal_Int32 HAPICOLOR_ICEBLUE
static sal_Int32 getColorIndex(sal_Int32 nIndex)
static const sal_Int32 HAPICOLOR_BLUE
static const sal_Int32 HAPICOLOR_DARKBLUE
static const sal_Int32 HAPICOLOR_GREEN
static const sal_Int32 HAPICOLOR_CORAL
static const sal_Int32 HAPICOLOR_LAVENDER
static const sal_Int32 HAPICOLOR_LIGHTBLUE
static const sal_Int32 HAPICOLOR_ORANGE
static const sal_Int32 HAPICOLOR_DARKRED
static const sal_Int32 HAPICOLOR_LIGHTYELLOW
static const sal_Int32 HAPICOLOR_BLUEGRAY