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
d80a79b0
Kaydet (Commit)
d80a79b0
authored
Ara 24, 2013
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert text control character dialog to .ui
Change-Id: I4f8301578e01d3c7bf0ea912a5a9fc0beac70b4f
üst
2a1d60f7
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
173 additions
and
63 deletions
+173
-63
dialogs.hrc
include/svx/dialogs.hrc
+0
-2
UIConfig_svx.mk
svx/UIConfig_svx.mk
+1
-0
fmtextcontroldialogs.cxx
svx/source/form/fmtextcontroldialogs.cxx
+22
-28
formshell.src
svx/source/form/formshell.src
+0
-32
fmtextcontroldialogs.hxx
svx/source/inc/fmtextcontroldialogs.hxx
+3
-1
textcontrolchardialog.ui
svx/uiconfig/ui/textcontrolchardialog.ui
+147
-0
No files found.
include/svx/dialogs.hrc
Dosyayı görüntüle @
d80a79b0
...
...
@@ -218,8 +218,6 @@
#define RID_SVXIMG_NOTCHECKED (RID_SVX_START + 243)
#define RID_SVXIMG_CHECKED (RID_SVX_START + 244)
#define RID_SVXDLG_TEXTCONTROL_CHARATTR (RID_SVX_START + 286)
#define RID_SVXDLG_LINK_WARNING (RID_SVX_START + 313)
#define RID_SIDEBAR_TEXT_PANEL (RID_SVX_START + 314)
#define RID_POPUPPANEL_TEXTPAGE_UNDERLINE (RID_SVX_START + 315)
...
...
svx/UIConfig_svx.mk
Dosyayı görüntüle @
d80a79b0
...
...
@@ -39,6 +39,7 @@ $(eval $(call gb_UIConfig_add_uifiles,svx,\
svx/uiconfig/ui/sidebarparagraph \
svx/uiconfig/ui/sidebarpossize \
svx/uiconfig/ui/sidebartextpanel \
svx/uiconfig/ui/textcontrolchardialog \
svx/uiconfig/ui/textcontrolparadialog \
))
...
...
svx/source/form/fmtextcontroldialogs.cxx
Dosyayı görüntüle @
d80a79b0
...
...
@@ -39,42 +39,36 @@ namespace svx
//====================================================================
//--------------------------------------------------------------------
TextControlCharAttribDialog
::
TextControlCharAttribDialog
(
Window
*
pParent
,
const
SfxItemSet
&
_rCoreSet
,
const
SvxFontListItem
&
_rFontList
)
:
SfxTabDialog
(
pParent
,
SVX_RES
(
RID_SVXDLG_TEXTCONTROL_CHARATTR
),
&
_rCoreSet
)
,
m_aFontList
(
_rFontList
)
{
FreeResource
();
AddTabPage
(
RID_SVXPAGE_CHAR_NAME
);
AddTabPage
(
RID_SVXPAGE_CHAR_EFFECTS
);
AddTabPage
(
RID_SVXPAGE_CHAR_POSITION
);
}
//--------------------------------------------------------------------
TextControlCharAttribDialog
::~
TextControlCharAttribDialog
()
:
SfxTabDialog
(
pParent
,
"TextControlCharacterPropertiesDialog"
,
"svx/ui/textcontrolchardialog.ui"
,
&
_rCoreSet
)
,
m_aFontList
(
_rFontList
)
,
m_nCharNamePageId
(
0
)
,
m_nCharEffectsPageId
(
0
)
,
m_nCharPositionPageId
(
0
)
{
m_nCharNamePageId
=
AddTabPage
(
"font"
,
RID_SVXPAGE_CHAR_NAME
);
m_nCharEffectsPageId
=
AddTabPage
(
"fonteffects"
,
RID_SVXPAGE_CHAR_EFFECTS
);
m_nCharPositionPageId
=
AddTabPage
(
"position"
,
RID_SVXPAGE_CHAR_POSITION
);
}
//--------------------------------------------------------------------
void
TextControlCharAttribDialog
::
PageCreated
(
sal_uInt16
_nId
,
SfxTabPage
&
_rPage
)
{
SfxAllItemSet
aSet
(
*
(
GetInputSetImpl
()
->
GetPool
()));
switch
(
_nId
)
if
(
_nId
==
m_nCharNamePageId
)
{
case
RID_SVXPAGE_CHAR_NAME
:
aSet
.
Put
(
m_aFontList
);
_rPage
.
PageCreated
(
aSet
);
break
;
case
RID_SVXPAGE_CHAR_EFFECTS
:
aSet
.
Put
(
SfxUInt16Item
(
SID_DISABLE_CTL
,
DISABLE_CASEMAP
));
_rPage
.
PageCreated
(
aSet
);
break
;
case
RID_SVXPAGE_CHAR_POSITION
:
aSet
.
Put
(
SfxUInt32Item
(
SID_FLAG_TYPE
,
SVX_PREVIEW_CHARACTER
)
);
_rPage
.
PageCreated
(
aSet
);
break
;
aSet
.
Put
(
m_aFontList
);
_rPage
.
PageCreated
(
aSet
);
}
else
if
(
_nId
==
m_nCharEffectsPageId
)
{
aSet
.
Put
(
SfxUInt16Item
(
SID_DISABLE_CTL
,
DISABLE_CASEMAP
));
_rPage
.
PageCreated
(
aSet
);
}
else
if
(
_nId
==
m_nCharPositionPageId
)
{
aSet
.
Put
(
SfxUInt32Item
(
SID_FLAG_TYPE
,
SVX_PREVIEW_CHARACTER
)
);
_rPage
.
PageCreated
(
aSet
);
}
}
...
...
svx/source/form/formshell.src
Dosyayı görüntüle @
d80a79b0
...
...
@@ -150,36 +150,4 @@ Menu RID_FM_TEXTATTRIBUTE_MENU
};
};
TabDialog RID_SVXDLG_TEXTCONTROL_CHARATTR
{
OutputSize = TRUE;
SVLook = TRUE;
Moveable = TRUE;
Text [ en-US ] = "Character";
TabControl 1
{
OutputSize = TRUE;
PageList =
{
PageItem
{
Identifier = RID_SVXPAGE_CHAR_NAME;
Text [ en-US ] = "Font";
};
PageItem
{
Identifier = RID_SVXPAGE_CHAR_EFFECTS;
Text [ en-US ] = "Font Effects";
};
PageItem
{
Identifier = RID_SVXPAGE_CHAR_POSITION;
Text [ en-US ] = "Position";
};
};
};
};
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
svx/source/inc/fmtextcontroldialogs.hxx
Dosyayı görüntüle @
d80a79b0
...
...
@@ -36,10 +36,12 @@ namespace svx
{
private
:
SvxFontListItem
m_aFontList
;
sal_uInt16
m_nCharNamePageId
;
sal_uInt16
m_nCharEffectsPageId
;
sal_uInt16
m_nCharPositionPageId
;
public
:
TextControlCharAttribDialog
(
Window
*
pParent
,
const
SfxItemSet
&
_rCoreSet
,
const
SvxFontListItem
&
_rFontList
);
~
TextControlCharAttribDialog
();
protected
:
virtual
void
PageCreated
(
sal_uInt16
_nId
,
SfxTabPage
&
_rPage
);
...
...
svx/uiconfig/ui/textcontrolchardialog.ui
0 → 100644
Dosyayı görüntüle @
d80a79b0
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<!-- interface-requires gtk+ 3.0 -->
<object
class=
"GtkDialog"
id=
"TextControlCharacterPropertiesDialog"
>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"border_width"
>
6
</property>
<property
name=
"title"
translatable=
"yes"
>
Character
</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>
<child>
<object
class=
"GtkButton"
id=
"reset"
>
<property
name=
"label"
>
gtk-revert-to-saved
</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"
>
3
</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=
"GtkNotebook"
id=
"tabcontrol"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"hexpand"
>
True
</property>
<property
name=
"vexpand"
>
True
</property>
<child>
<placeholder/>
</child>
<child
type=
"tab"
>
<object
class=
"GtkLabel"
id=
"font"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"label"
translatable=
"yes"
>
Font
</property>
</object>
<packing>
<property
name=
"tab_fill"
>
False
</property>
</packing>
</child>
<child>
<placeholder/>
</child>
<child
type=
"tab"
>
<object
class=
"GtkLabel"
id=
"fonteffects"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"label"
translatable=
"yes"
>
Font Effects
</property>
</object>
<packing>
<property
name=
"position"
>
1
</property>
<property
name=
"tab_fill"
>
False
</property>
</packing>
</child>
<child>
<placeholder/>
</child>
<child
type=
"tab"
>
<object
class=
"GtkLabel"
id=
"position"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"label"
translatable=
"yes"
>
Position
</property>
</object>
<packing>
<property
name=
"position"
>
2
</property>
<property
name=
"tab_fill"
>
False
</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-widget
response=
"0"
>
reset
</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