diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2011-09-28 13:47:45 +0900 |
---|---|---|
committer | Takeshi Abe <tabe@fixedpoint.jp> | 2011-09-28 13:47:45 +0900 |
commit | 199d83a44d07eeed1ffb27ad2a2f3ba5e40a0491 (patch) | |
tree | 21d836b6288e3165c5ae7c4dd3f97b882f43df13 /sw | |
parent | fix typo in message (diff) | |
download | core-199d83a44d07eeed1ffb27ad2a2f3ba5e40a0491.tar.gz core-199d83a44d07eeed1ffb27ad2a2f3ba5e40a0491.zip |
removed dead code
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/attr/cellatr.cxx | 2 | ||||
-rw-r--r-- | sw/source/ui/config/caption.cxx | 4 | ||||
-rw-r--r-- | sw/source/ui/lingu/hyp.cxx | 4 | ||||
-rw-r--r-- | sw/source/ui/shells/textsh1.cxx | 22 |
4 files changed, 0 insertions, 32 deletions
diff --git a/sw/source/core/attr/cellatr.cxx b/sw/source/core/attr/cellatr.cxx index abd2dfd887d1..d2b566df142e 100644 --- a/sw/source/core/attr/cellatr.cxx +++ b/sw/source/core/attr/cellatr.cxx @@ -43,8 +43,6 @@ #include <switerator.hxx> -//TYPEINIT1( SwFmt, SwClient ); //rtti fuer SwFmt - /************************************************************************* |* *************************************************************************/ diff --git a/sw/source/ui/config/caption.cxx b/sw/source/ui/config/caption.cxx index 405a97694250..e24262fdaab0 100644 --- a/sw/source/ui/config/caption.cxx +++ b/sw/source/ui/config/caption.cxx @@ -29,15 +29,11 @@ // MARKER(update_precomp.py): autogen include statement, do not remove #include "precompiled_sw.hxx" - #include <osl/diagnose.h> #include "numrule.hxx" #include "caption.hxx" -#define VERSION_01 1 -#define CAPTION_VERSION VERSION_01 - InsCaptionOpt::InsCaptionOpt(const SwCapObjType eType, const SvGlobalName* pOleId) : bUseCaption(sal_False), eObjType(eType), diff --git a/sw/source/ui/lingu/hyp.cxx b/sw/source/ui/lingu/hyp.cxx index 27955070a6c0..26c02766b5cb 100644 --- a/sw/source/ui/lingu/hyp.cxx +++ b/sw/source/ui/lingu/hyp.cxx @@ -29,8 +29,6 @@ // MARKER(update_precomp.py): autogen include statement, do not remove #include "precompiled_sw.hxx" - - #include "initui.hxx" #include "view.hxx" #include "edtwin.hxx" @@ -42,14 +40,12 @@ #include <com/sun/star/beans/XPropertySet.hpp> #include <swwait.hxx> - #include "hyp.hxx" #include "mdiexp.hxx" #include "olmenu.hrc" #include <unomid.h> -#define HYPHHERE '-' #define PSH (&pView->GetWrtShell()) using namespace ::com::sun::star; diff --git a/sw/source/ui/shells/textsh1.cxx b/sw/source/ui/shells/textsh1.cxx index 7ccc72d59c13..55a268eba57a 100644 --- a/sw/source/ui/shells/textsh1.cxx +++ b/sw/source/ui/shells/textsh1.cxx @@ -1480,29 +1480,7 @@ void SwTextShell::GetState( SfxItemSet &rSet ) case FN_INSERT_PAGEHEADER: case FN_INSERT_PAGEFOOTER: { -#ifndef CHECK_MENU rSet.Put( SfxObjectShellItem( nWhich, GetView().GetDocShell() )); -#else - // Seitenvorlagen besorgen - sal_Bool bFound = sal_False; - sal_uInt16 n, nCnt = rSh.GetPageDescCnt(); - for( n = 0; n < nCnt; ++n ) - { - const SwPageDesc& rDesc = rSh.GetPageDesc( n ); - if( FN_INSERT_PAGEHEADER == nWhich - ? !rDesc.GetMaster().GetHeader().IsActive() - : !rDesc.GetMaster().GetFooter().IsActive() ) - { - bFound = sal_True; - break; - } - } - - if( bFound ) - rSet.Put( SfxObjectShellItem( nWhich, GetView().GetDocShell() )); - else - rSet.DisableItem( nWhich ); -#endif } break; case FN_TABLE_SORT_DIALOG: |