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
2b04cfa2
Kaydet (Commit)
2b04cfa2
authored
Ara 05, 2013
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert add namespace dialog to .ui
Change-Id: I3636da91d39b2759dca72f30cc7b086b6f9cbb16
üst
9f6a44a2
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
191 additions
and
120 deletions
+191
-120
fmresids.hrc
include/svx/fmresids.hrc
+1
-1
UIConfig_svx.mk
svx/UIConfig_svx.mk
+1
-0
fmhelp.hrc
svx/inc/fmhelp.hrc
+0
-1
datanavi.cxx
svx/source/form/datanavi.cxx
+10
-26
datanavi.src
svx/source/form/datanavi.src
+0
-66
datanavi.hrc
svx/source/inc/datanavi.hrc
+0
-6
datanavi.hxx
svx/source/inc/datanavi.hxx
+12
-20
addnamespacedialog.ui
svx/uiconfig/ui/addnamespacedialog.ui
+167
-0
No files found.
include/svx/fmresids.hrc
Dosyayı görüntüle @
2b04cfa2
...
...
@@ -64,7 +64,7 @@
#define RID_SVXDLG_ADD_DATAITEM (RID_FORMS_START + 12)
#define RID_SVXDLG_ADD_CONDITION (RID_FORMS_START + 13)
#define RID_SVXDLG_NAMESPACE_ITEM (RID_FORMS_START + 14)
#define RID_SVXDLG_MANAGE_NAMESPACE (RID_FORMS_START + 15)
#define RID_SVXDLG_ADD_SUBMISSION (RID_FORMS_START + 16)
#define RID_SVXDLG_ADD_MODEL (RID_FORMS_START + 17)
#define RID_SVXDLG_ADD_INSTANCE (RID_FORMS_START + 18)
...
...
svx/UIConfig_svx.mk
Dosyayı görüntüle @
2b04cfa2
...
...
@@ -11,6 +11,7 @@ $(eval $(call gb_UIConfig_UIConfig,svx))
$(eval $(call gb_UIConfig_add_uifiles,svx,\
svx/uiconfig/ui/acceptrejectchangesdialog \
svx/uiconfig/ui/addnamespacedialog \
svx/uiconfig/ui/asianphoneticguidedialog \
svx/uiconfig/ui/chineseconversiondialog \
svx/uiconfig/ui/compressgraphicdialog \
...
...
svx/inc/fmhelp.hrc
Dosyayı görüntüle @
2b04cfa2
...
...
@@ -57,7 +57,6 @@
#define HID_XFORMS_ADDCONDITION_DLG "SVX_HID_XFORMS_ADDCONDITION_DLG"
#define HID_XFORMS_NAMESPACEITEM_DLG "SVX_HID_XFORMS_NAMESPACEITEM_DLG"
#define HID_XFORMS_NAMESPACEITEM_LIST "SVX_HID_XFORMS_NAMESPACEITEM_LIST"
#define HID_XFORMS_MANAGENAMESPACE_DLG "SVX_HID_XFORMS_MANAGENAMESPACE_DLG"
#define HID_MN_XFORMS_MODELS_ADD "SVX_HID_MN_XFORMS_MODELS_ADD"
#define HID_MN_XFORMS_MODELS_EDIT "SVX_HID_MN_XFORMS_MODELS_EDIT"
#define HID_MN_XFORMS_MODELS_REMOVE "SVX_HID_MN_XFORMS_MODELS_REMOVE"
...
...
svx/source/form/datanavi.cxx
Dosyayı görüntüle @
2b04cfa2
...
...
@@ -3300,40 +3300,24 @@ namespace svxform
// class ManageNamespaceDialog
//========================================================================
ManageNamespaceDialog
::
ManageNamespaceDialog
(
Window
*
pParent
,
AddConditionDialog
*
_pCondDlg
,
bool
_bIsEdit
)
:
ModalDialog
(
pParent
,
SVX_RES
(
RID_SVXDLG_MANAGE_NAMESPACE
)
),
m_aPrefixFT
(
this
,
SVX_RES
(
FT_PREFIX
)
),
m_aPrefixED
(
this
,
SVX_RES
(
ED_PREFIX
)
),
m_aUrlFT
(
this
,
SVX_RES
(
FT_URL
)
),
m_aUrlED
(
this
,
SVX_RES
(
ED_URL
)
),
m_aButtonsFL
(
this
,
SVX_RES
(
FL_DATANAV_BTN
)
),
m_aOKBtn
(
this
,
SVX_RES
(
BTN_DATANAV_OK
)
),
m_aEscBtn
(
this
,
SVX_RES
(
BTN_DATANAV_ESC
)
),
m_aHelpBtn
(
this
,
SVX_RES
(
BTN_DATANAV_HELP
)
),
m_pConditionDlg
(
_pCondDlg
)
ManageNamespaceDialog
::
ManageNamespaceDialog
(
Window
*
pParent
,
AddConditionDialog
*
_pCondDlg
,
bool
bIsEdit
)
:
ModalDialog
(
pParent
,
"AddNamespaceDialog"
,
"svx/ui/addnamespacedialog.ui"
)
,
m_pConditionDlg
(
_pCondDlg
)
{
if
(
_bIsEdit
)
SetText
(
SVX_RESSTR
(
STR_EDIT_TEXT
));
get
(
m_pOKBtn
,
"ok"
);
get
(
m_pPrefixED
,
"prefix"
);
get
(
m_pUrlED
,
"url"
);
FreeResource
();
if
(
bIsEdit
)
SetText
(
get
<
FixedText
>
(
"alttitle"
)
->
GetText
());
m_aOKBtn
.
SetClickHdl
(
LINK
(
this
,
ManageNamespaceDialog
,
OKHdl
)
);
}
//------------------------------------------------------------------------
ManageNamespaceDialog
::~
ManageNamespaceDialog
()
{
m_pOKBtn
->
SetClickHdl
(
LINK
(
this
,
ManageNamespaceDialog
,
OKHdl
)
);
}
//------------------------------------------------------------------------
IMPL_LINK_NOARG
(
ManageNamespaceDialog
,
OKHdl
)
{
OUString
sPrefix
=
m_
aPrefixED
.
GetText
();
OUString
sPrefix
=
m_
pPrefixED
->
GetText
();
try
{
...
...
svx/source/form/datanavi.src
Dosyayı görüntüle @
2b04cfa2
...
...
@@ -708,72 +708,6 @@ ModalDialog RID_SVXDLG_NAMESPACE_ITEM
};
};
ModalDialog RID_SVXDLG_MANAGE_NAMESPACE
{
HelpID = HID_XFORMS_MANAGENAMESPACE_DLG ;
OutputSize = TRUE ;
SVLook = TRUE ;
Size = MAP_APPFONT ( 210 , 60 ) ;
Text [ en-US ] = "Add Namespace" ;
Moveable = TRUE ;
FixedText FT_PREFIX
{
Pos = MAP_APPFONT ( 6 , 3 ) ;
Size = MAP_APPFONT ( 45 , 8 ) ;
LeftLabel = TRUE ;
Text [ en-US ] = "~Prefix" ;
};
Edit ED_PREFIX
{
HelpID = "svx:Edit:RID_SVXDLG_MANAGE_NAMESPACE:ED_PREFIX";
Pos = MAP_APPFONT ( 6 , 14 ) ;
Size = MAP_APPFONT ( 45 , 12 ) ;
Border = TRUE;
};
FixedText FT_URL
{
Pos = MAP_APPFONT ( 54 , 3 ) ;
Size = MAP_APPFONT ( 150 , 8 ) ;
LeftLabel = TRUE ;
Text [ en-US ] = "~URL" ;
};
Edit ED_URL
{
HelpID = "svx:Edit:RID_SVXDLG_MANAGE_NAMESPACE:ED_URL";
Pos = MAP_APPFONT ( 54 , 14 ) ;
Size = MAP_APPFONT ( 150 , 12 ) ;
Border = TRUE;
};
FixedLine FL_DATANAV_BTN
{
Pos = MAP_APPFONT ( 4 , 29 ) ;
Size = MAP_APPFONT ( 202 , 8 ) ;
};
OKButton BTN_DATANAV_OK
{
Pos = MAP_APPFONT ( 45 , 40 ) ;
Size = MAP_APPFONT ( 50 , 14 ) ;
TabStop = TRUE ;
DefButton = TRUE ;
};
CancelButton BTN_DATANAV_ESC
{
Pos = MAP_APPFONT ( 98 , 40 ) ;
Size = MAP_APPFONT ( 50 , 14 ) ;
TabStop = TRUE ;
};
HelpButton BTN_DATANAV_HELP
{
Pos = MAP_APPFONT ( 154 , 40 ) ;
Size = MAP_APPFONT ( 50 , 14 ) ;
TabStop = TRUE ;
};
String STR_EDIT_TEXT
{
Text [ en-US ] = "Edit Namespace" ;
};
};
ModalDialog RID_SVXDLG_ADD_SUBMISSION
{
HelpID = HID_XFORMS_ADDSUBMISSION_DLG ;
...
...
svx/source/inc/datanavi.hrc
Dosyayı görüntüle @
2b04cfa2
...
...
@@ -126,12 +126,6 @@
#define STR_HEADER_PREFIX 10
#define STR_HEADER_URL 11
// class ManageNamespaceDialog
#define FT_PREFIX 10
#define ED_PREFIX 11
#define FT_URL 12
#define ED_URL 13
#define STR_EDIT_TEXT 10
// class AddSubmissionDialog
...
...
svx/source/inc/datanavi.hxx
Dosyayı görüntüle @
2b04cfa2
...
...
@@ -440,34 +440,26 @@ namespace svxform
class
ManageNamespaceDialog
:
public
ModalDialog
{
private
:
FixedText
m_aPrefixFT
;
Edit
m_aPrefixED
;
FixedText
m_aUrlFT
;
Edit
m_aUrlED
;
FixedLine
m_aButtonsFL
;
OKButton
m_aOKBtn
;
CancelButton
m_aEscBtn
;
HelpButton
m_aHelpBtn
;
Edit
*
m_pPrefixED
;
Edit
*
m_pUrlED
;
OKButton
*
m_pOKBtn
;
AddConditionDialog
*
m_pConditionDlg
;
DECL_LINK
(
OKHdl
,
void
*
);
public
:
ManageNamespaceDialog
(
Window
*
pParent
,
AddConditionDialog
*
_pCondDlg
,
bool
_bIsEdit
);
~
ManageNamespaceDialog
();
inline
void
SetNamespace
(
const
OUString
&
_rPrefix
,
const
OUString
&
_rURL
);
inline
OUString
GetPrefix
()
const
{
return
m_aPrefixED
.
GetText
();
}
inline
OUString
GetURL
()
const
{
return
m_aUrlED
.
GetText
();
}
ManageNamespaceDialog
(
Window
*
pParent
,
AddConditionDialog
*
_pCondDlg
,
bool
bIsEdit
);
void
SetNamespace
(
const
OUString
&
_rPrefix
,
const
OUString
&
_rURL
)
{
m_pPrefixED
->
SetText
(
_rPrefix
);
m_pUrlED
->
SetText
(
_rURL
);
}
OUString
GetPrefix
()
const
{
return
m_pPrefixED
->
GetText
();
}
OUString
GetURL
()
const
{
return
m_pUrlED
->
GetText
();
}
};
void
ManageNamespaceDialog
::
SetNamespace
(
const
OUString
&
_rPrefix
,
const
OUString
&
_rURL
)
{
m_aPrefixED
.
SetText
(
_rPrefix
);
m_aUrlED
.
SetText
(
_rURL
);
}
//========================================================================
class
AddSubmissionDialog
:
public
ModalDialog
{
...
...
svx/uiconfig/ui/addnamespacedialog.ui
0 → 100644
Dosyayı görüntüle @
2b04cfa2
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<!-- interface-requires gtk+ 3.0 -->
<object
class=
"GtkDialog"
id=
"AddNamespaceDialog"
>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"border_width"
>
6
</property>
<property
name=
"title"
translatable=
"yes"
>
Add Namespace
</property>
<property
name=
"type_hint"
>
dialog
</property>
<child
internal-child=
"vbox"
>
<object
class=
"GtkBox"
id=
"dialog-vbox1"
>
<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=
"can_focus"
>
False
</property>
<property
name=
"layout_style"
>
end
</property>
<child>
<object
class=
"GtkButton"
id=
"ok"
>
<property
name=
"label"
>
gtk-ok
</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>
</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-cancel
</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=
"grid3"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"hexpand"
>
True
</property>
<property
name=
"row_spacing"
>
6
</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"
>
_Prefix
</property>
<property
name=
"use_underline"
>
True
</property>
<property
name=
"mnemonic_widget"
>
prefix
</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=
"prefix"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"hexpand"
>
True
</property>
<property
name=
"invisible_char"
>
•
</property>
<property
name=
"width_chars"
>
12
</property>
</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>
<child>
<object
class=
"GtkEntry"
id=
"url"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"hexpand"
>
True
</property>
<property
name=
"invisible_char"
>
•
</property>
<property
name=
"width_chars"
>
34
</property>
</object>
<packing>
<property
name=
"left_attach"
>
1
</property>
<property
name=
"top_attach"
>
1
</property>
<property
name=
"width"
>
1
</property>
<property
name=
"height"
>
1
</property>
</packing>
</child>
<child>
<object
class=
"GtkLabel"
id=
"label2"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"xalign"
>
0
</property>
<property
name=
"label"
translatable=
"yes"
>
_URL
</property>
<property
name=
"use_underline"
>
True
</property>
<property
name=
"mnemonic_widget"
>
url
</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>
<child>
<object
class=
"GtkLabel"
id=
"alttitle"
>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"no_show_all"
>
True
</property>
<property
name=
"label"
translatable=
"yes"
>
Edit Namespace
</property>
</object>
<packing>
<property
name=
"left_attach"
>
0
</property>
<property
name=
"top_attach"
>
2
</property>
<property
name=
"width"
>
2
</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"
>
ok
</action-widget>
<action-widget
response=
"0"
>
cancel
</action-widget>
<action-widget
response=
"0"
>
help
</action-widget>
</action-widgets>
</object>
</interface>
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