Kaydet (Commit) 139ca8f2 authored tarafından matteocam's avatar matteocam Kaydeden (comit) Fridrich Štrba

Added EE_CHAR_BKGCOLOR

Change-Id: If11271f4b3b8f9ab67961206856938046ea2a416
(cherry picked from commit c2580813)
üst 4693d7cc
...@@ -156,13 +156,14 @@ SfxPoolItem** GlobalEditData::GetDefItems() ...@@ -156,13 +156,14 @@ SfxPoolItem** GlobalEditData::GetDefItems()
ppDefItems[47] = new SvxOverlineItem( UNDERLINE_NONE, EE_CHAR_OVERLINE ); ppDefItems[47] = new SvxOverlineItem( UNDERLINE_NONE, EE_CHAR_OVERLINE );
ppDefItems[48] = new SvxCaseMapItem( SVX_CASEMAP_NOT_MAPPED, EE_CHAR_CASEMAP ); ppDefItems[48] = new SvxCaseMapItem( SVX_CASEMAP_NOT_MAPPED, EE_CHAR_CASEMAP );
ppDefItems[49] = new SfxGrabBagItem( EE_CHAR_GRABBAG ); ppDefItems[49] = new SfxGrabBagItem( EE_CHAR_GRABBAG );
ppDefItems[50] = new SvxBackgroundColorItem( Color( COL_AUTO ), EE_CHAR_BKGCOLOR );
// Features // Features
ppDefItems[50] = new SfxVoidItem( EE_FEATURE_TAB ); ppDefItems[51] = new SfxVoidItem( EE_FEATURE_TAB );
ppDefItems[51] = new SfxVoidItem( EE_FEATURE_LINEBR ); ppDefItems[52] = new SfxVoidItem( EE_FEATURE_LINEBR );
ppDefItems[52] = new SvxCharSetColorItem( Color( COL_RED ), RTL_TEXTENCODING_DONTKNOW, EE_FEATURE_NOTCONV ); ppDefItems[53] = new SvxCharSetColorItem( Color( COL_RED ), RTL_TEXTENCODING_DONTKNOW, EE_FEATURE_NOTCONV );
ppDefItems[53] = new SvxFieldItem( SvxFieldData(), EE_FEATURE_FIELD ); ppDefItems[54] = new SvxFieldItem( SvxFieldData(), EE_FEATURE_FIELD );
DBG_ASSERT( EDITITEMCOUNT == 54, "ITEMCOUNT geaendert, DefItems nicht angepasst!" ); DBG_ASSERT( EDITITEMCOUNT == 55, "ITEMCOUNT geaendert, DefItems nicht angepasst!" );
// Init DefFonts: // Init DefFonts:
GetDefaultFonts( *(SvxFontItem*)ppDefItems[EE_CHAR_FONTINFO - EE_ITEMS_START], GetDefaultFonts( *(SvxFontItem*)ppDefItems[EE_CHAR_FONTINFO - EE_ITEMS_START],
......
...@@ -22,6 +22,11 @@ ...@@ -22,6 +22,11 @@
#include <svl/solar.hrc> #include <svl/solar.hrc>
/*
* NOTE: Changes in this file will probably require
* consistent changes in eerdll.cxx as well.
*/
#define EE_ITEMS_START (OWN_ATTR_VALUE_END+1) #define EE_ITEMS_START (OWN_ATTR_VALUE_END+1)
// Paragraph attributes: // Paragraph attributes:
...@@ -80,18 +85,18 @@ ...@@ -80,18 +85,18 @@
#define EE_CHAR_OVERLINE (EE_ITEMS_START+47) #define EE_CHAR_OVERLINE (EE_ITEMS_START+47)
#define EE_CHAR_CASEMAP (EE_ITEMS_START+48) #define EE_CHAR_CASEMAP (EE_ITEMS_START+48)
#define EE_CHAR_GRABBAG (EE_ITEMS_START+49) #define EE_CHAR_GRABBAG (EE_ITEMS_START+49)
//#define EE_CHAR_BKGCOLOR (EE_ITEMS_START+50) #define EE_CHAR_BKGCOLOR (EE_ITEMS_START+50)
#define EE_CHAR_END (EE_ITEMS_START+49) #define EE_CHAR_END (EE_ITEMS_START+50)
#define EE_FEATURE_START (EE_ITEMS_START+50) #define EE_FEATURE_START (EE_ITEMS_START+51)
#define EE_FEATURE_TAB (EE_ITEMS_START+50) #define EE_FEATURE_TAB (EE_ITEMS_START+51)
#define EE_FEATURE_LINEBR (EE_ITEMS_START+51) #define EE_FEATURE_LINEBR (EE_ITEMS_START+52)
#define EE_FEATURE_NOTCONV (EE_ITEMS_START+52) #define EE_FEATURE_NOTCONV (EE_ITEMS_START+53)
#define EE_FEATURE_FIELD (EE_ITEMS_START+53) #define EE_FEATURE_FIELD (EE_ITEMS_START+54)
#define EE_FEATURE_END (EE_ITEMS_START+53) #define EE_FEATURE_END (EE_ITEMS_START+54)
#define EE_ITEMS_END (EE_ITEMS_START+53) #define EE_ITEMS_END (EE_ITEMS_START+54)
#define EDITITEMCOUNT ( EE_ITEMS_END - EE_ITEMS_START + 1 ) #define EDITITEMCOUNT ( EE_ITEMS_END - EE_ITEMS_START + 1 )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment