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
b13dea51
Kaydet (Commit)
b13dea51
authored
May 20, 2015
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sw: prefix members of SwCondCollPage
Change-Id: I8e290ab6264dff4d361e1dc0eee6b69a14512d03
üst
b255304b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
23 deletions
+23
-23
swuiccoll.cxx
sw/source/ui/chrdlg/swuiccoll.cxx
+17
-17
swuiccoll.hxx
sw/source/uibase/inc/swuiccoll.hxx
+6
-6
No files found.
sw/source/ui/chrdlg/swuiccoll.cxx
Dosyayı görüntüle @
b13dea51
...
@@ -39,7 +39,7 @@
...
@@ -39,7 +39,7 @@
#include "swuiccoll.hxx"
#include "swuiccoll.hxx"
const
sal_uInt16
SwCondCollPage
::
aPageRg
[]
=
{
const
sal_uInt16
SwCondCollPage
::
m_
aPageRg
[]
=
{
FN_COND_COLL
,
FN_COND_COLL
,
FN_COND_COLL
,
FN_COND_COLL
,
0
0
};
};
...
@@ -54,11 +54,11 @@ SwCondCollPage::SwCondCollPage(vcl::Window *pParent, const SfxItemSet &rSet)
...
@@ -54,11 +54,11 @@ SwCondCollPage::SwCondCollPage(vcl::Window *pParent, const SfxItemSet &rSet)
:
SfxTabPage
(
pParent
,
"ConditionPage"
,
:
SfxTabPage
(
pParent
,
"ConditionPage"
,
"modules/swriter/ui/conditionpage.ui"
,
&
rSet
)
"modules/swriter/ui/conditionpage.ui"
,
&
rSet
)
,
,
rSh
(
::
GetActiveView
()
->
GetWrtShell
()),
m_
rSh
(
::
GetActiveView
()
->
GetWrtShell
()),
pCmds
(
SwCondCollItem
::
GetCmds
()
),
m_
pCmds
(
SwCondCollItem
::
GetCmds
()
),
pFmt
(
0
),
m_
pFmt
(
0
),
bNewTemplate
(
false
)
m_
bNewTemplate
(
false
)
{
{
get
(
m_pConditionCB
,
"condstyle"
);
get
(
m_pConditionCB
,
"condstyle"
);
get
(
m_pContextFT
,
"contextft"
);
get
(
m_pContextFT
,
"contextft"
);
...
@@ -174,21 +174,21 @@ bool SwCondCollPage::FillItemSet(SfxItemSet *rSet)
...
@@ -174,21 +174,21 @@ bool SwCondCollPage::FillItemSet(SfxItemSet *rSet)
void
SwCondCollPage
::
Reset
(
const
SfxItemSet
*
)
void
SwCondCollPage
::
Reset
(
const
SfxItemSet
*
)
{
{
if
(
bNewTemplate
)
if
(
m_
bNewTemplate
)
m_pConditionCB
->
Enable
();
m_pConditionCB
->
Enable
();
if
(
RES_CONDTXTFMTCOLL
==
pFmt
->
Which
())
if
(
RES_CONDTXTFMTCOLL
==
m_
pFmt
->
Which
())
m_pConditionCB
->
Check
();
m_pConditionCB
->
Check
();
OnOffHdl
(
m_pConditionCB
);
OnOffHdl
(
m_pConditionCB
);
m_pTbLinks
->
Clear
();
m_pTbLinks
->
Clear
();
SfxStyleSheetBasePool
*
pPool
=
rSh
.
GetView
().
GetDocShell
()
->
GetStyleSheetPool
();
SfxStyleSheetBasePool
*
pPool
=
m_
rSh
.
GetView
().
GetDocShell
()
->
GetStyleSheetPool
();
pPool
->
SetSearchMask
(
SFX_STYLE_FAMILY_PARA
,
SFXSTYLEBIT_ALL
);
pPool
->
SetSearchMask
(
SFX_STYLE_FAMILY_PARA
,
SFXSTYLEBIT_ALL
);
m_pStyleLB
->
Clear
();
m_pStyleLB
->
Clear
();
const
SfxStyleSheetBase
*
pBase
=
pPool
->
First
();
const
SfxStyleSheetBase
*
pBase
=
pPool
->
First
();
while
(
pBase
)
while
(
pBase
)
{
{
if
(
!
pFmt
||
pBase
->
GetName
()
!=
pFmt
->
GetName
())
if
(
!
m_pFmt
||
pBase
->
GetName
()
!=
m_
pFmt
->
GetName
())
m_pStyleLB
->
InsertEntry
(
pBase
->
GetName
());
m_pStyleLB
->
InsertEntry
(
pBase
->
GetName
());
pBase
=
pPool
->
Next
();
pBase
=
pPool
->
Next
();
}
}
...
@@ -199,9 +199,9 @@ void SwCondCollPage::Reset(const SfxItemSet *)
...
@@ -199,9 +199,9 @@ void SwCondCollPage::Reset(const SfxItemSet *)
OUString
aEntry
(
m_aStrArr
[
n
]
+
"
\t
"
);
OUString
aEntry
(
m_aStrArr
[
n
]
+
"
\t
"
);
const
SwCollCondition
*
pCond
=
0
;
const
SwCollCondition
*
pCond
=
0
;
if
(
pFmt
&&
RES_CONDTXTFMTCOLL
==
pFmt
->
Which
()
&&
if
(
m_pFmt
&&
RES_CONDTXTFMTCOLL
==
m_
pFmt
->
Which
()
&&
0
!=
(
pCond
=
static_cast
<
SwConditionTxtFmtColl
*>
(
pFmt
)
->
0
!=
(
pCond
=
static_cast
<
SwConditionTxtFmtColl
*>
(
m_
pFmt
)
->
HasCondition
(
SwCollCondition
(
0
,
pCmds
[
n
].
nCnd
,
pCmds
[
n
].
nSubCond
)
)
)
HasCondition
(
SwCollCondition
(
0
,
m_pCmds
[
n
].
nCnd
,
m_
pCmds
[
n
].
nSubCond
)
)
)
&&
pCond
->
GetTxtFmtColl
()
)
&&
pCond
->
GetTxtFmtColl
()
)
{
{
aEntry
+=
pCond
->
GetTxtFmtColl
()
->
GetName
();
aEntry
+=
pCond
->
GetTxtFmtColl
()
->
GetName
();
...
@@ -265,13 +265,13 @@ IMPL_LINK( SwCondCollPage, SelectHdl, ListBox*, pBox)
...
@@ -265,13 +265,13 @@ IMPL_LINK( SwCondCollPage, SelectHdl, ListBox*, pBox)
m_pStyleLB
->
Clear
();
m_pStyleLB
->
Clear
();
const
sal_Int32
nSelPos
=
pBox
->
GetSelectEntryPos
();
const
sal_Int32
nSelPos
=
pBox
->
GetSelectEntryPos
();
const
sal_uInt16
nSearchFlags
=
*
static_cast
<
sal_uInt16
*>
(
m_pFilterLB
->
GetEntryData
(
nSelPos
));
const
sal_uInt16
nSearchFlags
=
*
static_cast
<
sal_uInt16
*>
(
m_pFilterLB
->
GetEntryData
(
nSelPos
));
SfxStyleSheetBasePool
*
pPool
=
rSh
.
GetView
().
GetDocShell
()
->
GetStyleSheetPool
();
SfxStyleSheetBasePool
*
pPool
=
m_
rSh
.
GetView
().
GetDocShell
()
->
GetStyleSheetPool
();
pPool
->
SetSearchMask
(
SFX_STYLE_FAMILY_PARA
,
nSearchFlags
);
pPool
->
SetSearchMask
(
SFX_STYLE_FAMILY_PARA
,
nSearchFlags
);
const
SfxStyleSheetBase
*
pBase
=
pPool
->
First
();
const
SfxStyleSheetBase
*
pBase
=
pPool
->
First
();
while
(
pBase
)
while
(
pBase
)
{
{
if
(
!
pFmt
||
pBase
->
GetName
()
!=
pFmt
->
GetName
())
if
(
!
m_pFmt
||
pBase
->
GetName
()
!=
m_
pFmt
->
GetName
())
m_pStyleLB
->
InsertEntry
(
pBase
->
GetName
());
m_pStyleLB
->
InsertEntry
(
pBase
->
GetName
());
pBase
=
pPool
->
Next
();
pBase
=
pPool
->
Next
();
}
}
...
@@ -295,10 +295,10 @@ IMPL_LINK( SwCondCollPage, SelectHdl, ListBox*, pBox)
...
@@ -295,10 +295,10 @@ IMPL_LINK( SwCondCollPage, SelectHdl, ListBox*, pBox)
return
0
;
return
0
;
}
}
void
SwCondCollPage
::
SetCollection
(
SwFmt
*
p
New
Format
,
bool
bNew
)
void
SwCondCollPage
::
SetCollection
(
SwFmt
*
pFormat
,
bool
bNew
)
{
{
pFmt
=
pNew
Format
;
m_pFmt
=
p
Format
;
bNewTemplate
=
bNew
;
m_
bNewTemplate
=
bNew
;
}
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
sw/source/uibase/inc/swuiccoll.hxx
Dosyayı görüntüle @
b13dea51
...
@@ -41,11 +41,11 @@ class SwCondCollPage : public SfxTabPage
...
@@ -41,11 +41,11 @@ class SwCondCollPage : public SfxTabPage
std
::
vector
<
OUString
>
m_aStrArr
;
std
::
vector
<
OUString
>
m_aStrArr
;
SwWrtShell
&
rSh
;
SwWrtShell
&
m_
rSh
;
const
CommandStruct
*
pCmds
;
const
CommandStruct
*
m_
pCmds
;
SwFmt
*
pFmt
;
SwFmt
*
m_
pFmt
;
bool
bNewTemplate
;
bool
m_
bNewTemplate
;
virtual
~
SwCondCollPage
();
virtual
~
SwCondCollPage
();
virtual
void
dispose
()
SAL_OVERRIDE
;
virtual
void
dispose
()
SAL_OVERRIDE
;
...
@@ -59,13 +59,13 @@ class SwCondCollPage : public SfxTabPage
...
@@ -59,13 +59,13 @@ class SwCondCollPage : public SfxTabPage
using
SfxTabPage
::
ActivatePage
;
using
SfxTabPage
::
ActivatePage
;
using
SfxTabPage
::
DeactivatePage
;
using
SfxTabPage
::
DeactivatePage
;
static
const
sal_uInt16
aPageRg
[];
static
const
sal_uInt16
m_
aPageRg
[];
public
:
public
:
SwCondCollPage
(
vcl
::
Window
*
pParent
,
const
SfxItemSet
&
rSet
);
SwCondCollPage
(
vcl
::
Window
*
pParent
,
const
SfxItemSet
&
rSet
);
static
VclPtr
<
SfxTabPage
>
Create
(
vcl
::
Window
*
pParent
,
const
SfxItemSet
*
rSet
);
static
VclPtr
<
SfxTabPage
>
Create
(
vcl
::
Window
*
pParent
,
const
SfxItemSet
*
rSet
);
static
const
sal_uInt16
*
GetRanges
()
{
return
aPageRg
;
}
static
const
sal_uInt16
*
GetRanges
()
{
return
m_
aPageRg
;
}
virtual
bool
FillItemSet
(
SfxItemSet
*
rSet
)
SAL_OVERRIDE
;
virtual
bool
FillItemSet
(
SfxItemSet
*
rSet
)
SAL_OVERRIDE
;
virtual
void
Reset
(
const
SfxItemSet
*
rSet
)
SAL_OVERRIDE
;
virtual
void
Reset
(
const
SfxItemSet
*
rSet
)
SAL_OVERRIDE
;
...
...
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