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
a2baeffb
Kaydet (Commit)
a2baeffb
authored
Kas 15, 2012
tarafından
Kohei Yoshida
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Rename SvLBoxItem::IsA() to GetType(), and mark that const.
Change-Id: I542835154e40b25d68fc3995d911810e26e30501
üst
67582fd2
Hide whitespace changes
Inline
Side-by-side
Showing
24 changed files
with
61 additions
and
63 deletions
+61
-63
fontsubs.cxx
cui/source/options/fontsubs.cxx
+2
-2
optfltr.cxx
cui/source/options/optfltr.cxx
+4
-4
optlingu.cxx
cui/source/options/optlingu.cxx
+1
-1
autocdlg.cxx
cui/source/tabpages/autocdlg.cxx
+2
-2
macroass.cxx
cui/source/tabpages/macroass.cxx
+1
-1
dsEntriesNoExp.cxx
dbaccess/source/ui/browser/dsEntriesNoExp.cxx
+1
-1
listviewitems.cxx
dbaccess/source/ui/control/listviewitems.cxx
+1
-3
tabletree.cxx
dbaccess/source/ui/control/tabletree.cxx
+1
-1
listviewitems.hxx
dbaccess/source/ui/inc/listviewitems.hxx
+1
-1
acredlin.cxx
sc/source/ui/miscdlgs/acredlin.cxx
+2
-2
solveroptions.cxx
sc/source/ui/miscdlgs/solveroptions.cxx
+2
-2
svlbitm.hxx
svtools/inc/svtools/svlbitm.hxx
+4
-4
treelistbox.hxx
svtools/inc/svtools/treelistbox.hxx
+2
-2
svimpbox.cxx
svtools/source/contnr/svimpbox.cxx
+2
-2
svlbitm.cxx
svtools/source/contnr/svlbitm.cxx
+4
-4
svtabbx.cxx
svtools/source/contnr/svtabbx.cxx
+16
-16
treelistbox.cxx
svtools/source/contnr/treelistbox.cxx
+6
-6
treelistentry.cxx
svtools/source/contnr/treelistentry.cxx
+1
-1
checklbx.cxx
svx/source/dialog/checklbx.cxx
+1
-1
simptabl.cxx
svx/source/dialog/simptabl.cxx
+2
-2
chinese_dictionarydialog.cxx
...nodialogs/textconversiondlgs/chinese_dictionarydialog.cxx
+2
-2
cnttab.cxx
sw/source/ui/index/cnttab.cxx
+1
-1
content.cxx
sw/source/ui/utlui/content.cxx
+1
-1
glbltree.cxx
sw/source/ui/utlui/glbltree.cxx
+1
-1
No files found.
cui/source/options/fontsubs.cxx
Dosyayı görüntüle @
a2baeffb
...
...
@@ -505,7 +505,7 @@ void SvxFontSubstCheckListBox::SetCheckButtonState( SvTreeListEntry* pEntry, sal
SvLBoxButton
*
pItem
=
(
SvLBoxButton
*
)(
pEntry
->
GetItem
(
nCol
+
1
));
DBG_ASSERT
(
pItem
,
"SetCheckButton:Item not found"
);
if
(
((
SvLBoxItem
*
)
pItem
)
->
IsA
()
==
SV_ITEM_ID_LBOXBUTTON
)
if
(
pItem
->
GetType
()
==
SV_ITEM_ID_LBOXBUTTON
)
{
switch
(
eState
)
{
...
...
@@ -531,7 +531,7 @@ SvButtonState SvxFontSubstCheckListBox::GetCheckButtonState( SvTreeListEntry* pE
SvLBoxButton
*
pItem
=
(
SvLBoxButton
*
)(
pEntry
->
GetItem
(
nCol
+
1
));
DBG_ASSERT
(
pItem
,
"GetChButnState:Item not found"
);
if
(
((
SvLBoxItem
*
)
pItem
)
->
IsA
()
==
SV_ITEM_ID_LBOXBUTTON
)
if
(
pItem
->
GetType
()
==
SV_ITEM_ID_LBOXBUTTON
)
{
sal_uInt16
nButtonFlags
=
pItem
->
GetButtonFlags
();
eState
=
pCheckButtonData
->
ConvertToButtonState
(
nButtonFlags
);
...
...
cui/source/options/optfltr.cxx
Dosyayı görüntüle @
a2baeffb
...
...
@@ -209,7 +209,7 @@ sal_Bool OfaMSFilterTabPage2::FillItemSet( SfxItemSet& )
if
(
pEntry
)
{
SvLBoxButton
*
pItem
=
(
SvLBoxButton
*
)(
pEntry
->
GetItem
(
nCol
));
if
(
pItem
&&
((
SvLBoxItem
*
)
pItem
)
->
IsA
()
==
SV_ITEM_ID_LBOXBUTTON
)
if
(
pItem
&&
pItem
->
GetType
()
==
SV_ITEM_ID_LBOXBUTTON
)
{
sal_uInt16
nButtonFlags
=
pItem
->
GetButtonFlags
();
bCheck
=
SV_BUTTON_CHECKED
==
...
...
@@ -267,7 +267,7 @@ void OfaMSFilterTabPage2::Reset( const SfxItemSet& )
if
(
pEntry
)
{
SvLBoxButton
*
pItem
=
(
SvLBoxButton
*
)(
pEntry
->
GetItem
(
nCol
));
if
(
pItem
&&
((
SvLBoxItem
*
)
pItem
)
->
IsA
()
==
SV_ITEM_ID_LBOXBUTTON
)
if
(
pItem
&&
pItem
->
GetType
()
==
SV_ITEM_ID_LBOXBUTTON
)
{
if
(
(
rOpt
.
*
pArr
->
FnIs
)()
)
pItem
->
SetStateChecked
();
...
...
@@ -340,7 +340,7 @@ void OfaMSFilterTabPage2::MSFltrSimpleTable::SetCheckButtonState(
SvLBoxButton
*
pItem
=
(
SvLBoxButton
*
)(
pEntry
->
GetItem
(
nCol
+
1
));
DBG_ASSERT
(
pItem
,
"SetCheckButton:Item not found"
);
if
(
((
SvLBoxItem
*
)
pItem
)
->
IsA
()
==
SV_ITEM_ID_LBOXBUTTON
)
if
(
pItem
->
GetType
()
==
SV_ITEM_ID_LBOXBUTTON
)
{
switch
(
eState
)
{
...
...
@@ -367,7 +367,7 @@ SvButtonState OfaMSFilterTabPage2::MSFltrSimpleTable::GetCheckButtonState(
SvLBoxButton
*
pItem
=
(
SvLBoxButton
*
)(
pEntry
->
GetItem
(
nCol
+
1
));
DBG_ASSERT
(
pItem
,
"GetChButnState:Item not found"
);
if
(
((
SvLBoxItem
*
)
pItem
)
->
IsA
()
==
SV_ITEM_ID_LBOXBUTTON
)
if
(
pItem
->
GetType
()
==
SV_ITEM_ID_LBOXBUTTON
)
{
sal_uInt16
nButtonFlags
=
pItem
->
GetButtonFlags
();
eState
=
pCheckButtonData
->
ConvertToButtonState
(
nButtonFlags
);
...
...
cui/source/options/optlingu.cxx
Dosyayı görüntüle @
a2baeffb
...
...
@@ -268,7 +268,7 @@ static void lcl_SetCheckButton( SvTreeListEntry* pEntry, sal_Bool bCheck )
SvLBoxButton
*
pItem
=
(
SvLBoxButton
*
)(
pEntry
->
GetFirstItem
(
SV_ITEM_ID_LBOXBUTTON
));
DBG_ASSERT
(
pItem
,
"SetCheckButton:Item not found"
);
if
(
((
SvLBoxItem
*
)
pItem
)
->
IsA
()
==
SV_ITEM_ID_LBOXBUTTON
)
if
(
pItem
->
GetType
()
==
SV_ITEM_ID_LBOXBUTTON
)
{
if
(
bCheck
)
pItem
->
SetStateChecked
();
...
...
cui/source/tabpages/autocdlg.cxx
Dosyayı görüntüle @
a2baeffb
...
...
@@ -794,7 +794,7 @@ void OfaACorrCheckListBox::SetCheckButtonState( SvTreeListEntry* pEntry, sal_uIn
SvLBoxButton
*
pItem
=
(
SvLBoxButton
*
)(
pEntry
->
GetItem
(
nCol
+
1
));
DBG_ASSERT
(
pItem
,
"SetCheckButton:Item not found"
);
if
(
((
SvLBoxItem
*
)
pItem
)
->
IsA
()
==
SV_ITEM_ID_LBOXBUTTON
)
if
(
pItem
->
GetType
()
==
SV_ITEM_ID_LBOXBUTTON
)
{
switch
(
eState
)
{
...
...
@@ -820,7 +820,7 @@ SvButtonState OfaACorrCheckListBox::GetCheckButtonState( SvTreeListEntry* pEntry
SvLBoxButton
*
pItem
=
(
SvLBoxButton
*
)(
pEntry
->
GetItem
(
nCol
+
1
));
DBG_ASSERT
(
pItem
,
"GetChButnState:Item not found"
);
if
(
((
SvLBoxItem
*
)
pItem
)
->
IsA
()
==
SV_ITEM_ID_LBOXBUTTON
)
if
(
pItem
->
GetType
()
==
SV_ITEM_ID_LBOXBUTTON
)
{
sal_uInt16
nButtonFlags
=
pItem
->
GetButtonFlags
();
eState
=
pCheckButtonData
->
ConvertToButtonState
(
nButtonFlags
);
...
...
cui/source/tabpages/macroass.cxx
Dosyayı görüntüle @
a2baeffb
...
...
@@ -424,7 +424,7 @@ void _SfxMacroTabPage::FillEvents()
if
(
pE
)
{
SvLBoxString
*
pLItem
=
(
SvLBoxString
*
)
pE
->
GetItem
(
LB_MACROS_ITEMPOS
);
DBG_ASSERT
(
pLItem
&&
SV_ITEM_ID_LBOXSTRING
==
pLItem
->
IsA
(),
"_SfxMacroTabPage::FillEvents(): no LBoxString"
);
DBG_ASSERT
(
pLItem
&&
SV_ITEM_ID_LBOXSTRING
==
pLItem
->
GetType
(),
"_SfxMacroTabPage::FillEvents(): no LBoxString"
);
String
sOld
(
pLItem
->
GetText
()
);
String
sNew
;
...
...
dbaccess/source/ui/browser/dsEntriesNoExp.cxx
Dosyayı görüntüle @
a2baeffb
...
...
@@ -236,7 +236,7 @@ void SbaTableQueryBrowser::notifyHiContrastChanged()
for
(
sal_uInt16
i
=
0
;
i
<
nCount
;
++
i
)
{
SvLBoxItem
*
pItem
=
pEntryLoop
->
GetItem
(
i
);
if
(
!
pItem
||
(
pItem
->
IsA
()
!=
SV_ITEM_ID_LBOXCONTEXTBMP
)
)
if
(
!
pItem
||
pItem
->
GetType
()
!=
SV_ITEM_ID_LBOXCONTEXTBMP
)
continue
;
SvLBoxContextBmp
*
pContextBitmapItem
=
static_cast
<
SvLBoxContextBmp
*
>
(
pItem
);
...
...
dbaccess/source/ui/control/listviewitems.cxx
Dosyayı görüntüle @
a2baeffb
...
...
@@ -43,13 +43,11 @@ namespace dbaui
pView
->
Pop
();
}
//------------------------------------------------------------------------
sal_uInt16
OBoldListboxString
::
IsA
()
sal_uInt16
OBoldListboxString
::
GetType
()
const
{
return
SV_ITEM_ID_BOLDLBSTRING
;
}
//------------------------------------------------------------------------
void
OBoldListboxString
::
Paint
(
const
Point
&
rPos
,
SvTreeListBox
&
rDev
,
sal_uInt16
nFlags
,
SvTreeListEntry
*
pEntry
)
{
if
(
m_bEmphasized
)
...
...
dbaccess/source/ui/control/tabletree.cxx
Dosyayı görüntüle @
a2baeffb
...
...
@@ -124,7 +124,7 @@ void OTableTreeListBox::notifyHiContrastChanged()
for
(
sal_uInt16
i
=
0
;
i
<
nCount
;
++
i
)
{
SvLBoxItem
*
pItem
=
pEntryLoop
->
GetItem
(
i
);
if
(
pItem
&&
pItem
->
IsA
()
==
SV_ITEM_ID_LBOXCONTEXTBMP
)
if
(
pItem
&&
pItem
->
GetType
()
==
SV_ITEM_ID_LBOXCONTEXTBMP
)
{
SvLBoxContextBmp
*
pContextBitmapItem
=
static_cast
<
SvLBoxContextBmp
*
>
(
pItem
);
...
...
dbaccess/source/ui/inc/listviewitems.hxx
Dosyayı görüntüle @
a2baeffb
...
...
@@ -43,7 +43,7 @@ namespace dbaui
{
}
virtual
sal_uInt16
IsA
()
;
virtual
sal_uInt16
GetType
()
const
;
virtual
void
Paint
(
const
Point
&
rPos
,
SvTreeListBox
&
rDev
,
sal_uInt16
nFlags
,
SvTreeListEntry
*
pEntry
);
virtual
void
InitViewData
(
SvTreeListBox
*
pView
,
SvTreeListEntry
*
pEntry
,
SvViewDataItem
*
_pViewData
);
...
...
sc/source/ui/miscdlgs/acredlin.cxx
Dosyayı görüntüle @
a2baeffb
...
...
@@ -1995,8 +1995,8 @@ IMPL_LINK( ScAcceptChgDlg, ColCompareHdl, SvSortData*, pSortData )
if
(
pLeftItem
!=
NULL
&&
pRightItem
!=
NULL
)
{
sal_uInt16
nLeftKind
=
pLeftItem
->
IsA
();
sal_uInt16
nRightKind
=
pRightItem
->
IsA
();
sal_uInt16
nLeftKind
=
pLeftItem
->
GetType
();
sal_uInt16
nRightKind
=
pRightItem
->
GetType
();
if
(
nRightKind
==
SV_ITEM_ID_LBOXSTRING
&&
nLeftKind
==
SV_ITEM_ID_LBOXSTRING
)
...
...
sc/source/ui/miscdlgs/solveroptions.cxx
Dosyayı görüntüle @
a2baeffb
...
...
@@ -398,8 +398,8 @@ IMPL_LINK_NOARG(ScSolverOptionsDialog, SettingsSelHdl)
if
(
pEntry
)
{
SvLBoxItem
*
pItem
=
pEntry
->
GetFirstItem
(
SV_ITEM_ID_LBOXBUTTON
);
if
(
pItem
&&
pItem
->
IsA
()
==
SV_ITEM_ID_LBOXBUTTON
)
bCheckbox
=
sal_T
rue
;
if
(
pItem
&&
pItem
->
GetType
()
==
SV_ITEM_ID_LBOXBUTTON
)
bCheckbox
=
t
rue
;
}
maBtnEdit
.
Enable
(
!
bCheckbox
);
...
...
svtools/inc/svtools/svlbitm.hxx
Dosyayı görüntüle @
a2baeffb
...
...
@@ -122,7 +122,7 @@ public:
SvLBoxString
(
SvTreeListEntry
*
,
sal_uInt16
nFlags
,
const
rtl
::
OUString
&
rStr
);
SvLBoxString
();
virtual
~
SvLBoxString
();
virtual
sal_uInt16
IsA
()
;
virtual
sal_uInt16
GetType
()
const
;
virtual
void
InitViewData
(
SvTreeListBox
*
,
SvTreeListEntry
*
,
SvViewDataItem
*
);
rtl
::
OUString
GetText
()
const
{
return
maText
;
}
void
SetText
(
const
rtl
::
OUString
&
rText
)
{
maText
=
rText
;
}
...
...
@@ -137,7 +137,7 @@ class SvLBoxBmp : public SvLBoxItem
public
:
SvLBoxBmp
();
virtual
~
SvLBoxBmp
();
virtual
sal_uInt16
IsA
()
;
virtual
sal_uInt16
GetType
()
const
;
virtual
void
InitViewData
(
SvTreeListBox
*
,
SvTreeListEntry
*
,
SvViewDataItem
*
);
virtual
void
Paint
(
const
Point
&
,
SvTreeListBox
&
rView
,
sal_uInt16
nFlags
,
SvTreeListEntry
*
);
virtual
SvLBoxItem
*
Create
()
const
;
...
...
@@ -171,7 +171,7 @@ public:
SvLBoxButton
();
virtual
~
SvLBoxButton
();
virtual
void
InitViewData
(
SvTreeListBox
*
,
SvTreeListEntry
*
,
SvViewDataItem
*
);
virtual
sal_uInt16
IsA
()
;
virtual
sal_uInt16
GetType
()
const
;
virtual
sal_Bool
ClickHdl
(
SvTreeListBox
*
pView
,
SvTreeListEntry
*
);
virtual
void
Paint
(
const
Point
&
,
SvTreeListBox
&
rView
,
sal_uInt16
nFlags
,
SvTreeListEntry
*
);
virtual
SvLBoxItem
*
Create
()
const
;
...
...
@@ -229,7 +229,7 @@ public:
sal_uInt16
nEntryFlagsBmp1
);
SvLBoxContextBmp
();
virtual
~
SvLBoxContextBmp
();
virtual
sal_uInt16
IsA
()
;
virtual
sal_uInt16
GetType
()
const
;
virtual
void
InitViewData
(
SvTreeListBox
*
,
SvTreeListEntry
*
,
SvViewDataItem
*
);
virtual
void
Paint
(
const
Point
&
,
SvTreeListBox
&
rView
,
sal_uInt16
nFlags
,
SvTreeListEntry
*
);
virtual
SvLBoxItem
*
Create
()
const
;
...
...
svtools/inc/svtools/treelistbox.hxx
Dosyayı görüntüle @
a2baeffb
...
...
@@ -173,7 +173,7 @@ public:
SvLBoxItem
(
SvTreeListEntry
*
,
sal_uInt16
nFlags
);
SvLBoxItem
();
virtual
~
SvLBoxItem
();
virtual
sal_uInt16
IsA
()
=
0
;
virtual
sal_uInt16
GetType
()
const
=
0
;
const
Size
&
GetSize
(
SvTreeListBox
*
pView
,
SvTreeListEntry
*
pEntry
);
const
Size
&
GetSize
(
SvViewDataEntry
*
pData
,
sal_uInt16
nItemPos
)
{
...
...
@@ -211,7 +211,7 @@ public:
// The DropTarget is 0 in that case
#define SV_DRAGDROP_ENABLE_TOP (DragDropMode)0x0020
#define SVLISTBOX_ID_LBOX 0 // for SvTreeListBox::
IsA
()
#define SVLISTBOX_ID_LBOX 0 // for SvTreeListBox::
GetType
()
#define SVLBOX_IN_EDT 0x0001
#define SVLBOX_EDT_ENABLED 0x0002
...
...
svtools/source/contnr/svimpbox.cxx
Dosyayı görüntüle @
a2baeffb
...
...
@@ -1885,7 +1885,7 @@ bool SvImpLBox::ButtonDownCheckCtrl(
const
MouseEvent
&
rMEvt
,
SvTreeListEntry
*
pEntry
,
long
nY
)
{
SvLBoxItem
*
pItem
=
pView
->
GetItem
(
pEntry
,
rMEvt
.
GetPosPixel
().
X
(),
&
pActiveTab
);
if
(
pItem
&&
(
pItem
->
IsA
()
==
SV_ITEM_ID_LBOXBUTTON
)
)
if
(
pItem
&&
pItem
->
GetType
()
==
SV_ITEM_ID_LBOXBUTTON
)
{
pActiveButton
=
(
SvLBoxButton
*
)
pItem
;
pActiveEntry
=
pEntry
;
...
...
@@ -3160,7 +3160,7 @@ bool SvImpLBox::RequestHelp( const HelpEvent& rHEvt )
// recalculate text rectangle
SvLBoxTab
*
pTab
;
SvLBoxString
*
pItem
=
(
SvLBoxString
*
)(
pView
->
GetItem
(
pEntry
,
aPos
.
X
(),
&
pTab
));
if
(
!
pItem
||
pItem
->
IsA
()
!=
SV_ITEM_ID_LBOXSTRING
)
if
(
!
pItem
||
pItem
->
GetType
()
!=
SV_ITEM_ID_LBOXSTRING
)
return
false
;
aPos
=
GetEntryPosition
(
pEntry
);
...
...
svtools/source/contnr/svlbitm.cxx
Dosyayı görüntüle @
a2baeffb
...
...
@@ -213,7 +213,7 @@ SvLBoxString::~SvLBoxString()
DBG_DTOR
(
SvLBoxString
,
0
);
}
sal_uInt16
SvLBoxString
::
IsA
()
sal_uInt16
SvLBoxString
::
GetType
()
const
{
DBG_CHKTHIS
(
SvLBoxString
,
0
);
return
SV_ITEM_ID_LBOXSTRING
;
...
...
@@ -272,7 +272,7 @@ SvLBoxBmp::~SvLBoxBmp()
DBG_DTOR
(
SvLBoxBmp
,
0
);
}
sal_uInt16
SvLBoxBmp
::
IsA
()
sal_uInt16
SvLBoxBmp
::
GetType
()
const
{
DBG_CHKTHIS
(
SvLBoxBmp
,
0
);
return
SV_ITEM_ID_LBOXBMP
;
...
...
@@ -338,7 +338,7 @@ SvLBoxButton::~SvLBoxButton()
DBG_DTOR
(
SvLBoxButton
,
0
);
}
sal_uInt16
SvLBoxButton
::
IsA
()
sal_uInt16
SvLBoxButton
::
GetType
()
const
{
DBG_CHKTHIS
(
SvLBoxButton
,
0
);
return
SV_ITEM_ID_LBOXBUTTON
;
...
...
@@ -503,7 +503,7 @@ SvLBoxContextBmp::~SvLBoxContextBmp()
DBG_DTOR
(
SvLBoxContextBmp
,
0
);
}
sal_uInt16
SvLBoxContextBmp
::
IsA
()
sal_uInt16
SvLBoxContextBmp
::
GetType
()
const
{
DBG_CHKTHIS
(
SvLBoxContextBmp
,
0
);
return
SV_ITEM_ID_LBOXCONTEXTBMP
;
...
...
svtools/source/contnr/svtabbx.cxx
Dosyayı görüntüle @
a2baeffb
...
...
@@ -279,19 +279,19 @@ String SvTabListBox::GetEntryText( SvTreeListEntry* pEntry, sal_uInt16 nCol ) co
sal_uInt16
nCur
=
0
;
while
(
nCur
<
nCount
)
{
SvLBoxItem
*
pStr
=
pEntry
->
GetItem
(
nCur
);
if
(
pStr
->
IsA
()
==
SV_ITEM_ID_LBOXSTRING
)
const
SvLBoxItem
*
pStr
=
pEntry
->
GetItem
(
nCur
);
if
(
pStr
->
GetType
()
==
SV_ITEM_ID_LBOXSTRING
)
{
if
(
nCol
==
0xffff
)
{
if
(
aResult
.
Len
()
)
aResult
+=
'\t'
;
aResult
+=
static_cast
<
SvLBoxString
*>
(
pStr
)
->
GetText
();
aResult
+=
static_cast
<
const
SvLBoxString
*>
(
pStr
)
->
GetText
();
}
else
{
if
(
nCol
==
0
)
return
static_cast
<
SvLBoxString
*>
(
pStr
)
->
GetText
();
return
static_cast
<
const
SvLBoxString
*>
(
pStr
)
->
GetText
();
nCol
--
;
}
}
...
...
@@ -334,7 +334,7 @@ void SvTabListBox::SetEntryText( const XubString& rStr, SvTreeListEntry* pEntry,
while
(
nCur
<
nCount
)
{
SvLBoxItem
*
pStr
=
pEntry
->
GetItem
(
nCur
);
if
(
pStr
&&
pStr
->
IsA
()
==
SV_ITEM_ID_LBOXSTRING
)
if
(
pStr
&&
pStr
->
GetType
()
==
SV_ITEM_ID_LBOXSTRING
)
{
if
(
nCol
==
0xffff
)
{
...
...
@@ -377,9 +377,9 @@ String SvTabListBox::GetCellText( sal_uLong nPos, sal_uInt16 nCol ) const
XubString
aResult
;
if
(
pEntry
&&
pEntry
->
ItemCount
()
>
(
nCol
+
1
)
)
{
SvLBoxItem
*
pStr
=
pEntry
->
GetItem
(
nCol
+
1
);
if
(
pStr
&&
pStr
->
IsA
()
==
SV_ITEM_ID_LBOXSTRING
)
aResult
=
static_cast
<
SvLBoxString
*
>
(
pStr
)
->
GetText
();
const
SvLBoxItem
*
pStr
=
pEntry
->
GetItem
(
nCol
+
1
);
if
(
pStr
&&
pStr
->
GetType
()
==
SV_ITEM_ID_LBOXSTRING
)
aResult
=
static_cast
<
const
SvLBoxString
*>
(
pStr
)
->
GetText
();
}
return
aResult
;
}
...
...
@@ -453,20 +453,20 @@ String SvTabListBox::GetTabEntryText( sal_uLong nPos, sal_uInt16 nCol ) const
sal_uInt16
nCur
=
(
0
==
nCol
&&
IsCellFocusEnabled
()
)
?
GetCurrentTabPos
()
:
0
;
while
(
nCur
<
nCount
)
{
SvLBoxItem
*
pStr
=
pEntry
->
GetItem
(
nCur
);
if
(
pStr
->
IsA
()
==
SV_ITEM_ID_LBOXSTRING
)
const
SvLBoxItem
*
pStr
=
pEntry
->
GetItem
(
nCur
);
if
(
pStr
->
GetType
()
==
SV_ITEM_ID_LBOXSTRING
)
{
if
(
nCol
==
0xffff
)
{
if
(
aResult
.
Len
()
)
aResult
+=
'\t'
;
aResult
+=
static_cast
<
SvLBoxString
*>
(
pStr
)
->
GetText
();
aResult
+=
static_cast
<
const
SvLBoxString
*>
(
pStr
)
->
GetText
();
}
else
{
if
(
nCol
==
0
)
{
String
sRet
=
static_cast
<
SvLBoxString
*>
(
pStr
)
->
GetText
();
String
sRet
=
static_cast
<
const
SvLBoxString
*>
(
pStr
)
->
GetText
();
if
(
sRet
.
Len
()
==
0
)
sRet
=
SVT_RESSTR
(
STR_SVT_ACC_EMPTY_FIELD
);
return
sRet
;
...
...
@@ -621,7 +621,7 @@ sal_Bool SvHeaderTabListBox::IsItemChecked( SvTreeListEntry* pEntry, sal_uInt16
SvButtonState
eState
=
SV_BUTTON_UNCHECKED
;
SvLBoxButton
*
pItem
=
(
SvLBoxButton
*
)(
pEntry
->
GetItem
(
nCol
+
1
)
);
if
(
pItem
&&
(
(
SvLBoxItem
*
)
pItem
)
->
IsA
()
==
SV_ITEM_ID_LBOXBUTTON
)
if
(
pItem
&&
pItem
->
GetType
()
==
SV_ITEM_ID_LBOXBUTTON
)
{
sal_uInt16
nButtonFlags
=
pItem
->
GetButtonFlags
();
eState
=
pCheckButtonData
->
ConvertToButtonState
(
nButtonFlags
);
...
...
@@ -744,7 +744,7 @@ void SvHeaderTabListBox::RecalculateAccessibleChildren()
sal_Bool
SvHeaderTabListBox
::
IsCellCheckBox
(
long
_nRow
,
sal_uInt16
_nColumn
,
TriState
&
_rState
)
{
sal_Bool
bRet
=
sal_F
alse
;
bool
bRet
=
f
alse
;
SvTreeListEntry
*
pEntry
=
GetEntry
(
_nRow
);
if
(
pEntry
)
{
...
...
@@ -752,9 +752,9 @@ sal_Bool SvHeaderTabListBox::IsCellCheckBox( long _nRow, sal_uInt16 _nColumn, Tr
if
(
nItemCount
>
(
_nColumn
+
1
)
)
{
SvLBoxButton
*
pItem
=
(
SvLBoxButton
*
)(
pEntry
->
GetItem
(
_nColumn
+
1
)
);
if
(
pItem
&&
(
(
SvLBoxItem
*
)
pItem
)
->
IsA
()
==
SV_ITEM_ID_LBOXBUTTON
)
if
(
pItem
&&
pItem
->
GetType
()
==
SV_ITEM_ID_LBOXBUTTON
)
{
bRet
=
sal_T
rue
;
bRet
=
t
rue
;
_rState
=
(
(
pItem
->
GetButtonFlags
()
&
SV_ITEMSTATE_UNCHECKED
)
==
0
)
?
STATE_CHECK
:
STATE_NOCHECK
;
}
...
...
svtools/source/contnr/treelistbox.cxx
Dosyayı görüntüle @
a2baeffb
...
...
@@ -1790,9 +1790,9 @@ String SvTreeListBox::SearchEntryText( SvTreeListEntry* pEntry ) const
while
(
nCur
<
nCount
)
{
pItem
=
pEntry
->
GetItem
(
nCur
);
if
(
pItem
->
IsA
()
==
SV_ITEM_ID_LBOXSTRING
&&
!
static_cast
<
SvLBoxString
*>
(
pItem
)
->
GetText
().
isEmpty
()
)
if
(
pItem
->
GetType
()
==
SV_ITEM_ID_LBOXSTRING
&&
!
static_cast
<
const
SvLBoxString
*>
(
pItem
)
->
GetText
().
isEmpty
()
)
{
sRet
=
static_cast
<
SvLBoxString
*>
(
pItem
)
->
GetText
();
sRet
=
static_cast
<
const
SvLBoxString
*>
(
pItem
)
->
GetText
();
break
;
}
nCur
++
;
...
...
@@ -2757,7 +2757,7 @@ void SvTreeListBox::ImplEditEntry( SvTreeListEntry* pEntry )
for
(
sal_uInt16
i
=
0
;
i
<
nCount
;
i
++
)
{
SvLBoxItem
*
pTmpItem
=
pEntry
->
GetItem
(
i
);
if
(
pTmpItem
->
IsA
()
!=
SV_ITEM_ID_LBOXSTRING
)
if
(
pTmpItem
->
GetType
()
!=
SV_ITEM_ID_LBOXSTRING
)
continue
;
SvLBoxTab
*
pTab
=
GetTab
(
pEntry
,
pTmpItem
);
...
...
@@ -3017,7 +3017,7 @@ long SvTreeListBox::PaintEntry1(SvTreeListEntry* pEntry,long nLine,sal_uInt16 nT
Wallpaper
aWallpaper
=
GetBackground
();
int
bSelTab
=
nFlags
&
SV_LBOXTAB_SHOW_SELECTION
;
sal_uInt16
nItemType
=
pItem
->
IsA
();
sal_uInt16
nItemType
=
pItem
->
GetType
();
if
(
pViewDataEntry
->
IsSelected
()
&&
bSelTab
&&
!
pViewDataEntry
->
IsCursored
()
)
{
...
...
@@ -3097,9 +3097,9 @@ long SvTreeListBox::PaintEntry1(SvTreeListEntry* pEntry,long nLine,sal_uInt16 nT
pItem
->
Paint
(
aEntryPos
,
*
this
,
pViewDataEntry
->
GetFlags
(),
pEntry
);
// division line between tabs
if
(
pNextTab
&&
pItem
->
IsA
()
==
SV_ITEM_ID_LBOXSTRING
&&
if
(
pNextTab
&&
pItem
->
GetType
()
==
SV_ITEM_ID_LBOXSTRING
&&
// not at the right edge of the window!
aRect
.
Right
()
<
nMaxRight
)
aRect
.
Right
()
<
nMaxRight
)
{
aRect
.
Left
()
=
aRect
.
Right
()
-
SV_TAB_BORDER
;
DrawRect
(
aRect
);
...
...
svtools/source/contnr/treelistentry.cxx
Dosyayı görüntüle @
a2baeffb
...
...
@@ -189,7 +189,7 @@ SvLBoxItem* SvTreeListEntry::GetFirstItem( sal_uInt16 nId ) const
while
(
nCur
<
nCount
)
{
pItem
=
GetItem
(
nCur
);
if
(
pItem
->
IsA
()
==
nId
)
if
(
pItem
->
GetType
()
==
nId
)
return
pItem
;
nCur
++
;
}
...
...
svx/source/dialog/checklbx.cxx
Dosyayı görüntüle @
a2baeffb
...
...
@@ -215,7 +215,7 @@ void SvxCheckListBox::MouseButtonDown( const MouseEvent& rMEvt )
sal_Bool
bCheck
=
(
GetCheckButtonState
(
pEntry
)
==
SV_BUTTON_CHECKED
);
SvLBoxItem
*
pItem
=
GetItem
(
pEntry
,
aPnt
.
X
()
);
if
(
pItem
&&
pItem
->
IsA
()
==
SV_ITEM_ID_LBOXBUTTON
)
if
(
pItem
&&
pItem
->
GetType
()
==
SV_ITEM_ID_LBOXBUTTON
)
{
SvTreeListBox
::
MouseButtonDown
(
rMEvt
);
Select
(
pEntry
,
sal_True
);
...
...
svx/source/dialog/simptabl.cxx
Dosyayı görüntüle @
a2baeffb
...
...
@@ -451,8 +451,8 @@ StringCompare SvxSimpleTable::ColCompare(SvTreeListEntry* pLeft,SvTreeListEntry*
if
(
pLeftItem
!=
NULL
&&
pRightItem
!=
NULL
)
{
sal_uInt16
nLeftKind
=
pLeftItem
->
IsA
();
sal_uInt16
nRightKind
=
pRightItem
->
IsA
();
sal_uInt16
nLeftKind
=
pLeftItem
->
GetType
();
sal_uInt16
nRightKind
=
pRightItem
->
GetType
();
if
(
nRightKind
==
SV_ITEM_ID_LBOXSTRING
&&
nLeftKind
==
SV_ITEM_ID_LBOXSTRING
)
...
...
svx/source/unodialogs/textconversiondlgs/chinese_dictionarydialog.cxx
Dosyayı görüntüle @
a2baeffb
...
...
@@ -389,8 +389,8 @@ StringCompare DictionaryList::ColumnCompare( SvTreeListEntry* pLeft, SvTreeListE
if
(
pLeftItem
!=
NULL
&&
pRightItem
!=
NULL
)
{
sal_uInt16
nLeftKind
=
pLeftItem
->
IsA
();
sal_uInt16
nRightKind
=
pRightItem
->
IsA
();
sal_uInt16
nLeftKind
=
pLeftItem
->
GetType
();
sal_uInt16
nRightKind
=
pRightItem
->
GetType
();
if
(
nRightKind
==
SV_ITEM_ID_LBOXSTRING
&&
nLeftKind
==
SV_ITEM_ID_LBOXSTRING
)
...
...
sw/source/ui/index/cnttab.cxx
Dosyayı görüntüle @
a2baeffb
...
...
@@ -1813,7 +1813,7 @@ void SwIdxTreeListBox::RequestHelp( const HelpEvent& rHEvt )
{
SvLBoxTab
*
pTab
;
SvLBoxItem
*
pItem
=
GetItem
(
pEntry
,
aPos
.
X
(),
&
pTab
);
if
(
pItem
&&
SV_ITEM_ID_LBOXSTRING
==
pItem
->
IsA
())
if
(
pItem
&&
SV_ITEM_ID_LBOXSTRING
==
pItem
->
GetType
())
{
aPos
=
GetEntryPosition
(
pEntry
);
...
...
sw/source/ui/utlui/content.cxx
Dosyayı görüntüle @
a2baeffb
...
...
@@ -2540,7 +2540,7 @@ void SwContentTree::RequestHelp( const HelpEvent& rHEvt )
{
SvLBoxTab
*
pTab
;
SvLBoxItem
*
pItem
=
GetItem
(
pEntry
,
aPos
.
X
(),
&
pTab
);
if
(
pItem
&&
SV_ITEM_ID_LBOXSTRING
==
pItem
->
IsA
())
if
(
pItem
&&
SV_ITEM_ID_LBOXSTRING
==
pItem
->
GetType
())
{
aPos
=
GetEntryPosition
(
pEntry
);
...
...
sw/source/ui/utlui/glbltree.cxx
Dosyayı görüntüle @
a2baeffb
...
...
@@ -475,7 +475,7 @@ void SwGlobalTree::RequestHelp( const HelpEvent& rHEvt )
bParent
=
sal_False
;
SvLBoxTab
*
pTab
;
SvLBoxItem
*
pItem
=
GetItem
(
pEntry
,
aPos
.
X
(),
&
pTab
);
if
(
pItem
&&
SV_ITEM_ID_LBOXSTRING
==
pItem
->
IsA
())
if
(
pItem
&&
SV_ITEM_ID_LBOXSTRING
==
pItem
->
GetType
())
{
const
SwSection
*
pSect
=
pCont
->
GetSection
();
String
sEntry
=
pSect
->
GetLinkFileName
().
GetToken
(
0
,
sfx2
::
cTokenSeperator
);
...
...
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