23#include <editeng/editids.hrc>
25#include <officecfg/Office/Common.hxx>
192 const Color aCol( nCol );
193 const Color aOldColor(
pOut->GetFillColor() );
194 pOut->SetFillColor( aCol );
196 pOut->SetFillColor( aOldColor );
206 Color aOldFillColor(
pOut->GetFillColor() );
210 pOut->SetFillColor( aOldFillColor );
211 pOut->SetLineColor( aOldColor );
216 assert(
pOut &&
"no Outdev");
217 return sal_uInt16(
pOut->GetTextWidth(
" "));
222 if( !(
pOut && bIsScript) )
225 Color aOldLineColor(
pOut->GetLineColor() );
229 if( rRect.
Width() <= 2 * nPix || rRect.
Height() <= 2 * nPix )
231 const Point aTopLeft( rRect.
Left() + nPix, rRect.
Top() + nPix );
233 const SwRect aRect( aTopLeft, aBotRight );
235 pOut->SetLineColor( aOldLineColor );
239 m_sThemeName(
"Default" ),
240 m_sSymbolFont(
"symbol" ),
242 mnViewLayoutColumns( 0 ),
243 m_nPagePreviewRow( 1 ),
244 m_nPagePreviewCol( 2 ),
247 m_bStarOneSetting(false),
248 m_bIsPagePreview(false),
249 m_bSelectionInReadonly(false),
253 mbViewLayoutBookMode(false),
254 mbHideWhitespaceMode(false),
255 m_bShowPlaceHolderFields( true ),
409 m_nItemId (SID_ATTR_CHAR_UNDERLINE),
442 return RndStdIds::FLY_AT_PARA;
444 return RndStdIds::FLY_AT_CHAR;
446 return RndStdIds::FLY_AS_CHAR;
448 return RndStdIds::FLY_AT_CHAR;
553 struct FlagToConfig_Impl
558 static const FlagToConfig_Impl aFlags[] =
574 if(nFlag & aFlags[
nPos].nFlag)
602 return gIgnoreProtectedArea.
get();
616 return aDefaultViewOptions;
SAL_WARN_UNUSED_RESULT Point PixelToLogic(const Point &rDevicePt) const
static SAL_WARN_UNUSED_RESULT SfxViewShell * Current()
void setWidth(tools::Long nWidth)
void setHeight(tools::Long nHeight)
static bool IsSelectionInReadonly()
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)
const Color & GetDocBoundariesColor() const
const Color & GetShadowColor() const
static bool IsIgnoreProtectedArea()
const Color & GetVisitedLinksColor() const
const Color & GetFontColor() const
const Color & GetIndexShadingsColor() const
sal_uInt8 m_nPagePreviewCol
static bool IsAutoCompleteWords()
SwFillMode m_nShadowCursorFillMode
const Color & GetHeaderFooterMarkColor() const
const Color & GetAppBackgroundColor() const
bool IsShowOutlineContentVisibilityButton() const
const Color & GetTextGridColor() const
SwViewOption & operator=(const SwViewOption &rOpt)
short GetDivisionY() const
static const SwViewOption & GetCurrentViewOptions()
ViewOptCoreFlags2 m_nCore2Options
const Color & GetSpellColor() const
static void Init(const OutputDevice *pWin)
sal_uInt8 m_nPagePreviewRow
sal_uInt16 mnViewLayoutColumns
sal_uInt8 GetPagePrevCol() const
ViewOptFlags2 m_nUIOptions
sal_Int32 m_nDefaultAnchor
RndStdIds GetDefaultAnchorType() const
const Color & GetRetoucheColor() const
const Color & GetDocColor() const
bool IsTreatSubOutlineLevelsAsContent() const
sal_uInt8 GetPagePrevRow() const
static SwViewColors s_aInitialColorConfig
bool m_bShowPlaceHolderFields
bool mbHideWhitespaceMode
const Color & GetTableBoundariesColor() const
const Color & GetPageBreakColor() const
ViewOptFlags1 m_nCoreOptions
bool getBrowseMode() const
const Color & GetGrammarColor() const
const Color & GetLinksColor() const
bool IsAppearanceFlag(ViewOptFlags nFlag) const
static void DrawRectPrinter(OutputDevice *pOut, const SwRect &rRect)
static void DrawRect(OutputDevice *pOut, const SwRect &rRect, ::Color nCol)
sal_uInt8 m_nTableDestination
const Color & GetObjectBoundariesColor() const
void PaintPostIts(OutputDevice *pOut, const SwRect &rRect, bool bIsScript) const
SwViewColors m_aColorConfig
bool IsEqualFlags(const SwViewOption &rOpt) const
const Color & GetFieldShadingsColor() const
static sal_uInt16 GetPostItsWidth(const OutputDevice *pOut)
short GetDivisionX() const
bool m_bSelectionInReadonly
const Color & GetSmarttagColor() const
const Color & GetSectionBoundColor() const
void SetAppearanceFlag(ViewOptFlags nFlag, bool bSet, bool bSaveInConfig=false)
static sal_uInt16 s_nPixelTwips
bool mbViewLayoutBookMode
const SwViewOption * GetViewOptions() const
SwWrtShell & GetWrtShell() const
constexpr ::Color COL_LIGHTRED(0xFF, 0x00, 0x00)
constexpr ::Color COL_GRAY(0x80, 0x80, 0x80)
constexpr ::Color COL_GREEN(0x00, 0x80, 0x00)
constexpr ::Color COL_LIGHTMAGENTA(0xFF, 0x00, 0xFF)
constexpr ::Color COL_RED(0x80, 0x00, 0x00)
constexpr ::Color COL_LIGHTGRAY(0xC0, 0xC0, 0xC0)
constexpr ::Color COL_LIGHTBLUE(0x00, 0x00, 0xFF)
constexpr ::Color COL_BLUE(0x00, 0x00, 0x80)
constexpr ::Color COL_BLACK(0x00, 0x00, 0x00)
constexpr ::Color COL_TRANSPARENT(ColorTransparency, 0xFF, 0xFF, 0xFF, 0xFF)
sal_uInt16 GetExportMode()
const LocaleDataWrapper & GetLocaleData()
ViewOptFlags m_nAppearanceFlags
Color m_aScriptIndicatorColor
Color m_aFieldShadingsColor
Color m_aSectionBoundColor
Color m_aIndexShadingsColor
Color m_aVisitedLinksColor
Color m_aHeaderFooterMarkColor
Color m_aAppBackgroundColor
Color m_aObjectBoundColor
bool bTreatSubOutlineLevelsAsContent
bool bShowOutlineContentVisibilityButton
constexpr OUStringLiteral PERCENT(u"Percent")
sal_uInt16 GetHtmlMode(const SwDocShell *pShell)