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
dc676d9d
Kaydet (Commit)
dc676d9d
authored
Haz 06, 2013
tarafından
abdulmajeed ahmed
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Convert Compatibility tab page to .ui
Change-Id: I97e5ecfb800443e41b2d9a88731cc530600a7b1c
üst
b5d93a58
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
99 additions
and
56 deletions
+99
-56
UIConfig_scalc.mk
sc/UIConfig_scalc.mk
+1
-0
helpids.h
sc/inc/helpids.h
+0
-1
optdlg.hrc
sc/source/ui/inc/optdlg.hrc
+0
-4
tpcompatibility.hxx
sc/source/ui/inc/tpcompatibility.hxx
+1
-3
tpcompatibility.cxx
sc/source/ui/optdlg/tpcompatibility.cxx
+7
-10
optdlg.src
sc/source/ui/src/optdlg.src
+0
-38
optcompatibilitypage.ui
sc/uiconfig/scalc/ui/optcompatibilitypage.ui
+90
-0
No files found.
sc/UIConfig_scalc.mk
Dosyayı görüntüle @
dc676d9d
...
...
@@ -81,6 +81,7 @@ $(eval $(call gb_UIConfig_add_uifiles,modules/scalc,\
sc/uiconfig/scalc/ui/managenamesdialog \
sc/uiconfig/scalc/ui/optcalculatepage \
sc/uiconfig/scalc/ui/optchangespage \
sc/uiconfig/scalc/ui/optcompatibilitypage \
sc/uiconfig/scalc/ui/optdefaultpage \
sc/uiconfig/scalc/ui/printeroptions \
sc/uiconfig/scalc/ui/protectsheetdlg \
...
...
sc/inc/helpids.h
Dosyayı görüntüle @
dc676d9d
...
...
@@ -63,7 +63,6 @@
#define HID_SCPAGE_FORMULA "SC_HID_SCPAGE_FORMULA"
#define HID_SCPAGE_USERLISTS "SC_HID_SCPAGE_USERLISTS"
#define HID_SCPAGE_AREAS "SC_HID_SCPAGE_AREAS"
#define HID_SCPAGE_COMPATIBILITY "SC_HID_SCPAGE_COMPATIBILITY"
#define HID_SCPAGE_SUBT_GROUP1 "SC_HID_SCPAGE_SUBT_GROUP1"
#define HID_SCPAGE_SUBT_GROUP2 "SC_HID_SCPAGE_SUBT_GROUP2"
#define HID_SCPAGE_SUBT_GROUP3 "SC_HID_SCPAGE_SUBT_GROUP3"
...
...
sc/source/ui/inc/optdlg.hrc
Dosyayı görüntüle @
dc676d9d
...
...
@@ -147,9 +147,5 @@
#define FT_ODF_RECALC 99
#define LB_ODF_RECALC 100
// TP_COMPATIBILITY
#define FL_KEY_BINDINGS 1
#define FT_KEY_BINDINGS 2
#define LB_KEY_BINDINGS 3
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
sc/source/ui/inc/tpcompatibility.hxx
Dosyayı görüntüle @
dc676d9d
...
...
@@ -30,9 +30,7 @@ private:
virtual
~
ScTpCompatOptions
();
private
:
FixedLine
maFlKeyBindings
;
FixedText
maFtKeyBindings
;
ListBox
maLbKeyBindings
;
ListBox
*
m_pLbKeyBindings
;
};
#endif
...
...
sc/source/ui/optdlg/tpcompatibility.cxx
Dosyayı görüntüle @
dc676d9d
...
...
@@ -16,12 +16,9 @@
#include "appoptio.hxx"
ScTpCompatOptions
::
ScTpCompatOptions
(
Window
*
pParent
,
const
SfxItemSet
&
rCoreAttrs
)
:
SfxTabPage
(
pParent
,
ScResId
(
RID_SCPAGE_COMPATIBILITY
),
rCoreAttrs
),
maFlKeyBindings
(
this
,
ScResId
(
FL_KEY_BINDINGS
)),
maFtKeyBindings
(
this
,
ScResId
(
FT_KEY_BINDINGS
)),
maLbKeyBindings
(
this
,
ScResId
(
LB_KEY_BINDINGS
))
SfxTabPage
(
pParent
,
"OptCompatibilityPage"
,
"modules/scalc/ui/optcompatibilitypage.ui"
,
rCoreAttrs
)
{
FreeResource
(
);
get
(
m_pLbKeyBindings
,
"keybindings"
);
}
ScTpCompatOptions
::~
ScTpCompatOptions
()
...
...
@@ -36,11 +33,11 @@ SfxTabPage* ScTpCompatOptions::Create(Window *pParent, const SfxItemSet &rCoreAt
sal_Bool
ScTpCompatOptions
::
FillItemSet
(
SfxItemSet
&
rCoreAttrs
)
{
bool
bRet
=
false
;
if
(
m
aLbKeyBindings
.
GetSavedValue
()
!=
maLbKeyBindings
.
GetSelectEntryPos
())
if
(
m
_pLbKeyBindings
->
GetSavedValue
()
!=
m_pLbKeyBindings
->
GetSelectEntryPos
())
{
rCoreAttrs
.
Put
(
SfxUInt16Item
(
SID_SC_OPT_KEY_BINDING_COMPAT
,
m
aLbKeyBindings
.
GetSelectEntryPos
()));
SID_SC_OPT_KEY_BINDING_COMPAT
,
m
_pLbKeyBindings
->
GetSelectEntryPos
()));
bRet
=
true
;
}
return
bRet
;
...
...
@@ -58,17 +55,17 @@ void ScTpCompatOptions::Reset(const SfxItemSet &rCoreAttrs)
switch
(
eKeyB
)
{
case
ScOptionsUtil
:
:
KEY_DEFAULT
:
m
aLbKeyBindings
.
SelectEntryPos
(
0
);
m
_pLbKeyBindings
->
SelectEntryPos
(
0
);
break
;
case
ScOptionsUtil
:
:
KEY_OOO_LEGACY
:
m
aLbKeyBindings
.
SelectEntryPos
(
1
);
m
_pLbKeyBindings
->
SelectEntryPos
(
1
);
break
;
default
:
;
}
}
m
aLbKeyBindings
.
SaveValue
();
m
_pLbKeyBindings
->
SaveValue
();
}
int
ScTpCompatOptions
::
DeactivatePage
(
SfxItemSet
*
/*pSet*/
)
...
...
sc/source/ui/src/optdlg.src
Dosyayı görüntüle @
dc676d9d
...
...
@@ -189,44 +189,6 @@ TabPage RID_SCPAGE_FORMULA
};
};
TabPage RID_SCPAGE_COMPATIBILITY
{
HelpId = HID_SCPAGE_COMPATIBILITY ;
SVLook = TRUE ;
Hide = TRUE ;
Pos = MAP_APPFONT ( 0 , 0 ) ;
Size = MAP_APPFONT ( TP_WIDTH , TP_HEIGHT ) ;
FixedLine FL_KEY_BINDINGS
{
Pos = MAP_APPFONT ( 6 , 3 ) ;
Size = MAP_APPFONT ( 248 , 8 ) ;
Text [ en-US ] = "Key bindings";
};
FixedText FT_KEY_BINDINGS
{
Pos = MAP_APPFONT ( 12, 16 ) ;
Size = MAP_APPFONT ( 165, 24 ) ;
Wordbreak = TRUE;
Text [ en-US ] = "Select desired ~key binding type. Changing the key binding type may overwrite some of the existing key bindings." ;
};
ListBox LB_KEY_BINDINGS
{
HelpID = "sc:ListBox:RID_SCPAGE_COMPATIBILITY:LB_KEY_BINDINGS";
Border = TRUE ;
Pos = MAP_APPFONT ( 179, 20 ) ;
Size = MAP_APPFONT ( 75, 46 ) ;
DropDown = TRUE ;
StringList [ en-US ] =
{
< "Default" ; Default ; > ;
< "OpenOffice.org legacy" ; Default ; > ;
};
};
};
TabPage RID_SCPAGE_USERLISTS
{
HelpId = HID_SCPAGE_USERLISTS ;
...
...
sc/uiconfig/scalc/ui/optcompatibilitypage.ui
0 → 100644
Dosyayı görüntüle @
dc676d9d
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<!-- interface-requires gtk+ 3.0 -->
<!-- interface-requires LibreOffice 1.0 -->
<object
class=
"GtkBox"
id=
"OptCompatibilityPage"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"border_width"
>
6
</property>
<property
name=
"orientation"
>
vertical
</property>
<property
name=
"spacing"
>
12
</property>
<child>
<object
class=
"GtkFrame"
id=
"frame1"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"hexpand"
>
True
</property>
<property
name=
"label_xalign"
>
0
</property>
<property
name=
"shadow_type"
>
none
</property>
<child>
<object
class=
"GtkAlignment"
id=
"alignment1"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"hexpand"
>
True
</property>
<property
name=
"top_padding"
>
6
</property>
<property
name=
"left_padding"
>
12
</property>
<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"
>
6
</property>
<property
name=
"column_spacing"
>
12
</property>
<child>
<object
class=
"GtkLabel"
id=
"label2"
>
<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"
>
Select desired _key binding type. Changing the key binding
type may overwrite some of the existing key bindings.
</property>
<property
name=
"use_underline"
>
True
</property>
<property
name=
"mnemonic_widget"
>
keybindings
</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=
"GtkComboBoxText"
id=
"keybindings"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"entry_text_column"
>
0
</property>
<property
name=
"id_column"
>
1
</property>
<items>
<item
translatable=
"yes"
>
Default
</item>
<item
translatable=
"yes"
>
OpenOffice.org legacy
</item>
</items>
</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>
</child>
</object>
</child>
<child
type=
"label"
>
<object
class=
"GtkLabel"
id=
"label1"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"label"
translatable=
"yes"
>
Key bindings
</property>
<attributes>
<attribute
name=
"weight"
value=
"semibold"
/>
</attributes>
</object>
</child>
</object>
<packing>
<property
name=
"expand"
>
False
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"position"
>
0
</property>
</packing>
</child>
</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