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
81fbf138
Kaydet (Commit)
81fbf138
authored
Mar 31, 2016
tarafından
Noel Grandin
Kaydeden (comit)
Noel Grandin
Mar 31, 2016
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
tdf#84938 convert VIEWOPT_ constants to scoped enum
Change-Id: I7d72ed66ea2cf920a0a03a2aa71b5de079f0cf6e
üst
77c494de
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
14 deletions
+17
-14
swmodule.hxx
sw/inc/swmodule.hxx
+8
-5
appopt.cxx
sw/source/uibase/app/appopt.cxx
+1
-1
swmodul1.cxx
sw/source/uibase/app/swmodul1.cxx
+4
-4
view0.cxx
sw/source/uibase/uiview/view0.cxx
+1
-1
unomod.cxx
sw/source/uibase/uno/unomod.cxx
+3
-3
No files found.
sw/inc/swmodule.hxx
Dosyayı görüntüle @
81fbf138
...
@@ -54,10 +54,13 @@ class SvtCTLOptions;
...
@@ -54,10 +54,13 @@ class SvtCTLOptions;
class
SvtUserOptions
;
class
SvtUserOptions
;
struct
SwDBData
;
struct
SwDBData
;
#define VIEWOPT_DEST_VIEW 0
#define VIEWOPT_DEST_TEXT 1
enum
class
SvViewOpt
{
#define VIEWOPT_DEST_WEB 2
DestView
,
#define VIEWOPT_DEST_VIEW_ONLY 3 //ViewOptions are set only at View, not at the appl.
DestText
,
DestWeb
,
DestViewOnly
//ViewOptions are set only at View, not at the appl.
};
namespace
com
{
namespace
sun
{
namespace
star
{
namespace
scanner
{
namespace
com
{
namespace
sun
{
namespace
star
{
namespace
scanner
{
class
XScannerManager2
;
class
XScannerManager2
;
...
@@ -145,7 +148,7 @@ public:
...
@@ -145,7 +148,7 @@ public:
const
SwMasterUsrPref
*
GetUsrPref
(
bool
bWeb
)
const
;
const
SwMasterUsrPref
*
GetUsrPref
(
bool
bWeb
)
const
;
const
SwViewOption
*
GetViewOption
(
bool
bWeb
);
const
SwViewOption
*
GetViewOption
(
bool
bWeb
);
void
ApplyUsrPref
(
const
SwViewOption
&
,
SwView
*
,
void
ApplyUsrPref
(
const
SwViewOption
&
,
SwView
*
,
sal_uInt16
nDest
=
VIEWOPT_DEST_VIEW
);
SvViewOpt
nDest
=
SvViewOpt
::
DestView
);
void
ApplyUserMetric
(
FieldUnit
eMetric
,
bool
bWeb
);
void
ApplyUserMetric
(
FieldUnit
eMetric
,
bool
bWeb
);
void
ApplyRulerMetric
(
FieldUnit
eMetric
,
bool
bHorizontal
,
bool
bWeb
);
void
ApplyRulerMetric
(
FieldUnit
eMetric
,
bool
bHorizontal
,
bool
bWeb
);
void
ApplyFieldUpdateFlags
(
SwFieldUpdateFlags
eFieldFlags
);
void
ApplyFieldUpdateFlags
(
SwFieldUpdateFlags
eFieldFlags
);
...
...
sw/source/uibase/app/appopt.cxx
Dosyayı görüntüle @
81fbf138
...
@@ -414,7 +414,7 @@ void SwModule::ApplyItemSet( sal_uInt16 nId, const SfxItemSet& rSet )
...
@@ -414,7 +414,7 @@ void SwModule::ApplyItemSet( sal_uInt16 nId, const SfxItemSet& rSet )
aViewOpt
.
SetIgnoreProtectedArea
(
static_cast
<
const
SfxBoolItem
*>
(
pItem
)
->
GetValue
());
aViewOpt
.
SetIgnoreProtectedArea
(
static_cast
<
const
SfxBoolItem
*>
(
pItem
)
->
GetValue
());
// set elements for the current view and shell
// set elements for the current view and shell
ApplyUsrPref
(
aViewOpt
,
pAppView
,
bTextDialog
?
VIEWOPT_DEST_TEXT
:
VIEWOPT_DEST_WEB
);
ApplyUsrPref
(
aViewOpt
,
pAppView
,
bTextDialog
?
SvViewOpt
::
DestText
:
SvViewOpt
::
DestWeb
);
}
}
VclPtr
<
SfxTabPage
>
SwModule
::
CreateTabPage
(
sal_uInt16
nId
,
vcl
::
Window
*
pParent
,
const
SfxItemSet
&
rSet
)
VclPtr
<
SfxTabPage
>
SwModule
::
CreateTabPage
(
sal_uInt16
nId
,
vcl
::
Window
*
pParent
,
const
SfxItemSet
&
rSet
)
...
...
sw/source/uibase/app/swmodul1.cxx
Dosyayı görüntüle @
81fbf138
...
@@ -136,18 +136,18 @@ SwView* SwModule::GetNextView(SwView* pView)
...
@@ -136,18 +136,18 @@ SwView* SwModule::GetNextView(SwView* pView)
// New Master for the settings is set; this affects the current view and all following.
// New Master for the settings is set; this affects the current view and all following.
void
SwModule
::
ApplyUsrPref
(
const
SwViewOption
&
rUsrPref
,
SwView
*
pActView
,
void
SwModule
::
ApplyUsrPref
(
const
SwViewOption
&
rUsrPref
,
SwView
*
pActView
,
sal_uInt16
nDest
)
SvViewOpt
nDest
)
{
{
SwView
*
pCurrView
=
pActView
;
SwView
*
pCurrView
=
pActView
;
SwViewShell
*
pSh
=
pCurrView
?
&
pCurrView
->
GetWrtShell
()
:
nullptr
;
SwViewShell
*
pSh
=
pCurrView
?
&
pCurrView
->
GetWrtShell
()
:
nullptr
;
SwMasterUsrPref
*
pPref
=
const_cast
<
SwMasterUsrPref
*>
(
GetUsrPref
(
SwMasterUsrPref
*
pPref
=
const_cast
<
SwMasterUsrPref
*>
(
GetUsrPref
(
nDest
==
VIEWOPT_DEST_WEB
nDest
==
SvViewOpt
::
DestWeb
||
(
nDest
!=
VIEWOPT_DEST_TEXT
||
(
nDest
!=
SvViewOpt
::
DestText
&&
pCurrView
&&
dynamic_cast
<
const
SwWebView
*>
(
pCurrView
)
!=
nullptr
)
));
&&
pCurrView
&&
dynamic_cast
<
const
SwWebView
*>
(
pCurrView
)
!=
nullptr
)
));
// with Uno, only sdbcx::View, but not the Module should be changed
// with Uno, only sdbcx::View, but not the Module should be changed
bool
bViewOnly
=
VIEWOPT_DEST_VIEW_ONLY
==
nDest
;
bool
bViewOnly
=
SvViewOpt
::
DestViewOnly
==
nDest
;
// fob Preview off
// fob Preview off
SwPagePreview
*
pPPView
;
SwPagePreview
*
pPPView
;
if
(
!
pCurrView
&&
nullptr
!=
(
pPPView
=
dynamic_cast
<
SwPagePreview
*>
(
SfxViewShell
::
Current
()))
)
if
(
!
pCurrView
&&
nullptr
!=
(
pPPView
=
dynamic_cast
<
SwPagePreview
*>
(
SfxViewShell
::
Current
()))
)
...
...
sw/source/uibase/uiview/view0.cxx
Dosyayı görüntüle @
81fbf138
...
@@ -591,7 +591,7 @@ void SwView::ExecViewOptions(SfxRequest &rReq)
...
@@ -591,7 +591,7 @@ void SwView::ExecViewOptions(SfxRequest &rReq)
if
(
!
bModified
)
if
(
!
bModified
)
rSh
.
ResetModified
();
rSh
.
ResetModified
();
pModule
->
ApplyUsrPref
(
*
pOpt
,
this
,
bWebView
?
VIEWOPT_DEST_WEB
:
VIEWOPT_DEST_TEXT
);
pModule
->
ApplyUsrPref
(
*
pOpt
,
this
,
bWebView
?
SvViewOpt
::
DestWeb
:
SvViewOpt
::
DestText
);
// #i6193# let postits know about new spellcheck setting
// #i6193# let postits know about new spellcheck setting
if
(
nSlot
==
SID_AUTOSPELL_CHECK
)
if
(
nSlot
==
SID_AUTOSPELL_CHECK
)
...
...
sw/source/uibase/uno/unomod.cxx
Dosyayı görüntüle @
81fbf138
...
@@ -810,9 +810,9 @@ void SwXViewSettings::_postSetValues()
...
@@ -810,9 +810,9 @@ void SwXViewSettings::_postSetValues()
SW_MOD
()
->
ApplyRulerMetric
(
(
FieldUnit
)
eVRulerUnit
,
false
,
bWeb
);
SW_MOD
()
->
ApplyRulerMetric
(
(
FieldUnit
)
eVRulerUnit
,
false
,
bWeb
);
}
}
SW_MOD
()
->
ApplyUsrPref
(
*
mpViewOption
,
pView
,
pView
?
VIEWOPT_DEST_VIEW_ONLY
SW_MOD
()
->
ApplyUsrPref
(
*
mpViewOption
,
pView
,
pView
?
SvViewOpt
::
DestViewOnly
:
bWeb
?
VIEWOPT_DEST_WEB
:
bWeb
?
SvViewOpt
::
DestWeb
:
VIEWOPT_DEST_TEXT
);
:
SvViewOpt
::
DestText
);
delete
mpViewOption
;
delete
mpViewOption
;
mpViewOption
=
nullptr
;
mpViewOption
=
nullptr
;
...
...
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