23#include <editeng/editids.hrc>
25#include <officecfg/Office/Common.hxx>
115 const Color aCol( nCol );
116 const Color aOldColor(
pOut->GetFillColor() );
117 pOut->SetFillColor( aCol );
119 pOut->SetFillColor( aOldColor );
129 Color aOldFillColor(
pOut->GetFillColor() );
133 pOut->SetFillColor( aOldFillColor );
134 pOut->SetLineColor( aOldColor );
139 assert(
pOut &&
"no Outdev");
140 return sal_uInt16(
pOut->GetTextWidth(
" "));
145 if( !(
pOut && bIsScript) )
148 Color aOldLineColor(
pOut->GetLineColor() );
152 if( rRect.
Width() <= 2 * nPix || rRect.
Height() <= 2 * nPix )
154 const Point aTopLeft( rRect.
Left() + nPix, rRect.
Top() + nPix );
156 const SwRect aRect( aTopLeft, aBotRight );
158 pOut->SetLineColor( aOldLineColor );
162 m_sSymbolFont(
"symbol" ),
164 mnViewLayoutColumns( 0 ),
165 m_nPagePreviewRow( 1 ),
166 m_nPagePreviewCol( 2 ),
169 m_bStarOneSetting(false),
170 m_bIsPagePreview(false),
171 m_bSelectionInReadonly(false),
175 mbViewLayoutBookMode(false),
176 mbHideWhitespaceMode(false),
177 m_bShowPlaceHolderFields( true ),
326 m_nItemId (SID_ATTR_CHAR_UNDERLINE),
359 return RndStdIds::FLY_AT_PARA;
361 return RndStdIds::FLY_AT_CHAR;
363 return RndStdIds::FLY_AS_CHAR;
365 return RndStdIds::FLY_AT_CHAR;
547 struct FlagToConfig_Impl
552 static const FlagToConfig_Impl aFlags[] =
568 if(nFlag & aFlags[
nPos].nFlag)
594 return gIgnoreProtectedArea.
get();
SAL_WARN_UNUSED_RESULT Point PixelToLogic(const Point &rDevicePt) const
void setWidth(tools::Long nWidth)
void setHeight(tools::Long nHeight)
SvxAutoCorrect * GetAutoCorrect()
static SvxAutoCorrCfg & Get()
SvxSwAutoFormatFlags & GetSwFlags()
Of course Writer needs its own rectangles.
void Height(tools::Long nNew)
void Top(const tools::Long nTop)
void Right(const tools::Long nRight)
void Bottom(const tools::Long nBottom)
tools::Rectangle SVRect() const
void Left(const tools::Long nLeft)
void Width(tools::Long nNew)
static Color & GetObjectBoundariesColor()
static Color s_aVisitedLinksColor
static void PaintPostIts(OutputDevice *pOut, const SwRect &rRect, bool bIsScript)
static Color & GetVisitedLinksColor()
static bool IsIgnoreProtectedArea()
static Color & GetTableBoundariesColor()
static Color & GetIndexShadingsColor()
static Color & GetLinksColor()
static Color s_aPageBreakColor
sal_uInt8 m_nPagePreviewCol
static Color & GetSmarttagColor()
static Color s_aGrammarColor
static Color & GetSectionBoundColor()
static bool IsAutoCompleteWords()
static Color s_aTextGridColor
SwFillMode m_nShadowCursorFillMode
static Color s_aIndexShadingsColor
bool IsShowOutlineContentVisibilityButton() const
static Color s_aFontColor
static Color s_aShadowColor
SwViewOption & operator=(const SwViewOption &rOpt)
short GetDivisionY() const
static Color s_aFieldShadingsColor
ViewOptCoreFlags2 m_nCore2Options
static Color s_aTableBoundColor
static Color & GetDocBoundariesColor()
static void Init(const OutputDevice *pWin)
sal_uInt8 m_nPagePreviewRow
static Color & GetGrammarColor()
sal_uInt16 mnViewLayoutColumns
static Color & GetSpellColor()
sal_uInt8 GetPagePrevCol() const
static bool IsAppearanceFlag(ViewOptFlags nFlag)
ViewOptFlags2 m_nUIOptions
sal_Int32 m_nDefaultAnchor
RndStdIds GetDefaultAnchorType() const
const Color & GetRetoucheColor() const
bool IsTreatSubOutlineLevelsAsContent() const
sal_uInt8 GetPagePrevRow() const
static Color & GetPageBreakColor()
static Color & GetDocColor()
bool m_bShowPlaceHolderFields
static Color & GetShadowColor()
bool mbHideWhitespaceMode
static Color & GetHeaderFooterMarkColor()
static Color s_aDocBoundColor
ViewOptFlags1 m_nCoreOptions
bool getBrowseMode() const
static Color s_aSmarttagColor
static void DrawRectPrinter(OutputDevice *pOut, const SwRect &rRect)
static void DrawRect(OutputDevice *pOut, const SwRect &rRect, ::Color nCol)
sal_uInt8 m_nTableDestination
static Color s_aHeaderFooterMarkColor
static Color s_aObjectBoundColor
static Color s_aDirectCursorColor
static Color s_aAppBackgroundColor
static Color & GetFieldShadingsColor()
static Color s_aLinksColor
static ViewOptFlags s_nAppearanceFlags
static Color s_aScriptIndicatorColor
static Color s_aSectionBoundColor
static void ApplyColorConfigValues(const svtools::ColorConfig &rConfig)
bool IsEqualFlags(const SwViewOption &rOpt) const
static sal_uInt16 GetPostItsWidth(const OutputDevice *pOut)
short GetDivisionX() const
static Color & GetTextGridColor()
bool m_bSelectionInReadonly
static Color & GetAppBackgroundColor()
static Color s_aSpellColor
static void SetAppearanceFlag(ViewOptFlags nFlag, bool bSet, bool bSaveInConfig=false)
static sal_uInt16 s_nPixelTwips
static Color & GetFontColor()
static Color & GetDirectCursorColor()
bool mbViewLayoutBookMode
constexpr ::Color COL_GRAY(0x80, 0x80, 0x80)
constexpr ::Color COL_BLACK(0x00, 0x00, 0x00)
constexpr ::Color COL_TRANSPARENT(ColorTransparency, 0xFF, 0xFF, 0xFF, 0xFF)
sal_uInt16 GetExportMode()
const LocaleDataWrapper & GetLocaleData()
bool bTreatSubOutlineLevelsAsContent
bool bShowOutlineContentVisibilityButton
constexpr OUStringLiteral PERCENT(u"Percent")
sal_uInt16 GetHtmlMode(const SwDocShell *pShell)