LibreOffice Module sw (master) 1
|
#include "atrhndl.hxx"
#include <svl/itemiter.hxx>
#include <vcl/outdev.hxx>
#include <editeng/cmapitem.hxx>
#include <editeng/colritem.hxx>
#include <editeng/contouritem.hxx>
#include <editeng/crossedoutitem.hxx>
#include <editeng/escapementitem.hxx>
#include <editeng/fontitem.hxx>
#include <editeng/fhgtitem.hxx>
#include <editeng/kernitem.hxx>
#include <editeng/charreliefitem.hxx>
#include <editeng/langitem.hxx>
#include <editeng/postitem.hxx>
#include <editeng/shdditem.hxx>
#include <editeng/udlnitem.hxx>
#include <editeng/wghtitem.hxx>
#include <editeng/wrlmitem.hxx>
#include <editeng/autokernitem.hxx>
#include <editeng/charrotateitem.hxx>
#include <editeng/emphasismarkitem.hxx>
#include <editeng/charscaleitem.hxx>
#include <editeng/twolinesitem.hxx>
#include <editeng/charhiddenitem.hxx>
#include <editeng/boxitem.hxx>
#include <editeng/shaditem.hxx>
#include <viewopt.hxx>
#include <charfmt.hxx>
#include <fchrfmt.hxx>
#include <fmtautofmt.hxx>
#include <editeng/brushitem.hxx>
#include <fmtinfmt.hxx>
#include <txtinet.hxx>
#include <IDocumentSettingAccess.hxx>
#include <viewsh.hxx>
Go to the source code of this file.
Namespaces | |
namespace | CharFormat |
Functions | |
const SfxItemSet * | CharFormat::GetItemSet (const SfxPoolItem &rAttr) |
Returns the item set associated with a character/inet/auto style. More... | |
const SfxPoolItem * | CharFormat::GetItem (const SwTextAttr &rAttr, sal_uInt16 nWhich) |
Extracts pool item of type nWhich from rAttr. More... | |
bool | CharFormat::IsItemIncluded (const sal_uInt16 nWhich, const SwTextAttr *pAttr) |
Checks if item is included in character/inet/auto style. More... | |
static bool | lcl_ChgHyperLinkColor (const SwTextAttr &rAttr, const SfxPoolItem &rItem, const SwViewShell *pShell, Color *pColor) |
The color of hyperlinks is taken from the associated character attribute, depending on its 'visited' state. More... | |
Variables | |
const sal_uInt8 | StackPos [RES_TXTATR_WITHEND_END - RES_CHRATR_BEGIN+1] |
Attribute to Stack Mapping. More... | |
|
static |
The color of hyperlinks is taken from the associated character attribute, depending on its 'visited' state.
There are actually two cases, which should override the colors from the character attribute:
Definition at line 196 of file atrstck.cxx.
References SwTextINetFormat::GetCharFormat(), SwFormat::GetItemIfSet(), SwViewOption::GetLinksColor(), SwViewShell::GetOut(), OutputDevice::GetOutDevType(), SwViewShell::GetViewOptions(), SwViewOption::GetVisitedLinksColor(), SwViewShell::GetWin(), SwViewOption::IsLinks(), SwViewOption::IsPagePreview(), SwViewOption::IsPDFExport(), SwTextINetFormat::IsVisited(), SwViewOption::IsVisitedLinks(), OUTDEV_PRINTER, RES_CHRATR_COLOR(), RES_TXTATR_INETFMT(), SwTextINetFormat::SetVisited(), SfxPoolItem::Which(), and SwTextAttr::Which().
Referenced by SwAttrHandler::ActivateTop(), SwAttrHandler::Push(), and SwAttrHandler::PushAndChg().
const sal_uInt8 StackPos[RES_TXTATR_WITHEND_END - RES_CHRATR_BEGIN+1] |
Attribute to Stack Mapping.
Attributes applied to a text are pushed on different stacks. For each stack, the top most attribute on the stack is valid. Because some kinds of attributes have to be pushed to the same stacks we map their ids to stack ids Attention: The first NUM_DEFAULT_VALUES ( defined in swfntcch.hxx ) are stored in the defaultitem-cache, if you add one, you have to increase NUM_DEFAULT_VALUES. Also adjust NUM_ATTRIBUTE_STACKS in atrhndl.hxx.
Definition at line 68 of file atrstck.cxx.
Referenced by SwAttrHandler::ActivateTop(), SwAttrHandler::FontChg(), SwAttrHandler::Init(), SwAttrHandler::Push(), SwAttrHandler::RemoveFromStack(), and SwFontObj::SwFontObj().