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
4d173556
Kaydet (Commit)
4d173556
authored
Eyl 18, 2012
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert hard-coded layout of two-lines tabpage to .ui
Change-Id: I87da59af50420993303111dae0ec4456ae15cc20
üst
d23a61c6
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
325 additions
and
171 deletions
+325
-171
UI_cui.mk
cui/UI_cui.mk
+1
-0
chardlg.hxx
cui/source/inc/chardlg.hxx
+6
-11
chardlg.cxx
cui/source/tabpages/chardlg.cxx
+34
-56
chardlg.hrc
cui/source/tabpages/chardlg.hrc
+0
-14
chardlg.src
cui/source/tabpages/chardlg.src
+0
-89
twolinespage.ui
cui/uiconfig/ui/twolinespage.ui
+249
-0
basedlgs.hxx
sfx2/inc/sfx2/basedlgs.hxx
+1
-1
tabdlg.hxx
sfx2/inc/sfx2/tabdlg.hxx
+1
-0
tabdlg.cxx
sfx2/source/dialog/tabdlg.cxx
+11
-0
fntctrl.hxx
svx/inc/svx/fntctrl.hxx
+1
-0
fntctrl.cxx
svx/source/dialog/fntctrl.cxx
+12
-0
tabpage.hxx
vcl/inc/vcl/tabpage.hxx
+2
-0
tabpage.cxx
vcl/source/window/tabpage.cxx
+7
-0
No files found.
cui/UI_cui.mk
Dosyayı görüntüle @
4d173556
...
...
@@ -11,6 +11,7 @@ $(eval $(call gb_UI_UI,cui))
$(eval $(call gb_UI_add_uifiles,cui,\
cui/uiconfig/ui/10000 \
cui/uiconfig/ui/twolinespage \
))
# vim: set noet sw=4 ts=4:
cui/source/inc/chardlg.hxx
Dosyayı görüntüle @
4d173556
...
...
@@ -62,6 +62,8 @@ protected:
sal_Bool
m_bPreviewBackgroundToCharacter
;
SvxCharBasePage
(
Window
*
pParent
,
const
ResId
&
rResIdTabPage
,
const
SfxItemSet
&
);
SvxCharBasePage
(
Window
*
pParent
,
const
rtl
::
OString
&
rID
,
const
rtl
::
OUString
&
rUIXMLDescription
,
const
SfxItemSet
&
rItemset
);
virtual
~
SvxCharBasePage
();
void
makeWidgets
(
Window
*
pParent
,
const
ResId
&
rResId
,
...
...
@@ -364,17 +366,10 @@ public:
class
SvxCharTwoLinesPage
:
public
SvxCharBasePage
{
private
:
VclVBox
m_aBox
;
VclGrid
m_aGrid
;
FixedLine
m_aSwitchOnLine
;
CheckBox
m_aTwoLinesBtn
;
FixedLine
m_aEncloseLine
;
FixedText
m_aStartBracketFT
;
ListBox
m_aStartBracketLB
;
FixedText
m_aEndBracketFT
;
ListBox
m_aEndBracketLB
;
CheckBox
*
m_pTwoLinesBtn
;
VclContainer
*
m_pEnclosingFrame
;
ListBox
*
m_pStartBracketLB
;
ListBox
*
m_pEndBracketLB
;
sal_uInt16
m_nStartBracketPosition
;
sal_uInt16
m_nEndBracketPosition
;
...
...
cui/source/tabpages/chardlg.cxx
Dosyayı görüntüle @
4d173556
...
...
@@ -193,6 +193,12 @@ SvxCharBasePage::SvxCharBasePage( Window* pParent, const ResId& rResId, const Sf
{
}
SvxCharBasePage
::
SvxCharBasePage
(
Window
*
pParent
,
const
rtl
::
OString
&
rID
,
const
rtl
::
OUString
&
rUIXMLDescription
,
const
SfxItemSet
&
rItemset
)
:
SfxTabPage
(
pParent
,
rID
,
rUIXMLDescription
,
rItemset
)
,
m_bPreviewBackgroundToCharacter
(
sal_False
)
{
}
void
SvxCharBasePage
::
makeWidgets
(
Window
*
pParent
,
const
ResId
&
rResId
,
sal_uInt16
nResIdPrewievWin
,
sal_uInt16
nResIdFontTypeFT
)
{
...
...
@@ -3580,62 +3586,37 @@ void SvxCharPositionPage::PageCreated (SfxAllItemSet aSet)
// class SvxCharTwoLinesPage ------------------------------------------------
SvxCharTwoLinesPage
::
SvxCharTwoLinesPage
(
Window
*
pParent
,
const
SfxItemSet
&
rInSet
)
:
SvxCharBasePage
(
pParent
,
CUI_RES
(
RID_SVXPAGE_CHAR_TWOLINES
),
rInSet
)
,
m_aBox
(
this
,
false
,
7
)
,
m_aGrid
(
&
m_aBox
)
,
m_aSwitchOnLine
(
&
m_aGrid
,
CUI_RES
(
FL_SWITCHON
))
,
m_aTwoLinesBtn
(
&
m_aGrid
,
CUI_RES
(
CB_TWOLINES
))
,
m_aEncloseLine
(
&
m_aGrid
,
CUI_RES
(
FL_ENCLOSE
))
,
m_aStartBracketFT
(
&
m_aGrid
,
CUI_RES
(
FT_STARTBRACKET
))
,
m_aStartBracketLB
(
&
m_aGrid
,
CUI_RES
(
ED_STARTBRACKET
))
,
m_aEndBracketFT
(
&
m_aGrid
,
CUI_RES
(
FT_ENDBRACKET
))
,
m_aEndBracketLB
(
&
m_aGrid
,
CUI_RES
(
ED_ENDBRACKET
))
:
SvxCharBasePage
(
pParent
,
"TwoLinesPage"
,
"cui/ui/twolinespage.ui"
,
rInSet
)
,
m_nStartBracketPosition
(
0
)
,
m_nEndBracketPosition
(
0
)
{
m_aBox
.
set_expand
(
true
);
get
(
m_pTwoLinesBtn
,
"twolines"
);
get
(
m_pEnclosingFrame
,
"enclosing"
);
get
(
m_pStartBracketLB
,
"startbracket"
);
get
(
m_pEndBracketLB
,
"endbracket"
);
m_aGrid
.
set_column_spacing
(
7
);
m_aGrid
.
set_row_spacing
(
2
);
get
(
m_pPreviewWin
,
"preview"
);
setGridAttach
(
m_aSwitchOnLine
,
0
,
0
,
2
);
setGridAttach
(
m_aTwoLinesBtn
,
0
,
1
);
setGridAttach
(
m_aEncloseLine
,
0
,
2
,
2
);
setGridAttach
(
m_aStartBracketFT
,
0
,
3
);
setGridAttach
(
m_aEndBracketFT
,
1
,
3
);
setGridAttach
(
m_aStartBracketLB
,
0
,
4
);
setGridAttach
(
m_aEndBracketLB
,
1
,
4
);
makeWidgets
(
&
m_aBox
,
CUI_RES
(
RID_SVXPAGE_CHAR_TWOLINES
),
WIN_TWOLINES_PREVIEW
,
FT_TWOLINES_FONTTYPE
);
FreeResource
();
Initialize
();
}
SvxCharTwoLinesPage
::~
SvxCharTwoLinesPage
()
{
delete
m_pPreviewWin
,
m_pPreviewWin
=
NULL
;
delete
m_pFontTypeFT
,
m_pFontTypeFT
=
NULL
;
m_pPreviewWin
=
NULL
;
//to-do, when all of these tab pages are converted to .ui this and the parent delete can go
}
// -----------------------------------------------------------------------
void
SvxCharTwoLinesPage
::
Initialize
()
{
Size
aSize
=
m_aStartBracketLB
.
GetSizePixel
();
aSize
.
Height
()
=
m_aStartBracketLB
.
CalcSize
(
1
,
6
).
Height
();
m_aStartBracketLB
.
SetSizePixel
(
aSize
);
aSize
=
m_aEndBracketLB
.
GetSizePixel
();
aSize
.
Height
()
=
m_aEndBracketLB
.
CalcSize
(
1
,
6
).
Height
();
m_aEndBracketLB
.
SetSizePixel
(
aSize
);
m_aTwoLinesBtn
.
Check
(
sal_False
);
m_pTwoLinesBtn
->
Check
(
sal_False
);
TwoLinesHdl_Impl
(
NULL
);
m_
aTwoLinesBtn
.
SetClickHdl
(
LINK
(
this
,
SvxCharTwoLinesPage
,
TwoLinesHdl_Impl
)
);
m_
pTwoLinesBtn
->
SetClickHdl
(
LINK
(
this
,
SvxCharTwoLinesPage
,
TwoLinesHdl_Impl
)
);
Link
aLink
=
LINK
(
this
,
SvxCharTwoLinesPage
,
CharacterMapHdl_Impl
);
m_
aStartBracketLB
.
SetSelectHdl
(
aLink
);
m_
aEndBracketLB
.
SetSelectHdl
(
aLink
);
m_
pStartBracketLB
->
SetSelectHdl
(
aLink
);
m_
pEndBracketLB
->
SetSelectHdl
(
aLink
);
SvxFont
&
rFont
=
GetPreviewFont
();
SvxFont
&
rCJKFont
=
GetPreviewCJKFont
();
...
...
@@ -3650,7 +3631,7 @@ void SvxCharTwoLinesPage::Initialize()
void
SvxCharTwoLinesPage
::
SelectCharacter
(
ListBox
*
pBox
)
{
bool
bStart
=
pBox
==
&
m_a
StartBracketLB
;
bool
bStart
=
pBox
==
m_p
StartBracketLB
;
//SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create();
//if(pFact)
{
...
...
@@ -3676,7 +3657,7 @@ void SvxCharTwoLinesPage::SelectCharacter( ListBox* pBox )
void
SvxCharTwoLinesPage
::
SetBracket
(
sal_Unicode
cBracket
,
sal_Bool
bStart
)
{
sal_uInt16
nEntryPos
=
0
;
ListBox
*
pBox
=
bStart
?
&
m_aStartBracketLB
:
&
m_a
EndBracketLB
;
ListBox
*
pBox
=
bStart
?
m_pStartBracketLB
:
m_p
EndBracketLB
;
if
(
0
==
cBracket
)
pBox
->
SelectEntryPos
(
0
);
else
...
...
@@ -3713,11 +3694,8 @@ void SvxCharTwoLinesPage::SetBracket( sal_Unicode cBracket, sal_Bool bStart )
IMPL_LINK_NOARG
(
SvxCharTwoLinesPage
,
TwoLinesHdl_Impl
)
{
sal_Bool
bChecked
=
m_aTwoLinesBtn
.
IsChecked
();
m_aStartBracketFT
.
Enable
(
bChecked
);
m_aStartBracketLB
.
Enable
(
bChecked
);
m_aEndBracketFT
.
Enable
(
bChecked
);
m_aEndBracketLB
.
Enable
(
bChecked
);
sal_Bool
bChecked
=
m_pTwoLinesBtn
->
IsChecked
();
m_pEnclosingFrame
->
Enable
(
bChecked
);
UpdatePreview_Impl
();
return
0
;
...
...
@@ -3732,7 +3710,7 @@ IMPL_LINK( SvxCharTwoLinesPage, CharacterMapHdl_Impl, ListBox*, pBox )
SelectCharacter
(
pBox
);
else
{
bool
bStart
=
pBox
==
&
m_a
StartBracketLB
;
bool
bStart
=
pBox
==
m_p
StartBracketLB
;
if
(
bStart
)
m_nStartBracketPosition
=
nPos
;
else
...
...
@@ -3776,14 +3754,14 @@ sal_uInt16* SvxCharTwoLinesPage::GetRanges()
void
SvxCharTwoLinesPage
::
Reset
(
const
SfxItemSet
&
rSet
)
{
m_
aTwoLinesBtn
.
Check
(
sal_False
);
m_
pTwoLinesBtn
->
Check
(
sal_False
);
sal_uInt16
nWhich
=
GetWhich
(
SID_ATTR_CHAR_TWO_LINES
);
SfxItemState
eState
=
rSet
.
GetItemState
(
nWhich
);
if
(
eState
>=
SFX_ITEM_DONTCARE
)
{
const
SvxTwoLinesItem
&
rItem
=
(
SvxTwoLinesItem
&
)
rSet
.
Get
(
nWhich
);
m_
aTwoLinesBtn
.
Check
(
rItem
.
GetValue
()
);
m_
pTwoLinesBtn
->
Check
(
rItem
.
GetValue
()
);
if
(
rItem
.
GetValue
()
)
{
...
...
@@ -3804,11 +3782,11 @@ sal_Bool SvxCharTwoLinesPage::FillItemSet( SfxItemSet& rSet )
sal_Bool
bModified
=
sal_False
,
bChanged
=
sal_True
;
sal_uInt16
nWhich
=
GetWhich
(
SID_ATTR_CHAR_TWO_LINES
);
const
SfxPoolItem
*
pOld
=
GetOldItem
(
rSet
,
SID_ATTR_CHAR_TWO_LINES
);
sal_Bool
bOn
=
m_
aTwoLinesBtn
.
IsChecked
();
sal_Unicode
cStart
=
(
bOn
&&
m_
aStartBracketLB
.
GetSelectEntryPos
()
>
0
)
?
m_
aStartBracketLB
.
GetSelectEntry
().
GetChar
(
0
)
:
0
;
sal_Unicode
cEnd
=
(
bOn
&&
m_
aEndBracketLB
.
GetSelectEntryPos
()
>
0
)
?
m_
aEndBracketLB
.
GetSelectEntry
().
GetChar
(
0
)
:
0
;
sal_Bool
bOn
=
m_
pTwoLinesBtn
->
IsChecked
();
sal_Unicode
cStart
=
(
bOn
&&
m_
pStartBracketLB
->
GetSelectEntryPos
()
>
0
)
?
m_
pStartBracketLB
->
GetSelectEntry
().
GetChar
(
0
)
:
0
;
sal_Unicode
cEnd
=
(
bOn
&&
m_
pEndBracketLB
->
GetSelectEntryPos
()
>
0
)
?
m_
pEndBracketLB
->
GetSelectEntry
().
GetChar
(
0
)
:
0
;
if
(
pOld
)
{
...
...
@@ -3831,12 +3809,12 @@ sal_Bool SvxCharTwoLinesPage::FillItemSet( SfxItemSet& rSet )
void
SvxCharTwoLinesPage
::
UpdatePreview_Impl
()
{
sal_Unicode
cStart
=
m_
aStartBracketLB
.
GetSelectEntryPos
()
>
0
?
m_
aStartBracketLB
.
GetSelectEntry
().
GetChar
(
0
)
:
0
;
sal_Unicode
cEnd
=
m_
aEndBracketLB
.
GetSelectEntryPos
()
>
0
?
m_
aEndBracketLB
.
GetSelectEntry
().
GetChar
(
0
)
:
0
;
sal_Unicode
cStart
=
m_
pStartBracketLB
->
GetSelectEntryPos
()
>
0
?
m_
pStartBracketLB
->
GetSelectEntry
().
GetChar
(
0
)
:
0
;
sal_Unicode
cEnd
=
m_
pEndBracketLB
->
GetSelectEntryPos
()
>
0
?
m_
pEndBracketLB
->
GetSelectEntry
().
GetChar
(
0
)
:
0
;
m_pPreviewWin
->
SetBrackets
(
cStart
,
cEnd
);
m_pPreviewWin
->
SetTwoLines
(
m_
aTwoLinesBtn
.
IsChecked
());
m_pPreviewWin
->
SetTwoLines
(
m_
pTwoLinesBtn
->
IsChecked
());
m_pPreviewWin
->
Invalidate
();
}
// -----------------------------------------------------------------------
...
...
cui/source/tabpages/chardlg.hrc
Dosyayı görüntüle @
4d173556
...
...
@@ -147,20 +147,6 @@
#define WIN_POS_PREVIEW 331
#define FT_POS_FONTTYPE 332
// TwoLinesPage -------------------------------------------------------------
#define FL_SWITCHON 400
#define CB_TWOLINES 401
#define FL_ENCLOSE 410
#define FT_STARTBRACKET 411
#define ED_STARTBRACKET 412
#define FT_ENDBRACKET 413
#define ED_ENDBRACKET 414
#define WIN_TWOLINES_PREVIEW 421
#define FT_TWOLINES_FONTTYPE 422
#define FT_WEST_NAME_NOCJK 423
#define LB_WEST_NAME_NOCJK 424
#define FT_WEST_STYLE_NOCJK 425
...
...
cui/source/tabpages/chardlg.src
Dosyayı görüntüle @
4d173556
...
...
@@ -927,92 +927,3 @@ TabPage RID_SVXPAGE_CHAR_POSITION
Hide = TRUE;
};
};
TabPage RID_SVXPAGE_CHAR_TWOLINES
{
HelpId = HID_SVXPAGE_CHAR_TWOLINES ;
Size = MAP_APPFONT ( TP_WIDTH , TP_HEIGHT ) ;
Hide = TRUE ;
FixedLine FL_SWITCHON
{
Pos = MAP_APPFONT ( 6 , 3 );
Size = MAP_APPFONT ( 248 , 8 );
Text [ en-US ] = "Double-lined" ;
};
CheckBox CB_TWOLINES
{
HelpID = "cui:CheckBox:RID_SVXPAGE_CHAR_TWOLINES:CB_TWOLINES";
Pos = MAP_APPFONT ( 12 , 14 );
Size = MAP_APPFONT ( 236 , 10 );
Text [ en-US ] = "~Write in double lines" ;
TabStop = TRUE;
};
FixedLine FL_ENCLOSE
{
Pos = MAP_APPFONT ( 6 , 30 );
Size = MAP_APPFONT ( 248 , 8 );
Text [ en-US ] = "Enclosing character" ;
};
FixedText FT_STARTBRACKET
{
Pos = MAP_APPFONT ( 12 , 41 );
Size = MAP_APPFONT ( 90 , 8 );
Text [ en-US ] = "I~nitial character" ;
};
ListBox ED_STARTBRACKET
{
HelpID = "cui:ListBox:RID_SVXPAGE_CHAR_TWOLINES:ED_STARTBRACKET";
Pos = MAP_APPFONT ( 12 , 52 );
Size = MAP_APPFONT ( 90 , 72 );
TabStop = TRUE;
Border = TRUE;
StringList [ en-US ] =
{
< "(None)" ; CHRDLG_ENCLOSE_NONE ; > ;
< "(" ; CHRDLG_ENCLOSE_ROUND ; > ;
< "[" ; CHRDLG_ENCLOSE_SQUARE ; > ;
< "<" ; CHRDLG_ENCLOSE_POINTED ; > ;
< "{" ; CHRDLG_ENCLOSE_CURVED ; > ;
< "Other Characters..." ; CHRDLG_ENCLOSE_SPECIAL_CHAR ; > ;
};
};
FixedText FT_ENDBRACKET
{
Pos = MAP_APPFONT ( 108 , 41 );
Size = MAP_APPFONT ( 90 , 8 );
Text [ en-US ] = "Final charact~er" ;
};
ListBox ED_ENDBRACKET
{
HelpID = "cui:ListBox:RID_SVXPAGE_CHAR_TWOLINES:ED_ENDBRACKET";
Pos = MAP_APPFONT ( 108 , 52 );
Size = MAP_APPFONT ( 90 , 72 );
TabStop = TRUE;
Border = TRUE;
StringList [ en-US ] =
{
< "(None)" ; CHRDLG_ENCLOSE_NONE ; > ;
< ")" ; CHRDLG_ENCLOSE_ROUND ; > ;
< "]" ; CHRDLG_ENCLOSE_SQUARE ; > ;
< ">" ; CHRDLG_ENCLOSE_POINTED ; > ;
< "}" ; CHRDLG_ENCLOSE_CURVED ; > ;
< "Other Characters..." ; CHRDLG_ENCLOSE_SPECIAL_CHAR ; > ;
};
};
Window WIN_TWOLINES_PREVIEW
{
Border = TRUE ;
Pos = MAP_APPFONT ( 6 , 149 ) ;
Size = MAP_APPFONT ( 248 , 37 ) ;
Text [ en-US ] = "Example" ;
};
FixedText FT_TWOLINES_FONTTYPE
{
Pos = MAP_APPFONT ( 6 , 168 ) ;
Size = MAP_APPFONT ( 248 , 16 ) ;
WordBreak = TRUE ;
Hide = TRUE;
};
};
// ********************************************************************** EOF
cui/uiconfig/ui/twolinespage.ui
0 → 100644
Dosyayı görüntüle @
4d173556
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<!-- interface-requires gtk+ 3.0 -->
<object
class=
"GtkBox"
id=
"TwoLinesPage"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"orientation"
>
vertical
</property>
<child>
<object
class=
"GtkFrame"
id=
"frame8"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"label_xalign"
>
0
</property>
<property
name=
"shadow_type"
>
none
</property>
<child>
<object
class=
"GtkAlignment"
id=
"alignment8"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"left_padding"
>
12
</property>
<child>
<object
class=
"GtkCheckButton"
id=
"twolines"
>
<property
name=
"label"
translatable=
"yes"
>
Write in double lines
</property>
<property
name=
"use_action_appearance"
>
False
</property>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"receives_default"
>
False
</property>
<property
name=
"use_action_appearance"
>
False
</property>
<property
name=
"xalign"
>
0
</property>
<property
name=
"draw_indicator"
>
True
</property>
</object>
</child>
</object>
</child>
<child
type=
"label"
>
<object
class=
"GtkLabel"
id=
"label2"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"label"
translatable=
"yes"
>
Double-lined
</property>
<property
name=
"use_markup"
>
True
</property>
</object>
</child>
</object>
<packing>
<property
name=
"expand"
>
False
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"position"
>
0
</property>
</packing>
</child>
<child>
<object
class=
"GtkFrame"
id=
"enclosing"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"label_xalign"
>
0
</property>
<property
name=
"shadow_type"
>
none
</property>
<child>
<object
class=
"GtkAlignment"
id=
"alignment9"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"left_padding"
>
12
</property>
<child>
<object
class=
"GtkGrid"
id=
"grid5"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"column_spacing"
>
6
</property>
<property
name=
"column_homogeneous"
>
True
</property>
<child>
<object
class=
"GtkLabel"
id=
"label29"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"label"
translatable=
"yes"
>
Initial character
</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=
"label30"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"label"
translatable=
"yes"
>
Final character
</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=
"GtkTreeView"
id=
"startbracket"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"model"
>
liststore1
</property>
<property
name=
"search_column"
>
0
</property>
<child
internal-child=
"selection"
>
<object
class=
"GtkTreeSelection"
id=
"treeview-selection5"
/>
</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=
"GtkTreeView"
id=
"endbracket"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"model"
>
liststore2
</property>
<property
name=
"search_column"
>
0
</property>
<child
internal-child=
"selection"
>
<object
class=
"GtkTreeSelection"
id=
"treeview-selection6"
/>
</child>
</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>
</child>
</object>
</child>
<child
type=
"label"
>
<object
class=
"GtkLabel"
id=
"label28"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"label"
translatable=
"yes"
>
Enclosing character
</property>
<property
name=
"use_markup"
>
True
</property>
</object>
</child>
</object>
<packing>
<property
name=
"expand"
>
False
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"position"
>
1
</property>
</packing>
</child>
<child>
<object
class=
"GtkFrame"
id=
"frame14"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"label_xalign"
>
0
</property>
<property
name=
"shadow_type"
>
none
</property>
<child>
<object
class=
"GtkAlignment"
id=
"alignment14"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"left_padding"
>
12
</property>
<child>
<object
class=
"svxlo:SvxFontPrevWindow"
id=
"preview"
>
<property
name=
"height_request"
>
100
</property>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
</object>
</child>
</object>
</child>
<child
type=
"label"
>
<object
class=
"GtkLabel"
id=
"label52"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"label"
translatable=
"yes"
>
Preview
</property>
<property
name=
"use_markup"
>
True
</property>
</object>
</child>
</object>
<packing>
<property
name=
"expand"
>
False
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"pack_type"
>
end
</property>
<property
name=
"position"
>
2
</property>
</packing>
</child>
</object>
<object
class=
"GtkListStore"
id=
"liststore1"
>
<columns>
<!-- column-name gchararray1 -->
<column
type=
"gchararray"
/>
<!-- column-name gint1 -->
<column
type=
"gint"
/>
</columns>
<data>
<row>
<col
id=
"0"
translatable=
"yes"
>
(None)
</col>
<col
id=
"1"
>
0
</col>
</row>
<row>
<col
id=
"0"
translatable=
"yes"
>
(
</col>
<col
id=
"1"
>
1
</col>
</row>
<row>
<col
id=
"0"
translatable=
"yes"
>
[
</col>
<col
id=
"1"
>
2
</col>
</row>
<row>
<col
id=
"0"
translatable=
"yes"
>
<
</col>
<col
id=
"1"
>
3
</col>
</row>
<row>
<col
id=
"0"
translatable=
"yes"
>
{
</col>
<col
id=
"1"
>
4
</col>
</row>
<row>
<col
id=
"0"
translatable=
"yes"
>
Other Characters...
</col>
<col
id=
"1"
>
5
</col>
</row>
</data>
</object>
<object
class=
"GtkListStore"
id=
"liststore2"
>
<columns>
<!-- column-name gchararray1 -->
<column
type=
"gchararray"
/>
<!-- column-name gint1 -->
<column
type=
"gint"
/>
</columns>
<data>
<row>
<col
id=
"0"
translatable=
"yes"
>
(None)
</col>
<col
id=
"1"
>
0
</col>
</row>
<row>
<col
id=
"0"
translatable=
"yes"
>
)
</col>
<col
id=
"1"
>
1
</col>
</row>
<row>
<col
id=
"0"
translatable=
"yes"
>
]
</col>
<col
id=
"1"
>
2
</col>
</row>
<row>
<col
id=
"0"
translatable=
"yes"
>
>
</col>
<col
id=
"1"
>
3
</col>
</row>
<row>
<col
id=
"0"
translatable=
"yes"
>
}
</col>
<col
id=
"1"
>
4
</col>
</row>
<row>
<col
id=
"0"
translatable=
"yes"
>
Other Characters...
</col>
<col
id=
"1"
>
5
</col>
</row>
</data>
</object>
</interface>
sfx2/inc/sfx2/basedlgs.hxx
Dosyayı görüntüle @
4d173556
...
...
@@ -71,7 +71,7 @@ private:
protected
:
SfxModalDialog
(
Window
*
pParent
,
const
ResId
&
);
SfxModalDialog
(
Window
*
pParent
,
const
rtl
::
OString
&
rID
,
const
rtl
::
OUString
&
rUIXMLDescription
);
SfxModalDialog
(
Window
*
pParent
,
const
rtl
::
OString
&
rID
,
const
rtl
::
OUString
&
rUIXMLDescription
);
SfxModalDialog
(
Window
*
pParent
,
sal_uInt32
nUniqueId
,
WinBits
nWinStyle
=
WB_STDMODAL
);
String
&
GetExtraData
()
{
return
aExtraData
;
}
...
...
sfx2/inc/sfx2/tabdlg.hxx
Dosyayı görüntüle @
4d173556
...
...
@@ -222,6 +222,7 @@ private:
protected
:
SfxTabPage
(
Window
*
pParent
,
const
ResId
&
,
const
SfxItemSet
&
rAttrSet
);
SfxTabPage
(
Window
*
pParent
,
const
rtl
::
OString
&
rID
,
const
rtl
::
OUString
&
rUIXMLDescription
,
const
SfxItemSet
&
rAttrSet
);
SfxTabPage
(
Window
*
pParent
,
WinBits
nStyle
,
const
SfxItemSet
&
rAttrSet
);
sal_uInt16
GetSlot
(
sal_uInt16
nWhich
)
const
...
...
sfx2/source/dialog/tabdlg.cxx
Dosyayı görüntüle @
4d173556
...
...
@@ -229,6 +229,17 @@ SfxTabPage::SfxTabPage( Window *pParent,
{
}
SfxTabPage
::
SfxTabPage
(
Window
*
pParent
,
const
rtl
::
OString
&
rID
,
const
rtl
::
OUString
&
rUIXMLDescription
,
const
SfxItemSet
&
rAttrSet
)
:
TabPage
(
pParent
,
rID
,
rUIXMLDescription
)
,
pSet
(
&
rAttrSet
)
,
bHasExchangeSupport
(
sal_False
)
,
pTabDlg
(
NULL
)
,
pImpl
(
new
TabPageImpl
)
{
}
// -----------------------------------------------------------------------
SfxTabPage
::
SfxTabPage
(
Window
*
pParent
,
WinBits
nStyle
,
const
SfxItemSet
&
rAttrSet
)
:
TabPage
(
pParent
,
nStyle
),
...
...
svx/inc/svx/fntctrl.hxx
Dosyayı görüntüle @
4d173556
...
...
@@ -58,6 +58,7 @@ private:
public
:
SvxFontPrevWindow
(
Window
*
pParent
,
const
ResId
&
rId
);
SvxFontPrevWindow
(
Window
*
pParent
);
virtual
~
SvxFontPrevWindow
();
virtual
void
StateChanged
(
StateChangedType
nStateChange
);
...
...
svx/source/dialog/fntctrl.cxx
Dosyayı görüntüle @
4d173556
...
...
@@ -520,6 +520,18 @@ SvxFontPrevWindow::SvxFontPrevWindow( Window* pParent, const ResId& rId ) :
Init
();
}
SvxFontPrevWindow
::
SvxFontPrevWindow
(
Window
*
pParent
)
:
Window
(
pParent
)
{
Init
();
}
extern
"C"
SAL_DLLPUBLIC_EXPORT
Window
*
SAL_CALL
makeSvxFontPrevWindow
(
Window
*
pParent
)
{
SvxFontPrevWindow
*
pWindow
=
new
SvxFontPrevWindow
(
pParent
);
return
pWindow
;
}
SvxFontPrevWindow
::~
SvxFontPrevWindow
()
{
delete
pImpl
;
...
...
vcl/inc/vcl/tabpage.hxx
Dosyayı görüntüle @
4d173556
...
...
@@ -51,6 +51,8 @@ private:
public
:
TabPage
(
Window
*
pParent
,
WinBits
nStyle
=
0
);
TabPage
(
Window
*
pParent
,
const
rtl
::
OString
&
rID
,
const
rtl
::
OUString
&
rUIXMLDescription
);
TabPage
(
Window
*
pParent
,
const
ResId
&
rResId
);
virtual
void
Paint
(
const
Rectangle
&
rRect
);
...
...
vcl/source/window/tabpage.cxx
Dosyayı görüntüle @
4d173556
...
...
@@ -113,6 +113,13 @@ TabPage::TabPage( Window* pParent, const ResId& rResId ) :
Show
();
}
TabPage
::
TabPage
(
Window
*
pParent
,
const
rtl
::
OString
&
rID
,
const
rtl
::
OUString
&
rUIXMLDescription
)
:
Window
(
WINDOW_TABPAGE
)
{
ImplInit
(
pParent
,
0
);
m_pUIBuilder
=
new
VclBuilder
(
this
,
getUIRootDir
(),
rUIXMLDescription
,
rID
);
}
// -----------------------------------------------------------------------
void
TabPage
::
StateChanged
(
StateChangedType
nType
)
...
...
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