diff options
author | Noel Grandin <noel@peralex.com> | 2012-06-22 09:46:55 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2012-06-25 20:13:16 +0200 |
commit | dee4d5ef92ca60dfd0f93ba16bd6eda166072351 (patch) | |
tree | f676b778a861c1f61f46eb33bd96447fcd471af4 /sw | |
parent | 875ee66f2445000089874a880084d92792116dfe (diff) |
Remove unused header file fltglbls.hxx
Change-Id: I7a5ad66d5c2d0f1f78e43f641f95b899a3ab51c1
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/filter/inc/fltglbls.hxx | 115 |
1 files changed, 0 insertions, 115 deletions
diff --git a/sw/source/filter/inc/fltglbls.hxx b/sw/source/filter/inc/fltglbls.hxx deleted file mode 100644 index 6dcac83d8a47..000000000000 --- a/sw/source/filter/inc/fltglbls.hxx +++ /dev/null @@ -1,115 +0,0 @@ -/* -*- 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 _FLTGLBS_HXX -#define _FLTGLBS_HXX - -#include <tools/string.hxx> -#include <i18npool/lang.h> -#include <svl/svarray.hxx> - - -class SfxPoolItem; -class SwDoc; -class SwPaM; -class SwTable; - -class SvNumberFormatter; - - -class ExcGlob; -extern ExcGlob *pExcGlob; - -class LotGlob; -extern LotGlob *pLotGlob; - -// ----- Basis-Klasse ---------------------------------------------------- -class FilterGlobals -{ -protected: - SvPtrarr aTblFmts; - sal_uInt16 nColStart; - sal_uInt16 nColEnd; - sal_uInt16 nRowStart; - sal_uInt16 nRowEnd; - sal_uInt16 nAnzCols; - sal_uInt16 nAnzRows; - -public: - FilterGlobals( SwDoc& rDoc, const SwPaM& rPam ); - ~FilterGlobals(); - - SwDoc *pD; - SwPaM *pPam; - const SwTable *pTable; - - SvNumberFormatter *pNumFormatter; - LanguageType eDefLanguage; - sal_uLong nStandard; - sal_uLong nDefFormat; // = 0xFFFFFFFF - - void SetRange( sal_uInt16 nCS, sal_uInt16 nCE, sal_uInt16 nRS, sal_uInt16 nRE ); - - sal_Bool IsInColRange( sal_uInt16 nCol ) - { return ( nCol >= nColStart && nCol <= nColEnd ); } - sal_Bool IsInRowRange( sal_uInt16 nRow ) - { return ( nRow >= nRowStart && nRow <= nRowEnd ); } - sal_Bool IsInRange( sal_uInt16 nCol, sal_uInt16 nRow ) - { return IsInRowRange(nRow) && IsInColRange(nCol); } - - void NormalizeCol( sal_uInt16 &rCol ) { rCol -= nColStart; } - void NormalizeRow( sal_uInt16 &rRow ) { rRow -= nRowStart; } - void Normalize( sal_uInt16 &rCol, sal_uInt16 &rRow ) - { NormalizeCol( rCol ); NormalizeRow( rRow ); } - - sal_uInt16 AnzCols() const { return nAnzCols; } - sal_uInt16 AnzRows() const { return nAnzRows; } - - sal_Bool ColRangeLimitter( sal_uInt16 &rCS, sal_uInt16 &rCE ); - - void InsertText( sal_uInt16 nCol, sal_uInt16 nRow, const String& rStr ); - void CreateTable(); - void InsertAttr( const SfxPoolItem& rItem ); - - inline void ColLimitter( sal_uInt16 &rCol ); - inline void RowLimitter( sal_uInt16 &rRow ); -}; - - - - - -inline void FilterGlobals::ColLimitter( sal_uInt16 &rCol ) -{ - if( rCol < nColStart ) - rCol = nColStart; - else if( rCol > nColEnd ) - rCol = nColEnd; -} - -inline void FilterGlobals::RowLimitter( sal_uInt16 &rRow ) -{ - if( rRow < nRowStart ) - rRow = nRowStart; - else if( rRow > nRowEnd ) - rRow = nRowEnd; -} - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |