summaryrefslogtreecommitdiff
path: root/sw/source/ui
diff options
context:
space:
mode:
authorOliver Specht <os@openoffice.org>2002-02-07 14:17:04 +0000
committerOliver Specht <os@openoffice.org>2002-02-07 14:17:04 +0000
commitbccd9cdd59db7030c1cbe8245d1f8ee75618d864 (patch)
treef44018119f3cc60d2d5d6ee1b72550b526869ff8 /sw/source/ui
parent001c700c5764b236b75b7ed5a6f3a3b45ae6f76b (diff)
#96678# TabPage Format/Page/Text Grid
Diffstat (limited to 'sw/source/ui')
-rw-r--r--sw/source/ui/fmtui/tmpdlg.cxx15
-rw-r--r--sw/source/ui/fmtui/tmpdlg.src9
-rw-r--r--sw/source/ui/inc/pggrid.hxx129
-rw-r--r--sw/source/ui/misc/makefile.mk7
-rw-r--r--sw/source/ui/misc/pggrid.cxx257
-rw-r--r--sw/source/ui/misc/pggrid.hrc83
-rw-r--r--sw/source/ui/misc/pggrid.src273
7 files changed, 766 insertions, 7 deletions
diff --git a/sw/source/ui/fmtui/tmpdlg.cxx b/sw/source/ui/fmtui/tmpdlg.cxx
index 11eb3651cc3b..756c79b0ac3e 100644
--- a/sw/source/ui/fmtui/tmpdlg.cxx
+++ b/sw/source/ui/fmtui/tmpdlg.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: tmpdlg.cxx,v $
*
- * $Revision: 1.8 $
+ * $Revision: 1.9 $
*
- * last change: $Author: jp $ $Date: 2001-07-31 16:01:23 $
+ * last change: $Author: os $ $Date: 2002-02-07 15:15:13 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -146,7 +146,10 @@
#include <viewopt.hxx>
#endif
#ifndef _PGFNOTE_HXX
-#include <pgfnote.hxx> // der Dialog
+#include <pgfnote.hxx>
+#endif
+#ifndef _PGFGRID_HXX
+#include <pggrid.hxx>
#endif
#ifndef _TMPDLG_HXX
#include <tmpdlg.hxx> // der Dialog
@@ -382,6 +385,12 @@ SwTemplateDlg::SwTemplateDlg(Window* pParent,
AddTabPage(TP_FOOTNOTE_PAGE, String(SW_RES(STR_PAGE_FOOTNOTE)),
SwFootNotePage::Create,
SwFootNotePage::GetRanges );
+ AddTabPage(TP_TEXTGRID_PAGE, String(SW_RES(STR_PAGE_TEXTGRID)),
+ SwTextGridPage::Create,
+ SwTextGridPage::GetRanges );
+ SvtCJKOptions aCJKOptions;
+ if(!aCJKOptions.IsAsianTypographyEnabled())
+ RemoveTabPage(TP_TEXTGRID_PAGE);
}
diff --git a/sw/source/ui/fmtui/tmpdlg.src b/sw/source/ui/fmtui/tmpdlg.src
index 82bba21ef4e5..34faa9b72004 100644
--- a/sw/source/ui/fmtui/tmpdlg.src
+++ b/sw/source/ui/fmtui/tmpdlg.src
@@ -2,9 +2,9 @@
*
* $RCSfile: tmpdlg.src,v $
*
- * $Revision: 1.38 $
+ * $Revision: 1.39 $
*
- * last change: $Author: rt $ $Date: 2001-11-16 23:07:39 $
+ * last change: $Author: os $ $Date: 2002-02-07 15:14:57 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -969,6 +969,11 @@ String STR_PAGE_FOOTER
Text[ language_user1 ] = " ";
Text[ catalan ] = "Pie de página";
};
+String STR_PAGE_TEXTGRID
+{
+ Text = "Textraster" ;
+ Text [ ENGLISH ] = "Text Grid" ;
+};
String STR_PAGE_COLUMN
{
Text = "Spalten" ;
diff --git a/sw/source/ui/inc/pggrid.hxx b/sw/source/ui/inc/pggrid.hxx
new file mode 100644
index 000000000000..fdf2e3e99eaf
--- /dev/null
+++ b/sw/source/ui/inc/pggrid.hxx
@@ -0,0 +1,129 @@
+/*************************************************************************
+ *
+ * $RCSfile: pggrid.hxx,v $
+ *
+ * $Revision: 1.1 $
+ *
+ * last change: $Author: os $ $Date: 2002-02-07 15:10:07 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (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.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _PGGRID_HXX
+#define _PGGRID_HXX
+
+#ifndef _SFXTABDLG_HXX
+#include <sfx2/tabdlg.hxx>
+#endif
+#ifndef _SVX_PAGECTRL_HXX
+#include <svx/pagectrl.hxx>
+#endif
+#ifndef _FIELD_HXX
+#include <vcl/field.hxx>
+#endif
+#ifndef _FIXED_HXX
+#include <vcl/fixed.hxx>
+#endif
+#ifndef _CTRLBOX_HXX
+#include <svtools/ctrlbox.hxx>
+#endif
+/*--------------------------------------------------------------------
+ Description: TabPage Format/(Styles/)Page/Text grid
+ --------------------------------------------------------------------*/
+
+class SwTextGridPage: public SfxTabPage
+{
+ FixedLine aGridTypeFL;
+ RadioButton aNoGridRB;
+ RadioButton aLinesGridRB;
+ RadioButton aCharsGridRB;
+
+ SvxPageWindow aExampleWN;
+
+ FixedLine aLayoutFL;
+
+ FixedText aLinesPerPageFT;
+ NumericField aLinesPerPageNF;
+ FixedText aLinesPerPageHintFT;
+
+ FixedText aTextSizeFT;
+ MetricField aTextSizeMF;
+
+ FixedText aCharsPerLineFT;
+ NumericField aCharsPerLineNF;
+ FixedText aCharsPerLineHintFT;
+
+ FixedText aRubySizeFT;
+ MetricField aRubySizeMF;
+
+ CheckBox aRubyBelowCB;
+
+ FixedLine aDisplayFL;
+
+ CheckBox aDisplayCB;
+ CheckBox aPrintCB;
+ FixedText aColorFT;
+ ColorListBox aColorLB;
+
+ SwTextGridPage(Window *pParent, const SfxItemSet &rSet);
+ ~SwTextGridPage();
+public:
+ static SfxTabPage *Create(Window *pParent, const SfxItemSet &rSet);
+ static USHORT* GetRanges();
+
+ virtual BOOL FillItemSet(SfxItemSet &rSet);
+ virtual void Reset(const SfxItemSet &rSet);
+ virtual void ActivatePage( const SfxItemSet& rSet );
+ virtual int DeactivatePage( SfxItemSet* pSet = 0 );
+};
+
+#endif
diff --git a/sw/source/ui/misc/makefile.mk b/sw/source/ui/misc/makefile.mk
index f693f0422293..355deee39581 100644
--- a/sw/source/ui/misc/makefile.mk
+++ b/sw/source/ui/misc/makefile.mk
@@ -2,9 +2,9 @@
#
# $RCSfile: makefile.mk,v $
#
-# $Revision: 1.5 $
+# $Revision: 1.6 $
#
-# last change: $Author: jp $ $Date: 2001-10-18 12:29:04 $
+# last change: $Author: os $ $Date: 2002-02-07 15:17:04 $
#
# The Contents of this file are made available subject to the terms of
# either of the following licenses
@@ -94,6 +94,7 @@ CXXFILES = \
numberingtypelistbox.cxx \
outline.cxx \
pgfnote.cxx \
+ pggrid.cxx \
redlndlg.cxx \
srtdlg.cxx
@@ -109,6 +110,7 @@ SRCFILES=\
numberingtypelistbox.src \
outline.src \
pgfnote.src \
+ pggrid.src \
redlndlg.src \
srtdlg.src
@@ -127,6 +129,7 @@ SLOFILES = \
$(SLO)$/numberingtypelistbox.obj \
$(SLO)$/outline.obj \
$(SLO)$/pgfnote.obj \
+ $(SLO)$/pggrid.obj \
$(SLO)$/redlndlg.obj \
$(SLO)$/srtdlg.obj
diff --git a/sw/source/ui/misc/pggrid.cxx b/sw/source/ui/misc/pggrid.cxx
new file mode 100644
index 000000000000..00443454f0f5
--- /dev/null
+++ b/sw/source/ui/misc/pggrid.cxx
@@ -0,0 +1,257 @@
+/*************************************************************************
+ *
+ * $RCSfile: pggrid.cxx,v $
+ *
+ * $Revision: 1.1 $
+ *
+ * last change: $Author: os $ $Date: 2002-02-07 15:09:27 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (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.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#ifdef PRECOMPILED
+#include "ui_pch.hxx"
+#endif
+
+#pragma hdrstop
+
+#ifndef _CMDID_H
+#include <cmdid.h>
+#endif
+#ifndef _HINTIDS_HXX
+#include <hintids.hxx>
+#endif
+#ifndef _UIPARAM_HXX
+#include <uiparam.hxx>
+#endif
+#ifndef _SWTYPES_HXX
+#include <swtypes.hxx>
+#endif
+#ifndef _GLOBALS_HRC
+#include <globals.hrc>
+#endif
+
+#ifndef _OFF_APP_HXX //autogen
+#include <offmgr/app.hxx>
+#endif
+#ifndef _XTABLE_HXX //autogen
+#include <svx/xtable.hxx>
+#endif
+
+#ifndef _PGGRID_HXX
+#include <pggrid.hxx>
+#endif
+#ifndef SW_TGRDITEM_HXX
+#include <tgrditem.hxx>
+#endif
+#include <pggrid.hrc>
+
+/*-- 06.02.2002 15:25:39---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+SwTextGridPage::SwTextGridPage(Window *pParent, const SfxItemSet &rSet) :
+ SfxTabPage(pParent, SW_RES(TP_TEXTGRID_PAGE), rSet),
+ aGridTypeFL (this, ResId(FL_GRID_TYPE )),
+ aNoGridRB (this, ResId(RB_NOGRID )),
+ aLinesGridRB (this, ResId(RB_LINESGRID )),
+ aCharsGridRB (this, ResId(RB_CHARSGRID )),
+ aExampleWN (this, ResId(WN_EXAMPLE )),
+ aLayoutFL (this, ResId(FL_LAYOUT )),
+ aLinesPerPageFT (this, ResId(FT_LINESPERPAGE )),
+ aLinesPerPageNF (this, ResId(NF_LINESPERPAGE )),
+ aLinesPerPageHintFT (this, ResId(FT_LINESPERPAGEHINT)),
+ aTextSizeFT (this, ResId(FT_TEXTSIZE )),
+ aTextSizeMF (this, ResId(MF_TEXTSIZE )),
+ aCharsPerLineFT (this, ResId(FT_CHARSPERLINE )),
+ aCharsPerLineNF (this, ResId(NF_CHARSPERLINE )),
+ aCharsPerLineHintFT (this, ResId(FT_CHARSPERLINEHINT)),
+ aRubySizeFT (this, ResId(FT_RUBYSIZE )),
+ aRubySizeMF (this, ResId(MF_RUBYSIZE )),
+ aRubyBelowCB (this, ResId(CB_RUBYBELOW )),
+ aDisplayFL (this, ResId(FL_DISPLAY )),
+ aDisplayCB (this, ResId(CB_DISPLAY )),
+ aPrintCB (this, ResId(CB_PRINT )),
+ aColorFT (this, ResId(FT_COLOR )),
+ aColorLB (this, ResId(LB_COLOR ))
+{
+ FreeResource();
+ XColorTable* pColorTbl = OFF_APP()->GetStdColorTable();
+ aColorLB.InsertAutomaticEntry();
+ for( USHORT i = 0; i < pColorTbl->Count(); ++i )
+ {
+ XColorEntry* pEntry = pColorTbl->Get( i );
+ Color aColor = pEntry->GetColor();
+ String sName = pEntry->GetName();
+ aColorLB.InsertEntry( aColor, sName );
+ }
+ aColorLB.SetUpdateMode( TRUE );
+}
+/*-- 06.02.2002 15:25:40---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+SwTextGridPage::~SwTextGridPage()
+{
+}
+/*-- 06.02.2002 15:25:40---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+SfxTabPage *SwTextGridPage::Create(Window *pParent, const SfxItemSet &rSet)
+{
+ return new SwTextGridPage(pParent, rSet);
+}
+/*-- 06.02.2002 15:25:40---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+BOOL SwTextGridPage::FillItemSet(SfxItemSet &rSet)
+{
+ BOOL bRet = FALSE;
+ if(aNoGridRB.GetSavedValue() != aNoGridRB.IsChecked()||
+ aLinesGridRB.GetSavedValue() != aLinesGridRB.IsChecked()||
+ aLinesPerPageNF.GetSavedValue() != aLinesPerPageNF.GetValue()||
+ aTextSizeMF.GetSavedValue() != aTextSizeMF.GetValue()||
+ aCharsPerLineNF.GetSavedValue() != aCharsPerLineNF.GetValue()||
+ aRubySizeMF.GetSavedValue() != aRubySizeMF.GetValue()||
+ aRubyBelowCB.GetSavedValue() != aRubyBelowCB.IsChecked()||
+ aDisplayCB.GetSavedValue() != aDisplayCB.IsChecked()||
+ aPrintCB.GetSavedValue() != aPrintCB.IsChecked()||
+ aColorLB.GetSavedValue() != aColorLB.GetSelectEntryPos())
+ {
+ SwTextGridItem aGridItem;
+ aGridItem.SetGridType(aNoGridRB.IsChecked() ? GRID_NONE :
+ aLinesGridRB.IsChecked() ? GRID_LINES_ONLY : GRID_LINES_CHARS );
+ aGridItem.SetLines(aLinesPerPageNF.GetValue());
+ aGridItem.SetBaseHeight(aTextSizeMF.Denormalize(aTextSizeMF.GetValue(FUNIT_TWIP)));
+ aGridItem.SetRubyHeight(aRubySizeMF.Denormalize(aRubySizeMF.GetValue(FUNIT_TWIP)));
+ aGridItem.SetRubyTextBelow(aRubyBelowCB.IsChecked());
+ aGridItem.SetDisplayGrid(aDisplayCB.IsChecked());
+ aGridItem.SetPrintGrid(aPrintCB.IsChecked());
+ aGridItem.SetColor(aColorLB.GetSelectEntryColor());
+ rSet.Put(aGridItem);
+ bRet = TRUE;
+ }
+
+ return bRet;
+}
+/*-- 06.02.2002 15:25:40---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+void SwTextGridPage::Reset(const SfxItemSet &rSet)
+{
+ if(SFX_ITEM_AVAILABLE <= rSet.GetItemState(RES_TEXTGRID, TRUE))
+ {
+ const SwTextGridItem& rGridItem = (const SwTextGridItem&)rSet.Get(RES_TEXTGRID);
+ switch(rGridItem.GetGridType())
+ {
+ case GRID_NONE : aNoGridRB.Check(); break;
+ case GRID_LINES_ONLY : aLinesGridRB.Check(); break;
+ default: aCharsGridRB.Check();
+ }
+ aLinesPerPageNF.SetValue(rGridItem.GetLines());
+ aTextSizeMF.SetValue(aTextSizeMF.Normalize(rGridItem.GetBaseHeight()), FUNIT_TWIP);
+ // has to be calculated aCharsPerLineNF.SetValue();
+ aRubySizeMF.SetValue(aRubySizeMF.Normalize(rGridItem.GetRubyHeight()), FUNIT_TWIP);
+ aRubyBelowCB.Check(rGridItem.IsRubyTextBelow());
+ aDisplayCB.Check(rGridItem.IsDisplayGrid());
+ aPrintCB.Check(rGridItem.IsPrintGrid());
+ aColorLB.SelectEntry(rGridItem.GetColor());
+ }
+ aNoGridRB.SaveValue();
+ aLinesGridRB.SaveValue();
+ aLinesPerPageNF.SaveValue();
+ aTextSizeMF.SaveValue();
+ aCharsPerLineNF.SaveValue();
+ aRubySizeMF.SaveValue();
+ aRubyBelowCB.SaveValue();
+ aDisplayCB.SaveValue();
+ aPrintCB.SaveValue();
+ aColorLB.SaveValue();
+
+}
+/*-- 06.02.2002 15:25:41---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+void SwTextGridPage::ActivatePage( const SfxItemSet& rSet )
+{
+ aExampleWN.Hide();
+ if( SFX_ITEM_SET == rSet.GetItemState( SID_ATTR_PAGE_SIZE ))
+ {
+// const SvxSizeItem& rSize = (const SvxSizeItem&)rSet.Get(
+// SID_ATTR_PAGE_SIZE);
+// const SvxLRSpaceItem& rLRSpace = (const SvxLRSpaceItem&)rSet.Get(
+// RES_LR_SPACE );
+// const SvxBoxItem& rBox = (const SvxBoxItem&) rSet.Get(RES_BOX);
+// USHORT nActWidth = (USHORT)rSize.GetSize().Width()
+// - rLRSpace.GetLeft() - rLRSpace.GetRight() - rBox.GetDistance();
+
+ //update characters per line and lines per page control
+ }
+ aExampleWN.Show();
+}
+/*-- 06.02.2002 15:25:41---------------------------------------------------
+
+ -----------------------------------------------------------------------*/
+int SwTextGridPage::DeactivatePage( SfxItemSet* pSet )
+{
+ return 0;
+}
+/* -----------------------------06.02.2002 15:24------------------------------
+
+ ---------------------------------------------------------------------------*/
+USHORT* SwTextGridPage::GetRanges()
+{
+ static USHORT __FAR_DATA aPageRg[] = {
+ RES_TEXTGRID, RES_TEXTGRID,
+ 0};
+ return aPageRg;
+}
+
diff --git a/sw/source/ui/misc/pggrid.hrc b/sw/source/ui/misc/pggrid.hrc
new file mode 100644
index 000000000000..96a84e0f505c
--- /dev/null
+++ b/sw/source/ui/misc/pggrid.hrc
@@ -0,0 +1,83 @@
+/*************************************************************************
+ *
+ * $RCSfile: pggrid.hrc,v $
+ *
+ * $Revision: 1.1 $
+ *
+ * last change: $Author: os $ $Date: 2002-02-07 15:09:33 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (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.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+
+#define FL_GRID_TYPE 1
+#define RB_NOGRID 2
+#define RB_LINESGRID 3
+#define RB_CHARSGRID 4
+#define WN_EXAMPLE 5
+#define FL_LAYOUT 6
+#define FT_LINESPERPAGE 7
+#define NF_LINESPERPAGE 8
+#define FT_LINESPERPAGEHINT 9
+#define FT_TEXTSIZE 10
+#define MF_TEXTSIZE 11
+#define FT_CHARSPERLINE 12
+#define NF_CHARSPERLINE 13
+#define FT_CHARSPERLINEHINT 14
+#define FT_RUBYSIZE 15
+#define MF_RUBYSIZE 16
+#define CB_RUBYBELOW 17
+#define FL_DISPLAY 18
+#define CB_DISPLAY 19
+#define CB_PRINT 20
+#define FT_COLOR 21
+#define LB_COLOR 22
diff --git a/sw/source/ui/misc/pggrid.src b/sw/source/ui/misc/pggrid.src
new file mode 100644
index 000000000000..cdc4bfd6eaa0
--- /dev/null
+++ b/sw/source/ui/misc/pggrid.src
@@ -0,0 +1,273 @@
+/*************************************************************************
+ *
+ * $RCSfile: pggrid.src,v $
+ *
+ * $Revision: 1.1 $
+ *
+ * last change: $Author: os $ $Date: 2002-02-07 15:09:40 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (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.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#include "globals.hrc"
+#include "pggrid.hrc"
+#include "helpid.h"
+TabPage TP_TEXTGRID_PAGE
+{
+ HelpID = HID_TEXTGRID_PAGE;
+ Pos = MAP_APPFONT ( 0 , 0 ) ;
+ Size = MAP_APPFONT ( 260 , 185 ) ;
+ Hide = TRUE;
+ FixedLine FL_GRID_TYPE
+ {
+ Pos = MAP_APPFONT ( 6 , 3 ) ;
+ Size = MAP_APPFONT ( 164 , 8 ) ;
+ Text = "Raster" ;
+ Text [ english_us ] = "Grid" ;
+ };
+ RadioButton RB_NOGRID
+ {
+ Pos = MAP_APPFONT ( 12 , 14 ) ;
+ Size = MAP_APPFONT ( 158 , 10 ) ;
+ Text = "Kein Raster" ;
+ Text [ english_us ] = "No grid" ;
+ };
+ RadioButton RB_LINESGRID
+ {
+ Pos = MAP_APPFONT ( 12 , 27 ) ;
+ Size = MAP_APPFONT ( 158 , 10 ) ;
+ Text = "Raster (nur Linien)" ;
+ Text [ english_us ] = "Grid (lines only)" ;
+ };
+ RadioButton RB_CHARSGRID
+ {
+ Pos = MAP_APPFONT ( 12 , 40 ) ;
+ Size = MAP_APPFONT ( 158 , 10 ) ;
+ Text = "Raster (Linien und Zeichen)" ;
+ Text [ english_us ] = "Grid (lines and characters)" ;
+ };
+ Window WN_EXAMPLE
+ {
+ Pos = MAP_APPFONT ( 176 , 6 ) ;
+ Size = MAP_APPFONT ( 75 , 46 ) ;
+ };
+ FixedLine FL_LAYOUT
+ {
+ Pos = MAP_APPFONT ( 6 , 56 ) ;
+ Size = MAP_APPFONT ( 248 , 8 ) ;
+ Text = "Raster Layout" ;
+ Text [ english_us ] = "Grid layout" ;
+ };
+ FixedText FT_LINESPERPAGE
+ {
+ Pos = MAP_APPFONT ( 12 , 69 ) ;
+ Size = MAP_APPFONT ( 59 , 8 ) ;
+ Text = "Zeilen pro Seite" ;
+ Text [ english_us ] = "Lines per page" ;
+ };
+ NumericField NF_LINESPERPAGE
+ {
+ Pos = MAP_APPFONT ( 74 , 67 ) ;
+ Size = MAP_APPFONT ( 25 , 12 ) ;
+ Border = TRUE ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Repeat = TRUE ;
+ Spin = TRUE ;
+ Minimum = 1 ;
+ Maximum = 154 ;
+ Value = 1 ;
+ First = 1 ;
+ Last = 154 ;
+ SpinSize = 1 ;
+ };
+ FixedText FT_LINESPERPAGEHINT
+ {
+ Pos = MAP_APPFONT ( 102 , 69 ) ;
+ Size = MAP_APPFONT ( 25 , 8 ) ;
+ Text = "(1-154)";
+ Text [ english_us ] = "(1-154)" ;
+ };
+ FixedText FT_TEXTSIZE
+ {
+ Pos = MAP_APPFONT ( 133 , 69 ) ;
+ Size = MAP_APPFONT ( 80 , 8 ) ;
+ Text = "Basistextgröße" ;
+ Text [ english_us ] = "Base text size" ;
+ };
+ MetricField MF_TEXTSIZE
+ {
+ Pos = MAP_APPFONT ( 216 , 67 ) ;
+ Size = MAP_APPFONT ( 35 , 12 ) ;
+ Border = TRUE ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Repeat = TRUE ;
+ Spin = TRUE ;
+ Minimum = 1 ;
+ Maximum = 5600 ;
+ DecimalDigits = 1 ;
+ Unit = FUNIT_CM ;
+ First = 10 ;
+ Last = 5600 ;
+ SpinSize = 10 ;
+ };
+ FixedText FT_CHARSPERLINE
+ {
+ Pos = MAP_APPFONT ( 12 , 85 ) ;
+ Size = MAP_APPFONT ( 59 , 8 ) ;
+ Text = "Zeichen pro Zeile" ;
+ Text [ english_us ] = "Characters per line" ;
+ };
+ NumericField NF_CHARSPERLINE
+ {
+ Pos = MAP_APPFONT ( 74 , 83 ) ;
+ Size = MAP_APPFONT ( 25 , 12 ) ;
+ Border = TRUE ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Repeat = TRUE ;
+ Spin = TRUE ;
+ Minimum = 1 ;
+ Maximum = 233 ;
+ Value = 1 ;
+ First = 1 ;
+ Last = 233 ;
+ SpinSize = 1 ;
+ };
+ FixedText FT_CHARSPERLINEHINT
+ {
+ Pos = MAP_APPFONT ( 102 , 85 ) ;
+ Size = MAP_APPFONT ( 25 , 8 ) ;
+ Text = "(1-233)" ;
+ Text [ english_us ] = "(1-233)" ;
+ };
+ FixedText FT_RUBYSIZE
+ {
+ Pos = MAP_APPFONT ( 133 , 85 ) ;
+ Size = MAP_APPFONT ( 80 , 8 ) ;
+ Text = "Ruby-Textgröße" ;
+ Text [ english_us ] = "Ruby text size" ;
+ };
+ MetricField MF_RUBYSIZE
+ {
+ Pos = MAP_APPFONT ( 216 , 83 ) ;
+ Size = MAP_APPFONT ( 35 , 12 ) ;
+ Border = TRUE ;
+ TabStop = TRUE ;
+ Left = TRUE ;
+ Repeat = TRUE ;
+ Spin = TRUE ;
+ Minimum = 1 ;
+ Maximum = 5600 ;
+ DecimalDigits = 1 ;
+ Unit = FUNIT_CM ;
+ First = 10 ;
+ Last = 5600 ;
+ SpinSize = 10 ;
+ };
+ CheckBox CB_RUBYBELOW
+ {
+ Pos = MAP_APPFONT ( 14 , 99 ) ;
+ Size = MAP_APPFONT ( 242 , 10 ) ;
+ Text = "Ruby-Text unter/links vom Basistext" ;
+ Text [ english_us ] = "Ruby text below/left from base text" ;
+ };
+ FixedLine FL_DISPLAY
+ {
+ Pos = MAP_APPFONT ( 6 , 115 ) ;
+ Size = MAP_APPFONT ( 248 , 8 ) ;
+ Text = "Rasterdarstellung" ;
+ Text [ english_us ] = "Grid display" ;
+ };
+ CheckBox CB_DISPLAY
+ {
+ Pos = MAP_APPFONT ( 12 , 126 ) ;
+ Size = MAP_APPFONT ( 242 , 10 ) ;
+ Text = "Raster anzeigen" ;
+ Text [ english_us ] = "Display grid" ;
+ };
+ CheckBox CB_PRINT
+ {
+ Pos = MAP_APPFONT ( 18 , 141 ) ;
+ Size = MAP_APPFONT ( 106 , 10 ) ;
+ Text = "Raster ausdrucken" ;
+ Text [ english_us ] = "Print grid" ;
+ };
+ FixedText FT_COLOR
+ {
+ Pos = MAP_APPFONT ( 133 , 141 ) ;
+ Size = MAP_APPFONT ( 55 , 8 ) ;
+ Text = "Rasterfarbe" ;
+ Text [ english_us ] = "Grid color" ;
+ };
+ ListBox LB_COLOR
+ {
+ Pos = MAP_APPFONT ( 191 , 139 ) ;
+ Size = MAP_APPFONT ( 60 , 50 ) ;
+ TabStop = TRUE;
+ Border = TRUE;
+ DropDown = TRUE;
+ };
+};
+
+
+
+
+
+
+
+
+
+
+
+