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
b80dc582
Kaydet (Commit)
b80dc582
authored
Ara 06, 2016
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
unwind fpicker RID_FILEPICKER_IMAGES imagelist
Change-Id: I1b55e4581c7fcbdf228c3b903269e28d37e53297
üst
13e77648
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
35 additions
and
36 deletions
+35
-36
PlacesListBox.cxx
fpicker/source/office/PlacesListBox.cxx
+2
-2
RemoteFilesDialog.cxx
fpicker/source/office/RemoteFilesDialog.cxx
+1
-2
RemoteFilesDialog.hxx
fpicker/source/office/RemoteFilesDialog.hxx
+0
-2
iodlg.cxx
fpicker/source/office/iodlg.cxx
+8
-6
iodlg.hrc
fpicker/source/office/iodlg.hrc
+4
-5
iodlg.hxx
fpicker/source/office/iodlg.hxx
+1
-2
iodlg.src
fpicker/source/office/iodlg.src
+18
-16
iodlgimp.cxx
fpicker/source/office/iodlgimp.cxx
+1
-1
No files found.
fpicker/source/office/PlacesListBox.cxx
Dosyayı görüntüle @
b80dc582
...
@@ -186,9 +186,9 @@ bool PlacesListBox::EventNotify( NotifyEvent& rNEvt )
...
@@ -186,9 +186,9 @@ bool PlacesListBox::EventNotify( NotifyEvent& rNEvt )
Image
PlacesListBox
::
getEntryIcon
(
const
PlacePtr
&
pPlace
)
Image
PlacesListBox
::
getEntryIcon
(
const
PlacePtr
&
pPlace
)
{
{
Image
theImage
=
mpDlg
->
GetButtonImage
(
IMG
_FILEDLG_PLACE_LOCAL
);
Image
theImage
=
mpDlg
->
GetButtonImage
(
BMP
_FILEDLG_PLACE_LOCAL
);
if
(
!
pPlace
->
IsLocal
(
)
)
if
(
!
pPlace
->
IsLocal
(
)
)
theImage
=
mpDlg
->
GetButtonImage
(
IMG
_FILEDLG_PLACE_REMOTE
);
theImage
=
mpDlg
->
GetButtonImage
(
BMP
_FILEDLG_PLACE_REMOTE
);
return
theImage
;
return
theImage
;
}
}
...
...
fpicker/source/office/RemoteFilesDialog.cxx
Dosyayı görüntüle @
b80dc582
...
@@ -214,8 +214,7 @@ RemoteFilesDialog::RemoteFilesDialog( vcl::Window* pParent, PickerFlags nBits )
...
@@ -214,8 +214,7 @@ RemoteFilesDialog::RemoteFilesDialog( vcl::Window* pParent, PickerFlags nBits )
{
{
get
(
m_pOk_btn
,
"save"
);
get
(
m_pOk_btn
,
"save"
);
m_aImages
=
ImageList
(
fpicker
::
SvtResId
(
RID_FILEPICKER_IMAGES
)
);
m_pNewFolder
->
SetModeImage
(
Image
(
BitmapEx
(
fpicker
::
SvtResId
(
BMP_FILEDLG_CREATEFOLDER
))));
m_pNewFolder
->
SetModeImage
(
m_aImages
.
GetImage
(
IMG_FILEDLG_CREATEFOLDER
)
);
m_pNewFolder
->
SetClickHdl
(
LINK
(
this
,
RemoteFilesDialog
,
NewFolderHdl
)
);
m_pNewFolder
->
SetClickHdl
(
LINK
(
this
,
RemoteFilesDialog
,
NewFolderHdl
)
);
}
}
...
...
fpicker/source/office/RemoteFilesDialog.hxx
Dosyayı görüntüle @
b80dc582
...
@@ -164,8 +164,6 @@ private:
...
@@ -164,8 +164,6 @@ private:
VclPtr
<
AutocompleteEdit
>
m_pName_ed
;
VclPtr
<
AutocompleteEdit
>
m_pName_ed
;
VclPtr
<
PopupMenu
>
m_pAddMenu
;
VclPtr
<
PopupMenu
>
m_pAddMenu
;
ImageList
m_aImages
;
std
::
vector
<
ServicePtr
>
m_aServices
;
std
::
vector
<
ServicePtr
>
m_aServices
;
std
::
vector
<
std
::
pair
<
OUString
,
OUString
>
>
m_aFilters
;
std
::
vector
<
std
::
pair
<
OUString
,
OUString
>
>
m_aFilters
;
...
...
fpicker/source/office/iodlg.cxx
Dosyayı görüntüle @
b80dc582
...
@@ -566,7 +566,6 @@ void SvtFileDialog::Init_Impl
...
@@ -566,7 +566,6 @@ void SvtFileDialog::Init_Impl
pImpl
->
_pLbImageTemplates
->
setMaxWidthChars
(
40
);
pImpl
->
_pLbImageTemplates
->
setMaxWidthChars
(
40
);
pImpl
->
_pLbFilter
->
setMaxWidthChars
(
40
);
pImpl
->
_pLbFilter
->
setMaxWidthChars
(
40
);
m_aImages
=
ImageList
(
SvtResId
(
RID_FILEPICKER_IMAGES
)
);
vcl
::
Window
*
pUpContainer
=
get
<
vcl
::
Window
>
(
"up"
);
vcl
::
Window
*
pUpContainer
=
get
<
vcl
::
Window
>
(
"up"
);
pImpl
->
_pBtnUp
=
VclPtr
<
SvtUpButton_Impl
>::
Create
(
pUpContainer
,
this
,
0
);
pImpl
->
_pBtnUp
=
VclPtr
<
SvtUpButton_Impl
>::
Create
(
pUpContainer
,
this
,
0
);
pImpl
->
_pBtnUp
->
SetHelpId
(
HID_FILEOPEN_LEVELUP
);
pImpl
->
_pBtnUp
->
SetHelpId
(
HID_FILEOPEN_LEVELUP
);
...
@@ -622,7 +621,7 @@ void SvtFileDialog::Init_Impl
...
@@ -622,7 +621,7 @@ void SvtFileDialog::Init_Impl
_pSplitter
->
SetBackground
(
Wallpaper
(
Application
::
GetSettings
().
GetStyleSettings
().
GetFaceColor
()
));
_pSplitter
->
SetBackground
(
Wallpaper
(
Application
::
GetSettings
().
GetStyleSettings
().
GetFaceColor
()
));
_pSplitter
->
SetSplitHdl
(
LINK
(
this
,
SvtFileDialog
,
Split_Hdl
)
);
_pSplitter
->
SetSplitHdl
(
LINK
(
this
,
SvtFileDialog
,
Split_Hdl
)
);
Image
aNewFolderImg
(
GetButtonImage
(
IMG
_FILEDLG_CREATEFOLDER
)
);
Image
aNewFolderImg
(
GetButtonImage
(
BMP
_FILEDLG_CREATEFOLDER
)
);
pImpl
->
_pBtnNewFolder
->
SetModeImage
(
aNewFolderImg
);
pImpl
->
_pBtnNewFolder
->
SetModeImage
(
aNewFolderImg
);
if
(
nStyle
&
PickerFlags
::
ReadOnly
)
if
(
nStyle
&
PickerFlags
::
ReadOnly
)
...
@@ -2266,14 +2265,12 @@ bool SvtFileDialog::IsolateFilterFromPath_Impl( OUString& rPath, OUString& rFilt
...
@@ -2266,14 +2265,12 @@ bool SvtFileDialog::IsolateFilterFromPath_Impl( OUString& rPath, OUString& rFilt
void
SvtFileDialog
::
implUpdateImages
(
)
void
SvtFileDialog
::
implUpdateImages
(
)
{
{
m_aImages
=
ImageList
(
SvtResId
(
RID_FILEPICKER_IMAGES
)
);
// set the appropriate images on the buttons
// set the appropriate images on the buttons
if
(
pImpl
->
_pBtnUp
)
if
(
pImpl
->
_pBtnUp
)
pImpl
->
_pBtnUp
->
SetModeImage
(
GetButtonImage
(
IMG
_FILEDLG_BTN_UP
)
);
pImpl
->
_pBtnUp
->
SetModeImage
(
GetButtonImage
(
BMP
_FILEDLG_BTN_UP
)
);
if
(
pImpl
->
_pBtnNewFolder
)
if
(
pImpl
->
_pBtnNewFolder
)
pImpl
->
_pBtnNewFolder
->
SetModeImage
(
GetButtonImage
(
IMG
_FILEDLG_CREATEFOLDER
)
);
pImpl
->
_pBtnNewFolder
->
SetModeImage
(
GetButtonImage
(
BMP
_FILEDLG_CREATEFOLDER
)
);
}
}
...
@@ -2735,6 +2732,11 @@ IMPL_LINK_NOARG( SvtFileDialog, Split_Hdl, Splitter*, void )
...
@@ -2735,6 +2732,11 @@ IMPL_LINK_NOARG( SvtFileDialog, Split_Hdl, Splitter*, void )
_pSplitter
->
SetPosPixel
(
Point
(
placeSize
.
Width
(),
_pSplitter
->
GetPosPixel
().
Y
()
)
);
_pSplitter
->
SetPosPixel
(
Point
(
placeSize
.
Width
(),
_pSplitter
->
GetPosPixel
().
Y
()
)
);
}
}
Image
SvtFileDialog
::
GetButtonImage
(
sal_uInt16
_nButtonId
)
const
{
return
Image
(
BitmapEx
(
SvtResId
(
_nButtonId
)));
}
QueryFolderNameDialog
::
QueryFolderNameDialog
(
vcl
::
Window
*
_pParent
,
QueryFolderNameDialog
::
QueryFolderNameDialog
(
vcl
::
Window
*
_pParent
,
const
OUString
&
rTitle
,
const
OUString
&
rDefaultText
)
const
OUString
&
rTitle
,
const
OUString
&
rDefaultText
)
:
ModalDialog
(
_pParent
,
"FolderNameDialog"
,
"fps/ui/foldernamedialog.ui"
)
:
ModalDialog
(
_pParent
,
"FolderNameDialog"
,
"fps/ui/foldernamedialog.ui"
)
...
...
fpicker/source/office/iodlg.hrc
Dosyayı görüntüle @
b80dc582
...
@@ -23,11 +23,6 @@
...
@@ -23,11 +23,6 @@
#include "svtools/helpid.hrc"
#include "svtools/helpid.hrc"
#include <vcl/fpicker.hrc>
#include <vcl/fpicker.hrc>
#define IMG_FILEDLG_BTN_UP 10
#define IMG_FILEDLG_CREATEFOLDER 14
#define IMG_FILEDLG_PLACE_LOCAL 15
#define IMG_FILEDLG_PLACE_REMOTE 16
#define STR_EXPLORERFILE_OPEN (RID_FPICKER_START+31)
#define STR_EXPLORERFILE_OPEN (RID_FPICKER_START+31)
#define STR_EXPLORERFILE_SAVE (RID_FPICKER_START+32)
#define STR_EXPLORERFILE_SAVE (RID_FPICKER_START+32)
#define STR_EXPLORERFILE_BUTTONSAVE (RID_FPICKER_START+33)
#define STR_EXPLORERFILE_BUTTONSAVE (RID_FPICKER_START+33)
...
@@ -38,6 +33,10 @@
...
@@ -38,6 +33,10 @@
#define STR_PREVIEW (RID_FPICKER_START+38)
#define STR_PREVIEW (RID_FPICKER_START+38)
#define STR_DEFAULT_DIRECTORY (RID_FPICKER_START+39)
#define STR_DEFAULT_DIRECTORY (RID_FPICKER_START+39)
#define STR_PLACES_TITLE (RID_FPICKER_START+40)
#define STR_PLACES_TITLE (RID_FPICKER_START+40)
#define BMP_FILEDLG_BTN_UP (RID_FPICKER_START+41)
#define BMP_FILEDLG_CREATEFOLDER (RID_FPICKER_START+42)
#define BMP_FILEDLG_PLACE_LOCAL (RID_FPICKER_START+43)
#define BMP_FILEDLG_PLACE_REMOTE (RID_FPICKER_START+44)
#endif
#endif
...
...
fpicker/source/office/iodlg.hxx
Dosyayı görüntüle @
b80dc582
...
@@ -81,7 +81,6 @@ private:
...
@@ -81,7 +81,6 @@ private:
PickerFlags
_nPickerFlags
;
PickerFlags
_nPickerFlags
;
bool
_bIsInExecute
:
1
;
bool
_bIsInExecute
:
1
;
ImageList
m_aImages
;
::
svt
::
SmartContent
m_aContent
;
::
svt
::
SmartContent
m_aContent
;
::
std
::
set
<
VclPtr
<
Control
>
>
::
std
::
set
<
VclPtr
<
Control
>
>
...
@@ -238,7 +237,7 @@ public:
...
@@ -238,7 +237,7 @@ public:
inline
void
EraseDefaultExt
(
sal_Int32
_nIndex
=
0
);
inline
void
EraseDefaultExt
(
sal_Int32
_nIndex
=
0
);
inline
const
OUString
&
GetDefaultExt
()
const
;
inline
const
OUString
&
GetDefaultExt
()
const
;
inline
Image
GetButtonImage
(
sal_uInt16
_nButtonId
)
const
{
return
m_aImages
.
GetImage
(
_nButtonId
);
}
Image
GetButtonImage
(
sal_uInt16
_nButtonId
)
const
;
bool
ContentIsFolder
(
const
OUString
&
rURL
)
override
{
return
m_aContent
.
isFolder
(
rURL
)
&&
m_aContent
.
isValid
();
}
bool
ContentIsFolder
(
const
OUString
&
rURL
)
override
{
return
m_aContent
.
isFolder
(
rURL
)
&&
m_aContent
.
isValid
();
}
bool
ContentHasParentFolder
(
const
OUString
&
rURL
);
bool
ContentHasParentFolder
(
const
OUString
&
rURL
);
...
...
fpicker/source/office/iodlg.src
Dosyayı görüntüle @
b80dc582
...
@@ -22,22 +22,24 @@
...
@@ -22,22 +22,24 @@
#include "iodlg.hrc"
#include "iodlg.hrc"
#include "OfficeFilePicker.hrc"
#include "OfficeFilePicker.hrc"
// image lists ***************************************************************
Bitmap BMP_FILEDLG_BTN_UP
{
ImageList RID_FILEPICKER_IMAGES
File = "fp010.png";
{
};
Prefix = "fp";
IdList =
Bitmap BMP_FILEDLG_CREATEFOLDER
{
{
IMG_FILEDLG_BTN_UP;
File = "fp014.png";
IMG_FILEDLG_CREATEFOLDER;
};
IMG_FILEDLG_PLACE_LOCAL;
IMG_FILEDLG_PLACE_REMOTE;
Bitmap BMP_FILEDLG_PLACE_LOCAL
};
{
IdCount =
File = "fp015.png";
{
};
4;
};
Bitmap BMP_FILEDLG_PLACE_REMOTE
{
File = "fp016.png";
};
};
// strings *******************************************************************
// strings *******************************************************************
...
...
fpicker/source/office/iodlgimp.cxx
Dosyayı görüntüle @
b80dc582
...
@@ -127,7 +127,7 @@ void SvtFileDialogURLSelector::Activate()
...
@@ -127,7 +127,7 @@ void SvtFileDialogURLSelector::Activate()
SvtUpButton_Impl
::
SvtUpButton_Impl
(
vcl
::
Window
*
pParent
,
SvtFileDialog
*
pDlg
,
WinBits
nBits
)
SvtUpButton_Impl
::
SvtUpButton_Impl
(
vcl
::
Window
*
pParent
,
SvtFileDialog
*
pDlg
,
WinBits
nBits
)
:
SvtFileDialogURLSelector
(
pParent
,
pDlg
,
nBits
,
IMG
_FILEDLG_BTN_UP
)
:
SvtFileDialogURLSelector
(
pParent
,
pDlg
,
nBits
,
BMP
_FILEDLG_BTN_UP
)
{
{
}
}
...
...
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