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
f10fc421
Kaydet (Commit)
f10fc421
authored
Ara 28, 2011
tarafından
Ivan Timofeev
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fdo#44204: shrink the first column in the open dialog, remove unused flags
üst
e0e52ce5
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
45 deletions
+26
-45
CollectionView.cxx
dbaccess/source/ui/dlg/CollectionView.cxx
+1
-1
fileview.hxx
svtools/inc/svtools/fileview.hxx
+2
-5
fileview.cxx
svtools/source/contnr/fileview.cxx
+22
-38
templwin.cxx
svtools/source/contnr/templwin.cxx
+1
-1
No files found.
dbaccess/source/ui/dlg/CollectionView.cxx
Dosyayı görüntüle @
f10fc421
...
@@ -80,7 +80,7 @@ OCollectionView::OCollectionView( Window * pParent
...
@@ -80,7 +80,7 @@ OCollectionView::OCollectionView( Window * pParent
,
m_aFTCurrentPath
(
this
,
ModuleRes
(
FT_EXPLORERFILE_CURRENTPATH
)
)
,
m_aFTCurrentPath
(
this
,
ModuleRes
(
FT_EXPLORERFILE_CURRENTPATH
)
)
,
m_aNewFolder
(
this
,
ModuleRes
(
BTN_EXPLORERFILE_NEWFOLDER
)
)
,
m_aNewFolder
(
this
,
ModuleRes
(
BTN_EXPLORERFILE_NEWFOLDER
)
)
,
m_aUp
(
this
,
ModuleRes
(
BTN_EXPLORERFILE_UP
)
)
,
m_aUp
(
this
,
ModuleRes
(
BTN_EXPLORERFILE_UP
)
)
,
m_aView
(
this
,
ModuleRes
(
CTRL_VIEW
)
,
FILEVIEW_SHOW_
TITLE
)
,
m_aView
(
this
,
ModuleRes
(
CTRL_VIEW
)
,
FILEVIEW_SHOW_ONLY
TITLE
)
,
m_aFTName
(
this
,
ModuleRes
(
FT_EXPLORERFILE_FILENAME
)
)
,
m_aFTName
(
this
,
ModuleRes
(
FT_EXPLORERFILE_FILENAME
)
)
,
m_aName
(
this
,
ModuleRes
(
ED_EXPLORERFILE_FILENAME
)
)
,
m_aName
(
this
,
ModuleRes
(
ED_EXPLORERFILE_FILENAME
)
)
,
m_aFL
(
this
,
ModuleRes
(
FL_1
)
)
,
m_aFL
(
this
,
ModuleRes
(
FL_1
)
)
...
...
svtools/inc/svtools/fileview.hxx
Dosyayı görüntüle @
f10fc421
...
@@ -43,11 +43,8 @@
...
@@ -43,11 +43,8 @@
#define FILEVIEW_ONLYFOLDER 0x0001
#define FILEVIEW_ONLYFOLDER 0x0001
#define FILEVIEW_MULTISELECTION 0x0002
#define FILEVIEW_MULTISELECTION 0x0002
#define FILEVIEW_SHOW_TITLE 0x0010
#define FILEVIEW_SHOW_ONLYTITLE 0x0010
#define FILEVIEW_SHOW_SIZE 0x0020
#define FILEVIEW_SHOW_NONE 0x0020
#define FILEVIEW_SHOW_DATE 0x0040
#define FILEVIEW_SHOW_ALL 0x0070
#define FILEVIEW_SHOW_NONE 0x0080
class
ViewTabListBox_Impl
;
class
ViewTabListBox_Impl
;
class
SvtFileView_Impl
;
class
SvtFileView_Impl
;
...
...
svtools/source/contnr/fileview.cxx
Dosyayı görüntüle @
f10fc421
...
@@ -722,24 +722,29 @@ ViewTabListBox_Impl::ViewTabListBox_Impl( Window* pParentWin,
...
@@ -722,24 +722,29 @@ ViewTabListBox_Impl::ViewTabListBox_Impl( Window* pParentWin,
mbEnableRename
(
sal_True
)
mbEnableRename
(
sal_True
)
{
{
sal_Bool
bViewHeader
=
true
;
const
bool
bViewHeader
=
(
nFlags
&
FILEVIEW_SHOW_NONE
)
==
0
;
Size
aBoxSize
=
pParentWin
->
GetSizePixel
();
Size
aBoxSize
=
pParentWin
->
GetSizePixel
();
mpHeaderBar
=
new
HeaderBar
(
pParentWin
,
WB_BUTTONSTYLE
|
WB_BOTTOMBORDER
);
mpHeaderBar
=
new
HeaderBar
(
pParentWin
,
WB_BUTTONSTYLE
|
WB_BOTTOMBORDER
);
mpHeaderBar
->
SetPosSizePixel
(
Point
(
0
,
0
),
mpHeaderBar
->
CalcWindowSizePixel
()
);
mpHeaderBar
->
SetPosSizePixel
(
Point
(
0
,
0
),
mpHeaderBar
->
CalcWindowSizePixel
()
);
HeaderBarItemBits
nBits
=
(
HIB_LEFT
|
HIB_VCENTER
|
HIB_CLICKABLE
);
HeaderBarItemBits
nBits
=
(
HIB_LEFT
|
HIB_VCENTER
|
HIB_CLICKABLE
);
if
((
nFlags
&
FILEVIEW_SHOW_NONE
)
==
FILEVIEW_SHOW_NONE
)
if
(
nFlags
&
FILEVIEW_SHOW_ONLYTITLE
)
bViewHeader
=
false
;
{
long
pTabs
[]
=
{
2
,
20
,
600
};
SetTabs
(
&
pTabs
[
0
],
MAP_PIXEL
);
mpHeaderBar
->
InsertItem
(
COLUMN_TITLE
,
String
(
SvtResId
(
STR_SVT_FILEVIEW_COLUMN_TITLE
)),
600
,
nBits
|
HIB_UPARROW
);
}
else
else
{
{
if
(
nFlags
&
FILEVIEW_SHOW_TITLE
)
long
pTabs
[]
=
{
5
,
20
,
180
,
320
,
400
,
600
};
mpHeaderBar
->
InsertItem
(
COLUMN_TITLE
,
String
(
SvtResId
(
STR_SVT_FILEVIEW_COLUMN_TITLE
)),
600
,
nBits
|
HIB_UPARROW
);
SetTabs
(
&
pTabs
[
0
],
MAP_PIXEL
);
if
(
nFlags
&
FILEVIEW_SHOW_ALL
)
SetTabJustify
(
2
,
AdjustRight
);
// column "Size"
mpHeaderBar
->
InsertItem
(
COLUMN_TYPE
,
String
(
SvtResId
(
STR_SVT_FILEVIEW_COLUMN_TYPE
)),
140
,
nBits
);
if
(
nFlags
&
FILEVIEW_SHOW_SIZE
)
mpHeaderBar
->
InsertItem
(
COLUMN_TITLE
,
String
(
SvtResId
(
STR_SVT_FILEVIEW_COLUMN_TITLE
)),
180
,
nBits
|
HIB_UPARROW
);
mpHeaderBar
->
InsertItem
(
COLUMN_SIZE
,
String
(
SvtResId
(
STR_SVT_FILEVIEW_COLUMN_SIZE
)),
8
0
,
nBits
);
mpHeaderBar
->
InsertItem
(
COLUMN_TYPE
,
String
(
SvtResId
(
STR_SVT_FILEVIEW_COLUMN_TYPE
)),
14
0
,
nBits
);
if
(
nFlags
&
FILEVIEW_SHOW_DATE
)
mpHeaderBar
->
InsertItem
(
COLUMN_SIZE
,
String
(
SvtResId
(
STR_SVT_FILEVIEW_COLUMN_SIZE
)),
80
,
nBits
);
mpHeaderBar
->
InsertItem
(
COLUMN_DATE
,
String
(
SvtResId
(
STR_SVT_FILEVIEW_COLUMN_DATE
)),
500
,
nBits
);
mpHeaderBar
->
InsertItem
(
COLUMN_DATE
,
String
(
SvtResId
(
STR_SVT_FILEVIEW_COLUMN_DATE
)),
500
,
nBits
);
}
}
Size
aHeadSize
=
mpHeaderBar
->
GetSizePixel
();
Size
aHeadSize
=
mpHeaderBar
->
GetSizePixel
();
...
@@ -748,6 +753,8 @@ ViewTabListBox_Impl::ViewTabListBox_Impl( Window* pParentWin,
...
@@ -748,6 +753,8 @@ ViewTabListBox_Impl::ViewTabListBox_Impl( Window* pParentWin,
InitHeaderBar
(
mpHeaderBar
);
InitHeaderBar
(
mpHeaderBar
);
SetHighlightRange
();
SetHighlightRange
();
SetEntryHeight
(
ROW_HEIGHT
);
SetEntryHeight
(
ROW_HEIGHT
);
if
(
nFlags
&
FILEVIEW_MULTISELECTION
)
SetSelectionMode
(
MULTIPLE_SELECTION
);
Show
();
Show
();
if
(
bViewHeader
)
if
(
bViewHeader
)
...
@@ -1211,7 +1218,7 @@ SvtFileView::SvtFileView( Window* pParent, const ResId& rResId,
...
@@ -1211,7 +1218,7 @@ SvtFileView::SvtFileView( Window* pParent, const ResId& rResId,
Control
(
pParent
,
rResId
)
Control
(
pParent
,
rResId
)
{
{
sal_Int8
nFlags
=
FILEVIEW_SHOW_ALL
;
sal_Int8
nFlags
=
0
;
if
(
bOnlyFolder
)
if
(
bOnlyFolder
)
nFlags
|=
FILEVIEW_ONLYFOLDER
;
nFlags
|=
FILEVIEW_ONLYFOLDER
;
if
(
bMultiSelection
)
if
(
bMultiSelection
)
...
@@ -1225,13 +1232,6 @@ SvtFileView::SvtFileView( Window* pParent, const ResId& rResId,
...
@@ -1225,13 +1232,6 @@ SvtFileView::SvtFileView( Window* pParent, const ResId& rResId,
mpImp
->
mpView
->
ForbidEmptyText
();
mpImp
->
mpView
->
ForbidEmptyText
();
SetSortColumn
(
true
);
SetSortColumn
(
true
);
long
pTabs
[]
=
{
5
,
20
,
180
,
320
,
400
,
600
};
mpImp
->
mpView
->
SetTabs
(
&
pTabs
[
0
],
MAP_PIXEL
);
mpImp
->
mpView
->
SetTabJustify
(
2
,
AdjustRight
);
// column "Size"
if
(
bMultiSelection
)
mpImp
->
mpView
->
SetSelectionMode
(
MULTIPLE_SELECTION
);
HeaderBar
*
pHeaderBar
=
mpImp
->
mpView
->
GetHeaderBar
();
HeaderBar
*
pHeaderBar
=
mpImp
->
mpView
->
GetHeaderBar
();
pHeaderBar
->
SetSelectHdl
(
LINK
(
this
,
SvtFileView
,
HeaderSelect_Impl
)
);
pHeaderBar
->
SetSelectHdl
(
LINK
(
this
,
SvtFileView
,
HeaderSelect_Impl
)
);
pHeaderBar
->
SetEndDragHdl
(
LINK
(
this
,
SvtFileView
,
HeaderEndDrag_Impl
)
);
pHeaderBar
->
SetEndDragHdl
(
LINK
(
this
,
SvtFileView
,
HeaderEndDrag_Impl
)
);
...
@@ -1244,26 +1244,10 @@ SvtFileView::SvtFileView( Window* pParent, const ResId& rResId, sal_uInt8 nFlags
...
@@ -1244,26 +1244,10 @@ SvtFileView::SvtFileView( Window* pParent, const ResId& rResId, sal_uInt8 nFlags
Reference
<
XInteractionHandler
>
xInteractionHandler
=
Reference
<
XInteractionHandler
>
(
Reference
<
XInteractionHandler
>
xInteractionHandler
=
Reference
<
XInteractionHandler
>
(
::
comphelper
::
getProcessServiceFactory
()
->
createInstance
(
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"com.sun.star.uui.InteractionHandler"
)
)
),
UNO_QUERY
);
::
comphelper
::
getProcessServiceFactory
()
->
createInstance
(
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"com.sun.star.uui.InteractionHandler"
)
)
),
UNO_QUERY
);
Reference
<
XCommandEnvironment
>
xCmdEnv
=
new
::
ucbhelper
::
CommandEnvironment
(
xInteractionHandler
,
Reference
<
XProgressHandler
>
()
);
Reference
<
XCommandEnvironment
>
xCmdEnv
=
new
::
ucbhelper
::
CommandEnvironment
(
xInteractionHandler
,
Reference
<
XProgressHandler
>
()
);
mpImp
=
new
SvtFileView_Impl
(
this
,
xCmdEnv
,
nFlags
,
(
nFlags
&
FILEVIEW_ONLYFOLDER
)
==
FILEVIEW_ONLYFOLDER
);
SetSortColumn
(
true
);
if
(
(
nFlags
&
FILEVIEW_SHOW_ALL
)
==
FILEVIEW_SHOW_ALL
)
mpImp
=
new
SvtFileView_Impl
(
this
,
xCmdEnv
,
nFlags
,
nFlags
&
FILEVIEW_ONLYFOLDER
);
{
long
pTabs
[]
=
{
5
,
20
,
180
,
320
,
400
,
600
};
SetSortColumn
(
(
nFlags
&
FILEVIEW_SHOW_NONE
)
==
0
);
mpImp
->
mpView
->
SetTabs
(
&
pTabs
[
0
],
MAP_PIXEL
);
mpImp
->
mpView
->
SetTabJustify
(
2
,
AdjustRight
);
// column "Size"
}
else
{
// show only title
long
pTabs
[]
=
{
2
,
20
,
600
};
mpImp
->
mpView
->
SetTabs
(
&
pTabs
[
0
],
MAP_PIXEL
);
}
if
(
(
nFlags
&
FILEVIEW_SHOW_NONE
)
==
FILEVIEW_SHOW_NONE
)
SetSortColumn
(
false
);
if
(
(
nFlags
&
FILEVIEW_MULTISELECTION
)
==
FILEVIEW_MULTISELECTION
)
mpImp
->
mpView
->
SetSelectionMode
(
MULTIPLE_SELECTION
);
HeaderBar
*
pHeaderBar
=
mpImp
->
mpView
->
GetHeaderBar
();
HeaderBar
*
pHeaderBar
=
mpImp
->
mpView
->
GetHeaderBar
();
pHeaderBar
->
SetSelectHdl
(
LINK
(
this
,
SvtFileView
,
HeaderSelect_Impl
)
);
pHeaderBar
->
SetSelectHdl
(
LINK
(
this
,
SvtFileView
,
HeaderSelect_Impl
)
);
...
...
svtools/source/contnr/templwin.cxx
Dosyayı görüntüle @
f10fc421
...
@@ -585,7 +585,7 @@ SvtFileViewWindow_Impl::SvtFileViewWindow_Impl( SvtTemplateWindow* pParent ) :
...
@@ -585,7 +585,7 @@ SvtFileViewWindow_Impl::SvtFileViewWindow_Impl( SvtTemplateWindow* pParent ) :
Window
(
pParent
,
WB_DIALOGCONTROL
|
WB_TABSTOP
|
WB_BORDER
|
WB_3DLOOK
),
Window
(
pParent
,
WB_DIALOGCONTROL
|
WB_TABSTOP
|
WB_BORDER
|
WB_3DLOOK
),
rParent
(
*
pParent
),
rParent
(
*
pParent
),
aFileView
(
this
,
SvtResId
(
CTRL_FILEVIEW
),
FILEVIEW_SHOW_NONE
),
aFileView
(
this
,
SvtResId
(
CTRL_FILEVIEW
),
FILEVIEW_SHOW_NONE
|
FILEVIEW_SHOW_ONLYTITLE
),
bIsTemplateFolder
(
sal_False
)
bIsTemplateFolder
(
sal_False
)
{
{
...
...
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