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
f99e5408
Kaydet (Commit)
f99e5408
authored
Ock 26, 2013
tarafından
Robert Roth
Kaydeden (comit)
Caolán McNamara
Ock 28, 2013
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
New table dialog from impress and draw converted to Glade UI
Change-Id: Iedd44ae171a25d9d6599e4f44698d7458c486be6
üst
b2891c46
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
184 additions
and
149 deletions
+184
-149
AllLangResTarget_cui.mk
cui/AllLangResTarget_cui.mk
+0
-1
UI_cui.mk
cui/UI_cui.mk
+1
-0
newtabledlg.cxx
cui/source/dialogs/newtabledlg.cxx
+5
-15
newtabledlg.hrc
cui/source/dialogs/newtabledlg.hrc
+0
-26
newtabledlg.src
cui/source/dialogs/newtabledlg.src
+0
-95
cuires.hrc
cui/source/inc/cuires.hrc
+0
-3
newtabledlg.hxx
cui/source/inc/newtabledlg.hxx
+2
-9
newtabledialog.ui
cui/uiconfig/ui/newtabledialog.ui
+176
-0
No files found.
cui/AllLangResTarget_cui.mk
Dosyayı görüntüle @
f99e5408
...
...
@@ -66,7 +66,6 @@ $(eval $(call gb_SrsTarget_add_files,cui/res,\
cui/source/dialogs/hyperdlg.src \
cui/source/dialogs/iconcdlg.src \
cui/source/dialogs/multipat.src \
cui/source/dialogs/newtabledlg.src \
cui/source/dialogs/passwdomdlg.src \
cui/source/dialogs/postdlg.src \
cui/source/dialogs/scriptdlg.src \
...
...
cui/UI_cui.mk
Dosyayı görüntüle @
f99e5408
...
...
@@ -22,6 +22,7 @@ $(eval $(call gb_UI_add_uifiles,cui,\
cui/uiconfig/ui/macroselectordialog \
cui/uiconfig/ui/messbox \
cui/uiconfig/ui/namedialog \
cui/uiconfig/ui/newtabledialog \
cui/uiconfig/ui/numberingformatpage \
cui/uiconfig/ui/numberingoptionspage \
cui/uiconfig/ui/numberingpositionpage \
...
...
cui/source/dialogs/newtabledlg.cxx
Dosyayı görüntüle @
f99e5408
...
...
@@ -20,22 +20,12 @@
#include "cuires.hrc"
#include "dialmgr.hxx"
#include "newtabledlg.hxx"
#include "newtabledlg.hrc"
SvxNewTableDialog
::
SvxNewTableDialog
(
Window
*
pParent
)
:
ModalDialog
(
pParent
,
CUI_RES
(
RID_SVX_NEWTABLE_DLG
)
)
,
maFtColumns
(
this
,
CUI_RES
(
FT_COLUMNS
)
)
,
maNumColumns
(
this
,
CUI_RES
(
NF_COLUMNS
)
)
,
maFtRows
(
this
,
CUI_RES
(
FT_ROWS
)
)
,
maNumRows
(
this
,
CUI_RES
(
NF_ROWS
)
)
,
maFlSep
(
this
,
CUI_RES
(
FL_SEP
)
)
,
maHelpButton
(
this
,
CUI_RES
(
BTN_HELP
)
)
,
maOkButton
(
this
,
CUI_RES
(
BTN_OK
)
)
,
maCancelButton
(
this
,
CUI_RES
(
BTN_CANCEL
)
)
:
ModalDialog
(
pParent
,
"NewTableDialog"
,
"cui/ui/newtabledialog.ui"
)
{
maNumRows
.
SetValue
(
2
);
maNumColumns
.
SetValue
(
5
);
FreeResource
();
get
(
mpNumRows
,
"rows"
);
get
(
mpNumColumns
,
"columns"
);
}
short
SvxNewTableDialog
::
Execute
(
void
)
...
...
@@ -49,12 +39,12 @@ void SvxNewTableDialog::Apply(void)
sal_Int32
SvxNewTableDialog
::
getRows
()
const
{
return
sal
::
static_int_cast
<
sal_Int32
>
(
m
aNumRows
.
GetValue
()
);
return
sal
::
static_int_cast
<
sal_Int32
>
(
m
pNumRows
->
GetValue
()
);
}
sal_Int32
SvxNewTableDialog
::
getColumns
()
const
{
return
sal
::
static_int_cast
<
sal_Int32
>
(
m
aNumColumns
.
GetValue
()
);
return
sal
::
static_int_cast
<
sal_Int32
>
(
m
pNumColumns
->
GetValue
()
);
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
cui/source/dialogs/newtabledlg.hrc
deleted
100644 → 0
Dosyayı görüntüle @
b2891c46
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#define FT_COLUMNS 1
#define NF_COLUMNS 2
#define FT_ROWS 3
#define NF_ROWS 4
#define FL_SEP 5
#define BTN_HELP 6
#define BTN_OK 7
#define BTN_CANCEL 8
cui/source/dialogs/newtabledlg.src
deleted
100644 → 0
Dosyayı görüntüle @
b2891c46
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include "newtabledlg.hrc"
#include "cuires.hrc"
ModalDialog RID_SVX_NEWTABLE_DLG
{
HelpID = "cui:ModalDialog:RID_SVX_NEWTABLE_DLG";
OutputSize = TRUE;
SVLook = TRUE ;
Moveable = TRUE ;
Size = MAP_APPFONT ( 181 , 6+15+15+15+14+6 ) ;
Text [ en-US ] = "Insert Table" ;
FixedText FT_COLUMNS
{
Pos = MAP_APPFONT ( 6 , 8 ) ;
Size = MAP_APPFONT ( 60 , 8 ) ;
Text [ en-US ] = "Number of columns:" ;
};
NumericField NF_COLUMNS
{
HelpID = "cui:NumericField:RID_SVX_NEWTABLE_DLG:NF_COLUMNS";
Border = TRUE ;
Pos = MAP_APPFONT ( 80 , 6 ) ;
Size = MAP_APPFONT ( 40 , 12 ) ;
TabStop = TRUE ;
Repeat = TRUE ;
Spin = TRUE ;
Minimum = 1 ;
Maximum = 75 ;
SpinSize = 1 ;
StrictFormat = TRUE ;
};
FixedText FT_ROWS
{
Pos = MAP_APPFONT ( 6 , 8+15 ) ;
Size = MAP_APPFONT ( 60 , 8 ) ;
Text [ en-US ] = "Number of rows:" ;
};
NumericField NF_ROWS
{
HelpID = "cui:NumericField:RID_SVX_NEWTABLE_DLG:NF_ROWS";
Border = TRUE ;
Pos = MAP_APPFONT ( 80 , 6+15 ) ;
Size = MAP_APPFONT ( 40 , 12 ) ;
TabStop = TRUE ;
Repeat = TRUE ;
Spin = TRUE ;
Minimum = 1 ;
Maximum = 75 ;
SpinSize = 1 ;
StrictFormat = TRUE ;
};
FixedLine FL_SEP
{
Pos = MAP_APPFONT ( 0 , 6+15+15 ) ;
Size = MAP_APPFONT ( 181 , 12 ) ;
};
HelpButton BTN_HELP
{
Pos = MAP_APPFONT ( 6 , 6+15+15+15 ) ;
Size = MAP_APPFONT ( 50 , 14 ) ;
TabStop = TRUE ;
};
OKButton BTN_OK
{
Pos = MAP_APPFONT ( 69 , 6+15+15+15 ) ;
Size = MAP_APPFONT ( 50 , 14 ) ;
TabStop = TRUE ;
DefButton = TRUE ;
};
CancelButton BTN_CANCEL
{
Pos = MAP_APPFONT ( 125 , 6+15+15+15 ) ;
Size = MAP_APPFONT ( 50 , 14 ) ;
TabStop = TRUE ;
};
};
cui/source/inc/cuires.hrc
Dosyayı görüntüle @
f99e5408
...
...
@@ -268,9 +268,6 @@
#define RID_SVXDLG_MULTIPATH (RID_SVX_START + 201)
#define RID_MULTIPATH_DBL_ERR (RID_SVX_START + 207)
// new table dialog
#define RID_SVX_NEWTABLE_DLG ( RID_SVX_START + 44 )
// script organizer
#define RID_DLG_SCRIPTORGANIZER (RID_SVX_START + 258)
#define RID_DLG_NEWLIB (RID_SVX_START + 290)
...
...
cui/source/inc/newtabledlg.hxx
Dosyayı görüntüle @
f99e5408
...
...
@@ -29,15 +29,8 @@
class
SvxNewTableDialog
:
public
SvxAbstractNewTableDialog
,
public
ModalDialog
{
private
:
FixedText
maFtColumns
;
NumericField
maNumColumns
;
FixedText
maFtRows
;
NumericField
maNumRows
;
FixedLine
maFlSep
;
HelpButton
maHelpButton
;
OKButton
maOkButton
;
CancelButton
maCancelButton
;
NumericField
*
mpNumColumns
;
NumericField
*
mpNumRows
;
public
:
SvxNewTableDialog
(
Window
*
pWindow
);
...
...
cui/uiconfig/ui/newtabledialog.ui
0 → 100644
Dosyayı görüntüle @
f99e5408
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<!-- interface-requires gtk+ 3.0 -->
<object
class=
"GtkDialog"
id=
"NewTableDialog"
>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"border_width"
>
5
</property>
<property
name=
"title"
translatable=
"yes"
>
Insert Table
</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"
>
2
</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=
"button1"
>
<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"
>
0
</property>
<property
name=
"secondary"
>
True
</property>
</packing>
</child>
<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"
>
False
</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=
"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"
>
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=
"border_width"
>
6
</property>
<property
name=
"row_spacing"
>
12
</property>
<property
name=
"column_spacing"
>
12
</property>
<child>
<object
class=
"GtkLabel"
id=
"columns_label"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"hexpand"
>
True
</property>
<property
name=
"xalign"
>
0
</property>
<property
name=
"label"
translatable=
"yes"
>
_Number of columns:
</property>
<property
name=
"use_underline"
>
True
</property>
<property
name=
"mnemonic_widget"
>
columns
</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=
"GtkLabel"
id=
"rows_label"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"hexpand"
>
True
</property>
<property
name=
"xalign"
>
0
</property>
<property
name=
"label"
translatable=
"yes"
>
_Number of rows:
</property>
<property
name=
"use_underline"
>
True
</property>
<property
name=
"mnemonic_widget"
>
rows
</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=
"GtkSpinButton"
id=
"columns"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"has_focus"
>
True
</property>
<property
name=
"invisible_char"
>
•
</property>
<property
name=
"activates_default"
>
True
</property>
<property
name=
"adjustment"
>
columns_value
</property>
<property
name=
"climb_rate"
>
1
</property>
<property
name=
"snap_to_ticks"
>
True
</property>
<property
name=
"numeric"
>
True
</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=
"GtkSpinButton"
id=
"rows"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"invisible_char"
>
•
</property>
<property
name=
"adjustment"
>
rows_value
</property>
<property
name=
"snap_to_ticks"
>
True
</property>
<property
name=
"numeric"
>
True
</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>
</object>
<packing>
<property
name=
"expand"
>
True
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"position"
>
1
</property>
</packing>
</child>
</object>
</child>
<action-widgets>
<action-widget
response=
"0"
>
button1
</action-widget>
<action-widget
response=
"0"
>
ok
</action-widget>
<action-widget
response=
"0"
>
cancel
</action-widget>
</action-widgets>
</object>
<object
class=
"GtkAdjustment"
id=
"rows_value"
>
<property
name=
"lower"
>
1
</property>
<property
name=
"upper"
>
75
</property>
<property
name=
"value"
>
2
</property>
<property
name=
"step_increment"
>
1
</property>
<property
name=
"page_increment"
>
10
</property>
</object>
<object
class=
"GtkAdjustment"
id=
"columns_value"
>
<property
name=
"lower"
>
1
</property>
<property
name=
"upper"
>
75
</property>
<property
name=
"value"
>
5
</property>
<property
name=
"step_increment"
>
1
</property>
<property
name=
"page_increment"
>
10
</property>
</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