Kaydet (Commit) d7432381 authored tarafından Olivier Hallot's avatar Olivier Hallot Kaydeden (comit) Caolán McNamara

Convert Drop Caps tab page to UI widgets

Conflicts:
	sw/UIConfig_swriter.mk

Conflicts:
	sw/source/ui/chrdlg/drpcps.cxx

Change-Id: Ic66f367d23b84666dd0165108c405b5b625b798b
Reviewed-on: https://gerrit.libreoffice.org/4236Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 97cd0f38
...@@ -120,6 +120,9 @@ ...@@ -120,6 +120,9 @@
<glade-widget-class title="Caption Preview" name="swuilo-SwCaptionPreview" <glade-widget-class title="Caption Preview" name="swuilo-SwCaptionPreview"
generic-name="Caption Preview Window" parent="GtkDrawingArea" generic-name="Caption Preview Window" parent="GtkDrawingArea"
icon-name="widget-gtk-drawingarea"/> icon-name="widget-gtk-drawingarea"/>
<glade-widget-class title="Drop Caps Preview" name="swuilo-SwDropCapsPict"
generic-name="Drop Caps Preview Window" parent="GtkDrawingArea"
icon-name="widget-gtk-drawingarea"/>
<glade-widget-class title="Extension List" name="deploymentgui-ExtBoxWithBtns" <glade-widget-class title="Extension List" name="deploymentgui-ExtBoxWithBtns"
generic-name="Extensions List" parent="GtkDrawingArea" generic-name="Extensions List" parent="GtkDrawingArea"
icon-name="widget-gtk-drawingarea"/> icon-name="widget-gtk-drawingarea"/>
......
...@@ -74,6 +74,7 @@ $(eval $(call gb_UIConfig_add_uifiles,modules/swriter,\ ...@@ -74,6 +74,7 @@ $(eval $(call gb_UIConfig_add_uifiles,modules/swriter,\
sw/uiconfig/swriter/ui/converttexttable \ sw/uiconfig/swriter/ui/converttexttable \
sw/uiconfig/swriter/ui/createauthorentry \ sw/uiconfig/swriter/ui/createauthorentry \
sw/uiconfig/swriter/ui/createautomarkdialog \ sw/uiconfig/swriter/ui/createautomarkdialog \
sw/uiconfig/swriter/ui/dropcapspage \
sw/uiconfig/swriter/ui/dropdownfielddialog \ sw/uiconfig/swriter/ui/dropdownfielddialog \
sw/uiconfig/swriter/ui/endnotepage \ sw/uiconfig/swriter/ui/endnotepage \
sw/uiconfig/swriter/ui/editcategories \ sw/uiconfig/swriter/ui/editcategories \
......
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
#include "globals.hrc" #include "globals.hrc"
#include <vcl/metric.hxx> #include <vcl/metric.hxx>
#include <svl/stritem.hxx> #include <svl/stritem.hxx>
#include <editeng/fontitem.hxx> #include <editeng/fontitem.hxx>
#include <sfx2/htmlmode.hxx> #include <sfx2/htmlmode.hxx>
...@@ -46,7 +47,6 @@ ...@@ -46,7 +47,6 @@
#include "charfmt.hxx" #include "charfmt.hxx"
#include "chrdlg.hrc" #include "chrdlg.hrc"
#include "drpcps.hrc"
using namespace css; using namespace css;
...@@ -62,6 +62,7 @@ static sal_uInt16 aPageRg[] = { ...@@ -62,6 +62,7 @@ static sal_uInt16 aPageRg[] = {
class SwDropCapsPict : public Control class SwDropCapsPict : public Control
{ {
SwDropCapsPage* mpPage;
String maText; String maText;
String maScriptText; String maScriptText;
Color maBackColor; Color maBackColor;
...@@ -99,47 +100,71 @@ class SwDropCapsPict : public Control ...@@ -99,47 +100,71 @@ class SwDropCapsPict : public Control
void GetFontSettings( const SwDropCapsPage& _rPage, Font& _rFont, sal_uInt16 _nWhich ); void GetFontSettings( const SwDropCapsPage& _rPage, Font& _rFont, sal_uInt16 _nWhich );
void GetFirstScriptSegment(xub_StrLen &start, xub_StrLen &end, sal_uInt16 &scriptType); void GetFirstScriptSegment(xub_StrLen &start, xub_StrLen &end, sal_uInt16 &scriptType);
bool GetNextScriptSegment(size_t &nIdx, xub_StrLen &start, xub_StrLen &end, sal_uInt16 &scriptType); bool GetNextScriptSegment(size_t &nIdx, xub_StrLen &start, xub_StrLen &end, sal_uInt16 &scriptType);
public: public:
SwDropCapsPict(Window *pParent, const ResId &rResId) SwDropCapsPict(Window *pParent, WinBits nBits)
: Control(pParent, rResId) : Control(pParent, nBits)
, mpPage(NULL)
, mnTotLineH(0) , mnTotLineH(0)
, mnLineH(0) , mnLineH(0)
, mnTextH(0) , mnTextH(0)
, mpPrinter( NULL ) , mpPrinter( NULL )
, mbDelPrinter( false ) , mbDelPrinter( false )
{} {}
void SetDropCapsPage(SwDropCapsPage* pPage) { mpPage = pPage; }
~SwDropCapsPict(); ~SwDropCapsPict();
void UpdatePaintSettings( void ); // also invalidates control! void UpdatePaintSettings( void ); // also invalidates control!
inline void SetText( const OUString& rT ); virtual void Resize();
inline void SetLines( sal_uInt8 nL ); virtual Size GetOptimalSize() const;
inline void SetDistance( sal_uInt16 nD );
inline void SetValues( const String& rText, sal_uInt8 nLines, sal_uInt16 nDistance ); void SetText( const OUString& rT );
void SetLines( sal_uInt8 nL );
void SetDistance( sal_uInt16 nD );
void SetValues( const String& rText, sal_uInt8 nLines, sal_uInt16 nDistance );
void DrawPrev( const Point& rPt ); void DrawPrev( const Point& rPt );
}; };
inline void SwDropCapsPict::SetText( const OUString& rT ) extern "C" SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeSwDropCapsPict(Window *pParent, VclBuilder::stringmap &)
{
return new SwDropCapsPict(pParent, WB_BORDER);
}
void SwDropCapsPict::SetText( const OUString& rT )
{ {
maText = rT; maText = rT;
UpdatePaintSettings(); UpdatePaintSettings();
} }
inline void SwDropCapsPict::SetLines( sal_uInt8 nL ) Size SwDropCapsPict::GetOptimalSize() const
{
return LogicToPixel(Size(105 , 80), MAP_APPFONT);
}
void SwDropCapsPict::Resize()
{
Control::Resize();
UpdatePaintSettings();
}
void SwDropCapsPict::SetLines( sal_uInt8 nL )
{ {
mnLines = nL; mnLines = nL;
UpdatePaintSettings(); UpdatePaintSettings();
} }
inline void SwDropCapsPict::SetDistance( sal_uInt16 nD ) void SwDropCapsPict::SetDistance( sal_uInt16 nD )
{ {
mnDistance = nD; mnDistance = nD;
UpdatePaintSettings(); UpdatePaintSettings();
} }
inline void SwDropCapsPict::SetValues( const String& rText, sal_uInt8 nLines, sal_uInt16 nDistance ) void SwDropCapsPict::SetValues( const String& rText, sal_uInt8 nLines, sal_uInt16 nDistance )
{ {
maText = rText; maText = rText;
mnLines = nLines; mnLines = nLines;
...@@ -148,7 +173,7 @@ inline void SwDropCapsPict::SetValues( const String& rText, sal_uInt8 nLines, sa ...@@ -148,7 +173,7 @@ inline void SwDropCapsPict::SetValues( const String& rText, sal_uInt8 nLines, sa
UpdatePaintSettings(); UpdatePaintSettings();
} }
inline void SwDropCapsPict::InitPrinter( void ) void SwDropCapsPict::InitPrinter( void )
{ {
if( !mpPrinter ) if( !mpPrinter )
_InitPrinter(); _InitPrinter();
...@@ -178,7 +203,7 @@ static void calcFontHeightAnyAscent( OutputDevice* _pWin, Font& _rFont, long& _n ...@@ -178,7 +203,7 @@ static void calcFontHeightAnyAscent( OutputDevice* _pWin, Font& _rFont, long& _n
} }
} }
SwDropCapsPict::~SwDropCapsPict() SwDropCapsPict::~SwDropCapsPict()
{ {
if( mbDelPrinter ) if( mbDelPrinter )
delete mpPrinter; delete mpPrinter;
...@@ -244,34 +269,34 @@ void SwDropCapsPict::UpdatePaintSettings( void ) ...@@ -244,34 +269,34 @@ void SwDropCapsPict::UpdatePaintSettings( void )
mnLineH = mnTotLineH - 2; mnLineH = mnTotLineH - 2;
Font aFont; Font aFont;
if (mpPage)
{ {
SwDropCapsPage* pPage = ( SwDropCapsPage* ) GetParent(); if (!mpPage->m_pTemplateBox->GetSelectEntryPos())
if (!pPage->aTemplateBox.GetSelectEntryPos())
{ {
// query the Font at paragraph's beginning // query the Font at paragraph's beginning
pPage->rSh.SttCrsrMove(); mpPage->rSh.SttCrsrMove();
pPage->rSh.Push(); mpPage->rSh.Push();
pPage->rSh.ClearMark(); mpPage->rSh.ClearMark();
SwWhichPara pSwuifnParaCurr = GetfnParaCurr(); SwWhichPara pSwuifnParaCurr = GetfnParaCurr();
SwPosPara pSwuifnParaStart = GetfnParaStart(); SwPosPara pSwuifnParaStart = GetfnParaStart();
pPage->rSh.MovePara(pSwuifnParaCurr,pSwuifnParaStart); mpPage->rSh.MovePara(pSwuifnParaCurr,pSwuifnParaStart);
// normal // normal
GetFontSettings( *pPage, aFont, RES_CHRATR_FONT ); GetFontSettings( *mpPage, aFont, RES_CHRATR_FONT );
// CJK // CJK
GetFontSettings( *pPage, maCJKFont, RES_CHRATR_CJK_FONT ); GetFontSettings( *mpPage, maCJKFont, RES_CHRATR_CJK_FONT );
// CTL // CTL
GetFontSettings( *pPage, maCTLFont, RES_CHRATR_CTL_FONT ); GetFontSettings( *mpPage, maCTLFont, RES_CHRATR_CTL_FONT );
pPage->rSh.Pop(sal_False); mpPage->rSh.Pop(sal_False);
pPage->rSh.EndCrsrMove(); mpPage->rSh.EndCrsrMove();
} }
else else
{ {
// query Font at character template // query Font at character template
SwCharFmt *pFmt = pPage->rSh.GetCharStyle( SwCharFmt *pFmt = mpPage->rSh.GetCharStyle(
pPage->aTemplateBox.GetSelectEntry(), mpPage->m_pTemplateBox->GetSelectEntry(),
SwWrtShell::GETSTYLE_CREATEANY ); SwWrtShell::GETSTYLE_CREATEANY );
OSL_ENSURE(pFmt, "character style doesn't exist!"); OSL_ENSURE(pFmt, "character style doesn't exist!");
const SvxFontItem &rFmtFont = pFmt->GetFont(); const SvxFontItem &rFmtFont = pFmt->GetFont();
...@@ -347,7 +372,7 @@ void SwDropCapsPict::Paint(const Rectangle &/*rRect*/) ...@@ -347,7 +372,7 @@ void SwDropCapsPict::Paint(const Rectangle &/*rRect*/)
sal_uLong lDistance = mnDistance; sal_uLong lDistance = mnDistance;
sal_uInt16 nDistW = (sal_uInt16) (sal_uLong) (((lDistance * 100) / 240) * mnTotLineH) / 100; sal_uInt16 nDistW = (sal_uInt16) (sal_uLong) (((lDistance * 100) / 240) * mnTotLineH) / 100;
SetFillColor( maBackColor ); SetFillColor( maBackColor );
if(((SwDropCapsPage*)GetParent())->aDropCapsBox.IsChecked()) if (mpPage && mpPage->m_pDropCapsBox->IsChecked())
{ {
Size aTextSize( maTextSize ); Size aTextSize( maTextSize );
aTextSize.Width() += nDistW; aTextSize.Width() += nDistW;
...@@ -507,61 +532,52 @@ SwDropCapsDlg::SwDropCapsDlg(Window *pParent, const SfxItemSet &rSet ) : ...@@ -507,61 +532,52 @@ SwDropCapsDlg::SwDropCapsDlg(Window *pParent, const SfxItemSet &rSet ) :
{ {
} }
SwDropCapsPage::SwDropCapsPage(Window *pParent, const SfxItemSet &rSet) : SwDropCapsPage::SwDropCapsPage(Window *pParent, const SfxItemSet &rSet)
: SfxTabPage(pParent, "DropCapPage","modules/swriter/ui/dropcapspage.ui", rSet)
SfxTabPage(pParent, SW_RES(TP_DROPCAPS), rSet), , bModified(false)
, bFormat(true)
, rSh(::GetActiveView()->GetWrtShell())
{
get(m_pDropCapsBox,"checkCB_SWITCH");
get(m_pWholeWordCB,"checkCB_WORD");
get(m_pDropCapsField,"spinFLD_DROPCAPS");
get(m_pLinesField,"spinFLD_LINES");
get(m_pDistanceField,"spinFLD_DISTANCE");
get(m_pContentFL,"frameFL_CONTENT");
get(m_pTextText,"labelTXT_TEXT");
get(m_pTextEdit,"entryEDT_TEXT");
get(m_pTemplateBox,"comboBOX_TEMPLATE");
get(m_pPict,"drawingareaWN_EXAMPLE");
m_pPict->SetDropCapsPage(this);
aSettingsFL (this, SW_RES(FL_SETTINGS)),
aDropCapsBox (this, SW_RES(CB_SWITCH )),
aWholeWordCB (this, SW_RES(CB_WORD )),
aSwitchText (this, SW_RES(FT_DROPCAPS )),
aDropCapsField(this, SW_RES(FLD_DROPCAPS)),
aLinesText (this, SW_RES(TXT_LINES )),
aLinesField (this, SW_RES(FLD_LINES )),
aDistanceText (this, SW_RES(TXT_DISTANCE)),
aDistanceField(this, SW_RES(FLD_DISTANCE)),
aContentFL (this, SW_RES(FL_CONTENT )),
aTextText (this, SW_RES(TXT_TEXT )),
aTextEdit (this, SW_RES(EDT_TEXT )),
aTemplateText (this, SW_RES(TXT_TEMPLATE)),
aTemplateBox (this, SW_RES(BOX_TEMPLATE)),
pPict (new SwDropCapsPict(this, SW_RES(CNT_PICT))),
bModified(sal_False),
bFormat(sal_True),
rSh(::GetActiveView()->GetWrtShell())
{
FreeResource();
SetExchangeSupport(); SetExchangeSupport();
sal_uInt16 nHtmlMode = ::GetHtmlMode((const SwDocShell*)SfxObjectShell::Current()); sal_uInt16 nHtmlMode = ::GetHtmlMode((const SwDocShell*)SfxObjectShell::Current());
bHtmlMode = nHtmlMode & HTMLMODE_ON ? sal_True : sal_False; bHtmlMode = nHtmlMode & HTMLMODE_ON ? sal_True : sal_False;
// In the template dialog the text is not influenceable // In the template dialog the text is not influenceable
aTextText.Enable( !bFormat ); m_pTextText->Enable( !bFormat );
aTextEdit.Enable( !bFormat ); m_pTextEdit->Enable( !bFormat );
// Metrics // Metrics
SetMetric( aDistanceField, GetDfltMetric(bHtmlMode) ); SetMetric( *m_pDistanceField, GetDfltMetric(bHtmlMode) );
pPict->SetBorderStyle( WINDOW_BORDER_MONO ); m_pPict->SetBorderStyle( WINDOW_BORDER_MONO );
// Install handler // Install handler
Link aLk = LINK(this, SwDropCapsPage, ModifyHdl); Link aLk = LINK(this, SwDropCapsPage, ModifyHdl);
aDropCapsField.SetModifyHdl( aLk ); m_pDropCapsField->SetModifyHdl( aLk );
aLinesField .SetModifyHdl( aLk ); m_pLinesField->SetModifyHdl( aLk );
aDistanceField.SetModifyHdl( aLk ); m_pDistanceField->SetModifyHdl( aLk );
aTextEdit .SetModifyHdl( aLk ); m_pTextEdit->SetModifyHdl( aLk );
aDropCapsBox .SetClickHdl (LINK(this, SwDropCapsPage, ClickHdl )); m_pDropCapsBox->SetClickHdl (LINK(this, SwDropCapsPage, ClickHdl ));
aTemplateBox .SetSelectHdl(LINK(this, SwDropCapsPage, SelectHdl)); m_pTemplateBox->SetSelectHdl(LINK(this, SwDropCapsPage, SelectHdl));
aWholeWordCB .SetClickHdl (LINK(this, SwDropCapsPage, WholeWordHdl )); m_pWholeWordCB->SetClickHdl (LINK(this, SwDropCapsPage, WholeWordHdl ));
} }
SwDropCapsPage::~SwDropCapsPage() SwDropCapsPage::~SwDropCapsPage()
{ {
delete pPict;
} }
int SwDropCapsPage::DeactivatePage(SfxItemSet * _pSet) int SwDropCapsPage::DeactivatePage(SfxItemSet * _pSet)
...@@ -603,45 +619,45 @@ void SwDropCapsPage::Reset(const SfxItemSet &rSet) ...@@ -603,45 +619,45 @@ void SwDropCapsPage::Reset(const SfxItemSet &rSet)
SwFmtDrop aFmtDrop((SwFmtDrop &) rSet.Get(RES_PARATR_DROP)); SwFmtDrop aFmtDrop((SwFmtDrop &) rSet.Get(RES_PARATR_DROP));
if (aFmtDrop.GetLines() > 1) if (aFmtDrop.GetLines() > 1)
{ {
aDropCapsField.SetValue(aFmtDrop.GetChars()); m_pDropCapsField->SetValue(aFmtDrop.GetChars());
aLinesField .SetValue(aFmtDrop.GetLines()); m_pLinesField->SetValue(aFmtDrop.GetLines());
aDistanceField.SetValue(aDistanceField.Normalize(aFmtDrop.GetDistance()), FUNIT_TWIP); m_pDistanceField->SetValue(m_pDistanceField->Normalize(aFmtDrop.GetDistance()), FUNIT_TWIP);
aWholeWordCB .Check (aFmtDrop.GetWholeWord()); m_pWholeWordCB->Check(aFmtDrop.GetWholeWord());
} }
else else
{ {
aDropCapsField.SetValue(1); m_pDropCapsField->SetValue(1);
aLinesField .SetValue(3); m_pLinesField->SetValue(3);
aDistanceField.SetValue(0); m_pDistanceField->SetValue(0);
} }
::FillCharStyleListBox(aTemplateBox, rSh.GetView().GetDocShell(), true); ::FillCharStyleListBox(*m_pTemplateBox, rSh.GetView().GetDocShell(), true);
aTemplateBox.InsertEntry(SW_RESSTR(SW_STR_NONE), 0); m_pTemplateBox->InsertEntry(SW_RESSTR(SW_STR_NONE), 0);
// Reset format // Reset format
aTemplateBox.SelectEntryPos(0); m_pTemplateBox->SelectEntryPos(0);
if (aFmtDrop.GetCharFmt()) if (aFmtDrop.GetCharFmt())
aTemplateBox.SelectEntry(aFmtDrop.GetCharFmt()->GetName()); m_pTemplateBox->SelectEntry(aFmtDrop.GetCharFmt()->GetName());
// Enable controls // Enable controls
aDropCapsBox.Check(aFmtDrop.GetLines() > 1); m_pDropCapsBox->Check(aFmtDrop.GetLines() > 1);
const sal_uInt16 nVal = sal_uInt16(aDropCapsField.GetValue()); const sal_uInt16 nVal = sal_uInt16(m_pDropCapsField->GetValue());
if (bFormat) if (bFormat)
aTextEdit.SetText(GetDefaultString(nVal)); m_pTextEdit->SetText(GetDefaultString(nVal));
else else
{ {
aTextEdit.SetText(rSh.GetDropTxt(nVal)); m_pTextEdit->SetText(rSh.GetDropTxt(nVal));
aTextEdit.Enable(); m_pTextEdit->Enable();
aTextText.Enable(); m_pTextText->Enable();
} }
// Preview // Preview
pPict->SetValues( aTextEdit.GetText(), m_pPict->SetValues( m_pTextEdit->GetText(),
sal_uInt8( aLinesField.GetValue() ), sal_uInt8( m_pLinesField->GetValue() ),
sal_uInt16( aDistanceField.Denormalize( aDistanceField.GetValue( FUNIT_TWIP ) ) ) ); sal_uInt16( m_pDistanceField->Denormalize( m_pDistanceField->GetValue( FUNIT_TWIP ) ) ) );
ClickHdl(&aDropCapsBox); ClickHdl(m_pDropCapsBox);
bModified = sal_False; bModified = sal_False;
} }
...@@ -652,28 +668,28 @@ Page: CheckBox's Click-Handler ...@@ -652,28 +668,28 @@ Page: CheckBox's Click-Handler
IMPL_LINK_NOARG(SwDropCapsPage, ClickHdl) IMPL_LINK_NOARG(SwDropCapsPage, ClickHdl)
{ {
sal_Bool bChecked = aDropCapsBox.IsChecked(); sal_Bool bChecked = m_pDropCapsBox->IsChecked();
aWholeWordCB .Enable( bChecked && !bHtmlMode ); m_pWholeWordCB->Enable( bChecked && !bHtmlMode );
aSwitchText.Enable( bChecked && !aWholeWordCB.IsChecked() ); //aSwitchText.Enable( bChecked && !m_pWholeWordCB->IsChecked() );
aDropCapsField.Enable( bChecked && !aWholeWordCB.IsChecked() ); m_pDropCapsField->Enable( bChecked && !m_pWholeWordCB->IsChecked() );
aLinesText .Enable( bChecked ); //aLinesText .Enable( bChecked );
aLinesField .Enable( bChecked ); m_pLinesField->Enable( bChecked );
aDistanceText.Enable( bChecked ); //aDistanceText.Enable( bChecked );
aDistanceField.Enable( bChecked ); m_pDistanceField->Enable( bChecked );
aTemplateText .Enable( bChecked ); //aTemplateText .Enable( bChecked );
aTemplateBox .Enable( bChecked ); m_pTemplateBox->Enable( bChecked );
aTextEdit .Enable( bChecked && !bFormat ); m_pTextEdit->Enable( bChecked && !bFormat );
aTextText .Enable( bChecked && !bFormat ); //aTextText .Enable( bChecked && !bFormat );
if ( bChecked ) if ( bChecked )
{ {
ModifyHdl(&aDropCapsField); ModifyHdl(m_pDropCapsField);
aDropCapsField.GrabFocus(); m_pDropCapsField->GrabFocus();
} }
else else
pPict->SetText(aEmptyStr); m_pPict->SetText(OUString());
bModified = sal_True; bModified = sal_True;
...@@ -687,9 +703,9 @@ Page: CheckBox's Click-Handler ...@@ -687,9 +703,9 @@ Page: CheckBox's Click-Handler
IMPL_LINK_NOARG(SwDropCapsPage, WholeWordHdl) IMPL_LINK_NOARG(SwDropCapsPage, WholeWordHdl)
{ {
aDropCapsField.Enable( !aWholeWordCB.IsChecked() ); m_pDropCapsField->Enable( !m_pWholeWordCB->IsChecked() );
ModifyHdl(&aDropCapsField); ModifyHdl(m_pDropCapsField);
bModified = sal_True; bModified = sal_True;
...@@ -706,13 +722,13 @@ IMPL_LINK( SwDropCapsPage, ModifyHdl, Edit *, pEdit ) ...@@ -706,13 +722,13 @@ IMPL_LINK( SwDropCapsPage, ModifyHdl, Edit *, pEdit )
String sPreview; String sPreview;
// set text if applicable // set text if applicable
if (pEdit == &aDropCapsField) if (pEdit == m_pDropCapsField)
{ {
sal_uInt16 nVal; sal_uInt16 nVal;
bool bSetText = false; bool bSetText = false;
if (!aWholeWordCB.IsChecked()) if (!m_pWholeWordCB->IsChecked())
nVal = (sal_uInt16)aDropCapsField.GetValue(); nVal = (sal_uInt16)m_pDropCapsField->GetValue();
else else
nVal = 0; nVal = 0;
...@@ -724,7 +740,7 @@ IMPL_LINK( SwDropCapsPage, ModifyHdl, Edit *, pEdit ) ...@@ -724,7 +740,7 @@ IMPL_LINK( SwDropCapsPage, ModifyHdl, Edit *, pEdit )
sPreview = rSh.GetDropTxt(nVal); sPreview = rSh.GetDropTxt(nVal);
} }
String sEdit(aTextEdit.GetText()); String sEdit(m_pTextEdit->GetText());
if (sEdit.Len() && sPreview.CompareTo(sEdit, sEdit.Len()) != COMPARE_EQUAL) if (sEdit.Len() && sPreview.CompareTo(sEdit, sEdit.Len()) != COMPARE_EQUAL)
{ {
...@@ -733,23 +749,23 @@ IMPL_LINK( SwDropCapsPage, ModifyHdl, Edit *, pEdit ) ...@@ -733,23 +749,23 @@ IMPL_LINK( SwDropCapsPage, ModifyHdl, Edit *, pEdit )
} }
if (bSetText) if (bSetText)
aTextEdit.SetText(sPreview); m_pTextEdit->SetText(sPreview);
} }
else if (pEdit == &aTextEdit) // set quantity if applicable else if (pEdit == m_pTextEdit) // set quantity if applicable
{ {
sal_Int32 nTmp = aTextEdit.GetText().getLength(); sal_Int32 nTmp = m_pTextEdit->GetText().getLength();
aDropCapsField.SetValue(std::max((sal_uInt16)1, (sal_uInt16)nTmp)); m_pDropCapsField->SetValue(std::max((sal_uInt16)1, (sal_uInt16)nTmp));
sPreview = aTextEdit.GetText().copy(0, nTmp); sPreview = m_pTextEdit->GetText().copy(0, nTmp);
} }
// adjust image // adjust image
if (pEdit == &aDropCapsField || pEdit == &aTextEdit) if (pEdit == m_pDropCapsField || pEdit == m_pTextEdit)
pPict->SetText (sPreview); m_pPict->SetText (sPreview);
else if (pEdit == &aLinesField) else if (pEdit == m_pLinesField)
pPict->SetLines((sal_uInt8)aLinesField.GetValue()); m_pPict->SetLines((sal_uInt8)m_pLinesField->GetValue());
else else
pPict->SetDistance((sal_uInt16)aDistanceField.Denormalize(aDistanceField.GetValue(FUNIT_TWIP))); m_pPict->SetDistance((sal_uInt16)m_pDistanceField->Denormalize(m_pDistanceField->GetValue(FUNIT_TWIP)));
bModified = sal_True; bModified = sal_True;
...@@ -763,7 +779,7 @@ Page: Template-Box' Select-Handler. ...@@ -763,7 +779,7 @@ Page: Template-Box' Select-Handler.
IMPL_LINK_NOARG_INLINE_START(SwDropCapsPage, SelectHdl) IMPL_LINK_NOARG_INLINE_START(SwDropCapsPage, SelectHdl)
{ {
pPict->UpdatePaintSettings(); m_pPict->UpdatePaintSettings();
bModified = sal_True; bModified = sal_True;
return 0; return 0;
} }
...@@ -780,18 +796,18 @@ void SwDropCapsPage::FillSet( SfxItemSet &rSet ) ...@@ -780,18 +796,18 @@ void SwDropCapsPage::FillSet( SfxItemSet &rSet )
{ {
SwFmtDrop aFmt; SwFmtDrop aFmt;
sal_Bool bOn = aDropCapsBox.IsChecked(); sal_Bool bOn = m_pDropCapsBox->IsChecked();
if(bOn) if(bOn)
{ {
// quantity, lines, gap // quantity, lines, gap
aFmt.GetChars() = (sal_uInt8) aDropCapsField.GetValue(); aFmt.GetChars() = (sal_uInt8) m_pDropCapsField->GetValue();
aFmt.GetLines() = (sal_uInt8) aLinesField.GetValue(); aFmt.GetLines() = (sal_uInt8) m_pLinesField->GetValue();
aFmt.GetDistance() = (sal_uInt16) aDistanceField.Denormalize(aDistanceField.GetValue(FUNIT_TWIP)); aFmt.GetDistance() = (sal_uInt16) m_pDistanceField->Denormalize(m_pDistanceField->GetValue(FUNIT_TWIP));
aFmt.GetWholeWord() = aWholeWordCB.IsChecked(); aFmt.GetWholeWord() = m_pWholeWordCB->IsChecked();
// template // template
if (aTemplateBox.GetSelectEntryPos()) if (m_pTemplateBox->GetSelectEntryPos())
aFmt.SetCharFmt(rSh.GetCharStyle(aTemplateBox.GetSelectEntry())); aFmt.SetCharFmt(rSh.GetCharStyle(m_pTemplateBox->GetSelectEntry()));
} }
else else
{ {
...@@ -808,12 +824,12 @@ void SwDropCapsPage::FillSet( SfxItemSet &rSet ) ...@@ -808,12 +824,12 @@ void SwDropCapsPage::FillSet( SfxItemSet &rSet )
// hard text formatting // hard text formatting
// Bug 24974: in designer/template catalog this doesn't make sense!! // Bug 24974: in designer/template catalog this doesn't make sense!!
if( !bFormat && aDropCapsBox.IsChecked() ) if( !bFormat && m_pDropCapsBox->IsChecked() )
{ {
String sText(aTextEdit.GetText()); String sText(m_pTextEdit->GetText());
if (!aWholeWordCB.IsChecked()) if (!m_pWholeWordCB->IsChecked())
sText.Erase( static_cast< xub_StrLen >(aDropCapsField.GetValue())); sText.Erase( static_cast< xub_StrLen >(m_pDropCapsField->GetValue()));
SfxStringItem aStr(FN_PARAM_1, sText); SfxStringItem aStr(FN_PARAM_1, sText);
rSet.Put( aStr ); rSet.Put( aStr );
......
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#ifndef _DRPCPS_HRC
#define _DRPCPS_HRC
// #define ******************************************************************
#define FT_DROPCAPS 1
#define FLD_DROPCAPS 2
#define TXT_LINES 3
#define FLD_LINES 4
#define TXT_DISTANCE 5
#define FLD_DISTANCE 6
#define CNT_PICT 7
#define TXT_TEXT 8
#define EDT_TEXT 9
#define TXT_TEMPLATE 10
#define BOX_TEMPLATE 11
#define FL_SETTINGS 12
#define CB_SWITCH 13
#define FL_CONTENT 15
#define CB_WORD 16
#endif
// ********************************************************************** EOF
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -19,7 +19,6 @@ ...@@ -19,7 +19,6 @@
#include "globals.hrc" #include "globals.hrc"
#include "chrdlg.hrc" #include "chrdlg.hrc"
#include "drpcps.hrc"
#include "helpid.h" #include "helpid.h"
// TabDialog **************************************************************** // TabDialog ****************************************************************
TabDialog DLG_DROPCAPS TabDialog DLG_DROPCAPS
...@@ -42,146 +41,7 @@ TabDialog DLG_DROPCAPS ...@@ -42,146 +41,7 @@ TabDialog DLG_DROPCAPS
}; };
}; };
}; };
// TabPage ******************************************************************
TabPage TP_DROPCAPS
{
HelpID = HID_DROPCAPS ;
Size = MAP_APPFONT ( TP_WIDTH , TP_HEIGHT ) ;
Hide = TRUE ;
CheckBox CB_SWITCH
{
HelpID = "sw:CheckBox:TP_DROPCAPS:CB_SWITCH";
Pos = MAP_APPFONT ( 12 , 14 ) ;
Size = MAP_APPFONT ( 90 , 10 ) ;
Text [ en-US ] = "Display drop caps" ;
};
CheckBox CB_WORD
{
HelpID = "sw:CheckBox:TP_DROPCAPS:CB_WORD";
Pos = MAP_APPFONT ( 12 , 28 ) ;
Size = MAP_APPFONT ( 90 , 10 ) ;
Text [ en-US ] = "~Whole word" ;
};
FixedText FT_DROPCAPS
{
Pos = MAP_APPFONT ( 12 , 44 ) ;
Size = MAP_APPFONT ( 70 , 8 ) ;
Text [ en-US ] = "Number of ~characters:" ;
};
NumericField FLD_DROPCAPS
{
HelpID = "sw:NumericField:TP_DROPCAPS:FLD_DROPCAPS";
Border = TRUE ;
First = 1 ;
Last = 9 ;
Left = TRUE ;
Maximum = 9 ;
Minimum = 1 ;
Pos = MAP_APPFONT ( 89 , 42 ) ;
Repeat = TRUE ;
Size = MAP_APPFONT ( 36 , 12 ) ;
Spin = TRUE ;
TabStop = TRUE ;
};
FixedText TXT_LINES
{
Left = TRUE ;
Pos = MAP_APPFONT ( 12 , 60 ) ;
Size = MAP_APPFONT ( 70 , 8 ) ;
Text [ en-US ] = "~Lines" ;
};
NumericField FLD_LINES
{
HelpID = "sw:NumericField:TP_DROPCAPS:FLD_LINES";
Border = TRUE ;
First = 2 ;
Last = 9 ;
Left = TRUE ;
Maximum = 9 ;
Minimum = 2 ;
Pos = MAP_APPFONT ( 89 , 58 ) ;
Repeat = TRUE ;
Size = MAP_APPFONT ( 36 , 12 ) ;
Spin = TRUE ;
TabStop = TRUE ;
};
FixedText TXT_DISTANCE
{
Left = TRUE ;
Pos = MAP_APPFONT ( 12 , 76 ) ;
Size = MAP_APPFONT ( 70 , 8 ) ;
Text [ en-US ] = "Space to text" ;
};
MetricField FLD_DISTANCE
{
HelpID = "sw:MetricField:TP_DROPCAPS:FLD_DISTANCE";
Border = TRUE ;
DecimalDigits = 2 ;
First = 0 ;
Last = 200 ;
Left = TRUE ;
Maximum = 200 ;
Minimum = 0 ;
Pos = MAP_APPFONT ( 89 , 74 ) ;
Repeat = TRUE ;
Size = MAP_APPFONT ( 36 , 12 ) ;
Spin = TRUE ;
SpinSize = 10 ;
TabStop = TRUE ;
Unit = FUNIT_CM ;
};
FixedLine FL_SETTINGS
{
Pos = MAP_APPFONT ( 6 , 3 ) ;
Size = MAP_APPFONT ( 125 , 8 ) ;
Text [ en-US ] = "Settings" ;
};
Control CNT_PICT
{
Border = TRUE ;
Pos = MAP_APPFONT ( 143 , 7 ) ;
Size = MAP_APPFONT ( 105 , 80 ) ;
};
FixedText TXT_TEXT
{
Left = TRUE ;
Pos = MAP_APPFONT ( 12 , 102 ) ;
Size = MAP_APPFONT ( 125 , 8 ) ;
Text [ en-US ] = "~Text" ;
};
Edit EDT_TEXT
{
HelpID = "sw:Edit:TP_DROPCAPS:EDT_TEXT";
Border = TRUE ;
Left = TRUE ;
Pos = MAP_APPFONT ( 143 , 100 ) ;
Size = MAP_APPFONT ( 105 , 12 ) ;
TabStop = TRUE ;
MaxTextLength = 9 ;
};
FixedText TXT_TEMPLATE
{
Left = TRUE ;
Pos = MAP_APPFONT ( 12 , 118 ) ;
Size = MAP_APPFONT ( 125 , 8 ) ;
Text [ en-US ] = "Character St~yle" ;
};
ListBox BOX_TEMPLATE
{
HelpID = "sw:ListBox:TP_DROPCAPS:BOX_TEMPLATE";
Border = TRUE ;
DropDown = TRUE ;
Pos = MAP_APPFONT ( 143 , 116 ) ;
Size = MAP_APPFONT ( 105 , 61 ) ;
TabStop = TRUE ;
};
FixedLine FL_CONTENT
{
Pos = MAP_APPFONT ( 6 , 89 ) ;
Size = MAP_APPFONT ( 248 , 8 ) ;
Text [ en-US ] = "Contents" ;
};
};
// ********************************************************************** EOF // ********************************************************************** EOF
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -53,24 +53,25 @@ class SwDropCapsPict; ...@@ -53,24 +53,25 @@ class SwDropCapsPict;
class SwDropCapsPage : public SfxTabPage class SwDropCapsPage : public SfxTabPage
{ {
friend class SwDropCapsPict; friend class SwDropCapsPict;
// TODO: Work in progress
FixedLine aSettingsFL; VclGrid* m_pSwDropCapsGrid;
CheckBox aDropCapsBox; //FixedLine aSettingsFL;
CheckBox aWholeWordCB; CheckBox* m_pDropCapsBox;
FixedText aSwitchText; CheckBox* m_pWholeWordCB;
NumericField aDropCapsField; //FixedText aSwitchText;
FixedText aLinesText; NumericField* m_pDropCapsField;
NumericField aLinesField; //FixedText aLinesText;
FixedText aDistanceText; NumericField* m_pLinesField;
MetricField aDistanceField; //FixedText aDistanceText;
MetricField* m_pDistanceField;
FixedLine aContentFL;
FixedText aTextText; VclFrame* m_pContentFL;
Edit aTextEdit; FixedText* m_pTextText;
FixedText aTemplateText; Edit* m_pTextEdit;
ListBox aTemplateBox; //FixedText aTemplateText;
ListBox* m_pTemplateBox;
SwDropCapsPict *pPict;
SwDropCapsPict* m_pPict;
sal_Bool bModified; sal_Bool bModified;
sal_Bool bFormat; sal_Bool bFormat;
...@@ -101,6 +102,9 @@ public: ...@@ -101,6 +102,9 @@ public:
virtual void Reset (const SfxItemSet &rSet); virtual void Reset (const SfxItemSet &rSet);
void SetFormat(sal_Bool bSet){bFormat = bSet;} void SetFormat(sal_Bool bSet){bFormat = bSet;}
protected:
void aSwitchText(sal_Bool bChecked);
//void SW_RES(int arg1);
}; };
#endif #endif
......
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<!-- interface-requires gtk+ 3.0 -->
<object class="GtkAdjustment" id="adjustmentFLD_DISTANCE">
<property name="upper">2</property>
<property name="step_increment">0.10000000000000001</property>
<property name="page_increment">1</property>
</object>
<object class="GtkAdjustment" id="adjustmentFLD_DROPCAPS">
<property name="lower">1</property>
<property name="upper">9</property>
<property name="step_increment">1</property>
<property name="page_increment">1</property>
</object>
<object class="GtkAdjustment" id="adjustmentFLD_LINES">
<property name="lower">2</property>
<property name="upper">9</property>
<property name="value">2</property>
<property name="step_increment">1</property>
<property name="page_increment">10</property>
</object>
<object class="GtkGrid" id="DropCapPage">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="hexpand">True</property>
<property name="border_width">6</property>
<property name="row_spacing">12</property>
<property name="column_spacing">6</property>
<child>
<object class="GtkBox" id="box1">
<property name="visible">True</property>
<property name="can_focus">False</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="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="top_padding">6</property>
<property name="left_padding">12</property>
<child>
<object class="GtkGrid" id="grid2">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="row_spacing">12</property>
<property name="column_spacing">6</property>
<child>
<object class="GtkCheckButton" id="checkCB_SWITCH">
<property name="label" translatable="yes">_Display drop caps</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="receives_default">False</property>
<property name="use_underline">True</property>
<property name="xalign">0</property>
<property name="draw_indicator">True</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="GtkCheckButton" id="checkCB_WORD">
<property name="label" translatable="yes">_Whole word</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="receives_default">False</property>
<property name="use_underline">True</property>
<property name="xalign">0</property>
<property name="draw_indicator">True</property>
</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="GtkLabel" id="labelFT_DROPCAPS">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">Number of _characters:</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">spinFLD_DROPCAPS</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="GtkLabel" id="labelTXT_LINES">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">_Lines:</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">spinFLD_LINES</property>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">3</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="labelTXT_DISTANCE">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">_Space to text:</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">spinFLD_DISTANCE:0cm</property>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">4</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkSpinButton" id="spinFLD_DROPCAPS">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="invisible_char"></property>
<property name="adjustment">adjustmentFLD_DROPCAPS</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">2</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkSpinButton" id="spinFLD_LINES">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="invisible_char"></property>
<property name="adjustment">adjustmentFLD_LINES</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">3</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkSpinButton" id="spinFLD_DISTANCE:0cm">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="invisible_char"></property>
<property name="adjustment">adjustmentFLD_DISTANCE</property>
<property name="digits">2</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">4</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="labelFL_SETTING">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">Settings</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>
<child>
<object class="GtkFrame" id="frameFL_CONTENT">
<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="alignment2">
<property name="visible">True</property>
<property name="can_focus">False</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="row_spacing">12</property>
<property name="column_spacing">6</property>
<child>
<object class="GtkLabel" id="labelTXT_TEXT">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">_Text:</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">entryEDT_TEXT</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="labelTXT_TEMPLATE">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">Character st_yle:</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">comboBOX_TEMPLATE</property>
</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="GtkEntry" id="entryEDT_TEXT">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="max_length">9</property>
<property name="invisible_char"></property>
<property name="invisible_char_set">True</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="GtkComboBox" id="comboBOX_TEMPLATE">
<property name="visible">True</property>
<property name="can_focus">False</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>
</object>
</child>
</object>
</child>
<child type="label">
<object class="GtkLabel" id="labelFL_CONTENT">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">Contents</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">1</property>
</packing>
</child>
</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="swuilo-SwDropCapsPict" id="drawingareaWN_EXAMPLE">
<property name="visible">True</property>
<property name="can_focus">False</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>
</object>
<object class="GtkSizeGroup" id="sizegroup1">
<widgets>
<widget name="checkCB_SWITCH"/>
<widget name="checkCB_WORD"/>
<widget name="labelFT_DROPCAPS"/>
<widget name="labelTXT_LINES"/>
<widget name="labelTXT_DISTANCE"/>
<widget name="labelTXT_TEXT"/>
<widget name="labelTXT_TEMPLATE"/>
</widgets>
</object>
<object class="GtkSizeGroup" id="sizegroup2">
<widgets>
<widget name="spinFLD_DROPCAPS"/>
<widget name="spinFLD_LINES"/>
<widget name="spinFLD_DISTANCE:0cm"/>
<widget name="entryEDT_TEXT"/>
<widget name="comboBOX_TEMPLATE"/>
</widgets>
</object>
</interface>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment