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
80ee754c
Kaydet (Commit)
80ee754c
authored
Kas 27, 2012
tarafından
Kohei Yoshida
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Move SvViewDataEntry and SvViewDataItem into these files too.
Change-Id: Ib25e7b4ff692804e4e4b617ffba228c4b2cae1db
üst
cf9b196b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
52 additions
and
56 deletions
+52
-56
treelistbox.hxx
svtools/inc/svtools/treelistbox.hxx
+0
-25
viewdataentry.hxx
svtools/inc/svtools/viewdataentry.hxx
+25
-0
treelistbox.cxx
svtools/source/contnr/treelistbox.cxx
+0
-31
viewdataentry.cxx
svtools/source/contnr/viewdataentry.cxx
+27
-0
No files found.
svtools/inc/svtools/treelistbox.hxx
Dosyayı görüntüle @
80ee754c
...
@@ -131,31 +131,6 @@ public:
...
@@ -131,31 +131,6 @@ public:
sal_Bool
IsPushable
()
const
{
return
(
sal_Bool
)((
nFlags
&
SV_LBOXTAB_PUSHABLE
)
!=
0
);
}
sal_Bool
IsPushable
()
const
{
return
(
sal_Bool
)((
nFlags
&
SV_LBOXTAB_PUSHABLE
)
!=
0
);
}
};
};
// *********************************************************************
// *********************** View-dependent data *************************
// *********************************************************************
class
SvViewDataItem
{
public
:
Size
aSize
;
SvViewDataItem
();
~
SvViewDataItem
();
};
// View-dependent data for an Entry is created in the virtual function
// SvTreeListBox::CreateViewData. The View creation of Items cannot be
// changed (because it's an array)
class
SvViewDataEntry
:
public
SvViewData
{
public
:
SvViewDataItem
*
pItemData
;
// An array of SvViewDataItems
sal_uInt16
nItmCnt
;
// Item count for delete operator
SvViewDataEntry
();
virtual
~
SvViewDataEntry
();
};
// *********************************************************************
// *********************************************************************
// ****************************** Items ********************************
// ****************************** Items ********************************
// *********************************************************************
// *********************************************************************
...
...
svtools/inc/svtools/viewdataentry.hxx
Dosyayı görüntüle @
80ee754c
...
@@ -22,6 +22,7 @@
...
@@ -22,6 +22,7 @@
#include "svtdllapi.h"
#include "svtdllapi.h"
#include "tools/solar.h"
#include "tools/solar.h"
#include "tools/gen.hxx"
// Entryflags that are attached to the View
// Entryflags that are attached to the View
#define SVLISTENTRYFLAG_SELECTED 0x0001
#define SVLISTENTRYFLAG_SELECTED 0x0001
...
@@ -30,6 +31,8 @@
...
@@ -30,6 +31,8 @@
#define SVLISTENTRYFLAG_CURSORED 0x0008
#define SVLISTENTRYFLAG_CURSORED 0x0008
#define SVLISTENTRYFLAG_NOT_SELECTABLE 0x0010
#define SVLISTENTRYFLAG_NOT_SELECTABLE 0x0010
class
SvViewDataItem
;
class
SVT_DLLPUBLIC
SvViewData
class
SVT_DLLPUBLIC
SvViewData
{
{
friend
class
SvTreeList
;
friend
class
SvTreeList
;
...
@@ -54,6 +57,28 @@ public:
...
@@ -54,6 +57,28 @@ public:
void
SetSelectable
(
bool
bSelectable
);
void
SetSelectable
(
bool
bSelectable
);
};
};
// View-dependent data for an Entry is created in the virtual function
// SvTreeListBox::CreateViewData. The View creation of Items cannot be
// changed (because it's an array)
class
SvViewDataEntry
:
public
SvViewData
{
public
:
SvViewDataItem
*
pItemData
;
// An array of SvViewDataItems
sal_uInt16
nItmCnt
;
// Item count for delete operator
SvViewDataEntry
();
virtual
~
SvViewDataEntry
();
};
class
SvViewDataItem
{
public
:
Size
aSize
;
SvViewDataItem
();
~
SvViewDataItem
();
};
#endif
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
svtools/source/contnr/treelistbox.cxx
Dosyayı görüntüle @
80ee754c
...
@@ -366,37 +366,6 @@ const Size& SvLBoxItem::GetSize(const SvTreeListBox* pView, const SvTreeListEntr
...
@@ -366,37 +366,6 @@ const Size& SvLBoxItem::GetSize(const SvTreeListBox* pView, const SvTreeListEntr
return
pViewData
->
aSize
;
return
pViewData
->
aSize
;
}
}
DBG_NAME
(
SvViewDataItem
);
SvViewDataItem
::
SvViewDataItem
()
{
DBG_CTOR
(
SvViewDataItem
,
0
);
}
SvViewDataItem
::~
SvViewDataItem
()
{
DBG_DTOR
(
SvViewDataItem
,
0
);
}
// ***************************************************************
// class SvLBoxViewData
// ***************************************************************
DBG_NAME
(
SvViewDataEntry
);
SvViewDataEntry
::
SvViewDataEntry
()
:
SvViewData
()
{
DBG_CTOR
(
SvViewDataEntry
,
0
);
pItemData
=
0
;
}
SvViewDataEntry
::~
SvViewDataEntry
()
{
DBG_DTOR
(
SvViewDataEntry
,
0
);
delete
[]
pItemData
;
}
struct
SvTreeListBoxImpl
struct
SvTreeListBoxImpl
{
{
bool
m_bIsEmptyTextAllowed
:
1
;
bool
m_bIsEmptyTextAllowed
:
1
;
...
...
svtools/source/contnr/viewdataentry.cxx
Dosyayı görüntüle @
80ee754c
...
@@ -101,4 +101,31 @@ void SvViewData::SetSelectable( bool bSelectable )
...
@@ -101,4 +101,31 @@ void SvViewData::SetSelectable( bool bSelectable )
nFlags
|=
SVLISTENTRYFLAG_NOT_SELECTABLE
;
nFlags
|=
SVLISTENTRYFLAG_NOT_SELECTABLE
;
}
}
DBG_NAME
(
SvViewDataEntry
);
SvViewDataEntry
::
SvViewDataEntry
()
:
SvViewData
()
{
DBG_CTOR
(
SvViewDataEntry
,
0
);
pItemData
=
0
;
}
SvViewDataEntry
::~
SvViewDataEntry
()
{
DBG_DTOR
(
SvViewDataEntry
,
0
);
delete
[]
pItemData
;
}
DBG_NAME
(
SvViewDataItem
);
SvViewDataItem
::
SvViewDataItem
()
{
DBG_CTOR
(
SvViewDataItem
,
0
);
}
SvViewDataItem
::~
SvViewDataItem
()
{
DBG_DTOR
(
SvViewDataItem
,
0
);
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* 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