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

Convert Calc sheet page style to Widget UI

Change-Id: I6714ccc710d266a047032166c738063602e6e30d
Reviewed-on: https://gerrit.libreoffice.org/3140Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 5a5777f0
...@@ -16,6 +16,7 @@ $(eval $(call gb_UI_add_uifiles,modules/scalc,\ ...@@ -16,6 +16,7 @@ $(eval $(call gb_UI_add_uifiles,modules/scalc,\
sc/uiconfig/scalc/ui/insertname \ sc/uiconfig/scalc/ui/insertname \
sc/uiconfig/scalc/ui/insertsheet \ sc/uiconfig/scalc/ui/insertsheet \
sc/uiconfig/scalc/ui/printeroptions \ sc/uiconfig/scalc/ui/printeroptions \
sc/uiconfig/scalc/ui/sheetprintpage \
sc/uiconfig/scalc/ui/sortcriteriapage \ sc/uiconfig/scalc/ui/sortcriteriapage \
sc/uiconfig/scalc/ui/sortkey \ sc/uiconfig/scalc/ui/sortkey \
sc/uiconfig/scalc/ui/sortoptionspage \ sc/uiconfig/scalc/ui/sortoptionspage \
......
...@@ -975,7 +975,7 @@ ...@@ -975,7 +975,7 @@
#define RID_SCDLG_PIVOTSUBT (SC_DIALOGS_START + 38) #define RID_SCDLG_PIVOTSUBT (SC_DIALOGS_START + 38)
#define RID_SCDLG_NEWSCENARIO (SC_DIALOGS_START + 39) #define RID_SCDLG_NEWSCENARIO (SC_DIALOGS_START + 39)
#define RID_SCDLG_INSERT_TABLE (SC_DIALOGS_START + 42) #define RID_SCDLG_INSERT_TABLE (SC_DIALOGS_START + 42)
#define RID_SCPAGE_TABLE (SC_DIALOGS_START + 43)
#define RID_SCPAGE_AREAS (SC_DIALOGS_START + 44) #define RID_SCPAGE_AREAS (SC_DIALOGS_START + 44)
#define RID_SCDLG_STYLES_PAR (SC_DIALOGS_START + 46) #define RID_SCDLG_STYLES_PAR (SC_DIALOGS_START + 46)
#define RID_SCDLG_STYLES_PAGE (SC_DIALOGS_START + 48) #define RID_SCDLG_STYLES_PAGE (SC_DIALOGS_START + 48)
......
...@@ -63,36 +63,29 @@ private: ...@@ -63,36 +63,29 @@ private:
void ShowImage(); void ShowImage();
private: private:
FixedLine aFlPageDir; RadioButton* m_pBtnTopDown;
RadioButton aBtnTopDown; RadioButton* m_pBtnLeftRight;
RadioButton aBtnLeftRight; FixedImage* m_pBmpPageDir;
FixedImage aBmpPageDir; CheckBox* m_pBtnPageNo;
Image aImgLeftRight; NumericField* m_pEdPageNo;
Image aImgTopDown;
CheckBox aBtnPageNo;
NumericField aEdPageNo;
FixedLine aFlPrint; CheckBox* m_pBtnHeaders;
CheckBox aBtnHeaders; CheckBox* m_pBtnGrid;
CheckBox aBtnGrid; CheckBox* m_pBtnNotes;
CheckBox aBtnNotes; CheckBox* m_pBtnObjects;
CheckBox aBtnObjects; CheckBox* m_pBtnCharts;
CheckBox aBtnCharts; CheckBox* m_pBtnDrawings;
CheckBox aBtnDrawings; CheckBox* m_pBtnFormulas;
CheckBox aBtnFormulas; CheckBox* m_pBtnNullVals;
CheckBox aBtnNullVals;
FixedLine aFlScale; ListBox* m_pLbScaleMode;
FixedText aFtScaleMode; VclHBox* m_pBxScaleAll;
ListBox aLbScaleMode; MetricField* m_pEdScaleAll;
FixedText aFtScaleAll; VclGrid* m_pGrHeightWidth;
MetricField aEdScaleAll; NumericField* m_pEdScalePageWidth;
FixedText aFtScalePageWidth; NumericField* m_pEdScalePageHeight;
EmptyNumericField aEdScalePageWidth; VclHBox* m_pBxScalePageNum;
FixedText aFtScalePageHeight; NumericField* m_pEdScalePageNum;
EmptyNumericField aEdScalePageHeight;
FixedText aFtScalePageNum;
NumericField aEdScalePageNum;
private: private:
//------------------------------------ //------------------------------------
......
...@@ -29,42 +29,8 @@ ...@@ -29,42 +29,8 @@
//================================================ //================================================
// TabPage: Tabelle // TabPage: Tabelle
#define BTN_GRID 10 #define IMG_LEFTRIGHT (SC_DIALOGS_START + 43 + 23)
#define BTN_HEADER 11 #define IMG_TOPDOWN (SC_DIALOGS_START + 43 + 24)
#define BTN_NOTES 12
#define BTN_CHARTS 13
#define BTN_OBJECTS 14
#define BTN_DRAWINGS 15
#define BTN_FORMULAS 16
#define BTN_NULLVALS 17
#define FL_PRINT 19
#define BTN_TOPDOWN 20
#define BTN_LEFTRIGHT 21
#define BMP_PAGEDIR 22
#define IMG_LEFTRIGHT 23
#define IMG_TOPDOWN 24
#define BTN_PAGENO 25
#define ED_PAGENO 26
#define FL_PAGEDIR 29
#define FT_SCALEMODE 30
#define LB_SCALEMODE 31
#define ED_SCALEALL 32
#define ED_SCALEPAGENUM 34
#define ED_SCALEPAGEWIDTH 35
#define ED_SCALEPAGEHEIGHT 36
#define FL_SCALE 39
#define FT_SCALEFACTOR 51
#define FT_SCALEPAGEWIDTH 52
#define FT_SCALEPAGEHEIGHT 53
#define FT_SCALEPAGENUM 54
// List box entries "Scaling mode"
#define SC_TPTABLE_SCALE_PERCENT 0
#define SC_TPTABLE_SCALE_TO 1
#define SC_TPTABLE_SCALE_TO_PAGES 2
//================================================ //================================================
// Dialog: Druckbereiche // Dialog: Druckbereiche
......
...@@ -150,254 +150,16 @@ ModelessDialog RID_SCDLG_AREAS ...@@ -150,254 +150,16 @@ ModelessDialog RID_SCDLG_AREAS
}; };
}; };
TabPage RID_SCPAGE_TABLE Image IMG_LEFTRIGHT
{
Hide = TRUE ;
HelpId = HID_SCPAGE_TABLE ;
SVLook = TRUE ;
Pos = MAP_APPFONT ( 0 , 0 ) ;
Size = MAP_APPFONT ( TP_WIDTH , TP_HEIGHT ) ;
CheckBox BTN_HEADER
{
HelpID = "sc:CheckBox:RID_SCPAGE_TABLE:BTN_HEADER";
Pos = MAP_APPFONT ( 12 , 73 ) ;
Size = MAP_APPFONT ( 142 , 10 ) ;
Text [ en-US ] = "~Column and row headers" ;
TabStop = TRUE ;
};
CheckBox BTN_GRID
{
HelpID = "sc:CheckBox:RID_SCPAGE_TABLE:BTN_GRID";
Pos = MAP_APPFONT ( 12 , 87 ) ;
Size = MAP_APPFONT ( 142 , 10 ) ;
Text [ en-US ] = "~Grid" ;
TabStop = TRUE ;
};
CheckBox BTN_NOTES
{
HelpID = "sc:CheckBox:RID_SCPAGE_TABLE:BTN_NOTES";
Pos = MAP_APPFONT ( 12 , 101 ) ;
Size = MAP_APPFONT ( 142 , 10 ) ;
Text [ en-US ] = "~Comments" ;
TabStop = TRUE ;
};
CheckBox BTN_OBJECTS
{
HelpID = "sc:CheckBox:RID_SCPAGE_TABLE:BTN_OBJECTS";
Pos = MAP_APPFONT ( 12 , 115 ) ;
Size = MAP_APPFONT ( 142 , 10 ) ;
Text [ en-US ] = "~Objects/graphics" ;
TabStop = TRUE ;
};
CheckBox BTN_CHARTS
{
HelpID = "sc:CheckBox:RID_SCPAGE_TABLE:BTN_CHARTS";
Pos = MAP_APPFONT ( 160 , 73 ) ;
Size = MAP_APPFONT ( 91 , 10 ) ;
Text [ en-US ] = "Ch~arts" ;
TabStop = TRUE ;
};
CheckBox BTN_DRAWINGS
{
HelpID = "sc:CheckBox:RID_SCPAGE_TABLE:BTN_DRAWINGS";
Pos = MAP_APPFONT ( 160 , 87 ) ;
Size = MAP_APPFONT ( 91 , 10 ) ;
Text [ en-US ] = "~Drawing objects" ;
TabStop = TRUE ;
};
CheckBox BTN_FORMULAS
{
HelpID = "sc:CheckBox:RID_SCPAGE_TABLE:BTN_FORMULAS";
Pos = MAP_APPFONT ( 160 , 101 ) ;
Size = MAP_APPFONT ( 91 , 10 ) ;
Text [ en-US ] = "~Formulas" ;
TabStop = TRUE ;
};
CheckBox BTN_NULLVALS
{
HelpID = "sc:CheckBox:RID_SCPAGE_TABLE:BTN_NULLVALS";
Pos = MAP_APPFONT ( 160 , 115 ) ;
Size = MAP_APPFONT ( 91 , 10 ) ;
Text [ en-US ] = "Zero ~values" ;
TabStop = TRUE ;
};
FixedLine FL_PRINT
{
Pos = MAP_APPFONT ( 6 , 62 ) ;
Size = MAP_APPFONT ( 248 , 8 ) ;
Text [ en-US ] = "Print" ;
};
RadioButton BTN_TOPDOWN
{
HelpID = "sc:RadioButton:RID_SCPAGE_TABLE:BTN_TOPDOWN";
Pos = MAP_APPFONT ( 12 , 14 ) ;
Size = MAP_APPFONT ( 142 , 10 ) ;
Text [ en-US ] = "~Top to bottom, then right" ;
TabStop = TRUE ;
};
RadioButton BTN_LEFTRIGHT
{
HelpID = "sc:RadioButton:RID_SCPAGE_TABLE:BTN_LEFTRIGHT";
Pos = MAP_APPFONT ( 12 , 28 ) ;
Size = MAP_APPFONT ( 142 , 10 ) ;
Text [ en-US ] = "~Left to right, then down" ;
TabStop = TRUE ;
};
FixedImage BMP_PAGEDIR
{
Pos = MAP_APPFONT ( 160 , 14 ) ;
Size = MAP_APPFONT ( 25 , 25 ) ;
};
Image IMG_LEFTRIGHT
{ {
ImageBitmap = Bitmap { File = "lftrgt.png" ; }; ImageBitmap = Bitmap { File = "lftrgt.png" ; };
MaskColor = STD_MASKCOLOR; MaskColor = STD_MASKCOLOR;
}; };
Image IMG_TOPDOWN Image IMG_TOPDOWN
{ {
ImageBitmap = Bitmap { File = "topdown.png" ; }; ImageBitmap = Bitmap { File = "topdown.png" ; };
MaskColor = STD_MASKCOLOR; MaskColor = STD_MASKCOLOR;
}; };
CheckBox BTN_PAGENO
{
HelpID = "sc:CheckBox:RID_SCPAGE_TABLE:BTN_PAGENO";
Pos = MAP_APPFONT ( 12 , 46 ) ;
Size = MAP_APPFONT ( 90 , 10 ) ;
Text [ en-US ] = "First ~page number" ;
TabStop = TRUE ;
};
NumericField ED_PAGENO
{
HelpID = "sc:NumericField:RID_SCPAGE_TABLE:ED_PAGENO";
Border = TRUE ;
Pos = MAP_APPFONT ( 106 , 44 ) ;
Size = MAP_APPFONT ( 30 , 12 ) ;
TabStop = TRUE ;
Spin = TRUE ;
Minimum = 1 ;
Maximum = 9999 ;
SpinSize = 1 ;
Repeat = TRUE ;
};
FixedLine FL_PAGEDIR
{
Pos = MAP_APPFONT ( 6 , 3 ) ;
Size = MAP_APPFONT ( 248 , 8 ) ;
Text [ en-US ] = "Page order" ;
};
FixedText FT_SCALEMODE
{
Pos = MAP_APPFONT( 12, 144 );
Size = MAP_APPFONT( 124, 8 );
Text [ en-US ] = "Scaling ~mode";
};
ListBox LB_SCALEMODE
{
HelpID = "sc:ListBox:RID_SCPAGE_TABLE:LB_SCALEMODE";
Border = TRUE;
Pos = MAP_APPFONT( 12, 155 );
Size = MAP_APPFONT( 124, 60 );
DropDown = TRUE;
StringList [ en-US ] =
{
< "Reduce/enlarge printout"; SC_TPTABLE_SCALE_PERCENT; >;
< "Fit print range(s) to width/height"; SC_TPTABLE_SCALE_TO; >;
< "Fit print range(s) on number of pages"; SC_TPTABLE_SCALE_TO_PAGES; >;
};
};
MetricField ED_SCALEALL
{
HelpID = "sc:MetricField:RID_SCPAGE_TABLE:ED_SCALEALL";
Border = TRUE ;
Pos = MAP_APPFONT ( 218 , 155 ) ;
Size = MAP_APPFONT ( 30 , 12 ) ;
TabStop = TRUE ;
Spin = TRUE ;
Repeat = TRUE ;
Minimum = 10 ;
Maximum = 400 ;
First = 15 ;
Last = 200 ;
SpinSize = 1 ;
Unit = FUNIT_CUSTOM ;
CustomUnitText = "%" ;
};
NumericField ED_SCALEPAGEWIDTH
{
HelpID = "sc:NumericField:RID_SCPAGE_TABLE:ED_SCALEPAGEWIDTH";
Border = TRUE ;
Pos = MAP_APPFONT ( 218 , 144 ) ;
Size = MAP_APPFONT ( 30 , 12 ) ;
TabStop = TRUE ;
Hide = TRUE ;
Spin = TRUE ;
Repeat = TRUE ;
Minimum = 1 ;
Maximum = 1000 ;
SpinSize = 1 ;
};
NumericField ED_SCALEPAGEHEIGHT
{
HelpID = "sc:NumericField:RID_SCPAGE_TABLE:ED_SCALEPAGEHEIGHT";
Border = TRUE ;
Pos = MAP_APPFONT ( 218 , 160 ) ;
Size = MAP_APPFONT ( 30 , 12 ) ;
TabStop = TRUE ;
Hide = TRUE ;
Spin = TRUE ;
Repeat = TRUE ;
Minimum = 1 ;
Maximum = 1000 ;
SpinSize = 1 ;
};
NumericField ED_SCALEPAGENUM
{
HelpID = "sc:NumericField:RID_SCPAGE_TABLE:ED_SCALEPAGENUM";
Border = TRUE ;
Pos = MAP_APPFONT ( 218 , 155 ) ;
Size = MAP_APPFONT ( 30 , 12 ) ;
TabStop = TRUE ;
Hide = TRUE ;
Spin = TRUE ;
Repeat = TRUE ;
Minimum = 1 ;
Maximum = 1000 ;
SpinSize = 1 ;
};
FixedText FT_SCALEFACTOR
{
Pos = MAP_APPFONT( 148, 157 );
Size = MAP_APPFONT( 68 , 8 );
Hide = TRUE;
Text [ en-US ] = "~Scaling factor";
};
FixedText FT_SCALEPAGEWIDTH
{
Pos = MAP_APPFONT( 148, 146 );
Size = MAP_APPFONT( 68 , 8 );
Hide = TRUE;
Text [ en-US ] = "~Width in pages";
};
FixedText FT_SCALEPAGEHEIGHT
{
Pos = MAP_APPFONT( 148, 162 );
Size = MAP_APPFONT( 68 , 8 );
Hide = TRUE;
Text [ en-US ] = "H~eight in pages";
};
FixedText FT_SCALEPAGENUM
{
Pos = MAP_APPFONT( 148, 157 );
Size = MAP_APPFONT( 68, 8 );
Hide = TRUE;
Text [ en-US ] = "N~umber of pages";
};
FixedLine FL_SCALE
{
Pos = MAP_APPFONT ( 6 , 131 ) ;
Size = MAP_APPFONT ( 248 , 8 ) ;
Text [ en-US ] = "Scale" ;
};
};
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -104,63 +104,57 @@ static sal_Bool lcl_PutBoolItem( sal_uInt16 nWhich, ...@@ -104,63 +104,57 @@ static sal_Bool lcl_PutBoolItem( sal_uInt16 nWhich,
#define GET_USHORT(sid,set) (sal_uInt16)((const SfxUInt16Item&)((set).Get(GetWhich((sid))))).GetValue() #define GET_USHORT(sid,set) (sal_uInt16)((const SfxUInt16Item&)((set).Get(GetWhich((sid))))).GetValue()
#define GET_SHOW(sid,set) ( ScVObjMode( ((const ScViewObjectModeItem&)((set).Get(GetWhich((sid))))).GetValue() ) \ #define GET_SHOW(sid,set) ( ScVObjMode( ((const ScViewObjectModeItem&)((set).Get(GetWhich((sid))))).GetValue() ) \
== VOBJ_MODE_SHOW ) == VOBJ_MODE_SHOW )
// List box entries "Scaling mode"
#define SC_TPTABLE_SCALE_PERCENT 0
#define SC_TPTABLE_SCALE_TO 1
#define SC_TPTABLE_SCALE_TO_PAGES 2
//======================================================================== //========================================================================
ScTablePage::ScTablePage( Window* pParent, const SfxItemSet& rCoreAttrs ) : ScTablePage::ScTablePage( Window* pParent, const SfxItemSet& rCoreAttrs ) :
SfxTabPage( pParent, ScResId( RID_SCPAGE_TABLE ), rCoreAttrs ), SfxTabPage( pParent, "SheetPrintPage","modules/scalc/ui/sheetprintpage.ui", rCoreAttrs )
aFlPageDir ( this, ScResId( FL_PAGEDIR ) ),
aBtnTopDown ( this, ScResId( BTN_TOPDOWN ) ),
aBtnLeftRight ( this, ScResId( BTN_LEFTRIGHT ) ),
aBmpPageDir ( this, ScResId( BMP_PAGEDIR ) ),
aImgLeftRight ( ScResId( IMG_LEFTRIGHT ) ),
aImgTopDown ( ScResId( IMG_TOPDOWN ) ),
aBtnPageNo ( this, ScResId( BTN_PAGENO ) ),
aEdPageNo ( this, ScResId( ED_PAGENO ) ),
aFlPrint ( this, ScResId( FL_PRINT ) ),
aBtnHeaders ( this, ScResId( BTN_HEADER ) ),
aBtnGrid ( this, ScResId( BTN_GRID ) ),
aBtnNotes ( this, ScResId( BTN_NOTES ) ),
aBtnObjects ( this, ScResId( BTN_OBJECTS ) ),
aBtnCharts ( this, ScResId( BTN_CHARTS ) ),
aBtnDrawings ( this, ScResId( BTN_DRAWINGS ) ),
aBtnFormulas ( this, ScResId( BTN_FORMULAS ) ),
aBtnNullVals ( this, ScResId( BTN_NULLVALS ) ),
aFlScale ( this, ScResId( FL_SCALE ) ),
aFtScaleMode ( this, ScResId( FT_SCALEMODE ) ),
aLbScaleMode ( this, ScResId( LB_SCALEMODE ) ),
aFtScaleAll ( this, ScResId( FT_SCALEFACTOR ) ),
aEdScaleAll ( this, ScResId( ED_SCALEALL ) ),
aFtScalePageWidth ( this, ScResId( FT_SCALEPAGEWIDTH ) ),
aEdScalePageWidth ( this, ScResId( ED_SCALEPAGEWIDTH ) ),
aFtScalePageHeight ( this, ScResId( FT_SCALEPAGEHEIGHT ) ),
aEdScalePageHeight ( this, ScResId( ED_SCALEPAGEHEIGHT ) ),
aFtScalePageNum ( this, ScResId( FT_SCALEPAGENUM ) ),
aEdScalePageNum ( this, ScResId( ED_SCALEPAGENUM ) )
{ {
SetExchangeSupport(); get(m_pBtnTopDown,"radioBTN_TOPDOWN");
aBtnPageNo.SetClickHdl( PAGENO_HDL ); get(m_pBtnLeftRight,"radioBTN_LEFTRIGHT");
aBtnTopDown.SetClickHdl( PAGEDIR_HDL ); get(m_pBmpPageDir,"imageBMP_PAGEDIR");
aBtnLeftRight.SetClickHdl( PAGEDIR_HDL ); get(m_pBtnPageNo,"checkBTN_PAGENO");
aLbScaleMode.SetSelectHdl( SCALE_HDL ); get(m_pEdPageNo,"spinED_PAGENO");
get(m_pBtnHeaders,"checkBTN_HEADER");
get(m_pBtnGrid,"checkBTN_GRID");
get(m_pBtnNotes,"checkBTN_NOTES");
get(m_pBtnObjects,"checkBTN_OBJECTS");
get(m_pBtnCharts,"checkBTN_CHARTS");
get(m_pBtnDrawings,"checkBTN_DRAWINGS");
get(m_pBtnFormulas,"checkBTN_FORMULAS");
get(m_pBtnNullVals,"checkBTN_NULLVALS");
get(m_pLbScaleMode,"comboLB_SCALEMODE");
get(m_pBxScaleAll,"boxSCALEALL");
get(m_pEdScaleAll,"spinED_SCALEALL");
get(m_pGrHeightWidth,"gridWH");
get(m_pEdScalePageWidth,"spinED_SCALEPAGEWIDTH");
get(m_pEdScalePageHeight,"spinED_SCALEPAGEHEIGHT");
get(m_pBxScalePageNum,"boxNP");
get(m_pEdScalePageNum,"spinED_SCALEPAGENUM");
Size aBmpSize = Image( ScResId( IMG_LEFTRIGHT ) ).GetSizePixel(); SetExchangeSupport();
aBmpPageDir.SetOutputSizePixel( aBmpSize );
FreeResource(); m_pBtnPageNo->SetClickHdl( PAGENO_HDL );
m_pBtnTopDown->SetClickHdl( PAGEDIR_HDL );
m_pBtnLeftRight->SetClickHdl( PAGEDIR_HDL );
m_pLbScaleMode->SetSelectHdl( SCALE_HDL );
aEdPageNo.SetAccessibleName(aBtnPageNo.GetText());
aEdPageNo.SetAccessibleRelationLabeledBy(&aBtnPageNo);
} }
// ----------------------------------------------------------------------- // -----------------------------------------------------------------------
void ScTablePage::ShowImage() void ScTablePage::ShowImage()
{ {
bool bLeftRight = aBtnLeftRight.IsChecked(); Image aImg = Image( ScResId( (m_pBtnLeftRight->IsChecked()) ? IMG_LEFTRIGHT : IMG_TOPDOWN ) );
aBmpPageDir.SetImage( (bLeftRight ? aImgLeftRight : aImgTopDown) ); m_pBmpPageDir->SetImage( aImg );
m_pBmpPageDir->SetOutputSizePixel( aImg.GetSizePixel() );
} }
// ----------------------------------------------------------------------- // -----------------------------------------------------------------------
...@@ -193,28 +187,28 @@ void ScTablePage::Reset( const SfxItemSet& rCoreSet ) ...@@ -193,28 +187,28 @@ void ScTablePage::Reset( const SfxItemSet& rCoreSet )
//----------- //-----------
// sal_Bool-Flags // sal_Bool-Flags
//----------- //-----------
aBtnNotes .Check( GET_BOOL(SID_SCATTR_PAGE_NOTES,rCoreSet) ); m_pBtnNotes->Check( GET_BOOL(SID_SCATTR_PAGE_NOTES,rCoreSet) );
aBtnGrid .Check( GET_BOOL(SID_SCATTR_PAGE_GRID,rCoreSet) ); m_pBtnGrid->Check( GET_BOOL(SID_SCATTR_PAGE_GRID,rCoreSet) );
aBtnHeaders .Check( GET_BOOL(SID_SCATTR_PAGE_HEADERS,rCoreSet) ); m_pBtnHeaders->Check( GET_BOOL(SID_SCATTR_PAGE_HEADERS,rCoreSet) );
aBtnFormulas .Check( GET_BOOL(SID_SCATTR_PAGE_FORMULAS,rCoreSet) ); m_pBtnFormulas->Check( GET_BOOL(SID_SCATTR_PAGE_FORMULAS,rCoreSet) );
aBtnNullVals .Check( GET_BOOL(SID_SCATTR_PAGE_NULLVALS,rCoreSet) ); m_pBtnNullVals->Check( GET_BOOL(SID_SCATTR_PAGE_NULLVALS,rCoreSet) );
aBtnTopDown .Check( bTopDown ); m_pBtnTopDown->Check( bTopDown );
aBtnLeftRight .Check( !bTopDown ); m_pBtnLeftRight->Check( !bTopDown );
//------------------ //------------------
// Erste Druckseite: // Erste Druckseite:
//------------------ //------------------
sal_uInt16 nPage = GET_USHORT(SID_SCATTR_PAGE_FIRSTPAGENO,rCoreSet); sal_uInt16 nPage = GET_USHORT(SID_SCATTR_PAGE_FIRSTPAGENO,rCoreSet);
aBtnPageNo.Check( nPage != 0 ); m_pBtnPageNo->Check( nPage != 0 );
aEdPageNo.SetValue( (nPage != 0) ? nPage : 1 ); m_pEdPageNo->SetValue( (nPage != 0) ? nPage : 1 );
PageNoHdl( NULL ); PageNoHdl( NULL );
//------------------- //-------------------
// Objektdarstellung: // Objektdarstellung:
//------------------- //-------------------
aBtnCharts .Check( GET_SHOW( SID_SCATTR_PAGE_CHARTS, rCoreSet ) ); m_pBtnCharts->Check( GET_SHOW( SID_SCATTR_PAGE_CHARTS, rCoreSet ) );
aBtnObjects .Check( GET_SHOW( SID_SCATTR_PAGE_OBJECTS, rCoreSet ) ); m_pBtnObjects->Check( GET_SHOW( SID_SCATTR_PAGE_OBJECTS, rCoreSet ) );
aBtnDrawings .Check( GET_SHOW( SID_SCATTR_PAGE_DRAWINGS, rCoreSet ) ); m_pBtnDrawings->Check( GET_SHOW( SID_SCATTR_PAGE_DRAWINGS, rCoreSet ) );
//------------ //------------
// Skalierung: // Skalierung:
...@@ -225,8 +219,8 @@ void ScTablePage::Reset( const SfxItemSet& rCoreSet ) ...@@ -225,8 +219,8 @@ void ScTablePage::Reset( const SfxItemSet& rCoreSet )
{ {
sal_uInt16 nScale = ((const SfxUInt16Item&)rCoreSet.Get(nWhich)).GetValue(); sal_uInt16 nScale = ((const SfxUInt16Item&)rCoreSet.Get(nWhich)).GetValue();
if( nScale > 0 ) if( nScale > 0 )
aLbScaleMode.SelectEntryPos( SC_TPTABLE_SCALE_PERCENT ); m_pLbScaleMode->SelectEntryPos( SC_TPTABLE_SCALE_PERCENT );
aEdScaleAll.SetValue( (nScale > 0) ? nScale : 100 ); m_pEdScaleAll->SetValue( (nScale > 0) ? nScale : 100 );
} }
nWhich = GetWhich(SID_SCATTR_PAGE_SCALETO); nWhich = GetWhich(SID_SCATTR_PAGE_SCALETO);
...@@ -240,9 +234,9 @@ void ScTablePage::Reset( const SfxItemSet& rCoreSet ) ...@@ -240,9 +234,9 @@ void ScTablePage::Reset( const SfxItemSet& rCoreSet )
Dialog shows width=height=1 then. */ Dialog shows width=height=1 then. */
bool bValid = nWidth || nHeight; bool bValid = nWidth || nHeight;
if( bValid ) if( bValid )
aLbScaleMode.SelectEntryPos( SC_TPTABLE_SCALE_TO ); m_pLbScaleMode->SelectEntryPos( SC_TPTABLE_SCALE_TO );
aEdScalePageWidth.SetValue( bValid ? nWidth : 1 ); m_pEdScalePageWidth->SetValue( bValid ? nWidth : 1 );
aEdScalePageHeight.SetValue( bValid ? nHeight : 1 ); m_pEdScalePageHeight->SetValue( bValid ? nHeight : 1 );
} }
nWhich = GetWhich(SID_SCATTR_PAGE_SCALETOPAGES); nWhich = GetWhich(SID_SCATTR_PAGE_SCALETOPAGES);
...@@ -250,39 +244,39 @@ void ScTablePage::Reset( const SfxItemSet& rCoreSet ) ...@@ -250,39 +244,39 @@ void ScTablePage::Reset( const SfxItemSet& rCoreSet )
{ {
sal_uInt16 nPages = ((const SfxUInt16Item&)rCoreSet.Get(nWhich)).GetValue(); sal_uInt16 nPages = ((const SfxUInt16Item&)rCoreSet.Get(nWhich)).GetValue();
if( nPages > 0 ) if( nPages > 0 )
aLbScaleMode.SelectEntryPos( SC_TPTABLE_SCALE_TO_PAGES ); m_pLbScaleMode->SelectEntryPos( SC_TPTABLE_SCALE_TO_PAGES );
aEdScalePageNum.SetValue( (nPages > 0) ? nPages : 1 ); m_pEdScalePageNum->SetValue( (nPages > 0) ? nPages : 1 );
} }
if( aLbScaleMode.GetSelectEntryCount() == 0 ) if( m_pLbScaleMode->GetSelectEntryCount() == 0 )
{ {
// fall back to 100% // fall back to 100%
OSL_FAIL( "ScTablePage::Reset - missing scaling item" ); OSL_FAIL( "ScTablePage::Reset - missing scaling item" );
aLbScaleMode.SelectEntryPos( SC_TPTABLE_SCALE_PERCENT ); m_pLbScaleMode->SelectEntryPos( SC_TPTABLE_SCALE_PERCENT );
aEdScaleAll.SetValue( 100 ); m_pEdScaleAll->SetValue( 100 );
} }
PageDirHdl( NULL ); PageDirHdl( NULL );
ScaleHdl( NULL ); ScaleHdl( NULL );
// merken fuer FillItemSet // merken fuer FillItemSet
aBtnFormulas .SaveValue(); m_pBtnFormulas->SaveValue();
aBtnNullVals .SaveValue(); m_pBtnNullVals->SaveValue();
aBtnNotes .SaveValue(); m_pBtnNotes->SaveValue();
aBtnGrid .SaveValue(); m_pBtnGrid->SaveValue();
aBtnHeaders .SaveValue(); m_pBtnHeaders->SaveValue();
aBtnTopDown .SaveValue(); m_pBtnTopDown->SaveValue();
aBtnLeftRight .SaveValue(); m_pBtnLeftRight->SaveValue();
aLbScaleMode .SaveValue(); m_pLbScaleMode->SaveValue();
aBtnCharts .SaveValue(); m_pBtnCharts->SaveValue();
aBtnObjects .SaveValue(); m_pBtnObjects->SaveValue();
aBtnDrawings .SaveValue(); m_pBtnDrawings->SaveValue();
aBtnPageNo .SaveValue(); m_pBtnPageNo->SaveValue();
aEdPageNo .SaveValue(); m_pEdPageNo->SaveValue();
aEdScaleAll .SaveValue(); m_pEdScaleAll->SaveValue();
aEdScalePageWidth.SaveValue(); m_pEdScalePageWidth->SaveValue();
aEdScalePageHeight.SaveValue(); m_pEdScalePageHeight->SaveValue();
aEdScalePageNum .SaveValue(); m_pEdScalePageNum->SaveValue();
} }
// ----------------------------------------------------------------------- // -----------------------------------------------------------------------
...@@ -299,50 +293,50 @@ sal_Bool ScTablePage::FillItemSet( SfxItemSet& rCoreSet ) ...@@ -299,50 +293,50 @@ sal_Bool ScTablePage::FillItemSet( SfxItemSet& rCoreSet )
bDataChanged |= lcl_PutBoolItem( GetWhich(SID_SCATTR_PAGE_NOTES), bDataChanged |= lcl_PutBoolItem( GetWhich(SID_SCATTR_PAGE_NOTES),
rCoreSet, rOldSet, rCoreSet, rOldSet,
aBtnNotes.IsChecked(), m_pBtnNotes->IsChecked(),
aBtnNotes.GetSavedValue() != STATE_NOCHECK ); m_pBtnNotes->GetSavedValue() != STATE_NOCHECK );
bDataChanged |= lcl_PutBoolItem( GetWhich(SID_SCATTR_PAGE_GRID), bDataChanged |= lcl_PutBoolItem( GetWhich(SID_SCATTR_PAGE_GRID),
rCoreSet, rOldSet, rCoreSet, rOldSet,
aBtnGrid.IsChecked(), m_pBtnGrid->IsChecked(),
aBtnGrid.GetSavedValue() != STATE_NOCHECK ); m_pBtnGrid->GetSavedValue() != STATE_NOCHECK );
bDataChanged |= lcl_PutBoolItem( GetWhich(SID_SCATTR_PAGE_HEADERS), bDataChanged |= lcl_PutBoolItem( GetWhich(SID_SCATTR_PAGE_HEADERS),
rCoreSet, rOldSet, rCoreSet, rOldSet,
aBtnHeaders.IsChecked(), m_pBtnHeaders->IsChecked(),
aBtnHeaders.GetSavedValue() != STATE_NOCHECK ); m_pBtnHeaders->GetSavedValue() != STATE_NOCHECK );
bDataChanged |= lcl_PutBoolItem( GetWhich(SID_SCATTR_PAGE_TOPDOWN), bDataChanged |= lcl_PutBoolItem( GetWhich(SID_SCATTR_PAGE_TOPDOWN),
rCoreSet, rOldSet, rCoreSet, rOldSet,
aBtnTopDown.IsChecked(), m_pBtnTopDown->IsChecked(),
aBtnTopDown.GetSavedValue() ); m_pBtnTopDown->GetSavedValue() );
bDataChanged |= lcl_PutBoolItem( GetWhich(SID_SCATTR_PAGE_FORMULAS), bDataChanged |= lcl_PutBoolItem( GetWhich(SID_SCATTR_PAGE_FORMULAS),
rCoreSet, rOldSet, rCoreSet, rOldSet,
aBtnFormulas.IsChecked(), m_pBtnFormulas->IsChecked(),
aBtnFormulas.GetSavedValue() != STATE_NOCHECK ); m_pBtnFormulas->GetSavedValue() != STATE_NOCHECK );
bDataChanged |= lcl_PutBoolItem( GetWhich(SID_SCATTR_PAGE_NULLVALS), bDataChanged |= lcl_PutBoolItem( GetWhich(SID_SCATTR_PAGE_NULLVALS),
rCoreSet, rOldSet, rCoreSet, rOldSet,
aBtnNullVals.IsChecked(), m_pBtnNullVals->IsChecked(),
aBtnNullVals.GetSavedValue() != STATE_NOCHECK ); m_pBtnNullVals->GetSavedValue() != STATE_NOCHECK );
//------------------ //------------------
// Erste Druckseite: // Erste Druckseite:
//------------------ //------------------
sal_Bool bUseValue = aBtnPageNo.IsChecked(); sal_Bool bUseValue = m_pBtnPageNo->IsChecked();
if ( WAS_DEFAULT(nWhichPageNo,rOldSet) if ( WAS_DEFAULT(nWhichPageNo,rOldSet)
&& ( (!bUseValue && bUseValue == aBtnPageNo.GetSavedValue()) && ( (!bUseValue && bUseValue == m_pBtnPageNo->GetSavedValue())
|| ( bUseValue && bUseValue == aBtnPageNo.GetSavedValue() || ( bUseValue && bUseValue == m_pBtnPageNo->GetSavedValue()
&& aEdPageNo.GetText() == aEdPageNo.GetSavedValue() ) ) ) && m_pEdPageNo->GetText() == m_pEdPageNo->GetSavedValue() ) ) )
{ {
rCoreSet.ClearItem( nWhichPageNo ); rCoreSet.ClearItem( nWhichPageNo );
} }
else else
{ {
sal_uInt16 nPage = (sal_uInt16)( aBtnPageNo.IsChecked() sal_uInt16 nPage = (sal_uInt16)( m_pBtnPageNo->IsChecked()
? aEdPageNo.GetValue() ? m_pEdPageNo->GetValue()
: 0 ); : 0 );
rCoreSet.Put( SfxUInt16Item( nWhichPageNo, nPage ) ); rCoreSet.Put( SfxUInt16Item( nWhichPageNo, nPage ) );
...@@ -354,38 +348,38 @@ sal_Bool ScTablePage::FillItemSet( SfxItemSet& rCoreSet ) ...@@ -354,38 +348,38 @@ sal_Bool ScTablePage::FillItemSet( SfxItemSet& rCoreSet )
//------------------- //-------------------
bDataChanged |= lcl_PutVObjModeItem( GetWhich(SID_SCATTR_PAGE_CHARTS), bDataChanged |= lcl_PutVObjModeItem( GetWhich(SID_SCATTR_PAGE_CHARTS),
rCoreSet, rOldSet, aBtnCharts ); rCoreSet, rOldSet, *m_pBtnCharts );
bDataChanged |= lcl_PutVObjModeItem( GetWhich(SID_SCATTR_PAGE_OBJECTS), bDataChanged |= lcl_PutVObjModeItem( GetWhich(SID_SCATTR_PAGE_OBJECTS),
rCoreSet, rOldSet, aBtnObjects ); rCoreSet, rOldSet, *m_pBtnObjects );
bDataChanged |= lcl_PutVObjModeItem( GetWhich(SID_SCATTR_PAGE_DRAWINGS), bDataChanged |= lcl_PutVObjModeItem( GetWhich(SID_SCATTR_PAGE_DRAWINGS),
rCoreSet, rOldSet, aBtnDrawings ); rCoreSet, rOldSet, *m_pBtnDrawings );
//------------ //------------
// Skalierung: // Skalierung:
//------------ //------------
if( !aEdScalePageWidth.GetValue() && !aEdScalePageHeight.GetValue() ) if( !m_pEdScalePageWidth->GetValue() && !m_pEdScalePageHeight->GetValue() )
{ {
aLbScaleMode.SelectEntryPos( SC_TPTABLE_SCALE_PERCENT ); m_pLbScaleMode->SelectEntryPos( SC_TPTABLE_SCALE_PERCENT );
aEdScaleAll.SetValue( 100 ); m_pEdScaleAll->SetValue( 100 );
} }
bDataChanged |= lcl_PutScaleItem( GetWhich(SID_SCATTR_PAGE_SCALE), bDataChanged |= lcl_PutScaleItem( GetWhich(SID_SCATTR_PAGE_SCALE),
rCoreSet, rOldSet, rCoreSet, rOldSet,
aLbScaleMode, SC_TPTABLE_SCALE_PERCENT, *m_pLbScaleMode, SC_TPTABLE_SCALE_PERCENT,
aEdScaleAll, (sal_uInt16)aEdScaleAll.GetValue() ); *m_pEdScaleAll, (sal_uInt16)m_pEdScaleAll->GetValue() );
bDataChanged |= lcl_PutScaleItem2( GetWhich(SID_SCATTR_PAGE_SCALETO), bDataChanged |= lcl_PutScaleItem2( GetWhich(SID_SCATTR_PAGE_SCALETO),
rCoreSet, rOldSet, rCoreSet, rOldSet,
aLbScaleMode, SC_TPTABLE_SCALE_TO, *m_pLbScaleMode, SC_TPTABLE_SCALE_TO,
aEdScalePageWidth, aEdScalePageHeight ); *m_pEdScalePageWidth, *m_pEdScalePageHeight );
bDataChanged |= lcl_PutScaleItem( GetWhich(SID_SCATTR_PAGE_SCALETOPAGES), bDataChanged |= lcl_PutScaleItem( GetWhich(SID_SCATTR_PAGE_SCALETOPAGES),
rCoreSet, rOldSet, rCoreSet, rOldSet,
aLbScaleMode, SC_TPTABLE_SCALE_TO_PAGES, *m_pLbScaleMode, SC_TPTABLE_SCALE_TO_PAGES,
aEdScalePageNum, (sal_uInt16)aEdScalePageNum.GetValue() ); *m_pEdScalePageNum, (sal_uInt16)m_pEdScalePageNum->GetValue() );
return bDataChanged; return bDataChanged;
} }
...@@ -423,14 +417,14 @@ IMPL_LINK_NOARG(ScTablePage, PageDirHdl) ...@@ -423,14 +417,14 @@ IMPL_LINK_NOARG(ScTablePage, PageDirHdl)
IMPL_LINK( ScTablePage, PageNoHdl, CheckBox*, pBtn ) IMPL_LINK( ScTablePage, PageNoHdl, CheckBox*, pBtn )
{ {
if ( aBtnPageNo.IsChecked() ) if ( m_pBtnPageNo->IsChecked() )
{ {
aEdPageNo.Enable(); m_pEdPageNo->Enable();
if ( pBtn ) if ( pBtn )
aEdPageNo.GrabFocus(); m_pEdPageNo->GrabFocus();
} }
else else
aEdPageNo.Disable(); m_pEdPageNo->Disable();
return 0; return 0;
} }
...@@ -439,22 +433,14 @@ IMPL_LINK( ScTablePage, PageNoHdl, CheckBox*, pBtn ) ...@@ -439,22 +433,14 @@ IMPL_LINK( ScTablePage, PageNoHdl, CheckBox*, pBtn )
IMPL_LINK_NOARG(ScTablePage, ScaleHdl) IMPL_LINK_NOARG(ScTablePage, ScaleHdl)
{ {
// controls for "Reduce/enlarge" // controls for Box "Reduce/enlarge"
bool bPercent = (aLbScaleMode.GetSelectEntryPos() == SC_TPTABLE_SCALE_PERCENT); m_pBxScaleAll->Show(m_pLbScaleMode->GetSelectEntryPos() == SC_TPTABLE_SCALE_PERCENT);
aFtScaleAll.Show( bPercent );
aEdScaleAll.Show( bPercent ); // controls for Grid "Scale to width/height"
m_pGrHeightWidth->Show(m_pLbScaleMode->GetSelectEntryPos() == SC_TPTABLE_SCALE_TO);
// controls for "Scale to width/height"
bool bScaleTo = (aLbScaleMode.GetSelectEntryPos() == SC_TPTABLE_SCALE_TO); // controls for Box "Scale to pages"
aFtScalePageWidth.Show( bScaleTo ); m_pBxScalePageNum->Show(m_pLbScaleMode->GetSelectEntryPos() == SC_TPTABLE_SCALE_TO_PAGES);
aEdScalePageWidth.Show( bScaleTo );
aFtScalePageHeight.Show( bScaleTo );
aEdScalePageHeight.Show( bScaleTo );
// controls for "Scale to pages"
bool bScalePages = (aLbScaleMode.GetSelectEntryPos() == SC_TPTABLE_SCALE_TO_PAGES);
aFtScalePageNum.Show( bScalePages );
aEdScalePageNum.Show( bScalePages );
return 0; return 0;
} }
......
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<!-- interface-requires gtk+ 3.0 -->
<object class="GtkAdjustment" id="adjustmentPage">
<property name="upper">999</property>
<property name="step_increment">1</property>
<property name="page_increment">10</property>
</object>
<object class="GtkAdjustment" id="adjustmentScalingFactor">
<property name="upper">100</property>
<property name="step_increment">1</property>
<property name="page_increment">10</property>
</object>
<object class="GtkGrid" id="SheetPrintPage">
<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="row_homogeneous">True</property>
<property name="column_homogeneous">True</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="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="hexpand">True</property>
<property name="vexpand">True</property>
<property name="top_padding">6</property>
<property name="left_padding">12</property>
<child>
<object class="GtkBox" id="box1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="homogeneous">True</property>
<child>
<object class="GtkGrid" id="grid3">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="halign">start</property>
<property name="hexpand">True</property>
<property name="row_spacing">6</property>
<property name="column_spacing">12</property>
<child>
<object class="GtkRadioButton" id="radioBTN_TOPDOWN">
<property name="label" translatable="yes">_Top to bottom, then right</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="valign">center</property>
<property name="use_underline">True</property>
<property name="xalign">0</property>
<property name="draw_indicator">True</property>
<property name="group">radioBTN_LEFTRIGHT</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="GtkRadioButton" id="radioBTN_LEFTRIGHT">
<property name="label" translatable="yes">_Left to right, then down</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="halign">start</property>
<property name="valign">center</property>
<property name="relief">none</property>
<property name="use_underline">True</property>
<property name="xalign">0</property>
<property name="active">True</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="GtkCheckButton" id="checkBTN_PAGENO">
<property name="label" translatable="yes">First _page number:</property>
<property name="visible">True</property>
<property name="can_focus">True</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">2</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkSpinButton" id="spinED_PAGENO">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="max_length">5</property>
<property name="invisible_char"></property>
<property name="adjustment">adjustmentPage</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>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkImage" id="imageBMP_PAGEDIR">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="halign">start</property>
<property name="valign">center</property>
<property name="xpad">6</property>
<property name="ypad">6</property>
<property name="stock">gtk-missing-image</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
</object>
</child>
</object>
</child>
<child type="label">
<object class="GtkLabel" id="labelPageOrder">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">Page order</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
</object>
</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="GtkFrame" id="frame2">
<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="alignment3">
<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">6</property>
<property name="column_spacing">12</property>
<property name="row_homogeneous">True</property>
<property name="column_homogeneous">True</property>
<child>
<object class="GtkCheckButton" id="checkBTN_HEADER">
<property name="label" translatable="yes">_Columns and row headers</property>
<property name="visible">True</property>
<property name="can_focus">True</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="checkBTN_GRID">
<property name="label" translatable="yes">_Grid</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="use_underline">True</property>
<property name="xalign">0</property>
<property name="yalign">0.55000001192092896</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="GtkCheckButton" id="checkBTN_NOTES">
<property name="label" translatable="yes">_Comments</property>
<property name="visible">True</property>
<property name="can_focus">True</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">2</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkCheckButton" id="checkBTN_OBJECTS">
<property name="label" translatable="yes">_Objects/graphics</property>
<property name="visible">True</property>
<property name="can_focus">True</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">3</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkCheckButton" id="checkBTN_CHARTS">
<property name="label" translatable="yes">Charts</property>
<property name="visible">True</property>
<property name="can_focus">True</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">2</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkCheckButton" id="checkBTN_DRAWINGS">
<property name="label" translatable="yes">_Drawing objects</property>
<property name="visible">True</property>
<property name="can_focus">True</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">2</property>
<property name="top_attach">1</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkCheckButton" id="checkBTN_FORMULAS">
<property name="label" translatable="yes">_Formulas</property>
<property name="visible">True</property>
<property name="can_focus">True</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">2</property>
<property name="top_attach">2</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
<child>
<object class="GtkCheckButton" id="checkBTN_NULLVALS">
<property name="label" translatable="yes">_Zero values</property>
<property name="visible">True</property>
<property name="can_focus">True</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">2</property>
<property name="top_attach">3</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
</object>
</child>
</object>
</child>
<child type="label">
<object class="GtkLabel" id="labelPrint">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">Print</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
</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="GtkFrame" id="frame3">
<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="alignment4">
<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="row_spacing">6</property>
<property name="column_spacing">12</property>
<child>
<object class="GtkLabel" id="labelScalingMode">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">Scaling _mode:</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">comboLB_SCALEMODE</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="GtkBox" id="box4">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="orientation">vertical</property>
<property name="spacing">6</property>
<child>
<object class="GtkHBox" id="boxSCALEALL">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="spacing">6</property>
<property name="homogeneous">True</property>
<child>
<object class="GtkLabel" id="labelSF">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">_Scaling factor:</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">spinED_SCALEALL:0%</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkSpinButton" id="spinED_SCALEALL:0%">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="invisible_char"></property>
<property name="invisible_char_set">True</property>
<property name="adjustment">adjustmentScalingFactor</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkGrid" id="gridWH">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="row_spacing">6</property>
<property name="column_spacing">6</property>
<property name="row_homogeneous">True</property>
<property name="column_homogeneous">True</property>
<child>
<object class="GtkLabel" id="labelWP">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">_Width in pages:</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">spinED_SCALEPAGEWIDTH</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="labelHP">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">_Height in pages:</property>
<property name="use_underline">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="GtkSpinButton" id="spinED_SCALEPAGEWIDTH">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="invisible_char"></property>
<property name="shadow_type">none</property>
<property name="invisible_char_set">True</property>
<property name="adjustment">adjustmentPage</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="GtkSpinButton" id="spinED_SCALEPAGEHEIGHT">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="invisible_char"></property>
<property name="invisible_char_set">True</property>
<property name="adjustment">adjustmentPage</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>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
<child>
<object class="GtkHBox" id="boxNP">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="spacing">6</property>
<property name="homogeneous">True</property>
<child>
<object class="GtkLabel" id="labelNP">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">N_umber of pages:</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">spinED_SCALEPAGENUM</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkSpinButton" id="spinED_SCALEPAGENUM">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="invisible_char"></property>
<property name="invisible_char_set">True</property>
<property name="adjustment">adjustmentPage</property>
<property name="update_policy">if-valid</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">2</property>
</packing>
</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>
<child>
<placeholder/>
</child>
<child>
<object class="GtkComboBox" id="comboLB_SCALEMODE">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="model">liststoreScaleMode</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>
</child>
</object>
</child>
<child type="label">
<object class="GtkLabel" id="labelScale">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">Scale</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
</object>
</child>
</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>
</object>
<object class="GtkListStore" id="liststoreScaleMode">
<columns>
<!-- column-name gchararray1 -->
<column type="gchararray"/>
<!-- column-name gint1 -->
<column type="gint"/>
</columns>
<data>
<row>
<col id="0" translatable="yes">Reduce/enlarge printout</col>
<col id="1">0</col>
</row>
<row>
<col id="0" translatable="yes">Fit print range(s) to width/height</col>
<col id="1">0</col>
</row>
<row>
<col id="0" translatable="yes">Fit print range(s) on number of pages</col>
<col id="1">0</col>
</row>
</data>
</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