Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
1ea8188f
Kaydet (Commit)
1ea8188f
authored
Kas 12, 2015
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sw: prefix members of SwViewOption
Change-Id: Ia86aac05e67990bd47400dc7aabbedde278e4fd1
üst
9f19d242
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
101 additions
and
101 deletions
+101
-101
viewopt.hxx
sw/inc/viewopt.hxx
+24
-24
viewopt.cxx
sw/source/uibase/config/viewopt.cxx
+77
-77
No files found.
sw/inc/viewopt.hxx
Dosyayı görüntüle @
1ea8188f
...
...
@@ -103,29 +103,29 @@ namespace svtools{ class ColorConfig;}
class
SW_DLLPUBLIC
SwViewOption
{
static
Color
aDocColor
;
// color of document boundaries
static
Color
aDocBoundColor
;
// color of document boundaries
static
Color
aObjectBoundColor
;
// color of object boundaries
static
Color
aAppBackgroundColor
;
// application background
static
Color
aTableBoundColor
;
// color of table boundaries
static
Color
aFontColor
;
static
Color
aIndexShadingsColor
;
// background color of indexes
static
Color
aLinksColor
;
static
Color
aVisitedLinksColor
;
static
Color
aDirectCursorColor
;
static
Color
aTextGridColor
;
static
Color
aSpellColor
;
// mark color of online spell checking
static
Color
aSmarttagColor
;
static
Color
aFieldShadingsColor
;
static
Color
aSectionBoundColor
;
static
Color
aPageBreakColor
;
static
Color
aScriptIndicatorColor
;
static
Color
aShadowColor
;
static
Color
aHeaderFooterMarkColor
;
static
sal_Int32
nAppearanceFlags
;
static
Color
m_
aDocColor
;
// color of document boundaries
static
Color
m_
aDocBoundColor
;
// color of document boundaries
static
Color
m_
aObjectBoundColor
;
// color of object boundaries
static
Color
m_
aAppBackgroundColor
;
// application background
static
Color
m_
aTableBoundColor
;
// color of table boundaries
static
Color
m_
aFontColor
;
static
Color
m_
aIndexShadingsColor
;
// background color of indexes
static
Color
m_
aLinksColor
;
static
Color
m_
aVisitedLinksColor
;
static
Color
m_
aDirectCursorColor
;
static
Color
m_
aTextGridColor
;
static
Color
m_
aSpellColor
;
// mark color of online spell checking
static
Color
m_
aSmarttagColor
;
static
Color
m_
aFieldShadingsColor
;
static
Color
m_
aSectionBoundColor
;
static
Color
m_
aPageBreakColor
;
static
Color
m_
aScriptIndicatorColor
;
static
Color
m_
aShadowColor
;
static
Color
m_
aHeaderFooterMarkColor
;
static
sal_Int32
m_
nAppearanceFlags
;
protected
:
static
sal_uInt16
nPixelTwips
;
// 1 Pixel == ? Twips
static
sal_uInt16
m_
nPixelTwips
;
// 1 Pixel == ? Twips
OUString
m_sSymbolFont
;
// Symbolfont.
sal_uInt32
m_nCoreOptions
;
// Bits for SwViewShell.
...
...
@@ -167,7 +167,7 @@ protected:
bool
m_bTest6
:
1
;
// Test-flag "No screen adj"
bool
m_bTest7
:
1
;
// Test-flag "win format"
bool
m_bTest8
:
1
;
// Test-flag ""
static
bool
s
_bTest9
;
// Test-Flag "DrawingLayerNotLoading"
static
bool
m
_bTest9
;
// Test-Flag "DrawingLayerNotLoading"
bool
m_bTest10
:
1
;
// Test-Flag "Format by Input"
#endif
...
...
@@ -178,7 +178,7 @@ public:
static
void
Init
(
vcl
::
Window
*
pWin
);
// Initializing of static data.
static
sal_uInt16
GetPixelTwips
()
{
return
nPixelTwips
;
}
static
sal_uInt16
GetPixelTwips
()
{
return
m_
nPixelTwips
;
}
inline
sal_uInt32
GetCoreOptions
()
const
{
return
m_nCoreOptions
;}
inline
void
SetUIOptions
(
const
SwViewOption
&
);
...
...
sw/source/uibase/config/viewopt.cxx
Dosyayı görüntüle @
1ea8188f
...
...
@@ -42,30 +42,30 @@
#include <comphelper/lok.hxx>
#ifdef DBG_UTIL
bool
SwViewOption
::
s
_bTest9
=
false
;
//DrawingLayerNotLoading
bool
SwViewOption
::
m
_bTest9
=
false
;
//DrawingLayerNotLoading
#endif
Color
SwViewOption
::
aDocBoundColor
(
COL_LIGHTGRAY
);
Color
SwViewOption
::
aObjectBoundColor
(
COL_LIGHTGRAY
);
Color
SwViewOption
::
aDocColor
(
COL_LIGHTGRAY
);
Color
SwViewOption
::
aAppBackgroundColor
(
COL_LIGHTGRAY
);
Color
SwViewOption
::
aTableBoundColor
(
COL_LIGHTGRAY
);
Color
SwViewOption
::
aIndexShadingsColor
(
COL_LIGHTGRAY
);
Color
SwViewOption
::
aLinksColor
(
COL_BLUE
);
Color
SwViewOption
::
aVisitedLinksColor
(
COL_RED
);
Color
SwViewOption
::
aDirectCursorColor
(
COL_BLUE
);
Color
SwViewOption
::
aTextGridColor
(
COL_LIGHTGRAY
);
Color
SwViewOption
::
aSpellColor
(
COL_LIGHTRED
);
Color
SwViewOption
::
aSmarttagColor
(
COL_LIGHTMAGENTA
);
Color
SwViewOption
::
aFontColor
(
COL_BLACK
);
Color
SwViewOption
::
aFieldShadingsColor
(
COL_LIGHTGRAY
);
Color
SwViewOption
::
aSectionBoundColor
(
COL_LIGHTGRAY
);
Color
SwViewOption
::
aPageBreakColor
(
COL_BLUE
);
Color
SwViewOption
::
aScriptIndicatorColor
(
COL_GREEN
);
Color
SwViewOption
::
aShadowColor
(
COL_GRAY
);
Color
SwViewOption
::
aHeaderFooterMarkColor
(
COL_BLUE
);
sal_Int32
SwViewOption
::
nAppearanceFlags
=
VIEWOPT_DOC_BOUNDARIES
|
VIEWOPT_OBJECT_BOUNDARIES
;
sal_uInt16
SwViewOption
::
nPixelTwips
=
0
;
// one pixel on the screen
Color
SwViewOption
::
m_
aDocBoundColor
(
COL_LIGHTGRAY
);
Color
SwViewOption
::
m_
aObjectBoundColor
(
COL_LIGHTGRAY
);
Color
SwViewOption
::
m_
aDocColor
(
COL_LIGHTGRAY
);
Color
SwViewOption
::
m_
aAppBackgroundColor
(
COL_LIGHTGRAY
);
Color
SwViewOption
::
m_
aTableBoundColor
(
COL_LIGHTGRAY
);
Color
SwViewOption
::
m_
aIndexShadingsColor
(
COL_LIGHTGRAY
);
Color
SwViewOption
::
m_
aLinksColor
(
COL_BLUE
);
Color
SwViewOption
::
m_
aVisitedLinksColor
(
COL_RED
);
Color
SwViewOption
::
m_
aDirectCursorColor
(
COL_BLUE
);
Color
SwViewOption
::
m_
aTextGridColor
(
COL_LIGHTGRAY
);
Color
SwViewOption
::
m_
aSpellColor
(
COL_LIGHTRED
);
Color
SwViewOption
::
m_
aSmarttagColor
(
COL_LIGHTMAGENTA
);
Color
SwViewOption
::
m_
aFontColor
(
COL_BLACK
);
Color
SwViewOption
::
m_
aFieldShadingsColor
(
COL_LIGHTGRAY
);
Color
SwViewOption
::
m_
aSectionBoundColor
(
COL_LIGHTGRAY
);
Color
SwViewOption
::
m_
aPageBreakColor
(
COL_BLUE
);
Color
SwViewOption
::
m_
aScriptIndicatorColor
(
COL_GREEN
);
Color
SwViewOption
::
m_
aShadowColor
(
COL_GRAY
);
Color
SwViewOption
::
m_
aHeaderFooterMarkColor
(
COL_BLUE
);
sal_Int32
SwViewOption
::
m_
nAppearanceFlags
=
VIEWOPT_DOC_BOUNDARIES
|
VIEWOPT_OBJECT_BOUNDARIES
;
sal_uInt16
SwViewOption
::
m_
nPixelTwips
=
0
;
// one pixel on the screen
static
const
char
aPostItStr
[]
=
" "
;
...
...
@@ -147,7 +147,7 @@ void SwViewOption::PaintPostIts( OutputDevice *pOut, const SwRect &rRect, bool b
const
Point
aTopLeft
(
rRect
.
Left
()
+
nPix
,
rRect
.
Top
()
+
nPix
);
const
Point
aBotRight
(
rRect
.
Right
()
-
nPix
,
rRect
.
Bottom
()
-
nPix
);
const
SwRect
aRect
(
aTopLeft
,
aBotRight
);
DrawRect
(
pOut
,
aRect
,
aScriptIndicatorColor
.
GetColor
()
);
DrawRect
(
pOut
,
aRect
,
m_
aScriptIndicatorColor
.
GetColor
()
);
pOut
->
SetLineColor
(
aOldLineColor
);
}
}
...
...
@@ -211,7 +211,7 @@ SwViewOption::SwViewOption() :
m_bTest5
=
m_bTest6
=
m_bTest7
=
m_bTest8
=
m_bTest10
=
false
;
#endif
if
(
comphelper
::
LibreOfficeKit
::
isActive
())
aAppBackgroundColor
=
COL_TRANSPARENT
;
m_
aAppBackgroundColor
=
COL_TRANSPARENT
;
}
SwViewOption
::
SwViewOption
(
const
SwViewOption
&
rVOpt
)
...
...
@@ -305,9 +305,9 @@ SwViewOption::~SwViewOption()
void
SwViewOption
::
Init
(
vcl
::
Window
*
pWin
)
{
if
(
!
nPixelTwips
&&
pWin
)
if
(
!
m_
nPixelTwips
&&
pWin
)
{
nPixelTwips
=
(
sal_uInt16
)
pWin
->
PixelToLogic
(
Size
(
1
,
1
)
).
Height
();
m_
nPixelTwips
=
(
sal_uInt16
)
pWin
->
PixelToLogic
(
Size
(
1
,
1
)
).
Height
();
}
}
...
...
@@ -357,171 +357,171 @@ sal_uInt16 GetHtmlMode(const SwDocShell* pShell)
Color
&
SwViewOption
::
GetDocColor
()
{
return
aDocColor
;
return
m_
aDocColor
;
}
Color
&
SwViewOption
::
GetDocBoundariesColor
()
{
return
aDocBoundColor
;
return
m_
aDocBoundColor
;
}
Color
&
SwViewOption
::
GetObjectBoundariesColor
()
{
return
aObjectBoundColor
;
return
m_
aObjectBoundColor
;
}
Color
&
SwViewOption
::
GetAppBackgroundColor
()
{
return
aAppBackgroundColor
;
return
m_
aAppBackgroundColor
;
}
Color
&
SwViewOption
::
GetTableBoundariesColor
()
{
return
aTableBoundColor
;
return
m_
aTableBoundColor
;
}
Color
&
SwViewOption
::
GetIndexShadingsColor
()
{
return
aIndexShadingsColor
;
return
m_
aIndexShadingsColor
;
}
Color
&
SwViewOption
::
GetLinksColor
()
{
return
aLinksColor
;
return
m_
aLinksColor
;
}
Color
&
SwViewOption
::
GetVisitedLinksColor
()
{
return
aVisitedLinksColor
;
return
m_
aVisitedLinksColor
;
}
Color
&
SwViewOption
::
GetDirectCursorColor
()
{
return
aDirectCursorColor
;
return
m_
aDirectCursorColor
;
}
Color
&
SwViewOption
::
GetTextGridColor
()
{
return
aTextGridColor
;
return
m_
aTextGridColor
;
}
Color
&
SwViewOption
::
GetSpellColor
()
{
return
aSpellColor
;
return
m_
aSpellColor
;
}
Color
&
SwViewOption
::
GetSmarttagColor
()
{
return
aSmarttagColor
;
return
m_
aSmarttagColor
;
}
Color
&
SwViewOption
::
GetShadowColor
()
{
return
aShadowColor
;
return
m_
aShadowColor
;
}
Color
&
SwViewOption
::
GetFontColor
()
{
return
aFontColor
;
return
m_
aFontColor
;
}
Color
&
SwViewOption
::
GetFieldShadingsColor
()
{
return
aFieldShadingsColor
;
return
m_
aFieldShadingsColor
;
}
Color
&
SwViewOption
::
GetSectionBoundColor
()
{
return
aSectionBoundColor
;
return
m_
aSectionBoundColor
;
}
Color
&
SwViewOption
::
GetPageBreakColor
()
{
return
aPageBreakColor
;
return
m_
aPageBreakColor
;
}
Color
&
SwViewOption
::
GetHeaderFooterMarkColor
()
{
return
aHeaderFooterMarkColor
;
return
m_
aHeaderFooterMarkColor
;
}
void
SwViewOption
::
ApplyColorConfigValues
(
const
svtools
::
ColorConfig
&
rConfig
)
{
aDocColor
.
SetColor
(
rConfig
.
GetColorValue
(
svtools
::
DOCCOLOR
).
nColor
);
m_
aDocColor
.
SetColor
(
rConfig
.
GetColorValue
(
svtools
::
DOCCOLOR
).
nColor
);
svtools
::
ColorConfigValue
aValue
=
rConfig
.
GetColorValue
(
svtools
::
DOCBOUNDARIES
);
aDocBoundColor
.
SetColor
(
aValue
.
nColor
);
nAppearanceFlags
=
0
;
m_
aDocBoundColor
.
SetColor
(
aValue
.
nColor
);
m_
nAppearanceFlags
=
0
;
if
(
aValue
.
bIsVisible
)
nAppearanceFlags
|=
VIEWOPT_DOC_BOUNDARIES
;
m_
nAppearanceFlags
|=
VIEWOPT_DOC_BOUNDARIES
;
aAppBackgroundColor
.
SetColor
(
rConfig
.
GetColorValue
(
svtools
::
APPBACKGROUND
).
nColor
);
m_
aAppBackgroundColor
.
SetColor
(
rConfig
.
GetColorValue
(
svtools
::
APPBACKGROUND
).
nColor
);
aValue
=
rConfig
.
GetColorValue
(
svtools
::
OBJECTBOUNDARIES
);
aObjectBoundColor
.
SetColor
(
aValue
.
nColor
);
m_
aObjectBoundColor
.
SetColor
(
aValue
.
nColor
);
if
(
aValue
.
bIsVisible
)
nAppearanceFlags
|=
VIEWOPT_OBJECT_BOUNDARIES
;
m_
nAppearanceFlags
|=
VIEWOPT_OBJECT_BOUNDARIES
;
aValue
=
rConfig
.
GetColorValue
(
svtools
::
TABLEBOUNDARIES
);
aTableBoundColor
.
SetColor
(
aValue
.
nColor
);
m_
aTableBoundColor
.
SetColor
(
aValue
.
nColor
);
if
(
aValue
.
bIsVisible
)
nAppearanceFlags
|=
VIEWOPT_TABLE_BOUNDARIES
;
m_
nAppearanceFlags
|=
VIEWOPT_TABLE_BOUNDARIES
;
aValue
=
rConfig
.
GetColorValue
(
svtools
::
WRITERIDXSHADINGS
);
aIndexShadingsColor
.
SetColor
(
aValue
.
nColor
);
m_
aIndexShadingsColor
.
SetColor
(
aValue
.
nColor
);
if
(
aValue
.
bIsVisible
)
nAppearanceFlags
|=
VIEWOPT_INDEX_SHADINGS
;
m_
nAppearanceFlags
|=
VIEWOPT_INDEX_SHADINGS
;
aValue
=
rConfig
.
GetColorValue
(
svtools
::
LINKS
);
aLinksColor
.
SetColor
(
aValue
.
nColor
);
m_
aLinksColor
.
SetColor
(
aValue
.
nColor
);
if
(
aValue
.
bIsVisible
)
nAppearanceFlags
|=
VIEWOPT_LINKS
;
m_
nAppearanceFlags
|=
VIEWOPT_LINKS
;
aValue
=
rConfig
.
GetColorValue
(
svtools
::
LINKSVISITED
);
aVisitedLinksColor
.
SetColor
(
aValue
.
nColor
);
m_
aVisitedLinksColor
.
SetColor
(
aValue
.
nColor
);
if
(
aValue
.
bIsVisible
)
nAppearanceFlags
|=
VIEWOPT_VISITED_LINKS
;
m_
nAppearanceFlags
|=
VIEWOPT_VISITED_LINKS
;
aValue
=
rConfig
.
GetColorValue
(
svtools
::
SHADOWCOLOR
);
aShadowColor
.
SetColor
(
aValue
.
nColor
);
m_
aShadowColor
.
SetColor
(
aValue
.
nColor
);
if
(
aValue
.
bIsVisible
)
nAppearanceFlags
|=
VIEWOPT_SHADOW
;
m_
nAppearanceFlags
|=
VIEWOPT_SHADOW
;
aDirectCursorColor
.
SetColor
(
rConfig
.
GetColorValue
(
svtools
::
WRITERDIRECTCURSOR
).
nColor
);
m_
aDirectCursorColor
.
SetColor
(
rConfig
.
GetColorValue
(
svtools
::
WRITERDIRECTCURSOR
).
nColor
);
aTextGridColor
.
SetColor
(
rConfig
.
GetColorValue
(
svtools
::
WRITERTEXTGRID
).
nColor
);
m_
aTextGridColor
.
SetColor
(
rConfig
.
GetColorValue
(
svtools
::
WRITERTEXTGRID
).
nColor
);
aSpellColor
.
SetColor
(
rConfig
.
GetColorValue
(
svtools
::
SPELL
).
nColor
);
m_
aSpellColor
.
SetColor
(
rConfig
.
GetColorValue
(
svtools
::
SPELL
).
nColor
);
aSmarttagColor
.
SetColor
(
rConfig
.
GetColorValue
(
svtools
::
SMARTTAGS
).
nColor
);
m_
aSmarttagColor
.
SetColor
(
rConfig
.
GetColorValue
(
svtools
::
SMARTTAGS
).
nColor
);
aFontColor
.
SetColor
(
rConfig
.
GetColorValue
(
svtools
::
FONTCOLOR
).
nColor
);
m_
aFontColor
.
SetColor
(
rConfig
.
GetColorValue
(
svtools
::
FONTCOLOR
).
nColor
);
aValue
=
rConfig
.
GetColorValue
(
svtools
::
WRITERFIELDSHADINGS
);
aFieldShadingsColor
.
SetColor
(
aValue
.
nColor
);
m_
aFieldShadingsColor
.
SetColor
(
aValue
.
nColor
);
if
(
aValue
.
bIsVisible
)
nAppearanceFlags
|=
VIEWOPT_FIELD_SHADINGS
;
m_
nAppearanceFlags
|=
VIEWOPT_FIELD_SHADINGS
;
aValue
=
rConfig
.
GetColorValue
(
svtools
::
WRITERSECTIONBOUNDARIES
);
aSectionBoundColor
.
SetColor
(
aValue
.
nColor
);
m_
aSectionBoundColor
.
SetColor
(
aValue
.
nColor
);
if
(
aValue
.
bIsVisible
)
nAppearanceFlags
|=
VIEWOPT_SECTION_BOUNDARIES
;
m_
nAppearanceFlags
|=
VIEWOPT_SECTION_BOUNDARIES
;
aValue
=
rConfig
.
GetColorValue
(
svtools
::
WRITERPAGEBREAKS
);
aPageBreakColor
.
SetColor
(
aValue
.
nColor
);
m_
aPageBreakColor
.
SetColor
(
aValue
.
nColor
);
aValue
=
rConfig
.
GetColorValue
(
svtools
::
WRITERHEADERFOOTERMARK
);
aHeaderFooterMarkColor
.
SetColor
(
aValue
.
nColor
);
m_
aHeaderFooterMarkColor
.
SetColor
(
aValue
.
nColor
);
aScriptIndicatorColor
.
SetColor
(
rConfig
.
GetColorValue
(
svtools
::
WRITERSCRIPTINDICATOR
).
nColor
);
m_
aScriptIndicatorColor
.
SetColor
(
rConfig
.
GetColorValue
(
svtools
::
WRITERSCRIPTINDICATOR
).
nColor
);
}
void
SwViewOption
::
SetAppearanceFlag
(
sal_Int32
nFlag
,
bool
bSet
,
bool
bSaveInConfig
)
{
if
(
bSet
)
nAppearanceFlags
|=
nFlag
;
m_
nAppearanceFlags
|=
nFlag
;
else
nAppearanceFlags
&=
~
nFlag
;
m_
nAppearanceFlags
&=
~
nFlag
;
if
(
bSaveInConfig
)
{
//create an editable svtools::ColorConfig and store the change
...
...
@@ -560,7 +560,7 @@ void SwViewOption::SetAppearanceFlag(sal_Int32 nFlag, bool bSet, bool bSaveInCon
bool
SwViewOption
::
IsAppearanceFlag
(
sal_Int32
nFlag
)
{
return
0
!=
(
nAppearanceFlags
&
nFlag
);
return
0
!=
(
m_
nAppearanceFlags
&
nFlag
);
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment