summaryrefslogtreecommitdiff
path: root/sw/source/ui/config
diff options
context:
space:
mode:
authorOliver Specht <os@openoffice.org>2001-05-04 11:05:46 +0000
committerOliver Specht <os@openoffice.org>2001-05-04 11:05:46 +0000
commit21e5a1117075965fc65d1dc6f16ec29018b87d07 (patch)
tree1c14c25e32b13f956d04d7c885aa700dc9ae1b6d /sw/source/ui/config
parent92f8c5e7a734e4f437628252e4507cbc10bbcc1b (diff)
check box tab stop alignment added
Diffstat (limited to 'sw/source/ui/config')
-rw-r--r--sw/source/ui/config/optload.cxx10
-rw-r--r--sw/source/ui/config/optload.hrc5
-rw-r--r--sw/source/ui/config/optload.src11
3 files changed, 20 insertions, 6 deletions
diff --git a/sw/source/ui/config/optload.cxx b/sw/source/ui/config/optload.cxx
index de5457c1c572..d82f354d88b9 100644
--- a/sw/source/ui/config/optload.cxx
+++ b/sw/source/ui/config/optload.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: optload.cxx,v $
*
- * $Revision: 1.7 $
+ * $Revision: 1.8 $
*
- * last change: $Author: os $ $Date: 2001-04-09 09:46:33 $
+ * last change: $Author: os $ $Date: 2001-05-04 12:05:45 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -149,6 +149,7 @@ SwLoadOptPage::SwLoadOptPage( Window* pParent, const SfxItemSet& rSet ) :
aTabMF ( this, SW_RES( MF_TAB ) ),
aMergeDistCB(this, ResId(CB_MERGE_PARA_DIST )),
aMergeDistPageStartCB(this, ResId(CB_MERGE_PARA_DIST_PAGESTART )),
+ aTabAlignment(this, ResId(CB_TAB_ALIGNMENT )),
aCompatGB (this, ResId(GB_COMPAT )),
pWrtShell (0),
nLastTab(0),
@@ -266,6 +267,8 @@ BOOL __EXPORT SwLoadOptPage::FillItemSet( SfxItemSet& rSet )
pWrtShell->SetParaSpaceMax(aMergeDistCB.IsChecked(),
aMergeDistPageStartCB.IsChecked());
}
+ if(aTabAlignment.IsChecked() != aTabAlignment.GetSavedValue())
+ pWrtShell->SetTabCompat(aTabAlignment.IsChecked());
}
const USHORT nMPos = aMetricLB.GetSelectEntryPos();
@@ -319,9 +322,11 @@ void __EXPORT SwLoadOptPage::Reset( const SfxItemSet& rSet)
nOldLinkMode = pWrtShell->GetLinkUpdMode(TRUE);
aMergeDistCB.Check(pWrtShell->IsParaSpaceMax());
aMergeDistPageStartCB.Check(pWrtShell->IsParaSpaceMaxAtPages());
+ aTabAlignment.Check(pWrtShell->IsTabCompat());
aMergeDistCB.SaveValue();
aMergeDistPageStartCB.SaveValue();
+ aTabAlignment.SaveValue();
}
if(GLOBALSETTING == nOldLinkMode)
nOldLinkMode = pUsrPref->GetUpdateLinkMode();
@@ -334,6 +339,7 @@ void __EXPORT SwLoadOptPage::Reset( const SfxItemSet& rSet)
aMergeDistCB.Enable(pWrtShell != 0);
aMergeDistPageStartCB.Enable(pWrtShell != 0);
+ aTabAlignment.Enable(pWrtShell != 0);
aCompatGB.Enable(pWrtShell != 0);
switch (nOldLinkMode)
diff --git a/sw/source/ui/config/optload.hrc b/sw/source/ui/config/optload.hrc
index ee8058813289..b63e392ef180 100644
--- a/sw/source/ui/config/optload.hrc
+++ b/sw/source/ui/config/optload.hrc
@@ -2,9 +2,9 @@
*
* $RCSfile: optload.hrc,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: os $ $Date: 2001-04-09 09:46:33 $
+ * last change: $Author: os $ $Date: 2001-05-04 12:05:45 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -72,6 +72,7 @@
#define CB_MERGE_PARA_DIST_PAGESTART 14
#define GB_SETTINGS 15
+#define CB_TAB_ALIGNMENT 16
#define FT_TAB 17
#define MF_TAB 18
diff --git a/sw/source/ui/config/optload.src b/sw/source/ui/config/optload.src
index 5822626bfa58..da6d74bd0953 100644
--- a/sw/source/ui/config/optload.src
+++ b/sw/source/ui/config/optload.src
@@ -2,9 +2,9 @@
*
* $RCSfile: optload.src,v $
*
- * $Revision: 1.17 $
+ * $Revision: 1.18 $
*
- * last change: $Author: kz $ $Date: 2001-04-26 20:06:48 $
+ * last change: $Author: os $ $Date: 2001-05-04 12:05:45 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -550,6 +550,13 @@ TabPage TP_OPTLOAD_PAGE
Text[ turkish ] = "Paragraf ve tablo aralklarn sayfa balarna ekle";
Text[ language_user1 ] = " ";
};
+ CheckBox CB_TAB_ALIGNMENT
+ {
+ Pos = MAP_APPFONT ( 12 , 163) ;
+ Size = MAP_APPFONT ( 236 , 10 ) ;
+ Text = "Tabulatorposition ausrichten";
+ Text [ English ] = "Align tab stop position" ;
+ };
};
/**************************************************************************/
/* */