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
8d3eefd3
Kaydet (Commit)
8d3eefd3
authored
Nis 20, 2015
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert TREEFLAG_ constants to scoped enum
Change-Id: Ibf9eab757fbe94dbff3fd09472f3ca74fffd5094
üst
923de833
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
36 additions
and
28 deletions
+36
-28
accessiblelistbox.cxx
accessibility/source/extended/accessiblelistbox.cxx
+2
-2
accessiblelistboxentry.cxx
accessibility/source/extended/accessiblelistboxentry.cxx
+11
-11
treelistbox.hxx
include/svtools/treelistbox.hxx
+14
-6
simptabl.cxx
svtools/source/contnr/simptabl.cxx
+1
-1
svimpbox.cxx
svtools/source/contnr/svimpbox.cxx
+1
-1
svtabbx.cxx
svtools/source/contnr/svtabbx.cxx
+4
-4
treelistbox.cxx
svtools/source/contnr/treelistbox.cxx
+0
-0
ctredlin.cxx
svx/source/dialog/ctredlin.cxx
+1
-1
fontlb.cxx
svx/source/dialog/fontlb.cxx
+1
-1
chinese_dictionarydialog.cxx
...nodialogs/textconversiondlgs/chinese_dictionarydialog.cxx
+1
-1
No files found.
accessibility/source/extended/accessiblelistbox.cxx
Dosyayı görüntüle @
8d3eefd3
...
...
@@ -414,7 +414,7 @@ namespace accessibility
}
bool
bHasButtons
=
(
getListBox
()
->
GetStyle
()
&
WB_HASBUTTONS
)
!=
0
;
if
(
!
(
getListBox
()
->
GetTreeFlags
()
&
TREEFLAG_
CHKBTN
)
)
if
(
!
(
getListBox
()
->
GetTreeFlags
()
&
SvTreeFlags
::
CHKBTN
)
)
{
if
(
bHasButtons
)
nCase
=
1
;
...
...
@@ -445,7 +445,7 @@ namespace accessibility
//o is: return AccessibleRole::TREE;
bool
bHasButtons
=
(
getListBox
()
->
GetStyle
()
&
WB_HASBUTTONS
)
!=
0
;
if
(
!
bHasButtons
&&
(
getListBox
()
->
GetTreeFlags
()
&
TREEFLAG_
CHKBTN
))
if
(
!
bHasButtons
&&
(
getListBox
()
->
GetTreeFlags
()
&
SvTreeFlags
::
CHKBTN
))
return
AccessibleRole
::
LIST
;
else
if
(
GetRoleType
()
==
0
)
...
...
accessibility/source/extended/accessiblelistboxentry.cxx
Dosyayı görüntüle @
8d3eefd3
...
...
@@ -393,7 +393,7 @@ namespace accessibility
}
bool
bHasButtons
=
(
getListBox
()
->
GetStyle
()
&
WB_HASBUTTONS
)
!=
0
;
if
(
!
(
getListBox
()
->
GetTreeFlags
()
&
TREEFLAG_
CHKBTN
)
)
if
(
!
(
getListBox
()
->
GetTreeFlags
()
&
SvTreeFlags
::
CHKBTN
)
)
{
if
(
bHasButtons
)
nCase
=
1
;
...
...
@@ -422,8 +422,8 @@ namespace accessibility
else
if
(
nType
==
TREEBOX_ALLITEM_ACCROLE_TYPE_LIST
)
return
AccessibleRole
::
LIST_ITEM
;
sal_uInt16
treeFlag
=
pBox
->
GetTreeFlags
();
if
(
treeFlag
&
TREEFLAG_
CHKBTN
)
SvTreeFlags
treeFlag
=
pBox
->
GetTreeFlags
();
if
(
treeFlag
&
SvTreeFlags
::
CHKBTN
)
{
SvTreeListEntry
*
pEntry
=
pBox
->
GetEntryFromPath
(
m_aEntryPath
);
SvButtonState
eState
=
pBox
->
GetCheckButtonState
(
pEntry
);
...
...
@@ -757,9 +757,9 @@ namespace accessibility
// three actions supported
SvTreeListBox
*
pBox
=
getListBox
();
sal_uInt16
treeFlag
=
pBox
->
GetTreeFlags
();
SvTreeFlags
treeFlag
=
pBox
->
GetTreeFlags
();
bool
bHasButtons
=
(
getListBox
()
->
GetStyle
()
&
WB_HASBUTTONS
)
!=
0
;
if
(
(
treeFlag
&
TREEFLAG_
CHKBTN
)
&&
!
bHasButtons
)
if
(
(
treeFlag
&
SvTreeFlags
::
CHKBTN
)
&&
!
bHasButtons
)
{
sal_Int16
role
=
getAccessibleRole
();
if
(
role
==
AccessibleRole
::
CHECK_BOX
)
...
...
@@ -781,8 +781,8 @@ namespace accessibility
checkActionIndex_Impl
(
nIndex
);
EnsureIsAlive
();
sal_uInt16
treeFlag
=
getListBox
()
->
GetTreeFlags
();
if
(
nIndex
==
0
&&
(
treeFlag
&
TREEFLAG_
CHKBTN
)
)
SvTreeFlags
treeFlag
=
getListBox
()
->
GetTreeFlags
();
if
(
nIndex
==
0
&&
(
treeFlag
&
SvTreeFlags
::
CHKBTN
)
)
{
if
(
getAccessibleRole
()
==
AccessibleRole
::
CHECK_BOX
)
{
...
...
@@ -794,7 +794,7 @@ namespace accessibility
getListBox
()
->
SetCheckButtonState
(
pEntry
,
SV_BUTTON_CHECKED
);
}
}
else
if
(
(
nIndex
==
1
&&
(
treeFlag
&
TREEFLAG_
CHKBTN
)
)
||
(
nIndex
==
0
)
)
else
if
(
(
nIndex
==
1
&&
(
treeFlag
&
SvTreeFlags
::
CHKBTN
)
)
||
(
nIndex
==
0
)
)
{
SvTreeListEntry
*
pEntry
=
getListBox
()
->
GetEntryFromPath
(
m_aEntryPath
);
if
(
pEntry
)
...
...
@@ -823,8 +823,8 @@ namespace accessibility
// sal_Bool bHasButtons = (getListBox()->GetStyle() & WB_HASBUTTONS)!=0;
SvTreeListEntry
*
pEntry
=
getListBox
()
->
GetEntryFromPath
(
m_aEntryPath
);
SvButtonState
state
=
getListBox
()
->
GetCheckButtonState
(
pEntry
);
sal_uInt16
treeFlag
=
getListBox
()
->
GetTreeFlags
();
if
(
nIndex
==
0
&&
(
treeFlag
&
TREEFLAG_
CHKBTN
))
SvTreeFlags
treeFlag
=
getListBox
()
->
GetTreeFlags
();
if
(
nIndex
==
0
&&
(
treeFlag
&
SvTreeFlags
::
CHKBTN
))
{
if
(
getAccessibleRole
()
==
AccessibleRole
::
CHECK_BOX
)
{
...
...
@@ -838,7 +838,7 @@ namespace accessibility
//Sometimes, a List or Tree may have both checkbox and label at the same time
return
OUString
();
}
}
else
if
(
(
nIndex
==
1
&&
(
treeFlag
&
TREEFLAG_
CHKBTN
))
||
nIndex
==
0
)
}
else
if
(
(
nIndex
==
1
&&
(
treeFlag
&
SvTreeFlags
::
CHKBTN
))
||
nIndex
==
0
)
{
if
(
pEntry
->
HasChildren
()
||
pEntry
->
HasChildrenOnDemand
()
)
return
getListBox
()
->
IsExpanded
(
pEntry
)
?
\
...
...
include/svtools/treelistbox.hxx
Dosyayı görüntüle @
8d3eefd3
...
...
@@ -100,10 +100,18 @@ namespace o3tl
#define SV_ENTRYHEIGHTOFFS_PIXEL 2
#define TREEFLAG_CHKBTN 0x0001
#define TREEFLAG_USESEL 0x0002
#define TREEFLAG_MANINS 0x0004
#define TREEFLAG_RECALCTABS 0x0008
enum
class
SvTreeFlags
{
CHKBTN
=
0x01
,
USESEL
=
0x02
,
MANINS
=
0x04
,
RECALCTABS
=
0x08
,
FIXEDHEIGHT
=
0x10
,
};
namespace
o3tl
{
template
<>
struct
typed_flags
<
SvTreeFlags
>
:
is_typed_flags
<
SvTreeFlags
,
0x1f
>
{};
}
#define TREEBOX_ALLITEM_ACCROLE_TYPE_LIST 0x01
#define TREEBOX_ALLITEM_ACCROLE_TYPE_TREE 0x02
...
...
@@ -261,7 +269,7 @@ protected:
SvTreeListEntry
*
pTargetEntry
;
SvLBoxButtonData
*
pCheckButtonData
;
std
::
vector
<
SvLBoxTab
*>
aTabs
;
sal_uInt16
nTreeFlags
;
SvTreeFlags
nTreeFlags
;
sal_uInt16
nImpFlags
;
// Move/CopySelection: Position of the current Entry in SelectionList
sal_uInt16
nCurEntrySelPos
;
...
...
@@ -527,7 +535,7 @@ public:
void
SetAllEntriesAccessibleRoleType
(
short
n
)
{
nAllItemAccRoleType
=
n
;
}
short
GetAllEntriesAccessibleRoleType
()
const
{
return
nAllItemAccRoleType
;
}
sal_uInt16
GetTreeFlags
()
const
{
return
nTreeFlags
;}
SvTreeFlags
GetTreeFlags
()
const
{
return
nTreeFlags
;}
OUString
headString
;
OUString
SearchEntryTextWithHeadTitle
(
SvTreeListEntry
*
pEntry
);
...
...
svtools/source/contnr/simptabl.cxx
Dosyayı görüntüle @
8d3eefd3
...
...
@@ -435,7 +435,7 @@ SvLBoxItem* SvSimpleTable::GetEntryAtPos( SvTreeListEntry* pEntry, sal_uInt16 nP
nPos
++
;
if
(
nTreeFlags
&
TREEFLAG_
CHKBTN
)
nPos
++
;
if
(
nTreeFlags
&
SvTreeFlags
::
CHKBTN
)
nPos
++
;
if
(
nPos
<
nCount
)
{
...
...
svtools/source/contnr/svimpbox.cxx
Dosyayı görüntüle @
8d3eefd3
...
...
@@ -3257,7 +3257,7 @@ void SvImpLBox::SetUpdateMode( bool bMode )
bool
SvImpLBox
::
SetMostRight
(
SvTreeListEntry
*
pEntry
)
{
if
(
pView
->
nTreeFlags
&
TREEFLAG_
RECALCTABS
)
if
(
pView
->
nTreeFlags
&
SvTreeFlags
::
RECALCTABS
)
{
nFlags
|=
F_IGNORE_CHANGED_TABS
;
pView
->
SetTabs
();
...
...
svtools/source/contnr/svtabbx.cxx
Dosyayı görüntüle @
8d3eefd3
...
...
@@ -141,7 +141,7 @@ void SvTabListBox::SetTabs(const long* pTabs, MapUnit eMapUnit)
pTabList
[
nIdx
].
SetPos
(
nNewTab
);
pTabList
[
nIdx
].
nFlags
=
(
SvLBoxTabFlags
::
ADJUST_LEFT
|
SvLBoxTabFlags
::
INV_ALWAYS
);
}
SvTreeListBox
::
nTreeFlags
|=
TREEFLAG_
RECALCTABS
;
SvTreeListBox
::
nTreeFlags
|=
SvTreeFlags
::
RECALCTABS
;
if
(
IsUpdateMode
()
)
Invalidate
();
}
...
...
@@ -158,7 +158,7 @@ void SvTabListBox::SetTab( sal_uInt16 nTab,long nValue,MapUnit eMapUnit )
aSize
=
LogicToLogic
(
aSize
,
&
aMMSource
,
&
aMMDest
);
nValue
=
aSize
.
Width
();
pTabList
[
nTab
].
SetPos
(
nValue
);
SvTreeListBox
::
nTreeFlags
|=
TREEFLAG_
RECALCTABS
;
SvTreeListBox
::
nTreeFlags
|=
SvTreeFlags
::
RECALCTABS
;
if
(
IsUpdateMode
()
)
Invalidate
();
}
...
...
@@ -477,14 +477,14 @@ void SvTabListBox::SetTabJustify( sal_uInt16 nTab, SvTabJustify eJustify)
nFlags
&=
(
~
MYTABMASK
);
nFlags
|=
static_cast
<
SvLBoxTabFlags
>
(
eJustify
);
pTab
->
nFlags
=
nFlags
;
SvTreeListBox
::
nTreeFlags
|=
TREEFLAG_
RECALCTABS
;
SvTreeListBox
::
nTreeFlags
|=
SvTreeFlags
::
RECALCTABS
;
if
(
IsUpdateMode
()
)
Invalidate
();
}
long
SvTabListBox
::
GetLogicTab
(
sal_uInt16
nTab
)
{
if
(
SvTreeListBox
::
nTreeFlags
&
TREEFLAG_
RECALCTABS
)
if
(
SvTreeListBox
::
nTreeFlags
&
SvTreeFlags
::
RECALCTABS
)
((
SvTabListBox
*
)
this
)
->
SetTabs
();
DBG_ASSERT
(
nTab
<
nTabCount
,
"GetTabPos:Invalid Tab"
);
...
...
svtools/source/contnr/treelistbox.cxx
Dosyayı görüntüle @
8d3eefd3
This diff is collapsed.
Click to expand it.
svx/source/dialog/ctredlin.cxx
Dosyayı görüntüle @
8d3eefd3
...
...
@@ -334,7 +334,7 @@ SvTreeListEntry* SvxRedlinTable::CreateEntry() const
void
SvxRedlinTable
::
InitEntry
(
SvTreeListEntry
*
pEntry
,
const
OUString
&
rStr
,
const
Image
&
rColl
,
const
Image
&
rExp
,
SvLBoxButtonKind
eButtonKind
)
{
if
(
nTreeFlags
&
TREEFLAG_
CHKBTN
)
if
(
nTreeFlags
&
SvTreeFlags
::
CHKBTN
)
{
pEntry
->
AddItem
(
new
SvLBoxButton
(
pEntry
,
eButtonKind
,
0
,
pCheckButtonData
));
}
...
...
svx/source/dialog/fontlb.cxx
Dosyayı görüntüle @
8d3eefd3
...
...
@@ -136,7 +136,7 @@ void SvxFontListBox::InitEntry(
{
if
(
mbUseFont
)
{
if
(
nTreeFlags
&
TREEFLAG_
CHKBTN
)
if
(
nTreeFlags
&
SvTreeFlags
::
CHKBTN
)
pEntry
->
AddItem
(
new
SvLBoxButton
(
pEntry
,
eButtonKind
,
0
,
pCheckButtonData
)
);
pEntry
->
AddItem
(
new
SvLBoxContextBmp
(
pEntry
,
0
,
rCollImg
,
rExpImg
,
true
)
);
...
...
svx/source/unodialogs/textconversiondlgs/chinese_dictionarydialog.cxx
Dosyayı görüntüle @
8d3eefd3
...
...
@@ -318,7 +318,7 @@ SvLBoxItem* DictionaryList::getItemAtColumn( SvTreeListEntry* pEntry, sal_uInt16
{
sal_uInt16
nCount
=
pEntry
->
ItemCount
();
nColumn
++
;
if
(
nTreeFlags
&
TREEFLAG_
CHKBTN
)
if
(
nTreeFlags
&
SvTreeFlags
::
CHKBTN
)
nColumn
++
;
if
(
nColumn
<
nCount
)
pItem
=
pEntry
->
GetItem
(
nColumn
);
...
...
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