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
a641d049
Kaydet (Commit)
a641d049
authored
Agu 08, 2013
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert toc style page to .ui
Change-Id: I8ed03fc3e5433d8a2fe83c3ad88fa95773fe6c53
üst
7ffab58b
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
271 additions
and
149 deletions
+271
-149
UIConfig_swriter.mk
sw/UIConfig_swriter.mk
+1
-0
helpid.h
sw/inc/helpid.h
+0
-1
swuicnttab.hxx
sw/source/ui/inc/swuicnttab.hxx
+5
-8
cnttab.cxx
sw/source/ui/index/cnttab.cxx
+55
-60
cnttab.hrc
sw/source/ui/index/cnttab.hrc
+0
-4
cnttab.src
sw/source/ui/index/cnttab.src
+0
-76
tocstylespage.ui
sw/uiconfig/swriter/ui/tocstylespage.ui
+210
-0
No files found.
sw/UIConfig_swriter.mk
Dosyayı görüntüle @
a641d049
...
@@ -140,6 +140,7 @@ $(eval $(call gb_UIConfig_add_uifiles,modules/swriter,\
...
@@ -140,6 +140,7 @@ $(eval $(call gb_UIConfig_add_uifiles,modules/swriter,\
sw/uiconfig/swriter/ui/splittable \
sw/uiconfig/swriter/ui/splittable \
sw/uiconfig/swriter/ui/statisticsinfopage \
sw/uiconfig/swriter/ui/statisticsinfopage \
sw/uiconfig/swriter/ui/stringinput \
sw/uiconfig/swriter/ui/stringinput \
sw/uiconfig/swriter/ui/tocstylespage \
sw/uiconfig/swriter/ui/tablecolumnpage \
sw/uiconfig/swriter/ui/tablecolumnpage \
sw/uiconfig/swriter/ui/tableproperties \
sw/uiconfig/swriter/ui/tableproperties \
sw/uiconfig/swriter/ui/tabletextflowpage \
sw/uiconfig/swriter/ui/tabletextflowpage \
...
...
sw/inc/helpid.h
Dosyayı görüntüle @
a641d049
...
@@ -167,7 +167,6 @@
...
@@ -167,7 +167,6 @@
#define HID_OPTCAPTION_PAGE "SW_HID_OPTCAPTION_PAGE"
#define HID_OPTCAPTION_PAGE "SW_HID_OPTCAPTION_PAGE"
#define HID_TP_TOX_SELECT "SW_HID_TP_TOX_SELECT"
#define HID_TP_TOX_SELECT "SW_HID_TP_TOX_SELECT"
#define HID_TP_TOX_ENTRY "SW_HID_TP_TOX_ENTRY"
#define HID_TP_TOX_ENTRY "SW_HID_TP_TOX_ENTRY"
#define HID_TOX_STYLES_PAGE "SW_HID_TOX_STYLES_PAGE"
#define HID_TP_VISITING_CARDS "SW_HID_TP_VISITING_CARDS"
#define HID_TP_VISITING_CARDS "SW_HID_TP_VISITING_CARDS"
#define HID_DLG_ADD_IDX_STYLES "SW_HID_DLG_ADD_IDX_STYLES"
#define HID_DLG_ADD_IDX_STYLES "SW_HID_DLG_ADD_IDX_STYLES"
#define HID_ADD_STYLES_TLB "SW_HID_ADD_STYLES_TLB"
#define HID_ADD_STYLES_TLB "SW_HID_ADD_STYLES_TLB"
...
...
sw/source/ui/inc/swuicnttab.hxx
Dosyayı görüntüle @
a641d049
...
@@ -463,14 +463,11 @@ public:
...
@@ -463,14 +463,11 @@ public:
class
SwTOXStylesTabPage
:
public
SfxTabPage
class
SwTOXStylesTabPage
:
public
SfxTabPage
{
{
FixedLine
aFormatFL
;
ListBox
*
m_pLevelLB
;
FixedText
aLevelFT2
;
PushButton
*
m_pAssignBT
;
ListBox
aLevelLB
;
ListBox
*
m_pParaLayLB
;
ImageButton
aAssignBT
;
PushButton
*
m_pStdBT
;
FixedText
aTemplateFT
;
PushButton
*
m_pEditStyleBT
;
ListBox
aParaLayLB
;
PushButton
aStdBT
;
PushButton
aEditStyleBT
;
SwForm
*
m_pCurrentForm
;
SwForm
*
m_pCurrentForm
;
...
...
sw/source/ui/index/cnttab.cxx
Dosyayı görüntüle @
a641d049
...
@@ -3648,33 +3648,28 @@ void SwTokenWindow::GetFocus()
...
@@ -3648,33 +3648,28 @@ void SwTokenWindow::GetFocus()
}
}
}
}
SwTOXStylesTabPage
::
SwTOXStylesTabPage
(
Window
*
pParent
,
const
SfxItemSet
&
rAttrSet
)
:
SwTOXStylesTabPage
::
SwTOXStylesTabPage
(
Window
*
pParent
,
const
SfxItemSet
&
rAttrSet
)
SfxTabPage
(
pParent
,
SW_RES
(
TP_TOX_STYLES
),
rAttrSet
),
:
SfxTabPage
(
pParent
,
"TocStylesPage"
,
"modules/swriter/ui/tocstylespage.ui"
,
rAttrSet
)
aFormatFL
(
this
,
SW_RES
(
FL_FORMAT
)),
,
m_pCurrentForm
(
0
)
aLevelFT2
(
this
,
SW_RES
(
FT_LEVEL
)),
{
aLevelLB
(
this
,
SW_RES
(
LB_LEVEL
)),
get
(
m_pLevelLB
,
"levels"
);
aAssignBT
(
this
,
SW_RES
(
BT_ASSIGN
)),
get
(
m_pAssignBT
,
"assign"
);
aTemplateFT
(
this
,
SW_RES
(
FT_TEMPLATE
)),
get
(
m_pParaLayLB
,
"styles"
);
aParaLayLB
(
this
,
SW_RES
(
LB_PARALAY
)),
m_pParaLayLB
->
SetStyle
(
m_pParaLayLB
->
GetStyle
()
|
WB_SORT
);
aStdBT
(
this
,
SW_RES
(
BT_STD
)),
get
(
m_pStdBT
,
"default"
);
aEditStyleBT
(
this
,
SW_RES
(
BT_EDIT_STYLE
)),
get
(
m_pEditStyleBT
,
"edit"
);
m_pCurrentForm
(
0
)
long
nHeight
=
m_pLevelLB
->
GetTextHeight
()
*
16
;
{
m_pLevelLB
->
set_height_request
(
nHeight
);
FreeResource
(
);
m_pParaLayLB
->
set_height_request
(
nHeight
);
SetExchangeSupport
(
sal_True
);
SetExchangeSupport
(
sal_True
);
aEditStyleBT
.
SetClickHdl
(
LINK
(
this
,
SwTOXStylesTabPage
,
EditStyleHdl
));
m_pEditStyleBT
->
SetClickHdl
(
LINK
(
this
,
SwTOXStylesTabPage
,
EditStyleHdl
));
aAssignBT
.
SetClickHdl
(
LINK
(
this
,
SwTOXStylesTabPage
,
AssignHdl
));
m_pAssignBT
->
SetClickHdl
(
LINK
(
this
,
SwTOXStylesTabPage
,
AssignHdl
));
aStdBT
.
SetClickHdl
(
LINK
(
this
,
SwTOXStylesTabPage
,
StdHdl
));
m_pStdBT
->
SetClickHdl
(
LINK
(
this
,
SwTOXStylesTabPage
,
StdHdl
));
aParaLayLB
.
SetSelectHdl
(
LINK
(
this
,
SwTOXStylesTabPage
,
EnableSelectHdl
));
m_pParaLayLB
->
SetSelectHdl
(
LINK
(
this
,
SwTOXStylesTabPage
,
EnableSelectHdl
));
aLevelLB
.
SetSelectHdl
(
LINK
(
this
,
SwTOXStylesTabPage
,
EnableSelectHdl
));
m_pLevelLB
->
SetSelectHdl
(
LINK
(
this
,
SwTOXStylesTabPage
,
EnableSelectHdl
));
aParaLayLB
.
SetDoubleClickHdl
(
LINK
(
this
,
SwTOXStylesTabPage
,
DoubleClickHdl
));
m_pParaLayLB
->
SetDoubleClickHdl
(
LINK
(
this
,
SwTOXStylesTabPage
,
DoubleClickHdl
));
aStdBT
.
SetAccessibleRelationMemberOf
(
&
aFormatFL
);
aAssignBT
.
SetAccessibleRelationMemberOf
(
&
aFormatFL
);
aEditStyleBT
.
SetAccessibleRelationMemberOf
(
&
aFormatFL
);
}
}
SwTOXStylesTabPage
::~
SwTOXStylesTabPage
()
SwTOXStylesTabPage
::~
SwTOXStylesTabPage
()
...
@@ -3682,21 +3677,21 @@ SwTOXStylesTabPage::~SwTOXStylesTabPage()
...
@@ -3682,21 +3677,21 @@ SwTOXStylesTabPage::~SwTOXStylesTabPage()
delete
m_pCurrentForm
;
delete
m_pCurrentForm
;
}
}
sal_Bool
SwTOXStylesTabPage
::
FillItemSet
(
SfxItemSet
&
)
sal_Bool
SwTOXStylesTabPage
::
FillItemSet
(
SfxItemSet
&
)
{
{
return
sal_True
;
return
sal_True
;
}
}
void
SwTOXStylesTabPage
::
Reset
(
const
SfxItemSet
&
rSet
)
void
SwTOXStylesTabPage
::
Reset
(
const
SfxItemSet
&
rSet
)
{
{
ActivatePage
(
rSet
);
ActivatePage
(
rSet
);
}
}
void
SwTOXStylesTabPage
::
ActivatePage
(
const
SfxItemSet
&
)
void
SwTOXStylesTabPage
::
ActivatePage
(
const
SfxItemSet
&
)
{
{
m_pCurrentForm
=
new
SwForm
(
GetForm
());
m_pCurrentForm
=
new
SwForm
(
GetForm
());
aParaLayLB
.
Clear
();
m_pParaLayLB
->
Clear
();
aLevelLB
.
Clear
();
m_pLevelLB
->
Clear
();
// not hyperlink for user directories
// not hyperlink for user directories
...
@@ -3713,7 +3708,7 @@ void SwTOXStylesTabPage::ActivatePage( const SfxItemSet& )
...
@@ -3713,7 +3708,7 @@ void SwTOXStylesTabPage::ActivatePage( const SfxItemSet& )
aStr
+=
m_pCurrentForm
->
GetTemplate
(
0
);
aStr
+=
m_pCurrentForm
->
GetTemplate
(
0
);
aStr
+=
aDeliEnd
;
aStr
+=
aDeliEnd
;
}
}
aLevelLB
.
InsertEntry
(
aStr
);
m_pLevelLB
->
InsertEntry
(
aStr
);
for
(
i
=
1
;
i
<
nSize
;
++
i
)
for
(
i
=
1
;
i
<
nSize
;
++
i
)
{
{
...
@@ -3735,7 +3730,7 @@ void SwTOXStylesTabPage::ActivatePage( const SfxItemSet& )
...
@@ -3735,7 +3730,7 @@ void SwTOXStylesTabPage::ActivatePage( const SfxItemSet& )
aCpy
+=
m_pCurrentForm
->
GetTemplate
(
i
);
aCpy
+=
m_pCurrentForm
->
GetTemplate
(
i
);
aCpy
+=
aDeliEnd
;
aCpy
+=
aDeliEnd
;
}
}
aLevelLB
.
InsertEntry
(
aCpy
);
m_pLevelLB
->
InsertEntry
(
aCpy
);
}
}
// initialise templates
// initialise templates
...
@@ -3745,18 +3740,18 @@ void SwTOXStylesTabPage::ActivatePage( const SfxItemSet& )
...
@@ -3745,18 +3740,18 @@ void SwTOXStylesTabPage::ActivatePage( const SfxItemSet& )
for
(
i
=
0
;
i
<
nSz
;
++
i
)
for
(
i
=
0
;
i
<
nSz
;
++
i
)
if
(
!
(
pColl
=
&
rSh
.
GetTxtFmtColl
(
i
))
->
IsDefault
()
)
if
(
!
(
pColl
=
&
rSh
.
GetTxtFmtColl
(
i
))
->
IsDefault
()
)
aParaLayLB
.
InsertEntry
(
pColl
->
GetName
()
);
m_pParaLayLB
->
InsertEntry
(
pColl
->
GetName
()
);
// query pool collections and set them for the directory
// query pool collections and set them for the directory
for
(
i
=
0
;
i
<
m_pCurrentForm
->
GetFormMax
();
++
i
)
for
(
i
=
0
;
i
<
m_pCurrentForm
->
GetFormMax
();
++
i
)
{
{
aStr
=
m_pCurrentForm
->
GetTemplate
(
i
);
aStr
=
m_pCurrentForm
->
GetTemplate
(
i
);
if
(
aStr
.
Len
()
&&
if
(
aStr
.
Len
()
&&
LISTBOX_ENTRY_NOTFOUND
==
aParaLayLB
.
GetEntryPos
(
aStr
))
LISTBOX_ENTRY_NOTFOUND
==
m_pParaLayLB
->
GetEntryPos
(
aStr
))
aParaLayLB
.
InsertEntry
(
aStr
);
m_pParaLayLB
->
InsertEntry
(
aStr
);
}
}
EnableSelectHdl
(
&
a
ParaLayLB
);
EnableSelectHdl
(
m_p
ParaLayLB
);
}
}
int
SwTOXStylesTabPage
::
DeactivatePage
(
SfxItemSet
*
/*pSet*/
)
int
SwTOXStylesTabPage
::
DeactivatePage
(
SfxItemSet
*
/*pSet*/
)
...
@@ -3773,9 +3768,9 @@ SfxTabPage* SwTOXStylesTabPage::Create( Window* pParent,
...
@@ -3773,9 +3768,9 @@ SfxTabPage* SwTOXStylesTabPage::Create( Window* pParent,
IMPL_LINK
(
SwTOXStylesTabPage
,
EditStyleHdl
,
Button
*
,
pBtn
)
IMPL_LINK
(
SwTOXStylesTabPage
,
EditStyleHdl
,
Button
*
,
pBtn
)
{
{
if
(
LISTBOX_ENTRY_NOTFOUND
!=
aParaLayLB
.
GetSelectEntryPos
())
if
(
LISTBOX_ENTRY_NOTFOUND
!=
m_pParaLayLB
->
GetSelectEntryPos
())
{
{
SfxStringItem
aStyle
(
SID_STYLE_EDIT
,
aParaLayLB
.
GetSelectEntry
());
SfxStringItem
aStyle
(
SID_STYLE_EDIT
,
m_pParaLayLB
->
GetSelectEntry
());
SfxUInt16Item
aFamily
(
SID_STYLE_FAMILY
,
SFX_STYLE_FAMILY_PARA
);
SfxUInt16Item
aFamily
(
SID_STYLE_FAMILY
,
SFX_STYLE_FAMILY_PARA
);
Window
*
pDefDlgParent
=
Application
::
GetDefDialogParent
();
Window
*
pDefDlgParent
=
Application
::
GetDefDialogParent
();
Application
::
SetDefDialogParent
(
pBtn
);
Application
::
SetDefDialogParent
(
pBtn
);
...
@@ -3792,26 +3787,26 @@ IMPL_LINK( SwTOXStylesTabPage, EditStyleHdl, Button *, pBtn )
...
@@ -3792,26 +3787,26 @@ IMPL_LINK( SwTOXStylesTabPage, EditStyleHdl, Button *, pBtn )
--------------------------------------------------------------------*/
--------------------------------------------------------------------*/
IMPL_LINK_NOARG
(
SwTOXStylesTabPage
,
AssignHdl
)
IMPL_LINK_NOARG
(
SwTOXStylesTabPage
,
AssignHdl
)
{
{
sal_uInt16
nLevPos
=
aLevelLB
.
GetSelectEntryPos
();
sal_uInt16
nLevPos
=
m_pLevelLB
->
GetSelectEntryPos
();
sal_uInt16
nTemplPos
=
aParaLayLB
.
GetSelectEntryPos
();
sal_uInt16
nTemplPos
=
m_pParaLayLB
->
GetSelectEntryPos
();
if
(
nLevPos
!=
LISTBOX_ENTRY_NOTFOUND
&&
if
(
nLevPos
!=
LISTBOX_ENTRY_NOTFOUND
&&
nTemplPos
!=
LISTBOX_ENTRY_NOTFOUND
)
nTemplPos
!=
LISTBOX_ENTRY_NOTFOUND
)
{
{
String
aStr
(
aLevelLB
.
GetEntry
(
nLevPos
));
String
aStr
(
m_pLevelLB
->
GetEntry
(
nLevPos
));
sal_uInt16
nDelPos
=
aStr
.
Search
(
aDeliStart
);
sal_uInt16
nDelPos
=
aStr
.
Search
(
aDeliStart
);
if
(
nDelPos
!=
STRING_NOTFOUND
)
if
(
nDelPos
!=
STRING_NOTFOUND
)
aStr
.
Erase
(
nDelPos
-
1
);
aStr
.
Erase
(
nDelPos
-
1
);
aStr
+=
' '
;
aStr
+=
' '
;
aStr
+=
aDeliStart
;
aStr
+=
aDeliStart
;
aStr
+=
aParaLayLB
.
GetSelectEntry
();
aStr
+=
m_pParaLayLB
->
GetSelectEntry
();
m_pCurrentForm
->
SetTemplate
(
nLevPos
,
aParaLayLB
.
GetSelectEntry
());
m_pCurrentForm
->
SetTemplate
(
nLevPos
,
m_pParaLayLB
->
GetSelectEntry
());
aStr
+=
aDeliEnd
;
aStr
+=
aDeliEnd
;
aLevelLB
.
RemoveEntry
(
nLevPos
);
m_pLevelLB
->
RemoveEntry
(
nLevPos
);
aLevelLB
.
InsertEntry
(
aStr
,
nLevPos
);
m_pLevelLB
->
InsertEntry
(
aStr
,
nLevPos
);
aLevelLB
.
SelectEntry
(
aStr
);
m_pLevelLB
->
SelectEntry
(
aStr
);
Modify
();
Modify
();
}
}
return
0
;
return
0
;
...
@@ -3819,15 +3814,15 @@ IMPL_LINK_NOARG(SwTOXStylesTabPage, AssignHdl)
...
@@ -3819,15 +3814,15 @@ IMPL_LINK_NOARG(SwTOXStylesTabPage, AssignHdl)
IMPL_LINK_NOARG
(
SwTOXStylesTabPage
,
StdHdl
)
IMPL_LINK_NOARG
(
SwTOXStylesTabPage
,
StdHdl
)
{
{
sal_uInt16
nPos
=
aLevelLB
.
GetSelectEntryPos
();
sal_uInt16
nPos
=
m_pLevelLB
->
GetSelectEntryPos
();
if
(
nPos
!=
LISTBOX_ENTRY_NOTFOUND
)
if
(
nPos
!=
LISTBOX_ENTRY_NOTFOUND
)
{
String
aStr
(
aLevelLB
.
GetEntry
(
nPos
));
{
String
aStr
(
m_pLevelLB
->
GetEntry
(
nPos
));
sal_uInt16
nDelPos
=
aStr
.
Search
(
aDeliStart
);
sal_uInt16
nDelPos
=
aStr
.
Search
(
aDeliStart
);
if
(
nDelPos
!=
STRING_NOTFOUND
)
if
(
nDelPos
!=
STRING_NOTFOUND
)
aStr
.
Erase
(
nDelPos
-
1
);
aStr
.
Erase
(
nDelPos
-
1
);
aLevelLB
.
RemoveEntry
(
nPos
);
m_pLevelLB
->
RemoveEntry
(
nPos
);
aLevelLB
.
InsertEntry
(
aStr
,
nPos
);
m_pLevelLB
->
InsertEntry
(
aStr
,
nPos
);
aLevelLB
.
SelectEntry
(
aStr
);
m_pLevelLB
->
SelectEntry
(
aStr
);
m_pCurrentForm
->
SetTemplate
(
nPos
,
aEmptyStr
);
m_pCurrentForm
->
SetTemplate
(
nPos
,
aEmptyStr
);
Modify
();
Modify
();
}
}
...
@@ -3836,12 +3831,12 @@ IMPL_LINK_NOARG(SwTOXStylesTabPage, StdHdl)
...
@@ -3836,12 +3831,12 @@ IMPL_LINK_NOARG(SwTOXStylesTabPage, StdHdl)
IMPL_LINK_NOARG_INLINE_START
(
SwTOXStylesTabPage
,
DoubleClickHdl
)
IMPL_LINK_NOARG_INLINE_START
(
SwTOXStylesTabPage
,
DoubleClickHdl
)
{
{
String
aTmpName
(
aParaLayLB
.
GetSelectEntry
()
);
String
aTmpName
(
m_pParaLayLB
->
GetSelectEntry
()
);
SwWrtShell
&
rSh
=
((
SwMultiTOXTabDialog
*
)
GetTabDialog
())
->
GetWrtShell
();
SwWrtShell
&
rSh
=
((
SwMultiTOXTabDialog
*
)
GetTabDialog
())
->
GetWrtShell
();
if
(
aParaLayLB
.
GetSelectEntryPos
()
!=
LISTBOX_ENTRY_NOTFOUND
&&
if
(
m_pParaLayLB
->
GetSelectEntryPos
()
!=
LISTBOX_ENTRY_NOTFOUND
&&
(
aLevelLB
.
GetSelectEntryPos
()
==
0
||
SwMultiTOXTabDialog
::
IsNoNum
(
rSh
,
aTmpName
)))
(
m_pLevelLB
->
GetSelectEntryPos
()
==
0
||
SwMultiTOXTabDialog
::
IsNoNum
(
rSh
,
aTmpName
)))
AssignHdl
(
&
a
AssignBT
);
AssignHdl
(
m_p
AssignBT
);
return
0
;
return
0
;
}
}
IMPL_LINK_NOARG_INLINE_END
(
SwTOXStylesTabPage
,
DoubleClickHdl
)
IMPL_LINK_NOARG_INLINE_END
(
SwTOXStylesTabPage
,
DoubleClickHdl
)
...
@@ -3851,14 +3846,14 @@ IMPL_LINK_NOARG_INLINE_END(SwTOXStylesTabPage, DoubleClickHdl)
...
@@ -3851,14 +3846,14 @@ IMPL_LINK_NOARG_INLINE_END(SwTOXStylesTabPage, DoubleClickHdl)
--------------------------------------------------------------------*/
--------------------------------------------------------------------*/
IMPL_LINK_NOARG
(
SwTOXStylesTabPage
,
EnableSelectHdl
)
IMPL_LINK_NOARG
(
SwTOXStylesTabPage
,
EnableSelectHdl
)
{
{
aStdBT
.
Enable
(
aLevelLB
.
GetSelectEntryPos
()
!=
LISTBOX_ENTRY_NOTFOUND
);
m_pStdBT
->
Enable
(
m_pLevelLB
->
GetSelectEntryPos
()
!=
LISTBOX_ENTRY_NOTFOUND
);
SwWrtShell
&
rSh
=
((
SwMultiTOXTabDialog
*
)
GetTabDialog
())
->
GetWrtShell
();
SwWrtShell
&
rSh
=
((
SwMultiTOXTabDialog
*
)
GetTabDialog
())
->
GetWrtShell
();
String
aTmpName
(
aParaLayLB
.
GetSelectEntry
());
String
aTmpName
(
m_pParaLayLB
->
GetSelectEntry
());
aAssignBT
.
Enable
(
aParaLayLB
.
GetSelectEntryPos
()
!=
LISTBOX_ENTRY_NOTFOUND
&&
m_pAssignBT
->
Enable
(
m_pParaLayLB
->
GetSelectEntryPos
()
!=
LISTBOX_ENTRY_NOTFOUND
&&
LISTBOX_ENTRY_NOTFOUND
!=
aLevelLB
.
GetSelectEntryPos
()
&&
LISTBOX_ENTRY_NOTFOUND
!=
m_pLevelLB
->
GetSelectEntryPos
()
&&
(
aLevelLB
.
GetSelectEntryPos
()
==
0
||
SwMultiTOXTabDialog
::
IsNoNum
(
rSh
,
aTmpName
)));
(
m_pLevelLB
->
GetSelectEntryPos
()
==
0
||
SwMultiTOXTabDialog
::
IsNoNum
(
rSh
,
aTmpName
)));
aEditStyleBT
.
Enable
(
aParaLayLB
.
GetSelectEntryPos
()
!=
LISTBOX_ENTRY_NOTFOUND
);
m_pEditStyleBT
->
Enable
(
m_pParaLayLB
->
GetSelectEntryPos
()
!=
LISTBOX_ENTRY_NOTFOUND
);
return
0
;
return
0
;
}
}
...
...
sw/source/ui/index/cnttab.hrc
Dosyayı görüntüle @
a641d049
...
@@ -24,12 +24,8 @@
...
@@ -24,12 +24,8 @@
#define LB_ENTRY 20
#define LB_ENTRY 20
#define ED_ENTRY 22
#define ED_ENTRY 22
#define BT_STD 26
#define FL_ENTRY 28
#define FL_ENTRY 28
#define LB_LEVEL 29
#define LB_LEVEL 29
#define FT_TEMPLATE 30
#define LB_PARALAY 31
#define BT_ASSIGN 32
#define FL_FORMAT 33
#define FL_FORMAT 33
#define BT_EDIT_STYLE 40
#define BT_EDIT_STYLE 40
#define CB_CASE 43
#define CB_CASE 43
...
...
sw/source/ui/index/cnttab.src
Dosyayı görüntüle @
a641d049
...
@@ -1083,82 +1083,6 @@ TabPage TP_TOX_ENTRY
...
@@ -1083,82 +1083,6 @@ TabPage TP_TOX_ENTRY
Text [ en-US ] = "S";
Text [ en-US ] = "S";
};
};
};
};
TabPage TP_TOX_STYLES
{
HelpID = HID_TOX_STYLES_PAGE;
Size = MAP_APPFONT ( TP_WIDTH , TP_HEIGHT ) ;
Hide = TRUE ;
FixedText FT_LEVEL
{
Pos = MAP_APPFONT ( 11 , 14 ) ;
Size = MAP_APPFONT ( 102 , 8 ) ;
Text [ en-US ] = "~Levels" ;
Left = TRUE ;
};
ListBox LB_LEVEL
{
HelpID = "sw:ListBox:TP_TOX_STYLES:LB_LEVEL";
Border = TRUE ;
Pos = MAP_APPFONT ( 12 , 25 ) ;
Size = MAP_APPFONT ( 102 , 131 ) ;
TabStop = TRUE ;
AutoHScroll = TRUE ;
};
FixedText FT_TEMPLATE
{
Pos = MAP_APPFONT ( 142 , 14 ) ;
Size = MAP_APPFONT ( 102 , 8 ) ;
Text [ en-US ] = "Paragraph ~Styles" ;
Left = TRUE ;
};
ListBox LB_PARALAY
{
HelpID = "sw:ListBox:TP_TOX_STYLES:LB_PARALAY";
Border = TRUE ;
Pos = MAP_APPFONT ( 142 , 25 ) ;
Size = MAP_APPFONT ( 101 , 131 ) ;
TabStop = TRUE ;
Sort = TRUE ;
AutoHScroll = TRUE ;
};
PushButton BT_STD
{
HelpID = "sw:PushButton:TP_TOX_STYLES:BT_STD";
Pos = MAP_APPFONT ( 64 , 162 ) ;
Size = MAP_APPFONT ( 50 , 14 ) ;
TabStop = TRUE ;
Text [ en-US ] = "~Default" ;
};
ImageButton BT_ASSIGN
{
HelpID = "sw:ImageButton:TP_TOX_STYLES:BT_ASSIGN";
Pos = MAP_APPFONT ( 118 , 28 ) ;
Size = MAP_APPFONT ( 20 , 12 ) ;
TabStop = TRUE ;
ButtonImage = Image
{
ImageBitmap = Bitmap
{
File = "one_left.bmp" ;
};
MaskColor = IMAGE_MASK_COLOR ;
};
};
PushButton BT_EDIT_STYLE
{
HelpID = "sw:PushButton:TP_TOX_STYLES:BT_EDIT_STYLE";
Pos = MAP_APPFONT ( 193 , 162 ) ;
Size = MAP_APPFONT ( 50 , 14 ) ;
TabStop = TRUE ;
Text [ en-US ] = "~Edit";
};
FixedLine FL_FORMAT
{
Pos = MAP_APPFONT ( 6 , 3 ) ;
Size = MAP_APPFONT ( 248 , 8 ) ;
Text [ en-US ] = "Assignment";
};
};
ModalDialog DLG_ADD_IDX_STYLES
ModalDialog DLG_ADD_IDX_STYLES
{
{
HelpId = HID_DLG_ADD_IDX_STYLES;
HelpId = HID_DLG_ADD_IDX_STYLES;
...
...
sw/uiconfig/swriter/ui/tocstylespage.ui
0 → 100644
Dosyayı görüntüle @
a641d049
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<!-- interface-requires gtk+ 3.0 -->
<object
class=
"GtkBox"
id=
"TocStylesPage"
>
<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=
"vexpand"
>
True
</property>
<property
name=
"label_xalign"
>
0
</property>
<property
name=
"shadow_type"
>
none
</property>
<child>
<object
class=
"GtkAlignment"
id=
"alignment3"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"hexpand"
>
True
</property>
<property
name=
"vexpand"
>
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=
"vexpand"
>
True
</property>
<property
name=
"row_spacing"
>
6
</property>
<property
name=
"column_spacing"
>
18
</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"
>
_Levels
</property>
<property
name=
"use_underline"
>
True
</property>
<property
name=
"mnemonic_widget"
>
levels:border
</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=
"label2"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"xalign"
>
0
</property>
<property
name=
"label"
translatable=
"yes"
>
Paragraph _Styles
</property>
<property
name=
"use_underline"
>
True
</property>
<property
name=
"mnemonic_widget"
>
styles:border
</property>
</object>
<packing>
<property
name=
"left_attach"
>
2
</property>
<property
name=
"top_attach"
>
0
</property>
<property
name=
"width"
>
1
</property>
<property
name=
"height"
>
1
</property>
</packing>
</child>
<child>
<object
class=
"GtkScrolledWindow"
id=
"scrolledwindow1"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"hexpand"
>
True
</property>
<property
name=
"vexpand"
>
True
</property>
<property
name=
"shadow_type"
>
in
</property>
<child>
<object
class=
"GtkTreeView"
id=
"levels:border"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"hexpand"
>
True
</property>
<property
name=
"vexpand"
>
True
</property>
</object>
</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>
<child>
<object
class=
"GtkScrolledWindow"
id=
"scrolledwindow2"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"hexpand"
>
True
</property>
<property
name=
"vexpand"
>
True
</property>
<property
name=
"shadow_type"
>
in
</property>
<child>
<object
class=
"GtkTreeView"
id=
"styles:border"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"hexpand"
>
True
</property>
<property
name=
"vexpand"
>
True
</property>
<child
internal-child=
"selection"
>
<object
class=
"GtkTreeSelection"
id=
"treeview-selection2"
/>
</child>
</object>
</child>
</object>
<packing>
<property
name=
"left_attach"
>
2
</property>
<property
name=
"top_attach"
>
1
</property>
<property
name=
"width"
>
1
</property>
<property
name=
"height"
>
1
</property>
</packing>
</child>
<child>
<object
class=
"GtkButton"
id=
"default"
>
<property
name=
"label"
translatable=
"yes"
>
_Default
</property>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"receives_default"
>
True
</property>
<property
name=
"halign"
>
end
</property>
<property
name=
"valign"
>
center
</property>
<property
name=
"use_underline"
>
True
</property>
</object>
<packing>
<property
name=
"left_attach"
>
0
</property>
<property
name=
"top_attach"
>
2
</property>
<property
name=
"width"
>
1
</property>
<property
name=
"height"
>
1
</property>
</packing>
</child>
<child>
<object
class=
"GtkButton"
id=
"edit"
>
<property
name=
"label"
translatable=
"yes"
>
_Edit
</property>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"receives_default"
>
True
</property>
<property
name=
"halign"
>
end
</property>
<property
name=
"valign"
>
center
</property>
<property
name=
"use_underline"
>
True
</property>
</object>
<packing>
<property
name=
"left_attach"
>
2
</property>
<property
name=
"top_attach"
>
2
</property>
<property
name=
"width"
>
1
</property>
<property
name=
"height"
>
1
</property>
</packing>
</child>
<child>
<object
class=
"GtkButton"
id=
"assign"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"receives_default"
>
True
</property>
<property
name=
"halign"
>
center
</property>
<property
name=
"valign"
>
start
</property>
<property
name=
"image"
>
image1
</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>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
</object>
</child>
</object>
</child>
<child
type=
"label"
>
<object
class=
"GtkLabel"
id=
"labelGrid"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"label"
translatable=
"yes"
>
Assignment
</property>
<attributes>
<attribute
name=
"weight"
value=
"bold"
/>
</attributes>
</object>
</child>
</object>
<packing>
<property
name=
"expand"
>
False
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"position"
>
0
</property>
</packing>
</child>
</object>
<object
class=
"GtkImage"
id=
"image1"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"pixbuf"
>
sw/res/one_left.png
</property>
</object>
<object
class=
"GtkSizeGroup"
id=
"sizegroup1"
>
<widgets>
<widget
name=
"default"
/>
<widget
name=
"edit"
/>
</widgets>
</object>
<object
class=
"GtkSizeGroup"
id=
"sizegroup2"
>
<widgets>
<widget
name=
"levels:border"
/>
<widget
name=
"styles:border"
/>
</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