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
78088743
Kaydet (Commit)
78088743
authored
Eyl 09, 2013
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert find entry dialog to .ui
Change-Id: I0d8ef363e45f9032676a161c63d7cf9bcbe417fd
üst
8a1f535c
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
229 additions
and
107 deletions
+229
-107
UIConfig_swriter.mk
sw/UIConfig_swriter.mk
+1
-0
dbui.hrc
sw/inc/dbui.hrc
+0
-1
helpid.h
sw/inc/helpid.h
+0
-1
createaddresslistdialog.cxx
sw/source/ui/dbui/createaddresslistdialog.cxx
+17
-28
createaddresslistdialog.hrc
sw/source/ui/dbui/createaddresslistdialog.hrc
+0
-8
createaddresslistdialog.hxx
sw/source/ui/dbui/createaddresslistdialog.hxx
+13
-10
createaddresslistdialog.src
sw/source/ui/dbui/createaddresslistdialog.src
+0
-59
findentrydialog.ui
sw/uiconfig/swriter/ui/findentrydialog.ui
+190
-0
svids.hrc
vcl/inc/svids.hrc
+1
-0
btntext.src
vcl/source/src/btntext.src
+5
-0
builder.cxx
vcl/source/window/builder.cxx
+2
-0
No files found.
sw/UIConfig_swriter.mk
Dosyayı görüntüle @
78088743
...
...
@@ -96,6 +96,7 @@ $(eval $(call gb_UIConfig_add_uifiles,modules/swriter,\
sw/uiconfig/swriter/ui/envprinterpage \
sw/uiconfig/swriter/ui/exchangedatabases \
sw/uiconfig/swriter/ui/fielddialog \
sw/uiconfig/swriter/ui/findentrydialog \
sw/uiconfig/swriter/ui/flddbpage \
sw/uiconfig/swriter/ui/flddocinfopage \
sw/uiconfig/swriter/ui/flddocumentpage \
...
...
sw/inc/dbui.hrc
Dosyayı görüntüle @
78088743
...
...
@@ -36,7 +36,6 @@
#define DLG_MM_SELECTDBTABLEDDIALOG (RC_DBUI_BEGIN + 12)
#define DLG_MM_DBTABLEPREVIEWDIALOG (RC_DBUI_BEGIN + 13)
#define DLG_MM_CREATEADDRESSLIST (RC_DBUI_BEGIN + 14)
#define DLG_MM_FIND_ENTRY (RC_DBUI_BEGIN + 15)
#define DLG_MM_CUSTOMIZE_ADDRESS_LIST (RC_DBUI_BEGIN + 17)
#define DLG_MM_CUSTOMIZEADDRESSBLOCK (RC_DBUI_BEGIN + 18)
#define DLG_MM_SELECTADDRESSBLOCK (RC_DBUI_BEGIN + 19)
...
...
sw/inc/helpid.h
Dosyayı görüntüle @
78088743
...
...
@@ -380,7 +380,6 @@
#define HID_MM_SELECTDBTABLEDDIALOG_LISTBOX "SW_HID_MM_SELECTDBTABLEDDIALOG_LISTBOX"
#define HID_MM_DBTABLEPREVIEWDIALOG "SW_HID_MM_DBTABLEPREVIEWDIALOG"
#define HID_MM_CREATEADDRESSLIST "SW_HID_MM_CREATEADDRESSLIST"
#define HID_MM_FIND_ENTRY "SW_HID_MM_FIND_ENTRY"
#define HID_MM_CUSTOMIZE_ADDRESS_LIST "SW_HID_MM_CUSTOMIZE_ADDRESS_LIST"
#define HID_MM_CUSTOMIZEADDRESSBLOCK "SW_HID_MM_CUSTOMIZEADDRESSBLOCK"
#define HID_MM_SELECTADDRESSBLOCK "SW_HID_MM_SELECTADDRESSBLOCK"
...
...
sw/source/ui/dbui/createaddresslistdialog.cxx
Dosyayı görüntüle @
78088743
...
...
@@ -526,6 +526,7 @@ IMPL_LINK_NOARG(SwCreateAddressListDialog, FindHdl_Impl)
++
aHeaderIter
)
rColumnBox
.
InsertEntry
(
*
aHeaderIter
);
rColumnBox
.
SelectEntryPos
(
0
);
m_pFindDlg
->
Show
();
}
else
m_pFindDlg
->
Show
(
!
m_pFindDlg
->
IsVisible
());
...
...
@@ -717,46 +718,34 @@ void SwCreateAddressListDialog::Find(const String& rSearch, sal_Int32 nColumn)
}
}
SwFindEntryDialog
::
SwFindEntryDialog
(
SwCreateAddressListDialog
*
pParent
)
:
ModelessDialog
(
pParent
,
SW_RES
(
DLG_MM_FIND_ENTRY
)),
#ifdef _MSC_VER
#pragma warning (disable : 4355)
#endif
m_aFindFT
(
this
,
SW_RES
(
FT_FIND
)),
m_aFindED
(
this
,
SW_RES
(
ED_FIND
)),
m_aFindOnlyCB
(
this
,
SW_RES
(
CB_FINDONLY
)),
m_aFindOnlyLB
(
this
,
SW_RES
(
LB_FINDONLY
)),
m_aFindPB
(
this
,
SW_RES
(
PB_FIND
)),
m_aCancel
(
this
,
SW_RES
(
PB_CANCEL
)),
m_aHelp
(
this
,
SW_RES
(
PB_HELP
)),
#ifdef _MSC_VER
#pragma warning (default : 4355)
#endif
m_pParent
(
pParent
)
{
FreeResource
();
m_aFindPB
.
SetClickHdl
(
LINK
(
this
,
SwFindEntryDialog
,
FindHdl_Impl
));
m_aFindED
.
SetModifyHdl
(
LINK
(
this
,
SwFindEntryDialog
,
FindEnableHdl_Impl
));
m_aCancel
.
SetClickHdl
(
LINK
(
this
,
SwFindEntryDialog
,
CloseHdl_Impl
));
}
SwFindEntryDialog
::~
SwFindEntryDialog
()
SwFindEntryDialog
::
SwFindEntryDialog
(
SwCreateAddressListDialog
*
pParent
)
:
ModelessDialog
(
pParent
,
"FindEntryDialog"
,
"modules/swriter/ui/findentrydialog.ui"
)
,
m_pParent
(
pParent
)
{
get
(
m_pCancel
,
"cancel"
);
get
(
m_pFindPB
,
"find"
);
get
(
m_pFindOnlyLB
,
"area"
);
get
(
m_pFindOnlyCB
,
"findin"
);
get
(
m_pFindED
,
"entry"
);
m_pFindPB
->
SetClickHdl
(
LINK
(
this
,
SwFindEntryDialog
,
FindHdl_Impl
));
m_pFindED
->
SetModifyHdl
(
LINK
(
this
,
SwFindEntryDialog
,
FindEnableHdl_Impl
));
m_pCancel
->
SetClickHdl
(
LINK
(
this
,
SwFindEntryDialog
,
CloseHdl_Impl
));
}
IMPL_LINK_NOARG
(
SwFindEntryDialog
,
FindHdl_Impl
)
{
sal_Int32
nColumn
=
-
1
;
if
(
m_
aFindOnlyCB
.
IsChecked
())
nColumn
=
m_
aFindOnlyLB
.
GetSelectEntryPos
();
if
(
m_
pFindOnlyCB
->
IsChecked
())
nColumn
=
m_
pFindOnlyLB
->
GetSelectEntryPos
();
if
(
nColumn
!=
LISTBOX_ENTRY_NOTFOUND
)
m_pParent
->
Find
(
m_
aFindED
.
GetText
(),
nColumn
);
m_pParent
->
Find
(
m_
pFindED
->
GetText
(),
nColumn
);
return
0
;
}
IMPL_LINK_NOARG
(
SwFindEntryDialog
,
FindEnableHdl_Impl
)
{
m_
aFindPB
.
Enable
(
!
m_aFindED
.
GetText
().
isEmpty
());
m_
pFindPB
->
Enable
(
!
m_pFindED
->
GetText
().
isEmpty
());
return
0
;
}
...
...
sw/source/ui/dbui/createaddresslistdialog.hrc
Dosyayı görüntüle @
78088743
...
...
@@ -41,14 +41,6 @@
#define SCR_1 1
#define WIN_DATA 2
#define FT_FIND 1
#define ED_FIND 2
#define CB_FINDONLY 3
#define LB_FINDONLY 4
#define PB_FIND 5
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
sw/source/ui/dbui/createaddresslistdialog.hxx
Dosyayı görüntüle @
78088743
...
...
@@ -88,14 +88,12 @@ public:
class
SwFindEntryDialog
:
public
ModelessDialog
{
FixedText
m_aFindFT
;
Edit
m_aFindED
;
CheckBox
m_aFindOnlyCB
;
ListBox
m_aFindOnlyLB
;
Edit
*
m_pFindED
;
CheckBox
*
m_pFindOnlyCB
;
ListBox
*
m_pFindOnlyLB
;
PushButton
m_aFindPB
;
CancelButton
m_aCancel
;
HelpButton
m_aHelp
;
PushButton
*
m_pFindPB
;
CancelButton
*
m_pCancel
;
SwCreateAddressListDialog
*
m_pParent
;
...
...
@@ -105,10 +103,15 @@ class SwFindEntryDialog : public ModelessDialog
public
:
SwFindEntryDialog
(
SwCreateAddressListDialog
*
pParent
);
~
SwFindEntryDialog
();
ListBox
&
GetFieldsListBox
(){
return
m_aFindOnlyLB
;}
String
GetFindString
()
const
{
return
m_aFindED
.
GetText
();}
ListBox
&
GetFieldsListBox
()
{
return
*
m_pFindOnlyLB
;
}
OUString
GetFindString
()
const
{
return
m_pFindED
->
GetText
();
}
};
#endif
...
...
sw/source/ui/dbui/createaddresslistdialog.src
Dosyayı görüntüle @
78088743
...
...
@@ -162,63 +162,4 @@ ModalDialog DLG_MM_CREATEADDRESSLIST
};
};
ModelessDialog DLG_MM_FIND_ENTRY
{
OutputSize = TRUE ;
SVLook = TRUE ;
HelpID = HID_MM_FIND_ENTRY;
Size = MAP_APPFONT ( 188 , 63 ) ;
Moveable = TRUE ;
Text [ en-US ] = "Find Entry";
FixedText FT_FIND
{
Pos = MAP_APPFONT ( 6 , 3 ) ;
Size = MAP_APPFONT ( 120 , 8 ) ;
Text [ en-US ] = "F~ind";
};
Edit ED_FIND
{
HelpID = "sw:Edit:DLG_MM_FIND_ENTRY:ED_FIND";
Pos = MAP_APPFONT ( 6 , 14) ;
Size = MAP_APPFONT ( 120 , 12 ) ;
Border = TRUE;
};
CheckBox CB_FINDONLY
{
HelpID = "sw:CheckBox:DLG_MM_FIND_ENTRY:CB_FINDONLY";
Pos = MAP_APPFONT ( 6 , 32 ) ;
Size = MAP_APPFONT ( 120 , 10 ) ;
Text [ en-US ] = "Find ~only in";
};
ListBox LB_FINDONLY
{
HelpID = "sw:ListBox:DLG_MM_FIND_ENTRY:LB_FINDONLY";
Pos = MAP_APPFONT ( 12 , 45 ) ;
Size = MAP_APPFONT ( 114 , 50 ) ;
Border = TRUE;
DropDown = TRUE;
};
PushButton PB_FIND
{
HelpID = "sw:PushButton:DLG_MM_FIND_ENTRY:PB_FIND";
Pos = MAP_APPFONT ( 132 , 3 ) ;
Size = MAP_APPFONT ( 50 , 14 ) ;
DefButton = TRUE;
Text [ en-US ] = "~Find";
};
CancelButton PB_CANCEL
{
Pos = MAP_APPFONT ( 132 , 20 ) ;
Size = MAP_APPFONT ( 50 , 14 ) ;
Text [ en-US ] = "~Close";
};
HelpButton PB_HELP
{
Pos = MAP_APPFONT ( 132 , 40 ) ;
Size = MAP_APPFONT ( 50 , 14 ) ;
};
};
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
sw/uiconfig/swriter/ui/findentrydialog.ui
0 → 100644
Dosyayı görüntüle @
78088743
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<!-- interface-requires gtk+ 3.0 -->
<object
class=
"GtkDialog"
id=
"FindEntryDialog"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"border_width"
>
6
</property>
<property
name=
"title"
translatable=
"yes"
>
Find Entry
</property>
<property
name=
"type_hint"
>
dialog
</property>
<child
internal-child=
"vbox"
>
<object
class=
"GtkBox"
id=
"dialog-vbox1"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"orientation"
>
vertical
</property>
<property
name=
"spacing"
>
12
</property>
<child
internal-child=
"action_area"
>
<object
class=
"GtkButtonBox"
id=
"dialog-action_area1"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"layout_style"
>
end
</property>
<child>
<object
class=
"GtkButton"
id=
"find"
>
<property
name=
"label"
>
gtk-find
</property>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"can_default"
>
True
</property>
<property
name=
"has_default"
>
True
</property>
<property
name=
"receives_default"
>
True
</property>
<property
name=
"use_stock"
>
True
</property>
<property
name=
"image_position"
>
top
</property>
</object>
<packing>
<property
name=
"expand"
>
False
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"position"
>
0
</property>
</packing>
</child>
<child>
<object
class=
"GtkButton"
id=
"cancel"
>
<property
name=
"label"
>
gtk-close
</property>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"receives_default"
>
True
</property>
<property
name=
"use_stock"
>
True
</property>
</object>
<packing>
<property
name=
"expand"
>
False
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"position"
>
1
</property>
</packing>
</child>
<child>
<object
class=
"GtkButton"
id=
"help"
>
<property
name=
"label"
>
gtk-help
</property>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"receives_default"
>
True
</property>
<property
name=
"use_stock"
>
True
</property>
</object>
<packing>
<property
name=
"expand"
>
False
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"position"
>
2
</property>
</packing>
</child>
</object>
<packing>
<property
name=
"expand"
>
False
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"pack_type"
>
end
</property>
<property
name=
"position"
>
0
</property>
</packing>
</child>
<child>
<object
class=
"GtkGrid"
id=
"grid1"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"hexpand"
>
True
</property>
<property
name=
"row_spacing"
>
12
</property>
<child>
<object
class=
"GtkGrid"
id=
"grid2"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"hexpand"
>
True
</property>
<property
name=
"column_spacing"
>
12
</property>
<child>
<object
class=
"GtkLabel"
id=
"label1"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"xalign"
>
0
</property>
<property
name=
"label"
translatable=
"yes"
>
F_ind
</property>
<property
name=
"use_underline"
>
True
</property>
<property
name=
"mnemonic_widget"
>
entry
</property>
</object>
<packing>
<property
name=
"left_attach"
>
0
</property>
<property
name=
"top_attach"
>
0
</property>
<property
name=
"width"
>
1
</property>
<property
name=
"height"
>
1
</property>
</packing>
</child>
<child>
<object
class=
"GtkEntry"
id=
"entry"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"hexpand"
>
True
</property>
<property
name=
"invisible_char"
>
●
</property>
</object>
<packing>
<property
name=
"left_attach"
>
1
</property>
<property
name=
"top_attach"
>
0
</property>
<property
name=
"width"
>
1
</property>
<property
name=
"height"
>
1
</property>
</packing>
</child>
</object>
<packing>
<property
name=
"left_attach"
>
0
</property>
<property
name=
"top_attach"
>
0
</property>
<property
name=
"width"
>
1
</property>
<property
name=
"height"
>
1
</property>
</packing>
</child>
<child>
<object
class=
"GtkGrid"
id=
"grid3"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"row_spacing"
>
6
</property>
<child>
<object
class=
"GtkCheckButton"
id=
"findin"
>
<property
name=
"label"
translatable=
"yes"
>
Find _only in
</property>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"receives_default"
>
False
</property>
<property
name=
"use_underline"
>
True
</property>
<property
name=
"xalign"
>
0.019999999552965164
</property>
<property
name=
"draw_indicator"
>
True
</property>
<accessibility>
<relation
type=
"label-for"
target=
"area"
/>
</accessibility>
</object>
<packing>
<property
name=
"left_attach"
>
0
</property>
<property
name=
"top_attach"
>
0
</property>
<property
name=
"width"
>
1
</property>
<property
name=
"height"
>
1
</property>
</packing>
</child>
<child>
<object
class=
"GtkComboBoxText"
id=
"area"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"margin_left"
>
12
</property>
<property
name=
"entry_text_column"
>
0
</property>
<property
name=
"id_column"
>
1
</property>
<accessibility>
<relation
type=
"labelled-by"
target=
"findin"
/>
</accessibility>
</object>
<packing>
<property
name=
"left_attach"
>
0
</property>
<property
name=
"top_attach"
>
1
</property>
<property
name=
"width"
>
1
</property>
<property
name=
"height"
>
1
</property>
</packing>
</child>
</object>
<packing>
<property
name=
"left_attach"
>
0
</property>
<property
name=
"top_attach"
>
1
</property>
<property
name=
"width"
>
1
</property>
<property
name=
"height"
>
1
</property>
</packing>
</child>
</object>
<packing>
<property
name=
"expand"
>
False
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"position"
>
1
</property>
</packing>
</child>
</object>
</child>
<action-widgets>
<action-widget
response=
"0"
>
find
</action-widget>
<action-widget
response=
"0"
>
cancel
</action-widget>
<action-widget
response=
"0"
>
help
</action-widget>
</action-widgets>
</object>
</interface>
vcl/inc/svids.hrc
Dosyayı görüntüle @
78088743
...
...
@@ -166,6 +166,7 @@
#define SV_BUTTONTEXT_CLEAR 10126
#define SV_BUTTONTEXT_OPEN 10127
#define SV_BUTTONTEXT_PLAY 10128
#define SV_BUTTONTEXT_FIND 10129
#define SV_STDTEXT_FIRST SV_STDTEXT_SERVICENOTAVAILABLE
#define SV_STDTEXT_SERVICENOTAVAILABLE 10210
...
...
vcl/source/src/btntext.src
Dosyayı görüntüle @
78088743
...
...
@@ -171,4 +171,9 @@ String SV_BUTTONTEXT_PLAY
Text [ en-US ] = "~Play" ;
};
String SV_BUTTONTEXT_FIND
{
Text [ en-US ] = "~Find" ;
};
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
vcl/source/window/builder.cxx
Dosyayı görüntüle @
78088743
...
...
@@ -639,6 +639,8 @@ namespace
return
(
VclResId
(
SV_BUTTONTEXT_CLEAR
).
toString
());
else
if
(
rType
==
"gtk-media-play"
)
return
(
VclResId
(
SV_BUTTONTEXT_PLAY
).
toString
());
else
if
(
rType
==
"gtk-find"
)
return
(
VclResId
(
SV_BUTTONTEXT_FIND
).
toString
());
SAL_WARN
(
"vcl.layout"
,
"unknown stock type: "
<<
rType
.
getStr
());
return
OUString
();
}
...
...
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