summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-09-18 16:14:49 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-09-28 08:48:48 +0100
commit4d173556cfa07620c1ea7bd1ee044df02267879b (patch)
tree9d838af587c725fc00e1c1022577e6cb88f00ded
parentd23a61c697a81174a74fcbd78b43bd4482562af3 (diff)
convert hard-coded layout of two-lines tabpage to .ui
Change-Id: I87da59af50420993303111dae0ec4456ae15cc20
-rw-r--r--cui/UI_cui.mk1
-rw-r--r--cui/source/inc/chardlg.hxx17
-rw-r--r--cui/source/tabpages/chardlg.cxx90
-rw-r--r--cui/source/tabpages/chardlg.hrc14
-rw-r--r--cui/source/tabpages/chardlg.src89
-rw-r--r--cui/uiconfig/ui/twolinespage.ui249
-rw-r--r--sfx2/inc/sfx2/basedlgs.hxx2
-rw-r--r--sfx2/inc/sfx2/tabdlg.hxx1
-rw-r--r--sfx2/source/dialog/tabdlg.cxx11
-rw-r--r--svx/inc/svx/fntctrl.hxx1
-rw-r--r--svx/source/dialog/fntctrl.cxx12
-rw-r--r--vcl/inc/vcl/tabpage.hxx2
-rw-r--r--vcl/source/window/tabpage.cxx7
13 files changed, 325 insertions, 171 deletions
diff --git a/cui/UI_cui.mk b/cui/UI_cui.mk
index a98e905893e1..779eef474bbd 100644
--- a/cui/UI_cui.mk
+++ b/cui/UI_cui.mk
@@ -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:
diff --git a/cui/source/inc/chardlg.hxx b/cui/source/inc/chardlg.hxx
index 5366de7a5ece..fd30443d039e 100644
--- a/cui/source/inc/chardlg.hxx
+++ b/cui/source/inc/chardlg.hxx
@@ -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;
diff --git a/cui/source/tabpages/chardlg.cxx b/cui/source/tabpages/chardlg.cxx
index d21457ba86f7..791f895896d3 100644
--- a/cui/source/tabpages/chardlg.cxx
+++ b/cui/source/tabpages/chardlg.cxx
@@ -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_aStartBracketLB;
+ bool bStart = pBox == m_pStartBracketLB;
//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_aEndBracketLB;
+ ListBox* pBox = bStart ? m_pStartBracketLB : m_pEndBracketLB;
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_aStartBracketLB;
+ bool bStart = pBox == m_pStartBracketLB;
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();
}
// -----------------------------------------------------------------------
diff --git a/cui/source/tabpages/chardlg.hrc b/cui/source/tabpages/chardlg.hrc
index 91a54e3a57ac..0108f75dc133 100644
--- a/cui/source/tabpages/chardlg.hrc
+++ b/cui/source/tabpages/chardlg.hrc
@@ -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
diff --git a/cui/source/tabpages/chardlg.src b/cui/source/tabpages/chardlg.src
index 74b17139afcf..c1a925f6fd76 100644
--- a/cui/source/tabpages/chardlg.src
+++ b/cui/source/tabpages/chardlg.src
@@ -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
diff --git a/cui/uiconfig/ui/twolinespage.ui b/cui/uiconfig/ui/twolinespage.ui
new file mode 100644
index 000000000000..f61c424e4183
--- /dev/null
+++ b/cui/uiconfig/ui/twolinespage.ui
@@ -0,0 +1,249 @@
+<?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">&lt;</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">&gt;</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>
diff --git a/sfx2/inc/sfx2/basedlgs.hxx b/sfx2/inc/sfx2/basedlgs.hxx
index a3cd1eff3a19..2251eaf01226 100644
--- a/sfx2/inc/sfx2/basedlgs.hxx
+++ b/sfx2/inc/sfx2/basedlgs.hxx
@@ -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; }
diff --git a/sfx2/inc/sfx2/tabdlg.hxx b/sfx2/inc/sfx2/tabdlg.hxx
index ab30a3e1fd58..fe244b853aff 100644
--- a/sfx2/inc/sfx2/tabdlg.hxx
+++ b/sfx2/inc/sfx2/tabdlg.hxx
@@ -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
diff --git a/sfx2/source/dialog/tabdlg.cxx b/sfx2/source/dialog/tabdlg.cxx
index 307e07ca53ba..5d883c7c2915 100644
--- a/sfx2/source/dialog/tabdlg.cxx
+++ b/sfx2/source/dialog/tabdlg.cxx
@@ -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),
diff --git a/svx/inc/svx/fntctrl.hxx b/svx/inc/svx/fntctrl.hxx
index 2b32f5f694f2..a978aa531cdd 100644
--- a/svx/inc/svx/fntctrl.hxx
+++ b/svx/inc/svx/fntctrl.hxx
@@ -58,6 +58,7 @@ private:
public:
SvxFontPrevWindow( Window* pParent, const ResId& rId );
+ SvxFontPrevWindow(Window* pParent);
virtual ~SvxFontPrevWindow();
virtual void StateChanged( StateChangedType nStateChange );
diff --git a/svx/source/dialog/fntctrl.cxx b/svx/source/dialog/fntctrl.cxx
index 01e884805207..fb6f0e638d99 100644
--- a/svx/source/dialog/fntctrl.cxx
+++ b/svx/source/dialog/fntctrl.cxx
@@ -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;
diff --git a/vcl/inc/vcl/tabpage.hxx b/vcl/inc/vcl/tabpage.hxx
index 088ef0472c08..417b17dc9faf 100644
--- a/vcl/inc/vcl/tabpage.hxx
+++ b/vcl/inc/vcl/tabpage.hxx
@@ -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 );
diff --git a/vcl/source/window/tabpage.cxx b/vcl/source/window/tabpage.cxx
index 9daace2db461..85ee67db9f40 100644
--- a/vcl/source/window/tabpage.cxx
+++ b/vcl/source/window/tabpage.cxx
@@ -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 )