diff options
Diffstat (limited to 'binfilter/bf_sw/source/core/doc/sw_htmltbl.cxx')
-rw-r--r-- | binfilter/bf_sw/source/core/doc/sw_htmltbl.cxx | 92 |
1 files changed, 92 insertions, 0 deletions
diff --git a/binfilter/bf_sw/source/core/doc/sw_htmltbl.cxx b/binfilter/bf_sw/source/core/doc/sw_htmltbl.cxx new file mode 100644 index 000000000000..ed9658ad517e --- /dev/null +++ b/binfilter/bf_sw/source/core/doc/sw_htmltbl.cxx @@ -0,0 +1,92 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/************************************************************************* + * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * Copyright 2000, 2010 Oracle and/or its affiliates. + * + * OpenOffice.org - a multi-platform office productivity suite + * + * This file is part of OpenOffice.org. + * + * OpenOffice.org is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License version 3 + * only, as published by the Free Software Foundation. + * + * OpenOffice.org 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 version 3 for more details + * (a copy is included in the LICENSE file that accompanied this code). + * + * You should have received a copy of the GNU Lesser General Public License + * version 3 along with OpenOffice.org. If not, see + * <http://www.openoffice.org/license.html> + * for a copy of the LGPLv3 License. + * + ************************************************************************/ + + +#ifdef _MSC_VER +#pragma hdrstop +#endif + + +//#define TEST_DELAYED_RESIZE + +#ifdef TEST_DELAYED_RESIZE +#endif + +#include <horiornt.hxx> +#include <errhdl.hxx> + + +#include "htmltbl.hxx" +namespace binfilter { + +#define COLFUZZY 20 +#define MAX_TABWIDTH (USHRT_MAX - 2001) + +/*N*/ SwHTMLTableLayout::~SwHTMLTableLayout() +/*N*/ {DBG_BF_ASSERT(0, "STRIP"); //STRIP001 +/*N*/ } + +// Die Breiten der Umrandung werden zunaechst wie in Netscape berechnet: +// Aussere Umrandung: BORDER + CELLSPACING + CELLPADDING +// Innere Umrandung: CELLSPACING + CELLPADDING +// Allerdings wird die Breite der Umrandung im SW trotzdem beachtet, wenn +// bSwBorders gesetzt ist, damit nicht faellschlich umgebrochen wird. +// MIB 27.6.97: Dabei muss auch der Abstand zum Inhalt berueckichtigt werden, +// und zwar auch dann, wenn wenn nur die gegenueberliegende Seite +// eine Umrandung hat. + + + + + + + + + + + + + +// nAbsAvail ist der verfuegbare Platz in TWIPS. +// nRelAvail ist der auf USHRT_MAX bezogene verfuegbare Platz oder 0 +// nAbsSpace ist der Anteil von nAbsAvail, der durch der umgebende Zelle +// fur die Umrandung und den Abstand zum Inhalt reserviert ist. + + + + + + + + + + + +} + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |