2000-09-18 23:08:29 +00:00
/*************************************************************************
*
2008-04-10 15:18:43 +00:00
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER .
2000-09-18 23:08:29 +00:00
*
2008-04-10 15:18:43 +00:00
* Copyright 2008 by Sun Microsystems , Inc .
2000-09-18 23:08:29 +00:00
*
2008-04-10 15:18:43 +00:00
* OpenOffice . org - a multi - platform office productivity suite
2000-09-18 23:08:29 +00:00
*
2008-04-10 15:18:43 +00:00
* $ RCSfile : unoidx . cxx , v $
2008-07-07 12:07:37 +00:00
* $ Revision : 1.68 $
2000-09-18 23:08:29 +00:00
*
2008-04-10 15:18:43 +00:00
* This file is part of OpenOffice . org .
2000-09-18 23:08:29 +00:00
*
2008-04-10 15:18:43 +00:00
* 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 .
2000-09-18 23:08:29 +00:00
*
2008-04-10 15:18:43 +00:00
* 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 ) .
2000-09-18 23:08:29 +00:00
*
2008-04-10 15:18:43 +00:00
* 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 .
2000-09-18 23:08:29 +00:00
*
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
2006-09-16 20:57:39 +00:00
// MARKER(update_precomp.py): autogen include statement, do not remove
# include "precompiled_sw.hxx"
2010-01-05 16:37:44 +01:00
# include <com/sun/star/text/XTextSection.hpp>
2000-09-18 23:08:29 +00:00
2008-03-05 16:12:14 +00:00
# include <hints.hxx>
2000-09-18 23:08:29 +00:00
# include <tools/debug.hxx>
2001-11-06 07:37:32 +00:00
# include <vos/mutex.hxx>
# include <vcl/svapp.hxx>
# include <svx/unolingu.hxx>
# include <com/sun/star/text/ChapterFormat.hpp>
# include <com/sun/star/text/ReferenceFieldPart.hpp>
# include <com/sun/star/text/BibliographyDataField.hpp>
# include <com/sun/star/frame/XModel.hpp>
# include <com/sun/star/text/XTextDocument.hpp>
# include <com/sun/star/beans/PropertyAttribute.hpp>
# include <cmdid.h>
# include <swtypes.hxx>
2002-01-10 12:40:48 +00:00
# include <shellres.hxx>
# include <viewsh.hxx>
2000-09-18 23:08:29 +00:00
# include <doc.hxx>
# include <docary.hxx>
# include <poolfmt.hxx>
# ifndef _POOLFMT_HRC
# include <poolfmt.hrc>
# endif
# include <pagedesc.hxx>
# include <unomap.hxx>
# include <unoobj.hxx>
2010-01-05 16:37:44 +01:00
# include <unoparagraph.hxx>
2010-01-05 16:37:45 +01:00
# include <unotextcursor.hxx>
2000-09-18 23:08:29 +00:00
# include <doctxm.hxx>
# include <txttxmrk.hxx>
# include <unocrsr.hxx>
2000-10-27 11:59:47 +00:00
# include <unostyle.hxx>
2000-09-18 23:08:29 +00:00
# include <ndtxt.hxx>
# include <unoidx.hxx>
# include <docsh.hxx>
# include <chpfld.hxx>
2001-07-20 09:22:01 +00:00
# include <SwStyleNameMapper.hxx>
2000-11-09 09:24:14 +00:00
2010-01-05 16:37:44 +01:00
2000-09-18 23:08:29 +00:00
using namespace : : com : : sun : : star ;
2008-03-12 11:30:08 +00:00
using : : rtl : : OUString ;
2000-09-18 23:08:29 +00:00
//-----------------------------------------------------------------------------
2007-06-05 16:33:55 +00:00
String lcl_AnyToString ( uno : : Any rVal ) throw ( lang : : IllegalArgumentException )
2000-09-18 23:08:29 +00:00
{
2001-06-27 12:48:31 +00:00
OUString sRet ;
if ( ! ( rVal > > = sRet ) )
2007-06-05 16:33:55 +00:00
throw lang : : IllegalArgumentException ( ) ;
2001-06-27 12:48:31 +00:00
return sRet ;
2000-09-18 23:08:29 +00:00
}
//-----------------------------------------------------------------------------
2007-06-05 16:33:55 +00:00
sal_Int16 lcl_AnyToInt16 ( uno : : Any rVal ) throw ( lang : : IllegalArgumentException )
2000-09-18 23:08:29 +00:00
{
2007-11-12 15:27:16 +00:00
sal_Int16 nRet = 0 ;
2003-04-04 17:12:01 +00:00
if ( ! ( rVal > > = nRet ) )
2007-06-05 16:33:55 +00:00
throw lang : : IllegalArgumentException ( ) ;
2000-09-18 23:08:29 +00:00
return nRet ;
}
//-----------------------------------------------------------------------------
2007-06-05 16:33:55 +00:00
sal_Bool lcl_AnyToBool ( uno : : Any rVal ) throw ( lang : : IllegalArgumentException )
2000-09-18 23:08:29 +00:00
{
2007-11-12 15:27:16 +00:00
sal_Bool bRet = sal_False ;
2003-04-04 17:12:01 +00:00
if ( ! ( rVal > > = bRet ) )
2007-06-05 16:33:55 +00:00
throw lang : : IllegalArgumentException ( ) ;
2003-04-04 17:12:01 +00:00
return bRet ;
2000-09-18 23:08:29 +00:00
}
/******************************************************************************
*
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
2002-01-07 15:16:16 +00:00
//-----------------------------------------------------------------------------
void lcl_ReAssignTOXType ( SwDoc * pDoc , SwTOXBase & rTOXBase , const OUString & rNewName )
{
sal_uInt16 nUserCount = pDoc - > GetTOXTypeCount ( TOX_USER ) ;
const SwTOXType * pNewType = 0 ;
for ( sal_uInt16 nUser = 0 ; nUser < nUserCount ; nUser + + )
{
const SwTOXType * pType = pDoc - > GetTOXType ( TOX_USER , nUser ) ;
if ( pType - > GetTypeName ( ) . Equals ( ( String ) rNewName ) )
{
pNewType = pType ;
break ;
}
}
if ( ! pNewType )
{
SwTOXType aNewType ( TOX_USER , rNewName ) ;
pNewType = pDoc - > InsertTOXType ( aNewType ) ;
}
//has to be non-const-casted
( ( SwTOXType * ) pNewType ) - > Add ( & rTOXBase ) ;
}
2002-01-10 12:40:48 +00:00
//-----------------------------------------------------------------------------
static const char cUserDefined [ ] = " User-Defined " ;
static const char cUserSuffix [ ] = " (user) " ;
# define USER_LEN 12
# define USER_AND_SUFFIXLEN 19
void lcl_ConvertTOUNameToProgrammaticName ( OUString & rTmp )
{
ShellResource * pShellRes = ViewShell : : GetShellRes ( ) ;
if ( rTmp . equals ( pShellRes - > aTOXUserName ) )
rTmp = OUString ( C2U ( cUserDefined ) ) ;
//if the version is not English but the alternative index's name is "User-Defined"
//a " (user)" is appended
else if ( rTmp . equalsAscii ( cUserDefined ) )
rTmp + = C2U ( cUserSuffix ) ;
}
//-----------------------------------------------------------------------------
void lcl_ConvertTOUNameToUserName ( OUString & rTmp )
{
ShellResource * pShellRes = ViewShell : : GetShellRes ( ) ;
if ( rTmp . equalsAscii ( cUserDefined ) )
{
rTmp = pShellRes - > aTOXUserName ;
}
else if ( ! pShellRes - > aTOXUserName . EqualsAscii ( cUserDefined ) & &
USER_AND_SUFFIXLEN = = rTmp . getLength ( ) )
{
String sToChange ( rTmp ) ;
//make sure that in non-English versions the " (user)" suffix is removed
if ( ! sToChange . SearchAscii ( cUserDefined ) & & USER_LEN = = sToChange . SearchAscii ( cUserSuffix ) )
rTmp = C2U ( cUserDefined ) ;
}
}
2000-09-18 23:08:29 +00:00
/******************************************************************
* SwXDocumentIndex
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* -----------------20.06.98 11:06-------------------
*
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
class SwDocIdxProperties_Impl
{
SwTOXBase * pTOXBase ;
2002-01-07 15:16:16 +00:00
OUString sUserTOXTypeName ;
2000-09-18 23:08:29 +00:00
public :
SwTOXBase & GetTOXBase ( ) { return * pTOXBase ; }
SwDocIdxProperties_Impl ( const SwTOXType * pType ) ;
~ SwDocIdxProperties_Impl ( ) { delete pTOXBase ; }
2002-01-07 15:16:16 +00:00
const OUString & GetTypeName ( ) const { return sUserTOXTypeName ; }
void SetTypeName ( const OUString & rSet ) { sUserTOXTypeName = rSet ; }
2000-09-18 23:08:29 +00:00
} ;
/* -----------------20.06.98 11:41-------------------
*
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
SwDocIdxProperties_Impl : : SwDocIdxProperties_Impl ( const SwTOXType * pType )
{
SwForm aForm ( pType - > GetType ( ) ) ;
pTOXBase = new SwTOXBase ( pType , aForm ,
2007-09-27 08:37:21 +00:00
nsSwTOXElement : : TOX_MARK , pType - > GetTypeName ( ) ) ;
2002-11-01 14:27:55 +00:00
if ( pType - > GetType ( ) = = TOX_CONTENT | | pType - > GetType ( ) = = TOX_USER )
pTOXBase - > SetLevel ( MAXLEVEL ) ;
2002-01-07 15:16:16 +00:00
sUserTOXTypeName = pType - > GetTypeName ( ) ;
2000-09-18 23:08:29 +00:00
}
/* -----------------------------10.03.00 18:02--------------------------------
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
const uno : : Sequence < sal_Int8 > & SwXDocumentIndex : : getUnoTunnelId ( )
{
static uno : : Sequence < sal_Int8 > aSeq = : : CreateUnoTunnelId ( ) ;
return aSeq ;
}
/* -----------------------------10.03.00 18:04--------------------------------
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
sal_Int64 SAL_CALL SwXDocumentIndex : : getSomething ( const uno : : Sequence < sal_Int8 > & rId )
2007-06-05 16:33:55 +00:00
throw ( uno : : RuntimeException )
2000-09-18 23:08:29 +00:00
{
if ( rId . getLength ( ) = = 16
& & 0 = = rtl_compareMemory ( getUnoTunnelId ( ) . getConstArray ( ) ,
rId . getConstArray ( ) , 16 ) )
{
2007-09-27 08:37:21 +00:00
return sal : : static_int_cast < sal_Int64 > ( reinterpret_cast < sal_IntPtr > ( this ) ) ;
2000-09-18 23:08:29 +00:00
}
return 0 ;
}
/* -----------------------------06.04.00 15:01--------------------------------
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
2007-06-05 16:33:55 +00:00
OUString SwXDocumentIndex : : getImplementationName ( void ) throw ( uno : : RuntimeException )
2000-09-18 23:08:29 +00:00
{
return C2U ( " SwXDocumentIndex " ) ;
}
/* -----------------------------06.04.00 15:01--------------------------------
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
2007-06-05 16:33:55 +00:00
BOOL SwXDocumentIndex : : supportsService ( const OUString & rServiceName ) throw ( uno : : RuntimeException )
2000-09-18 23:08:29 +00:00
{
return C2U ( " com.sun.star.text.BaseIndex " ) = = rServiceName | |
( TOX_INDEX = = eTOXType & & C2U ( " com.sun.star.text.DocumentIndex " ) = = rServiceName ) | |
( TOX_CONTENT = = eTOXType & & C2U ( " com.sun.star.text.ContentIndex " ) = = rServiceName ) | |
( TOX_USER = = eTOXType & & C2U ( " com.sun.star.text.UserDefinedIndex " ) = = rServiceName ) | |
2008-07-07 12:07:37 +00:00
( TOX_ILLUSTRATIONS = = eTOXType & & C2U ( " com.sun.star.text.IllustrationsIndex " ) = = rServiceName ) | |
2000-09-18 23:08:29 +00:00
( TOX_TABLES = = eTOXType & & C2U ( " com.sun.star.text.TableIndex " ) = = rServiceName ) | |
( TOX_OBJECTS = = eTOXType & & C2U ( " com.sun.star.text.ObjectIndex " ) = = rServiceName ) | |
( TOX_AUTHORITIES = = eTOXType & & C2U ( " com.sun.star.text.Bibliography " ) = = rServiceName ) ;
}
/* -----------------------------06.04.00 15:01--------------------------------
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
2007-06-05 16:33:55 +00:00
uno : : Sequence < OUString > SwXDocumentIndex : : getSupportedServiceNames ( void ) throw ( uno : : RuntimeException )
2000-09-18 23:08:29 +00:00
{
2007-06-05 16:33:55 +00:00
uno : : Sequence < OUString > aRet ( 2 ) ;
2000-09-18 23:08:29 +00:00
OUString * pArray = aRet . getArray ( ) ;
pArray [ 0 ] = C2U ( " com.sun.star.text.BaseIndex " ) ;
switch ( eTOXType )
{
case TOX_INDEX : pArray [ 1 ] = C2U ( " com.sun.star.text.DocumentIndex " ) ; break ;
case TOX_CONTENT : pArray [ 1 ] = C2U ( " com.sun.star.text.ContentIndex " ) ; break ;
case TOX_TABLES : pArray [ 1 ] = C2U ( " com.sun.star.text.TableIndex " ) ; break ;
2008-07-07 12:07:37 +00:00
case TOX_ILLUSTRATIONS : pArray [ 1 ] = C2U ( " com.sun.star.text.IllustrationsIndex " ) ; break ;
2000-09-18 23:08:29 +00:00
case TOX_OBJECTS : pArray [ 1 ] = C2U ( " com.sun.star.text.ObjectIndex " ) ; break ;
case TOX_AUTHORITIES : pArray [ 1 ] = C2U ( " com.sun.star.text.Bibliography " ) ; break ;
//case TOX_USER:
default :
pArray [ 1 ] = C2U ( " com.sun.star.text.UserDefinedIndex " ) ;
}
return aRet ;
}
/*-- 14.12.98 09:35:03---------------------------------------------------
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
2000-11-01 14:13:25 +00:00
TYPEINIT1 ( SwXDocumentIndex , SwClient )
2000-09-18 23:08:29 +00:00
SwXDocumentIndex : : SwXDocumentIndex ( const SwTOXBaseSection * pB , SwDoc * pDc ) :
aLstnrCntnr ( ( text : : XTextContent * ) this ) ,
2009-06-03 11:26:39 +00:00
m_pPropSet ( 0 ) ,
2007-09-27 08:37:21 +00:00
m_pDoc ( pDc ) ,
2000-09-18 23:08:29 +00:00
pBase ( pB ) ,
2007-09-27 08:37:21 +00:00
eTOXType ( TOX_USER ) ,
bIsDescriptor ( sal_False ) ,
2000-09-18 23:08:29 +00:00
pProps ( 0 ) ,
pStyleAccess ( 0 ) ,
2007-09-27 08:37:21 +00:00
pTokenAccess ( 0 )
2000-09-18 23:08:29 +00:00
{
if ( pBase & & m_pDoc )
{
pBase - > GetFmt ( ) - > Add ( this ) ;
sal_uInt16 PropertyId ;
eTOXType = pBase - > SwTOXBase : : GetType ( ) ;
switch ( eTOXType )
{
case TOX_INDEX : PropertyId = PROPERTY_MAP_INDEX_IDX ; break ;
case TOX_CONTENT : PropertyId = PROPERTY_MAP_INDEX_CNTNT ; break ;
case TOX_TABLES : PropertyId = PROPERTY_MAP_INDEX_TABLES ; break ;
case TOX_ILLUSTRATIONS : PropertyId = PROPERTY_MAP_INDEX_ILLUSTRATIONS ; break ;
case TOX_OBJECTS : PropertyId = PROPERTY_MAP_INDEX_OBJECTS ; break ;
case TOX_AUTHORITIES : PropertyId = PROPERTY_MAP_BIBLIOGRAPHY ; break ;
//case TOX_USER:
default :
PropertyId = PROPERTY_MAP_INDEX_USER ;
}
2009-06-03 11:26:39 +00:00
m_pPropSet = aSwMapProvider . GetPropertySet ( PropertyId ) ;
2000-09-18 23:08:29 +00:00
}
}
/* -----------------15.01.99 14:59-------------------
*
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
SwXDocumentIndex : : SwXDocumentIndex ( TOXTypes eType , SwDoc & rDoc ) :
aLstnrCntnr ( ( text : : XTextContent * ) this ) ,
2007-09-27 08:37:21 +00:00
m_pDoc ( 0 ) ,
2000-09-18 23:08:29 +00:00
pBase ( 0 ) ,
2007-09-27 08:37:21 +00:00
eTOXType ( eType ) ,
bIsDescriptor ( sal_True ) ,
2000-09-18 23:08:29 +00:00
pProps ( new SwDocIdxProperties_Impl ( rDoc . GetTOXType ( eType , 0 ) ) ) ,
pStyleAccess ( 0 ) ,
2007-09-27 08:37:21 +00:00
pTokenAccess ( 0 )
2000-09-18 23:08:29 +00:00
{
sal_uInt16 PropertyId ;
switch ( eType )
{
case TOX_INDEX : PropertyId = PROPERTY_MAP_INDEX_IDX ; break ;
case TOX_CONTENT : PropertyId = PROPERTY_MAP_INDEX_CNTNT ; break ;
case TOX_TABLES : PropertyId = PROPERTY_MAP_INDEX_TABLES ; break ;
case TOX_ILLUSTRATIONS : PropertyId = PROPERTY_MAP_INDEX_ILLUSTRATIONS ; break ;
case TOX_OBJECTS : PropertyId = PROPERTY_MAP_INDEX_OBJECTS ; break ;
case TOX_AUTHORITIES : PropertyId = PROPERTY_MAP_BIBLIOGRAPHY ; break ;
//case TOX_USER:
default :
PropertyId = PROPERTY_MAP_INDEX_USER ;
}
2009-06-03 11:26:39 +00:00
m_pPropSet = aSwMapProvider . GetPropertySet ( PropertyId ) ;
2000-09-18 23:08:29 +00:00
}
/*-- 14.12.98 09:35:04---------------------------------------------------
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
SwXDocumentIndex : : ~ SwXDocumentIndex ( )
{
delete pProps ;
}
/*-- 14.12.98 09:35:05---------------------------------------------------
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
2007-06-05 16:33:55 +00:00
OUString SwXDocumentIndex : : getServiceName ( void ) throw ( uno : : RuntimeException )
2000-09-18 23:08:29 +00:00
{
USHORT nObjectType = SW_SERVICE_TYPE_INDEX ;
switch ( eTOXType )
{
// case TOX_INDEX: break;
case TOX_USER : nObjectType = SW_SERVICE_USER_INDEX ; break ;
case TOX_CONTENT : nObjectType = SW_SERVICE_CONTENT_INDEX ; break ;
case TOX_ILLUSTRATIONS : nObjectType = SW_SERVICE_INDEX_ILLUSTRATIONS ; break ;
case TOX_OBJECTS : nObjectType = SW_SERVICE_INDEX_OBJECTS ; break ;
case TOX_TABLES : nObjectType = SW_SERVICE_INDEX_TABLES ; break ;
case TOX_AUTHORITIES : nObjectType = SW_SERVICE_INDEX_BIBLIOGRAPHY ; break ;
2007-09-27 08:37:21 +00:00
default :
;
2000-09-18 23:08:29 +00:00
}
return SwXServiceProvider : : GetProviderName ( nObjectType ) ;
}
/*-- 14.12.98 09:35:05---------------------------------------------------
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
2007-06-05 16:33:55 +00:00
void SwXDocumentIndex : : update ( void ) throw ( uno : : RuntimeException )
2000-09-18 23:08:29 +00:00
{
vos : : OGuard aGuard ( Application : : GetSolarMutex ( ) ) ;
2005-04-04 07:15:56 +00:00
SwSectionFmt * pFmt = GetFmt ( ) ;
SwTOXBase * pTOXBase = pFmt ? ( SwTOXBaseSection * ) pFmt - > GetSection ( ) : 0 ;
2000-09-18 23:08:29 +00:00
if ( ! pTOXBase )
2007-06-05 16:33:55 +00:00
throw uno : : RuntimeException ( ) ;
2000-09-18 23:08:29 +00:00
( ( SwTOXBaseSection * ) pTOXBase ) - > Update ( ) ;
// Seitennummern eintragen
( ( SwTOXBaseSection * ) pTOXBase ) - > UpdatePageNum ( ) ;
}
/*-- 14.12.98 09:35:05---------------------------------------------------
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
2007-06-05 16:33:55 +00:00
uno : : Reference < beans : : XPropertySetInfo > SwXDocumentIndex : : getPropertySetInfo ( void ) throw ( uno : : RuntimeException )
2000-09-18 23:08:29 +00:00
{
2009-06-03 11:26:39 +00:00
uno : : Reference < beans : : XPropertySetInfo > aRef = m_pPropSet - > getPropertySetInfo ( ) ;
2000-09-18 23:08:29 +00:00
return aRef ;
}
/*-- 14.12.98 09:35:05---------------------------------------------------
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
void SwXDocumentIndex : : setPropertyValue ( const OUString & rPropertyName ,
const uno : : Any & aValue )
2007-06-05 16:33:55 +00:00
throw ( beans : : UnknownPropertyException , beans : : PropertyVetoException ,
lang : : IllegalArgumentException , lang : : WrappedTargetException , uno : : RuntimeException )
2000-09-18 23:08:29 +00:00
{
vos : : OGuard aGuard ( Application : : GetSolarMutex ( ) ) ;
2009-06-03 11:26:39 +00:00
const SfxItemPropertySimpleEntry * pEntry = m_pPropSet - > getPropertyMap ( ) - > getByName ( rPropertyName ) ;
if ( ! pEntry )
2007-06-05 16:33:55 +00:00
throw beans : : UnknownPropertyException ( OUString ( RTL_CONSTASCII_USTRINGPARAM ( " Unknown property: " ) ) + rPropertyName , static_cast < cppu : : OWeakObject * > ( this ) ) ;
2009-06-03 11:26:39 +00:00
if ( pEntry - > nFlags & beans : : PropertyAttribute : : READONLY )
2007-06-05 16:33:55 +00:00
throw beans : : PropertyVetoException ( OUString ( RTL_CONSTASCII_USTRINGPARAM ( " Property is read-only: " ) ) + rPropertyName , static_cast < cppu : : OWeakObject * > ( this ) ) ;
2001-11-28 19:15:03 +00:00
2007-09-27 08:37:21 +00:00
SwTOXBase * pTOXBase = 0 ;
2000-09-18 23:08:29 +00:00
if ( GetFmt ( ) )
pTOXBase = ( SwTOXBaseSection * ) GetFmt ( ) - > GetSection ( ) ;
else if ( bIsDescriptor )
pTOXBase = & pProps - > GetTOXBase ( ) ;
if ( pTOXBase )
{
sal_uInt16 nCreate = pTOXBase - > GetCreateType ( ) ;
sal_uInt16 nTOIOptions = 0 ;
sal_uInt16 nOLEOptions = pTOXBase - > GetOLEOptions ( ) ;
TOXTypes eTxBaseType = pTOXBase - > GetTOXType ( ) - > GetType ( ) ;
if ( eTxBaseType = = TOX_INDEX )
nTOIOptions = pTOXBase - > GetOptions ( ) ;
SwForm aForm ( pTOXBase - > GetTOXForm ( ) ) ;
sal_Bool bForm = sal_False ;
SfxItemSet * pAttrSet = 0 ;
2009-06-03 11:26:39 +00:00
switch ( pEntry - > nWID )
2000-09-18 23:08:29 +00:00
{
2000-11-07 10:18:00 +00:00
case WID_IDX_TITLE :
{
OUString sNewName ;
aValue > > = sNewName ;
pTOXBase - > SetTitle ( sNewName ) ;
}
break ;
2001-08-23 08:38:30 +00:00
case WID_IDX_NAME :
{
OUString sNewName ;
aValue > > = sNewName ;
pTOXBase - > SetTOXName ( sNewName ) ;
}
break ;
2002-01-07 15:16:16 +00:00
case WID_USER_IDX_NAME :
{
OUString sNewName ;
aValue > > = sNewName ;
2002-01-10 12:40:48 +00:00
lcl_ConvertTOUNameToUserName ( sNewName ) ;
2008-11-10 15:06:12 +00:00
DBG_ASSERT ( TOX_USER = = eTxBaseType , " tox type name can only be changed for user indexes " ) ;
2002-01-07 15:16:16 +00:00
if ( GetFmt ( ) )
{
OUString sTmp = pTOXBase - > GetTOXType ( ) - > GetTypeName ( ) ;
if ( sTmp ! = sNewName )
{
lcl_ReAssignTOXType ( GetFmt ( ) - > GetDoc ( ) , * pTOXBase , sNewName ) ;
}
}
else
pProps - > SetTypeName ( sNewName ) ;
}
break ;
2001-06-06 09:41:26 +00:00
case WID_IDX_LOCALE :
{
lang : : Locale aLocale ;
if ( aValue > > = aLocale )
pTOXBase - > SetLanguage ( SvxLocaleToLanguage ( aLocale ) ) ;
else
2007-06-05 16:33:55 +00:00
throw lang : : IllegalArgumentException ( ) ;
2001-06-06 09:41:26 +00:00
}
break ;
case WID_IDX_SORT_ALGORITHM :
{
OUString sTmp ;
if ( aValue > > = sTmp )
pTOXBase - > SetSortAlgorithm ( sTmp ) ;
else
2007-06-05 16:33:55 +00:00
throw lang : : IllegalArgumentException ( ) ;
2001-06-06 09:41:26 +00:00
}
break ;
2000-09-18 23:08:29 +00:00
case WID_LEVEL :
pTOXBase - > SetLevel ( lcl_AnyToInt16 ( aValue ) ) ;
break ;
case WID_CREATE_FROM_MARKS :
2007-09-27 08:37:21 +00:00
nCreate = lcl_AnyToBool ( aValue ) ? nCreate | nsSwTOXElement : : TOX_MARK : nCreate & ~ nsSwTOXElement : : TOX_MARK ;
2000-09-18 23:08:29 +00:00
break ;
case WID_CREATE_FROM_OUTLINE :
2007-09-27 08:37:21 +00:00
nCreate = lcl_AnyToBool ( aValue ) ? nCreate | nsSwTOXElement : : TOX_OUTLINELEVEL : nCreate & ~ nsSwTOXElement : : TOX_OUTLINELEVEL ;
2000-09-18 23:08:29 +00:00
break ;
// case WID_PARAGRAPH_STYLE_NAMES :DBG_ERROR("not implemented")
// break;
case WID_CREATE_FROM_CHAPTER :
pTOXBase - > SetFromChapter ( lcl_AnyToBool ( aValue ) ) ;
break ;
case WID_CREATE_FROM_LABELS :
2000-11-20 19:28:19 +00:00
pTOXBase - > SetFromObjectNames ( ! lcl_AnyToBool ( aValue ) ) ;
2000-09-18 23:08:29 +00:00
break ;
case WID_PROTECTED :
2001-05-29 11:27:19 +00:00
{
sal_Bool bSet = lcl_AnyToBool ( aValue ) ;
pTOXBase - > SetProtected ( bSet ) ;
if ( GetFmt ( ) )
( ( SwTOXBaseSection * ) pTOXBase ) - > SetProtect ( bSet ) ;
}
2000-09-18 23:08:29 +00:00
break ;
case WID_USE_ALPHABETICAL_SEPARATORS :
nTOIOptions = lcl_AnyToBool ( aValue ) ?
2007-09-27 08:37:21 +00:00
nTOIOptions | nsSwTOIOptions : : TOI_ALPHA_DELIMITTER : nTOIOptions & ~ nsSwTOIOptions : : TOI_ALPHA_DELIMITTER ;
2000-09-18 23:08:29 +00:00
break ;
case WID_USE_KEY_AS_ENTRY :
nTOIOptions = lcl_AnyToBool ( aValue ) ?
2007-09-27 08:37:21 +00:00
nTOIOptions | nsSwTOIOptions : : TOI_KEY_AS_ENTRY : nTOIOptions & ~ nsSwTOIOptions : : TOI_KEY_AS_ENTRY ;
2000-09-18 23:08:29 +00:00
break ;
case WID_USE_COMBINED_ENTRIES :
nTOIOptions = lcl_AnyToBool ( aValue ) ?
2007-09-27 08:37:21 +00:00
nTOIOptions | nsSwTOIOptions : : TOI_SAME_ENTRY : nTOIOptions & ~ nsSwTOIOptions : : TOI_SAME_ENTRY ;
2000-09-18 23:08:29 +00:00
break ;
case WID_IS_CASE_SENSITIVE :
nTOIOptions = lcl_AnyToBool ( aValue ) ?
2007-09-27 08:37:21 +00:00
nTOIOptions | nsSwTOIOptions : : TOI_CASE_SENSITIVE : nTOIOptions & ~ nsSwTOIOptions : : TOI_CASE_SENSITIVE ;
2000-09-18 23:08:29 +00:00
break ;
case WID_USE_P_P :
nTOIOptions = lcl_AnyToBool ( aValue ) ?
2007-09-27 08:37:21 +00:00
nTOIOptions | nsSwTOIOptions : : TOI_FF : nTOIOptions & ~ nsSwTOIOptions : : TOI_FF ;
2000-09-18 23:08:29 +00:00
break ;
case WID_USE_DASH :
nTOIOptions = lcl_AnyToBool ( aValue ) ?
2007-09-27 08:37:21 +00:00
nTOIOptions | nsSwTOIOptions : : TOI_DASH : nTOIOptions & ~ nsSwTOIOptions : : TOI_DASH ;
2000-09-18 23:08:29 +00:00
break ;
case WID_USE_UPPER_CASE :
nTOIOptions = lcl_AnyToBool ( aValue ) ?
2007-09-27 08:37:21 +00:00
nTOIOptions | nsSwTOIOptions : : TOI_INITIAL_CAPS : nTOIOptions & ~ nsSwTOIOptions : : TOI_INITIAL_CAPS ;
2000-09-18 23:08:29 +00:00
break ;
case WID_IS_COMMA_SEPARATED :
2000-11-20 19:28:19 +00:00
bForm = sal_True ;
2000-09-18 23:08:29 +00:00
aForm . SetCommaSeparated ( lcl_AnyToBool ( aValue ) ) ;
break ;
case WID_LABEL_CATEGORY :
2003-03-27 14:45:43 +00:00
{
// convert file-format/API/external programmatic english name
// to internal UI name before usage
String aName ( SwStyleNameMapper : : GetSpecialExtraUIName (
lcl_AnyToString ( aValue ) ) ) ;
pTOXBase - > SetSequenceName ( aName ) ;
}
2000-09-18 23:08:29 +00:00
break ;
case WID_LABEL_DISPLAY_TYPE :
{
sal_Int16 nVal = lcl_AnyToInt16 ( aValue ) ;
sal_uInt16 nSet = CAPTION_COMPLETE ;
switch ( nVal )
{
2001-01-12 17:30:43 +00:00
case text : : ReferenceFieldPart : : TEXT : nSet = CAPTION_COMPLETE ;
2000-09-18 23:08:29 +00:00
break ;
2001-01-12 17:30:43 +00:00
case text : : ReferenceFieldPart : : CATEGORY_AND_NUMBER : nSet = CAPTION_NUMBER ;
2000-09-18 23:08:29 +00:00
break ;
2001-01-12 17:30:43 +00:00
case text : : ReferenceFieldPart : : ONLY_CAPTION : nSet = CAPTION_TEXT ;
2000-09-18 23:08:29 +00:00
break ;
default :
2007-06-05 16:33:55 +00:00
throw lang : : IllegalArgumentException ( ) ;
2000-09-18 23:08:29 +00:00
}
2001-01-12 17:30:43 +00:00
pTOXBase - > SetCaptionDisplay ( ( SwCaptionDisplay ) nSet ) ;
2000-09-18 23:08:29 +00:00
}
break ;
case WID_USE_LEVEL_FROM_SOURCE :
pTOXBase - > SetLevelFromChapter ( lcl_AnyToBool ( aValue ) ) ;
break ;
case WID_MAIN_ENTRY_CHARACTER_STYLE_NAME :
2001-08-16 11:33:56 +00:00
{
String aString ;
2007-09-27 08:37:21 +00:00
SwStyleNameMapper : : FillUIName ( lcl_AnyToString ( aValue ) , aString , nsSwGetPoolIdFromName : : GET_POOLID_CHRFMT , sal_True ) ;
2001-08-16 11:33:56 +00:00
pTOXBase - > SetMainEntryCharStyle ( aString ) ;
}
2000-09-18 23:08:29 +00:00
break ;
case WID_CREATE_FROM_TABLES :
2007-09-27 08:37:21 +00:00
nCreate = lcl_AnyToBool ( aValue ) ? nCreate | nsSwTOXElement : : TOX_TABLE : nCreate & ~ nsSwTOXElement : : TOX_TABLE ;
2000-09-18 23:08:29 +00:00
break ;
case WID_CREATE_FROM_TEXT_FRAMES :
2007-09-27 08:37:21 +00:00
nCreate = lcl_AnyToBool ( aValue ) ? nCreate | nsSwTOXElement : : TOX_FRAME : nCreate & ~ nsSwTOXElement : : TOX_FRAME ;
2000-09-18 23:08:29 +00:00
break ;
case WID_CREATE_FROM_GRAPHIC_OBJECTS :
2007-09-27 08:37:21 +00:00
nCreate = lcl_AnyToBool ( aValue ) ? nCreate | nsSwTOXElement : : TOX_GRAPHIC : nCreate & ~ nsSwTOXElement : : TOX_GRAPHIC ;
2000-09-18 23:08:29 +00:00
break ;
case WID_CREATE_FROM_EMBEDDED_OBJECTS :
if ( lcl_AnyToBool ( aValue ) )
2007-09-27 08:37:21 +00:00
nCreate | = nsSwTOXElement : : TOX_OLE ;
2000-09-18 23:08:29 +00:00
else
2007-09-27 08:37:21 +00:00
nCreate & = ~ nsSwTOXElement : : TOX_OLE ;
2000-09-18 23:08:29 +00:00
break ;
case WID_CREATE_FROM_STAR_MATH :
2007-09-27 08:37:21 +00:00
nOLEOptions = lcl_AnyToBool ( aValue ) ? nOLEOptions | nsSwTOOElements : : TOO_MATH : nOLEOptions & ~ nsSwTOOElements : : TOO_MATH ;
2000-09-18 23:08:29 +00:00
break ;
case WID_CREATE_FROM_STAR_CHART :
2007-09-27 08:37:21 +00:00
nOLEOptions = lcl_AnyToBool ( aValue ) ? nOLEOptions | nsSwTOOElements : : TOO_CHART : nOLEOptions & ~ nsSwTOOElements : : TOO_CHART ;
2000-09-18 23:08:29 +00:00
break ;
case WID_CREATE_FROM_STAR_CALC :
2007-09-27 08:37:21 +00:00
nOLEOptions = lcl_AnyToBool ( aValue ) ? nOLEOptions | nsSwTOOElements : : TOO_CALC : nOLEOptions & ~ nsSwTOOElements : : TOO_CALC ;
2000-09-18 23:08:29 +00:00
break ;
case WID_CREATE_FROM_STAR_DRAW :
2007-09-27 08:37:21 +00:00
nOLEOptions = lcl_AnyToBool ( aValue ) ? nOLEOptions | nsSwTOOElements : : TOO_DRAW_IMPRESS : nOLEOptions & ~ nsSwTOOElements : : TOO_DRAW_IMPRESS ;
2000-09-18 23:08:29 +00:00
break ;
case WID_CREATE_FROM_OTHER_EMBEDDED_OBJECTS :
2007-09-27 08:37:21 +00:00
nOLEOptions = lcl_AnyToBool ( aValue ) ? nOLEOptions | nsSwTOOElements : : TOO_OTHER : nOLEOptions & ~ nsSwTOOElements : : TOO_OTHER ;
2000-09-18 23:08:29 +00:00
break ;
case WID_PARA_HEAD :
2001-08-16 11:33:56 +00:00
{
String aString ;
2007-09-27 08:37:21 +00:00
SwStyleNameMapper : : FillUIName ( lcl_AnyToString ( aValue ) , aString , nsSwGetPoolIdFromName : : GET_POOLID_TXTCOLL , sal_True ) ;
2000-09-18 23:08:29 +00:00
bForm = sal_True ;
//Header steht an Pos 0
2001-08-16 11:33:56 +00:00
aForm . SetTemplate ( 0 , aString ) ;
}
2000-09-18 23:08:29 +00:00
break ;
2000-11-20 19:28:19 +00:00
case WID_IS_RELATIVE_TABSTOPS :
bForm = sal_True ;
aForm . SetRelTabPos ( lcl_AnyToBool ( aValue ) ) ;
break ;
2000-09-18 23:08:29 +00:00
case WID_PARA_SEP :
2001-08-16 11:33:56 +00:00
{
String aString ;
2000-09-18 23:08:29 +00:00
bForm = sal_True ;
2007-09-27 08:37:21 +00:00
SwStyleNameMapper : : FillUIName ( lcl_AnyToString ( aValue ) , aString , nsSwGetPoolIdFromName : : GET_POOLID_TXTCOLL , sal_True ) ;
2001-08-16 11:33:56 +00:00
aForm . SetTemplate ( 1 , aString ) ;
}
2000-09-18 23:08:29 +00:00
break ;
2000-11-21 11:00:41 +00:00
case WID_CREATE_FROM_PARAGRAPH_STYLES :
nCreate = lcl_AnyToBool ( aValue ) ?
2007-09-27 08:37:21 +00:00
( nCreate | nsSwTOXElement : : TOX_TEMPLATE ) : ( nCreate & ~ nsSwTOXElement : : TOX_TEMPLATE ) ;
2000-11-21 11:00:41 +00:00
break ;
2000-09-18 23:08:29 +00:00
case WID_PARA_LEV1 :
case WID_PARA_LEV2 :
case WID_PARA_LEV3 :
case WID_PARA_LEV4 :
case WID_PARA_LEV5 :
case WID_PARA_LEV6 :
case WID_PARA_LEV7 :
case WID_PARA_LEV8 :
case WID_PARA_LEV9 :
case WID_PARA_LEV10 :
{
bForm = sal_True ;
// im sdbcx::Index beginnt Lebel 1 bei Pos 2 sonst bei Pos 1
sal_uInt16 nLPos = pTOXBase - > GetType ( ) = = TOX_INDEX ? 2 : 1 ;
2001-08-16 11:33:56 +00:00
String aString ;
2007-09-27 08:37:21 +00:00
SwStyleNameMapper : : FillUIName ( lcl_AnyToString ( aValue ) , aString , nsSwGetPoolIdFromName : : GET_POOLID_TXTCOLL , sal_True ) ;
2009-06-03 11:26:39 +00:00
aForm . SetTemplate ( nLPos + pEntry - > nWID - WID_PARA_LEV1 , aString ) ;
2000-09-18 23:08:29 +00:00
}
break ;
default :
//this is for items only
2009-06-03 11:26:39 +00:00
if ( WID_PRIMARY_KEY > pEntry - > nWID )
2000-09-18 23:08:29 +00:00
{
const SwAttrSet & rSet = m_pDoc - > GetTOXBaseAttrSet ( * pTOXBase ) ;
pAttrSet = new SfxItemSet ( rSet ) ;
2009-06-03 11:26:39 +00:00
m_pPropSet - > setPropertyValue ( rPropertyName , aValue , * pAttrSet ) ;
2000-09-18 23:08:29 +00:00
const SwSectionFmts & rSects = m_pDoc - > GetSections ( ) ;
const SwSectionFmt * pOwnFmt = GetFmt ( ) ;
for ( sal_uInt16 i = 0 ; i < rSects . Count ( ) ; i + + )
{
const SwSectionFmt * pTmpFmt = rSects [ i ] ;
if ( pTmpFmt = = pOwnFmt )
{
m_pDoc - > ChgSection ( i , * ( SwTOXBaseSection * ) pTOXBase , pAttrSet ) ;
break ;
}
}
}
}
pTOXBase - > SetCreate ( nCreate ) ;
pTOXBase - > SetOLEOptions ( nOLEOptions ) ;
if ( pTOXBase - > GetTOXType ( ) - > GetType ( ) = = TOX_INDEX )
pTOXBase - > SetOptions ( nTOIOptions ) ;
if ( bForm )
pTOXBase - > SetTOXForm ( aForm ) ;
delete pAttrSet ;
}
else
2007-06-05 16:33:55 +00:00
throw uno : : RuntimeException ( ) ;
2000-09-18 23:08:29 +00:00
}
/*-- 14.12.98 09:35:05---------------------------------------------------
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
uno : : Any SwXDocumentIndex : : getPropertyValue ( const OUString & rPropertyName )
2007-06-05 16:33:55 +00:00
throw ( beans : : UnknownPropertyException , lang : : WrappedTargetException , uno : : RuntimeException )
2000-09-18 23:08:29 +00:00
{
vos : : OGuard aGuard ( Application : : GetSolarMutex ( ) ) ;
uno : : Any aRet ;
2009-06-03 11:26:39 +00:00
const SfxItemPropertySimpleEntry * pEntry = m_pPropSet - > getPropertyMap ( ) - > getByName ( rPropertyName ) ;
if ( ! pEntry )
2007-06-05 16:33:55 +00:00
throw beans : : UnknownPropertyException ( OUString ( RTL_CONSTASCII_USTRINGPARAM ( " Unknown property: " ) ) + rPropertyName , static_cast < cppu : : OWeakObject * > ( this ) ) ;
2007-09-27 08:37:21 +00:00
SwTOXBase * pTOXBase = 0 ;
2000-09-18 23:08:29 +00:00
if ( GetFmt ( ) )
pTOXBase = ( SwTOXBaseSection * ) GetFmt ( ) - > GetSection ( ) ;
else if ( bIsDescriptor )
pTOXBase = & pProps - > GetTOXBase ( ) ;
if ( pTOXBase )
{
sal_uInt16 nCreate = pTOXBase - > GetCreateType ( ) ;
sal_uInt16 nTOIOptions = 0 ;
sal_uInt16 nOLEOptions = pTOXBase - > GetOLEOptions ( ) ;
if ( pTOXBase - > GetTOXType ( ) - > GetType ( ) = = TOX_INDEX )
nTOIOptions = pTOXBase - > GetOptions ( ) ;
const SwForm & rForm = pTOXBase - > GetTOXForm ( ) ;
sal_Bool bBOOL = sal_True ;
sal_Bool bRet = sal_False ;
2009-06-03 11:26:39 +00:00
switch ( pEntry - > nWID )
2000-09-18 23:08:29 +00:00
{
2000-11-29 10:41:48 +00:00
case WID_IDX_CONTENT_SECTION :
case WID_IDX_HEADER_SECTION :
bBOOL = sal_False ;
2009-06-03 11:26:39 +00:00
if ( WID_IDX_CONTENT_SECTION = = pEntry - > nWID )
2000-11-29 10:41:48 +00:00
{
2007-06-05 16:33:55 +00:00
uno : : Reference < text : : XTextSection > xContentSect = SwXTextSections : : GetObject ( * GetFmt ( ) ) ;
2000-11-29 10:41:48 +00:00
aRet < < = xContentSect ;
}
else
{
SwSections aSectArr ;
GetFmt ( ) - > GetChildSections ( aSectArr , SORTSECT_NOT , FALSE ) ;
for ( USHORT i = 0 ; i < aSectArr . Count ( ) ; i + + )
{
SwSection * pSect = aSectArr [ i ] ;
if ( pSect - > GetType ( ) = = TOX_HEADER_SECTION )
{
2007-06-05 16:33:55 +00:00
uno : : Reference < text : : XTextSection > xHeaderSect = SwXTextSections : : GetObject ( * pSect - > GetFmt ( ) ) ;
2000-11-29 10:41:48 +00:00
aRet < < = xHeaderSect ;
break ;
}
}
}
break ;
2000-09-18 23:08:29 +00:00
case WID_IDX_TITLE :
2000-11-07 10:18:00 +00:00
{
2000-09-18 23:08:29 +00:00
bBOOL = sal_False ;
2000-11-07 10:18:00 +00:00
OUString uRet ( pTOXBase - > GetTitle ( ) ) ;
aRet < < = uRet ;
2001-06-15 09:01:58 +00:00
break ;
2000-11-07 10:18:00 +00:00
}
2001-08-23 08:38:30 +00:00
case WID_IDX_NAME :
bBOOL = sal_False ;
aRet < < = OUString ( pTOXBase - > GetTOXName ( ) ) ;
break ;
2002-01-07 15:16:16 +00:00
case WID_USER_IDX_NAME :
{
bBOOL = sal_False ;
OUString sTmp ;
if ( ! IsDescriptor ( ) )
sTmp = pTOXBase - > GetTOXType ( ) - > GetTypeName ( ) ;
else
sTmp = pProps - > GetTypeName ( ) ;
2002-01-10 12:40:48 +00:00
//I18N
lcl_ConvertTOUNameToProgrammaticName ( sTmp ) ;
2002-01-07 15:16:16 +00:00
aRet < < = sTmp ;
}
break ;
2001-06-06 09:41:26 +00:00
case WID_IDX_LOCALE :
bBOOL = sal_False ;
aRet < < = SvxCreateLocale ( pTOXBase - > GetLanguage ( ) ) ;
break ;
case WID_IDX_SORT_ALGORITHM :
bBOOL = sal_False ;
aRet < < = OUString ( pTOXBase - > GetSortAlgorithm ( ) ) ;
2000-09-18 23:08:29 +00:00
break ;
case WID_LEVEL :
bBOOL = sal_False ;
aRet < < = ( sal_Int16 ) pTOXBase - > GetLevel ( ) ;
break ;
case WID_CREATE_FROM_MARKS :
2007-09-27 08:37:21 +00:00
bRet = 0 ! = ( nCreate & nsSwTOXElement : : TOX_MARK ) ;
2000-09-18 23:08:29 +00:00
break ;
case WID_CREATE_FROM_OUTLINE :
2007-09-27 08:37:21 +00:00
bRet = 0 ! = ( nCreate & nsSwTOXElement : : TOX_OUTLINELEVEL ) ;
2000-09-18 23:08:29 +00:00
break ;
case WID_CREATE_FROM_CHAPTER :
bRet = pTOXBase - > IsFromChapter ( ) ;
break ;
case WID_CREATE_FROM_LABELS :
2000-11-20 19:28:19 +00:00
bRet = ! pTOXBase - > IsFromObjectNames ( ) ;
2000-09-18 23:08:29 +00:00
break ;
case WID_PROTECTED :
bRet = pTOXBase - > IsProtected ( ) ;
break ;
case WID_USE_ALPHABETICAL_SEPARATORS :
2007-09-27 08:37:21 +00:00
bRet = 0 ! = ( nTOIOptions & nsSwTOIOptions : : TOI_ALPHA_DELIMITTER ) ;
2000-09-18 23:08:29 +00:00
break ;
case WID_USE_KEY_AS_ENTRY :
2007-09-27 08:37:21 +00:00
bRet = 0 ! = ( nTOIOptions & nsSwTOIOptions : : TOI_KEY_AS_ENTRY ) ;
2000-09-18 23:08:29 +00:00
break ;
case WID_USE_COMBINED_ENTRIES :
2007-09-27 08:37:21 +00:00
bRet = 0 ! = ( nTOIOptions & nsSwTOIOptions : : TOI_SAME_ENTRY ) ;
2000-09-18 23:08:29 +00:00
break ;
case WID_IS_CASE_SENSITIVE :
2007-09-27 08:37:21 +00:00
bRet = 0 ! = ( nTOIOptions & nsSwTOIOptions : : TOI_CASE_SENSITIVE ) ;
2000-09-18 23:08:29 +00:00
break ;
case WID_USE_P_P :
2007-09-27 08:37:21 +00:00
bRet = 0 ! = ( nTOIOptions & nsSwTOIOptions : : TOI_FF ) ;
2000-09-18 23:08:29 +00:00
break ;
case WID_USE_DASH :
2007-09-27 08:37:21 +00:00
bRet = 0 ! = ( nTOIOptions & nsSwTOIOptions : : TOI_DASH ) ;
2000-09-18 23:08:29 +00:00
break ;
case WID_USE_UPPER_CASE :
2007-09-27 08:37:21 +00:00
bRet = 0 ! = ( nTOIOptions & nsSwTOIOptions : : TOI_INITIAL_CAPS ) ;
2000-09-18 23:08:29 +00:00
break ;
case WID_IS_COMMA_SEPARATED :
bRet = rForm . IsCommaSeparated ( ) ;
break ;
case WID_LABEL_CATEGORY :
2003-03-27 14:45:43 +00:00
{
// convert internal UI name to
// file-format/API/external programmatic english name
// before usage
String aName ( SwStyleNameMapper : : GetSpecialExtraProgName (
pTOXBase - > GetSequenceName ( ) ) ) ;
aRet < < = OUString ( aName ) ;
2000-09-18 23:08:29 +00:00
bBOOL = sal_False ;
2003-03-27 14:45:43 +00:00
}
2000-09-18 23:08:29 +00:00
break ;
case WID_LABEL_DISPLAY_TYPE :
{
bBOOL = sal_False ;
2001-01-12 17:30:43 +00:00
sal_Int16 nSet = text : : ReferenceFieldPart : : TEXT ;
2000-09-18 23:08:29 +00:00
switch ( pTOXBase - > GetCaptionDisplay ( ) )
{
2001-01-12 17:30:43 +00:00
case CAPTION_COMPLETE : nSet = text : : ReferenceFieldPart : : TEXT ; break ;
case CAPTION_NUMBER : nSet = text : : ReferenceFieldPart : : CATEGORY_AND_NUMBER ; break ;
case CAPTION_TEXT : nSet = text : : ReferenceFieldPart : : ONLY_CAPTION ; break ;
2000-09-18 23:08:29 +00:00
}
aRet < < = nSet ;
}
break ;
case WID_USE_LEVEL_FROM_SOURCE :
bRet = pTOXBase - > IsLevelFromChapter ( ) ;
break ;
case WID_LEVEL_FORMAT :
{
2007-06-05 16:33:55 +00:00
uno : : Reference < container : : XIndexReplace > xTokenAcc =
2000-09-18 23:08:29 +00:00
( ( SwXDocumentIndex * ) this ) - > GetTokenAccess ( ) ;
if ( ! xTokenAcc . is ( ) )
xTokenAcc = new SwXIndexTokenAccess_Impl ( *
( SwXDocumentIndex * ) this ) ;
2007-06-05 16:33:55 +00:00
aRet . setValue ( & xTokenAcc , : : getCppuType ( ( const uno : : Reference < container : : XIndexReplace > * ) 0 ) ) ;
2000-09-18 23:08:29 +00:00
bBOOL = sal_False ;
}
break ;
case WID_LEVEL_PARAGRAPH_STYLES :
{
2007-06-05 16:33:55 +00:00
uno : : Reference < container : : XIndexReplace > xStyleAcc =
2000-09-18 23:08:29 +00:00
( ( SwXDocumentIndex * ) this ) - > GetStyleAccess ( ) ;
if ( ! xStyleAcc . is ( ) )
xStyleAcc = new SwXIndexStyleAccess_Impl ( *
( SwXDocumentIndex * ) this ) ;
2007-06-05 16:33:55 +00:00
aRet . setValue ( & xStyleAcc , : : getCppuType ( ( const uno : : Reference < container : : XIndexReplace > * ) 0 ) ) ;
2000-09-18 23:08:29 +00:00
bBOOL = sal_False ;
}
break ;
case WID_MAIN_ENTRY_CHARACTER_STYLE_NAME :
2001-08-16 11:33:56 +00:00
{
2000-09-18 23:08:29 +00:00
bBOOL = sal_False ;
2001-08-16 11:33:56 +00:00
String aString ;
SwStyleNameMapper : : FillProgName (
pTOXBase - > GetMainEntryCharStyle ( ) ,
aString ,
2007-09-27 08:37:21 +00:00
nsSwGetPoolIdFromName : : GET_POOLID_CHRFMT ,
2001-08-16 11:33:56 +00:00
sal_True ) ;
aRet < < = OUString ( aString ) ;
}
2000-09-18 23:08:29 +00:00
break ;
case WID_CREATE_FROM_TABLES :
2007-09-27 08:37:21 +00:00
bRet = 0 ! = ( nCreate & nsSwTOXElement : : TOX_TABLE ) ;
2000-09-18 23:08:29 +00:00
break ;
case WID_CREATE_FROM_TEXT_FRAMES :
2007-09-27 08:37:21 +00:00
bRet = 0 ! = ( nCreate & nsSwTOXElement : : TOX_FRAME ) ;
2000-09-18 23:08:29 +00:00
break ;
case WID_CREATE_FROM_GRAPHIC_OBJECTS :
2007-09-27 08:37:21 +00:00
bRet = 0 ! = ( nCreate & nsSwTOXElement : : TOX_GRAPHIC ) ;
2000-09-18 23:08:29 +00:00
break ;
case WID_CREATE_FROM_EMBEDDED_OBJECTS :
2007-09-27 08:37:21 +00:00
bRet = 0 ! = ( nCreate & nsSwTOXElement : : TOX_OLE ) ;
2000-09-18 23:08:29 +00:00
break ;
case WID_CREATE_FROM_STAR_MATH :
2007-09-27 08:37:21 +00:00
bRet = 0 ! = ( nOLEOptions & nsSwTOOElements : : TOO_MATH ) ;
2000-09-18 23:08:29 +00:00
break ;
case WID_CREATE_FROM_STAR_CHART :
2007-09-27 08:37:21 +00:00
bRet = 0 ! = ( nOLEOptions & nsSwTOOElements : : TOO_CHART ) ;
2000-09-18 23:08:29 +00:00
break ;
case WID_CREATE_FROM_STAR_CALC :
2007-09-27 08:37:21 +00:00
bRet = 0 ! = ( nOLEOptions & nsSwTOOElements : : TOO_CALC ) ;
2000-09-18 23:08:29 +00:00
break ;
case WID_CREATE_FROM_STAR_DRAW :
2007-09-27 08:37:21 +00:00
bRet = 0 ! = ( nOLEOptions & nsSwTOOElements : : TOO_DRAW_IMPRESS ) ;
2000-09-18 23:08:29 +00:00
break ;
case WID_CREATE_FROM_OTHER_EMBEDDED_OBJECTS :
2007-09-27 08:37:21 +00:00
bRet = 0 ! = ( nOLEOptions & nsSwTOOElements : : TOO_OTHER ) ;
2000-09-18 23:08:29 +00:00
break ;
2000-11-21 11:00:41 +00:00
case WID_CREATE_FROM_PARAGRAPH_STYLES :
2007-09-27 08:37:21 +00:00
bRet = 0 ! = ( nCreate & nsSwTOXElement : : TOX_TEMPLATE ) ;
2000-11-21 11:00:41 +00:00
break ;
2000-09-18 23:08:29 +00:00
case WID_PARA_HEAD :
2001-08-16 11:33:56 +00:00
{
2000-09-18 23:08:29 +00:00
//Header steht an Pos 0
2001-08-16 11:33:56 +00:00
String aString ;
SwStyleNameMapper : : FillProgName ( rForm . GetTemplate ( 0 ) , aString ,
2007-09-27 08:37:21 +00:00
nsSwGetPoolIdFromName : : GET_POOLID_TXTCOLL , sal_True ) ;
2001-08-16 11:33:56 +00:00
aRet < < = OUString ( aString ) ;
2000-09-18 23:08:29 +00:00
bBOOL = sal_False ;
2001-08-16 11:33:56 +00:00
}
2000-09-18 23:08:29 +00:00
break ;
case WID_PARA_SEP :
2001-08-16 11:33:56 +00:00
{
String aString ;
SwStyleNameMapper : : FillProgName (
rForm . GetTemplate ( 1 ) ,
aString ,
2007-09-27 08:37:21 +00:00
nsSwGetPoolIdFromName : : GET_POOLID_TXTCOLL ,
2001-08-16 11:33:56 +00:00
sal_True ) ;
aRet < < = OUString ( aString ) ;
2000-09-18 23:08:29 +00:00
bBOOL = sal_False ;
2001-08-16 11:33:56 +00:00
}
2000-09-18 23:08:29 +00:00
break ;
case WID_PARA_LEV1 :
case WID_PARA_LEV2 :
case WID_PARA_LEV3 :
case WID_PARA_LEV4 :
case WID_PARA_LEV5 :
case WID_PARA_LEV6 :
case WID_PARA_LEV7 :
case WID_PARA_LEV8 :
case WID_PARA_LEV9 :
case WID_PARA_LEV10 :
{
// im sdbcx::Index beginnt Lebel 1 bei Pos 2 sonst bei Pos 1
sal_uInt16 nLPos = pTOXBase - > GetType ( ) = = TOX_INDEX ? 2 : 1 ;
2001-08-16 11:33:56 +00:00
String aString ;
SwStyleNameMapper : : FillProgName (
2009-06-03 11:26:39 +00:00
rForm . GetTemplate ( nLPos + pEntry - > nWID - WID_PARA_LEV1 ) ,
2001-08-16 11:33:56 +00:00
aString ,
2007-09-27 08:37:21 +00:00
nsSwGetPoolIdFromName : : GET_POOLID_TXTCOLL ,
2001-08-16 11:33:56 +00:00
sal_True ) ;
aRet < < = OUString ( aString ) ;
2000-09-18 23:08:29 +00:00
bBOOL = sal_False ;
}
break ;
2000-11-20 19:28:19 +00:00
case WID_IS_RELATIVE_TABSTOPS :
bRet = rForm . IsRelTabPos ( ) ;
break ;
2000-11-02 14:03:38 +00:00
case WID_INDEX_MARKS :
{
SwTOXMarks aMarks ;
const SwTOXType * pType = pTOXBase - > GetTOXType ( ) ;
SwClientIter aIter ( * ( SwTOXType * ) pType ) ;
SwTOXMark * pMark = ( SwTOXMark * ) aIter . First ( TYPE ( SwTOXMark ) ) ;
while ( pMark )
{
if ( pMark - > GetTxtTOXMark ( ) )
2000-11-09 14:34:31 +00:00
aMarks . C40_INSERT ( SwTOXMark , pMark , aMarks . Count ( ) ) ;
2000-11-02 14:03:38 +00:00
pMark = ( SwTOXMark * ) aIter . Next ( ) ;
}
2007-06-05 16:33:55 +00:00
uno : : Sequence < uno : : Reference < text : : XDocumentIndexMark > > aXMarks ( aMarks . Count ( ) ) ;
uno : : Reference < text : : XDocumentIndexMark > * pxMarks = aXMarks . getArray ( ) ;
2000-11-02 14:03:38 +00:00
for ( USHORT i = 0 ; i < aMarks . Count ( ) ; i + + )
{
2007-09-27 08:37:21 +00:00
pMark = aMarks . GetObject ( i ) ;
2000-11-02 14:03:38 +00:00
pxMarks [ i ] = SwXDocumentIndexMark : : GetObject ( ( SwTOXType * ) pType , pMark , m_pDoc ) ;
}
2007-06-05 16:33:55 +00:00
aRet . setValue ( & aXMarks , : : getCppuType ( ( uno : : Sequence < uno : : Reference < text : : XDocumentIndexMark > > * ) 0 ) ) ;
2000-11-02 14:03:38 +00:00
bBOOL = sal_False ;
}
break ;
2000-09-18 23:08:29 +00:00
default :
//this is for items only
bBOOL = sal_False ;
2009-06-03 11:26:39 +00:00
if ( WID_PRIMARY_KEY > pEntry - > nWID )
2000-09-18 23:08:29 +00:00
{
const SwAttrSet & rSet = m_pDoc - > GetTOXBaseAttrSet ( * pTOXBase ) ;
2009-06-03 11:26:39 +00:00
aRet = m_pPropSet - > getPropertyValue ( rPropertyName , rSet ) ;
2000-09-18 23:08:29 +00:00
}
}
if ( bBOOL )
aRet . setValue ( & bRet , : : getCppuBooleanType ( ) ) ;
}
return aRet ;
}
/*-- 14.12.98 09:35:06---------------------------------------------------
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
2007-09-27 08:37:21 +00:00
void SwXDocumentIndex : : addPropertyChangeListener ( const OUString & /*PropertyName*/ , const uno : : Reference < beans : : XPropertyChangeListener > & /*aListener*/ ) throw ( beans : : UnknownPropertyException , lang : : WrappedTargetException , uno : : RuntimeException )
2000-09-18 23:08:29 +00:00
{
2008-11-10 15:06:12 +00:00
DBG_WARNING ( " not implemented " ) ;
2000-09-18 23:08:29 +00:00
}
/*-- 14.12.98 09:35:06---------------------------------------------------
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
2007-09-27 08:37:21 +00:00
void SwXDocumentIndex : : removePropertyChangeListener ( const OUString & /*PropertyName*/ , const uno : : Reference < beans : : XPropertyChangeListener > & /*aListener*/ ) throw ( beans : : UnknownPropertyException , lang : : WrappedTargetException , uno : : RuntimeException )
2000-09-18 23:08:29 +00:00
{
2008-11-10 15:06:12 +00:00
DBG_WARNING ( " not implemented " ) ;
2000-09-18 23:08:29 +00:00
}
/*-- 14.12.98 09:35:06---------------------------------------------------
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
2007-09-27 08:37:21 +00:00
void SwXDocumentIndex : : addVetoableChangeListener ( const OUString & /*PropertyName*/ , const uno : : Reference < beans : : XVetoableChangeListener > & /*aListener*/ ) throw ( beans : : UnknownPropertyException , lang : : WrappedTargetException , uno : : RuntimeException )
2000-09-18 23:08:29 +00:00
{
2008-11-10 15:06:12 +00:00
DBG_WARNING ( " not implemented " ) ;
2000-09-18 23:08:29 +00:00
}
/*-- 14.12.98 09:35:07---------------------------------------------------
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
2007-09-27 08:37:21 +00:00
void SwXDocumentIndex : : removeVetoableChangeListener ( const OUString & /*PropertyName*/ , const uno : : Reference < beans : : XVetoableChangeListener > & /*aListener*/ ) throw ( beans : : UnknownPropertyException , lang : : WrappedTargetException , uno : : RuntimeException )
2000-09-18 23:08:29 +00:00
{
2008-11-10 15:06:12 +00:00
DBG_WARNING ( " not implemented " ) ;
2000-09-18 23:08:29 +00:00
}
/*-- 14.12.98 09:35:07---------------------------------------------------
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
void SwXDocumentIndex : : Modify ( SfxPoolItem * pOld , SfxPoolItem * pNew )
{
2001-11-06 07:37:32 +00:00
BOOL bRemove = FALSE ;
switch ( pOld ? pOld - > Which ( ) : 0 )
{
case RES_REMOVE_UNO_OBJECT :
case RES_OBJECTDYING :
bRemove = ( void * ) GetRegisteredIn ( ) = = ( ( SwPtrMsgPoolItem * ) pOld ) - > pObject ;
break ;
case RES_FMT_CHG :
// wurden wir an das neue umgehaengt und wird das alte geloscht?
bRemove = ( ( SwFmtChg * ) pNew ) - > pChangedFmt = = GetRegisteredIn ( ) & &
( ( SwFmtChg * ) pOld ) - > pChangedFmt - > IsFmtInDTOR ( ) ;
break ;
}
if ( bRemove )
{
( ( SwModify * ) GetRegisteredIn ( ) ) - > Remove ( this ) ;
2000-09-18 23:08:29 +00:00
aLstnrCntnr . Disposing ( ) ;
2001-11-06 07:37:32 +00:00
}
2000-09-18 23:08:29 +00:00
}
/* -----------------18.02.99 13:39-------------------
*
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
2007-06-05 16:33:55 +00:00
void SwXDocumentIndex : : attachToRange ( const uno : : Reference < text : : XTextRange > & xTextRange )
throw ( lang : : IllegalArgumentException , uno : : RuntimeException )
2000-09-18 23:08:29 +00:00
{
if ( ! bIsDescriptor )
2007-06-05 16:33:55 +00:00
throw uno : : RuntimeException ( ) ;
uno : : Reference < XUnoTunnel > xRangeTunnel ( xTextRange , uno : : UNO_QUERY ) ;
2000-09-18 23:08:29 +00:00
SwXTextRange * pRange = 0 ;
2003-04-01 14:34:33 +00:00
OTextCursorHelper * pCursor = 0 ;
2000-09-18 23:08:29 +00:00
if ( xRangeTunnel . is ( ) )
{
2007-09-27 08:37:21 +00:00
pRange = reinterpret_cast < SwXTextRange * > (
sal : : static_int_cast < sal_IntPtr > ( xRangeTunnel - > getSomething ( SwXTextRange : : getUnoTunnelId ( ) ) ) ) ;
pCursor = reinterpret_cast < OTextCursorHelper * > (
sal : : static_int_cast < sal_IntPtr > ( xRangeTunnel - > getSomething ( OTextCursorHelper : : getUnoTunnelId ( ) ) ) ) ;
2000-09-18 23:08:29 +00:00
}
SwDoc * pDoc = pRange ? ( SwDoc * ) pRange - > GetDoc ( ) : pCursor ? ( SwDoc * ) pCursor - > GetDoc ( ) : 0 ;
if ( pDoc )
{
SwUnoInternalPaM aPam ( * pDoc ) ;
//das muss jetzt sal_True liefern
SwXTextRange : : XTextRangeToSwPaM ( aPam , xTextRange ) ;
const SwTOXBase * pOld = pDoc - > GetCurTOX ( * aPam . Start ( ) ) ;
if ( ! pOld )
{
UnoActionContext aAction ( pDoc ) ;
if ( aPam . HasMark ( ) )
pDoc - > DeleteAndJoin ( aPam ) ;
SwTOXBase & rTOXBase = pProps - > GetTOXBase ( ) ;
2002-01-07 15:16:16 +00:00
const SwTOXType * pTOXType = rTOXBase . GetTOXType ( ) ;
if ( TOX_USER = = pTOXType - > GetType ( ) & & ! pProps - > GetTypeName ( ) . equals ( pTOXType - > GetTypeName ( ) ) )
{
lcl_ReAssignTOXType ( pDoc , rTOXBase , pProps - > GetTypeName ( ) ) ;
}
2000-09-18 23:08:29 +00:00
//TODO: apply Section attributes (columns and background)
2000-10-27 11:59:47 +00:00
const SwTOXBaseSection * pTOX = pDoc - > InsertTableOf (
2000-11-10 09:18:36 +00:00
* aPam . GetPoint ( ) , rTOXBase , 0 , sal_False ) ;
2000-09-18 23:08:29 +00:00
2000-10-27 11:59:47 +00:00
pDoc - > SetTOXBaseName ( * pTOX , pProps - > GetTOXBase ( ) . GetTOXName ( ) ) ;
2000-09-18 23:08:29 +00:00
// Seitennummern eintragen
pBase = ( const SwTOXBaseSection * ) pTOX ;
pBase - > GetFmt ( ) - > Add ( this ) ;
( ( SwTOXBaseSection * ) pTOX ) - > UpdatePageNum ( ) ;
}
else
2007-06-05 16:33:55 +00:00
throw lang : : IllegalArgumentException ( ) ;
2000-09-18 23:08:29 +00:00
DELETEZ ( pProps ) ;
m_pDoc = pDoc ;
bIsDescriptor = sal_False ;
}
}
/*-- 15.01.99 14:23:51---------------------------------------------------
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
2007-06-05 16:33:55 +00:00
void SwXDocumentIndex : : attach ( const uno : : Reference < text : : XTextRange > & xTextRange )
throw ( lang : : IllegalArgumentException , uno : : RuntimeException )
2000-09-18 23:08:29 +00:00
{
2002-09-12 12:12:13 +00:00
vos : : OGuard aGuard ( Application : : GetSolarMutex ( ) ) ;
attachToRange ( xTextRange ) ;
2000-09-18 23:08:29 +00:00
}
/*-- 15.01.99 14:23:56---------------------------------------------------
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
2007-06-05 16:33:55 +00:00
uno : : Reference < text : : XTextRange > SwXDocumentIndex : : getAnchor ( void ) throw ( uno : : RuntimeException )
2000-09-18 23:08:29 +00:00
{
vos : : OGuard aGuard ( Application : : GetSolarMutex ( ) ) ;
2007-06-05 16:33:55 +00:00
uno : : Reference < text : : XTextRange > xRet ;
2000-09-18 23:08:29 +00:00
if ( GetRegisteredIn ( ) )
{
SwSectionFmt * pSectFmt = GetFmt ( ) ;
const SwNodeIndex * pIdx ;
if ( 0 ! = ( pIdx = pSectFmt - > GetCntnt ( ) . GetCntntIdx ( ) ) & &
pIdx - > GetNode ( ) . GetNodes ( ) . IsDocNodes ( ) )
{
SwPaM aPaM ( * pIdx ) ;
aPaM . Move ( fnMoveForward , fnGoCntnt ) ;
aPaM . SetMark ( ) ;
aPaM . GetPoint ( ) - > nNode = * pIdx - > GetNode ( ) . EndOfSectionNode ( ) ;
aPaM . Move ( fnMoveBackward , fnGoCntnt ) ;
2001-01-12 15:15:41 +00:00
xRet = SwXTextRange : : CreateTextRangeFromPosition ( pSectFmt - > GetDoc ( ) ,
2000-09-18 23:08:29 +00:00
* aPaM . GetMark ( ) , aPaM . GetPoint ( ) ) ;
}
}
else
2007-06-05 16:33:55 +00:00
throw uno : : RuntimeException ( ) ;
2000-09-18 23:08:29 +00:00
return xRet ;
}
/*-- 15.01.99 15:46:48---------------------------------------------------
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
void lcl_RemoveChildSections ( SwSectionFmt & rParentFmt )
{
SwSections aTmpArr ;
SwDoc * pDoc = rParentFmt . GetDoc ( ) ;
sal_uInt16 nCnt = rParentFmt . GetChildSections ( aTmpArr , SORTSECT_POS ) ;
if ( nCnt )
{
for ( sal_uInt16 n = 0 ; n < nCnt ; + + n )
if ( aTmpArr [ n ] - > GetFmt ( ) - > IsInNodesArr ( ) )
{
SwSectionFmt * pFmt = aTmpArr [ n ] - > GetFmt ( ) ;
lcl_RemoveChildSections ( * pFmt ) ;
pDoc - > DelSectionFmt ( pFmt ) ;
}
}
}
2007-06-05 16:33:55 +00:00
void SwXDocumentIndex : : dispose ( void ) throw ( uno : : RuntimeException )
2000-09-18 23:08:29 +00:00
{
vos : : OGuard aGuard ( Application : : GetSolarMutex ( ) ) ;
if ( GetRegisteredIn ( ) )
{
SwSectionFmt * pSectFmt = GetFmt ( ) ;
pSectFmt - > GetDoc ( ) - > DeleteTOX ( * ( SwTOXBaseSection * ) pSectFmt - > GetSection ( ) , sal_True ) ;
}
else
2007-06-05 16:33:55 +00:00
throw uno : : RuntimeException ( ) ;
2000-09-18 23:08:29 +00:00
}
/*-- 15.01.99 15:46:49---------------------------------------------------
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
2007-06-05 16:33:55 +00:00
void SwXDocumentIndex : : addEventListener ( const uno : : Reference < lang : : XEventListener > & aListener ) throw ( uno : : RuntimeException )
2000-09-18 23:08:29 +00:00
{
if ( ! GetRegisteredIn ( ) )
2007-06-05 16:33:55 +00:00
throw uno : : RuntimeException ( ) ;
2000-09-18 23:08:29 +00:00
aLstnrCntnr . AddListener ( aListener ) ;
}
/*-- 15.01.99 15:46:54---------------------------------------------------
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
2007-06-05 16:33:55 +00:00
void SwXDocumentIndex : : removeEventListener ( const uno : : Reference < lang : : XEventListener > & aListener ) throw ( uno : : RuntimeException )
2000-09-18 23:08:29 +00:00
{
if ( ! GetRegisteredIn ( ) | | ! aLstnrCntnr . RemoveListener ( aListener ) )
2007-06-05 16:33:55 +00:00
throw uno : : RuntimeException ( ) ;
2000-09-18 23:08:29 +00:00
}
/* -----------------30.07.99 11:28-------------------
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
2007-06-05 16:33:55 +00:00
OUString SwXDocumentIndex : : getName ( void ) throw ( uno : : RuntimeException )
2000-09-18 23:08:29 +00:00
{
SwSectionFmt * pSectionFmt = GetFmt ( ) ;
OUString uRet ;
if ( bIsDescriptor )
{
uRet = OUString ( pProps - > GetTOXBase ( ) . GetTOXName ( ) ) ;
}
else if ( pSectionFmt )
{
uRet = OUString ( pSectionFmt - > GetSection ( ) - > GetName ( ) ) ;
}
else
2007-06-05 16:33:55 +00:00
throw uno : : RuntimeException ( ) ;
2000-09-18 23:08:29 +00:00
return uRet ;
}
/* -----------------30.07.99 11:28-------------------
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
2007-06-05 16:33:55 +00:00
void SwXDocumentIndex : : setName ( const OUString & rName ) throw ( uno : : RuntimeException )
2000-09-18 23:08:29 +00:00
{
SwSectionFmt * pSectionFmt = GetFmt ( ) ;
String sNewName ( rName ) ;
sal_Bool bExcept = sal_False ;
if ( ! sNewName . Len ( ) )
bExcept = sal_True ;
2000-11-07 10:18:00 +00:00
if ( bIsDescriptor )
2000-09-18 23:08:29 +00:00
{
pProps - > GetTOXBase ( ) . SetTOXName ( sNewName ) ;
}
else if ( ! pSectionFmt | |
! pSectionFmt - > GetDoc ( ) - > SetTOXBaseName (
* ( SwTOXBaseSection * ) pSectionFmt - > GetSection ( ) , sNewName ) )
bExcept = sal_True ;
if ( bExcept )
2007-06-05 16:33:55 +00:00
throw uno : : RuntimeException ( ) ;
2000-09-18 23:08:29 +00:00
}
/******************************************************************
* SwXDocumentIndexMark
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* -----------------------------10.03.00 18:02--------------------------------
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
const uno : : Sequence < sal_Int8 > & SwXDocumentIndexMark : : getUnoTunnelId ( )
{
static uno : : Sequence < sal_Int8 > aSeq = : : CreateUnoTunnelId ( ) ;
return aSeq ;
}
/* -----------------------------10.03.00 18:04--------------------------------
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
sal_Int64 SAL_CALL SwXDocumentIndexMark : : getSomething ( const uno : : Sequence < sal_Int8 > & rId )
2007-06-05 16:33:55 +00:00
throw ( uno : : RuntimeException )
2000-09-18 23:08:29 +00:00
{
if ( rId . getLength ( ) = = 16
& & 0 = = rtl_compareMemory ( getUnoTunnelId ( ) . getConstArray ( ) ,
rId . getConstArray ( ) , 16 ) )
{
2007-09-27 08:37:21 +00:00
return sal : : static_int_cast < sal_Int64 > ( reinterpret_cast < sal_IntPtr > ( this ) ) ;
2000-09-18 23:08:29 +00:00
}
return 0 ;
}
TYPEINIT1 ( SwXDocumentIndexMark , SwClient )
2002-06-24 10:24:22 +00:00
const sal_Char cBaseMark [ ] = " com.sun.star.text.BaseIndexMark " ;
const sal_Char cContentMark [ ] = " com.sun.star.text.ContentIndexMark " ;
const sal_Char cIdxMark [ ] = " com.sun.star.text.DocumentIndexMark " ;
const sal_Char cIdxMarkAsian [ ] = " com.sun.star.text.DocumentIndexMarkAsian " ;
const sal_Char cUserMark [ ] = " com.sun.star.text.UserIndexMark " ;
const sal_Char cTextContent [ ] = " com.sun.star.text.TextContent " ;
2000-09-18 23:08:29 +00:00
/* -----------------------------06.04.00 15:07--------------------------------
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
2007-06-05 16:33:55 +00:00
OUString SwXDocumentIndexMark : : getImplementationName ( void ) throw ( uno : : RuntimeException )
2000-09-18 23:08:29 +00:00
{
return C2U ( " SwXDocumentIndexMark " ) ;
}
/* -----------------------------06.04.00 15:07--------------------------------
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
2007-06-05 16:33:55 +00:00
BOOL SwXDocumentIndexMark : : supportsService ( const OUString & rServiceName ) throw ( uno : : RuntimeException )
2000-09-18 23:08:29 +00:00
{
2000-12-09 13:12:18 +00:00
return ! rServiceName . compareToAscii ( cBaseMark ) | |
! rServiceName . compareToAscii ( cTextContent ) | |
( eType = = TOX_USER & & ! rServiceName . compareToAscii ( cUserMark ) ) | |
( eType = = TOX_CONTENT & & ! rServiceName . compareToAscii ( cContentMark ) ) | |
2002-06-24 10:24:22 +00:00
( eType = = TOX_INDEX & & ! rServiceName . compareToAscii ( cIdxMark ) ) | |
( eType = = TOX_INDEX & & ! rServiceName . compareToAscii ( cIdxMarkAsian ) ) ;
2000-09-18 23:08:29 +00:00
}
/* -----------------------------06.04.00 15:07--------------------------------
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
2007-06-05 16:33:55 +00:00
uno : : Sequence < OUString > SwXDocumentIndexMark : : getSupportedServiceNames ( void ) throw ( uno : : RuntimeException )
2000-09-18 23:08:29 +00:00
{
2002-06-24 10:24:22 +00:00
INT32 nCnt = ( eType = = TOX_INDEX ) ? 4 : 3 ;
2007-06-05 16:33:55 +00:00
uno : : Sequence < OUString > aRet ( nCnt ) ;
2000-09-18 23:08:29 +00:00
OUString * pArray = aRet . getArray ( ) ;
2000-12-09 13:12:18 +00:00
pArray [ 0 ] = C2U ( cBaseMark ) ;
pArray [ 1 ] = C2U ( cTextContent ) ;
switch ( eType )
{
2002-06-24 10:24:22 +00:00
case TOX_USER :
pArray [ 2 ] = C2U ( cUserMark ) ;
break ;
case TOX_CONTENT :
pArray [ 2 ] = C2U ( cContentMark ) ;
break ;
case TOX_INDEX :
pArray [ 2 ] = C2U ( cIdxMark ) ;
pArray [ 3 ] = C2U ( cIdxMarkAsian ) ;
break ;
2007-09-27 08:37:21 +00:00
default :
;
2000-12-09 13:12:18 +00:00
}
2000-09-18 23:08:29 +00:00
return aRet ;
}
/*-- 14.12.98 10:25:43---------------------------------------------------
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
SwXDocumentIndexMark : : SwXDocumentIndexMark ( TOXTypes eToxType ) :
2007-09-27 08:37:21 +00:00
aLstnrCntnr ( ( text : : XTextContent * ) this ) ,
2000-10-16 09:31:56 +00:00
aTypeDepend ( this , 0 ) ,
2000-09-18 23:08:29 +00:00
m_pDoc ( 0 ) ,
m_pTOXMark ( 0 ) ,
2007-09-27 08:37:21 +00:00
bIsDescriptor ( sal_True ) ,
2000-12-09 13:04:51 +00:00
bMainEntry ( sal_False ) ,
2007-09-27 08:37:21 +00:00
eType ( eToxType ) ,
nLevel ( 0 )
2000-09-18 23:08:29 +00:00
{
InitMap ( eToxType ) ;
}
/*-- 14.12.98 10:25:44---------------------------------------------------
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
SwXDocumentIndexMark : : SwXDocumentIndexMark ( const SwTOXType * pType ,
const SwTOXMark * pMark ,
SwDoc * pDc ) :
aLstnrCntnr ( ( text : : XTextContent * ) this ) ,
2007-09-27 08:37:21 +00:00
aTypeDepend ( this , ( SwTOXType * ) pType ) ,
2000-09-18 23:08:29 +00:00
m_pDoc ( pDc ) ,
m_pTOXMark ( pMark ) ,
2000-12-09 13:04:51 +00:00
bIsDescriptor ( sal_False ) ,
2007-09-27 08:37:21 +00:00
bMainEntry ( sal_False ) ,
eType ( pType - > GetType ( ) ) ,
nLevel ( 0 )
2000-09-18 23:08:29 +00:00
{
2000-10-16 09:31:56 +00:00
m_pDoc - > GetUnoCallBack ( ) - > Add ( this ) ;
2000-09-18 23:08:29 +00:00
InitMap ( eType ) ;
}
/*-- 14.12.98 10:25:44---------------------------------------------------
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
SwXDocumentIndexMark : : ~ SwXDocumentIndexMark ( )
{
}
/* -----------------21.04.99 09:36-------------------
*
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
void SwXDocumentIndexMark : : InitMap ( TOXTypes eToxType )
{
sal_uInt16 nMapId = PROPERTY_MAP_USER_MARK ; //case TOX_USER:
switch ( eToxType )
{
case TOX_INDEX :
nMapId = PROPERTY_MAP_INDEX_MARK ;
break ;
case TOX_CONTENT :
nMapId = PROPERTY_MAP_CNTIDX_MARK ;
break ;
//case TOX_USER:
2007-09-27 08:37:21 +00:00
default :
;
2000-09-18 23:08:29 +00:00
}
2009-06-03 11:26:39 +00:00
m_pPropSet = aSwMapProvider . GetPropertySet ( nMapId ) ;
2000-09-18 23:08:29 +00:00
}
/*-- 14.12.98 10:25:45---------------------------------------------------
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
2007-06-05 16:33:55 +00:00
OUString SwXDocumentIndexMark : : getMarkEntry ( void ) throw ( uno : : RuntimeException )
2000-09-18 23:08:29 +00:00
{
vos : : OGuard aGuard ( Application : : GetSolarMutex ( ) ) ;
SwTOXType * pType = ( ( SwXDocumentIndexMark * ) this ) - > GetTOXType ( ) ;
OUString sRet ;
2009-06-03 11:26:39 +00:00
if ( pType & & m_pTOXMark )
2000-09-18 23:08:29 +00:00
{
2009-06-03 11:26:39 +00:00
sRet = OUString ( m_pTOXMark - > GetAlternativeText ( ) ) ;
2000-09-18 23:08:29 +00:00
}
else if ( bIsDescriptor )
sRet = sAltText ;
else
2007-06-05 16:33:55 +00:00
throw uno : : RuntimeException ( ) ;
2000-09-18 23:08:29 +00:00
return sRet ;
}
/*-- 14.12.98 10:25:45---------------------------------------------------
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
2007-06-05 16:33:55 +00:00
void SwXDocumentIndexMark : : setMarkEntry ( const OUString & rIndexEntry ) throw ( uno : : RuntimeException )
2000-09-18 23:08:29 +00:00
{
vos : : OGuard aGuard ( Application : : GetSolarMutex ( ) ) ;
SwTOXType * pType = ( ( SwXDocumentIndexMark * ) this ) - > GetTOXType ( ) ;
2009-06-03 11:26:39 +00:00
if ( pType & & m_pTOXMark )
2000-09-18 23:08:29 +00:00
{
2009-06-03 11:26:39 +00:00
SwTOXMark aMark ( * m_pTOXMark ) ;
2000-09-18 23:08:29 +00:00
aMark . SetAlternativeText ( rIndexEntry ) ;
2009-06-03 11:26:39 +00:00
const SwTxtTOXMark * pTxtMark = m_pTOXMark - > GetTxtTOXMark ( ) ;
2000-09-18 23:08:29 +00:00
SwPaM aPam ( pTxtMark - > GetTxtNode ( ) , * pTxtMark - > GetStart ( ) ) ;
aPam . SetMark ( ) ;
if ( pTxtMark - > GetEnd ( ) )
{
aPam . GetPoint ( ) - > nContent = * pTxtMark - > GetEnd ( ) ;
}
else
aPam . GetPoint ( ) - > nContent + + ;
//die alte Marke loeschen
CWS-TOOLING: integrate CWS odfmetadata3
2009-09-11 Michael Stahl merge DEV300_m58
2009-09-07 Michael Stahl SwFmtFld::Modify(): do nothing on RES_OBJECTDYING
2009-08-27 Michael Stahl #i91565#, #i91566#: TextPortionEnumerationTest.java: add test document
2009-08-27 Michael Stahl #i91565#, #i91566#: add complex test: TextPortionEnumerationTest.java
2009-08-27 Michael Stahl CLiteral::initialize(): zero-length literals probably not an error
2009-08-27 Michael Stahl #i91565#, #i91566#: offapi: new InContentMetadata and MetadataField services
adapt TextPortion for InContentMetadata
2009-08-27 Michael Stahl #i91564#: xmloff: load/store xml:id and RDFa for text:bookmark(-start).
2009-08-27 Michael Stahl #i91564#: sw core: add support for xml:id at bookmarks:
sw::mark::Bookmark: derive from Metadatable.
SwHistoryBookmark, SaveBookmark: store a MetadatableUndo.
ndcopy.cxx: lcl_CopyBookmarks(): copy the xml:id.
SwXBookmark: derive from MetadatableMixin.
2009-08-27 Michael Stahl #i91565#, #i91566#: xmloff: refactor ruby import so nested meta(-field) works:
remove XMLRubyHint_Impl.
XMLImpRubyContext_Impl::~XMLImpRubyContext_Impl(): insert ruby directly.
2009-08-27 Michael Stahl #i91565#, #i91566#: xmloff: fix text:meta(-field) import/export:
new XMLTextParagraphExport::exportTextField() overload for XTextField.
CreateAndInsertMark(): set xml:id after insertion.
fix meta(-field) service names, bugs etc.
2009-08-27 Michael Stahl #i91565#, #i91566#: sw text formatting: paint background of meta(-field) body:
SwFont: add member m_nMetaCount.
txttypes.hxx: add POR_META.
atrstck.cxx: handle RES_TXTATR_META(FIELD).
itrform2.cxx: SwTxtFormatter::WhichTxtPor(): create new class SwMetaPortion.
2009-08-27 Michael Stahl #i91566#: sw text formatting: display meta-field prefix and suffix:
SwAttrIter::GetAttr(): replace with call to GetTxtAttrForCharAt().
SwTxtFormatter::NewExtraPortion(): handle meta-field prefix.
SwTxtFormatter: new member m_nHintEndIndex.
SwTxtFormatter::WhichFirstPortion(): call TryNewNoLengthPortion().
SwTxtFormatter::TryNewNoLengthPortion(): new; handle suffix of meta-field.
SwTxtFormatter::UnderFlow(): UGLY HACK: decrement m_nHintEndIndex.
SwFldPortion: add flag m_bNoLength: portion has zero length (for suffix).
2009-08-27 Michael Stahl #i91565#, #i91566#: extend text:meta(-field) uno wrapper with XText interface:
unoobj.hxx: new CursorType CURSOR_META.
unoobj2.cxx: refactor SwXText implementation to ensure that when the SwXText
belongs to a SwXMeta, content is always inserted inside the meta(-field).
unoobj.cxx: new SwXTextCursor::ForceIntoMeta(): cursor stays in meta(-field).
unometa.hxx: SwXMeta implements XText, forwarding to a member SwXMetaText.
DocInsertStringSplitCR(), SwX*::attachToRange(), SwX*::DeleteAndInsert():
use FORCEHINTEXPAND hack to ensure insert into the meta(-field) at the end.
2009-08-27 Michael Stahl #i91565#, #i91566#: add text:meta(-field) uno wrapper to sw:
fmtmeta.hxx, fmtatr2.cxx: new class sw::MetaField, new sw::MetaFieldManager.
doc.hxx, docnew.cxx: new SwDoc::GetMetaFieldManager().
unocoll.hxx,.cxx: new SW_SERVICE_FIELDTYPE_METAFIELD, SW_SERVICE_TYPE_META.
unomap.hxx,.cxx: new PROPERTY_MAP_METAFIELD.
unoprnms.hxx: new UNO_NAME_META.
unoport.hxx: new PORTION_META; add "InContentMetadata" prop to SwXTextPortion.
new unometa.hxx: new class SwXMeta and SwXMetaField.
unofield.cxx: SwXFieldEnumeration: include meta-fields.
unoportenum.cxx: handle RES_TXTATR_META(FIELD) by using a portion list stack.
unotext.cxx: SwXText::insertTextContent(): handle meta(-field) as attribute.
2009-08-27 Michael Stahl #i91565#, #i91566#: ndhints.cxx: remove sort number from SwTxtAttrNesting
2009-08-27 Michael Stahl #i91565#, #i91566#: add support for hints with end and CH_TXTATR to sw core:
doc.hxx, docedt.cxx: replace SwDoc::Delete(), DeleteAndJoin(), ReplaceRange()
with wrappers that split at left-overlapped end+CH_TXTATR hints.
txatbase.hxx: new member SwTxtAttr::m_bHasDummyChar.
ndtxt.hxx: rename SwTxtNode::GetTxtAttr() to GetTxtAttrForCharAt().
ndtxt.cxx: SwTxtNode::CopyText(): copy end+CH_TXTATR hints iff copy CH_TXTATR.
txtatr2.cxx, thints.cxx: SwTxtMeta gets a CH_TXTATR.
2009-08-27 Michael Stahl #i91565#, #i91566#: add text:meta(-field) to sw core:
txatbase.hxx: new member SwTxtAttr::m_bNesting.
hintids.hxx: new ids RES_TXTATR_META, RES_TXTATR_METAFIELD.
txtatr.hxx: new base class SwTxtAttrNesting.
new hint SwTxtMeta.
SwTxtRuby derives from SwTxtAttrNesting.
txtinet.hxx: SwTxtINetFmt derives from SwTxtAttrNesting.
new header fmtmeta.hxx: new pool item SwFmtMeta. new class sw::Meta.
ndhints.hxx, thints.cxx: new method SwpHints::TryInsertNesting().
thints.cxx: refactoring: BuildPortions() no longer handles Ruby/Hyperlink,
but TryInsertNesting(), which also handles meta(-field).
SwTxtNode::InsertItem(): check if the hint is actually inserted.
ndhints.cxx: sort nesting hints based on sort number.
ndtxt.cxx: lcl_CopyHint(): handle copy of meta/meta-field.
2009-08-27 Michael Stahl enable expanding hints with m_bLockExpandFlag set:
add new InsertFlag: INS_FORCEHINTEXPAND.
add new SetAttrMode: SETATTR_FORCEHINTEXPAND.
rename SwEditShell::Insert() to Insert2() because changed signature fails
to compile when SwWrtShell tries to overwrite these non-virtual members...
SwWrtShell::Insert() sets FOCEHINTEXPAND if range was selected/deleted.
adapt SwUndoInsert to store flags.
2009-08-27 Michael Stahl change formal parameters of item insertion methods to type SetAttrMode
2009-08-27 Michael Stahl fix incorrect resetting of text attributes in SwUndoInsSection, SwUndoInserts
2009-08-27 Michael Stahl clean up SwTxtNode::CutImpl() and lcl_CopyHint()
2009-08-27 Michael Stahl rename SwDoc::Copy() to CopyRange(), and _Copy() to CopyImpl()
2009-08-27 Michael Stahl rename SwNodes::Move() to MoveRange(), and remove unused parameter
2009-08-27 Michael Stahl rename SwDoc::Move() to MoveRange()/MoveNodeRange()
2009-08-27 Michael Stahl rename SwDoc::Insert() to InsertString(), and remove sal_Unicode variant
2009-08-27 Michael Stahl rename SwDoc::Insert() to InsertPoolItem()/InsertItemSet()/InsertSwSection()
2009-08-27 Michael Stahl rename SwDoc::Replace() to ReplaceRange()
2009-08-27 Michael Stahl remove SwDoc::Overwrite() sal_Unicode variant
2009-08-27 Michael Stahl split up SwDoc::DeleteAndJoin(): factor out DeleteAndJoinWithRedline()
2009-08-27 Michael Stahl rename overloaded SwDoc::Delete() to DeleteRange()/DeleteTOXMark()
2009-08-27 Michael Stahl rename SwTxtNode::Copy() to CopyText()
2009-08-27 Michael Stahl rename SwTxtNode::Cut() to CutText(), and _Cut() to CutImpl()
2009-08-27 Michael Stahl rename SwTxtNode::Delete() to DeleteAttribute()/DeleteAttributes()
2009-08-27 Michael Stahl rename SwTxtNode::Replace() to ReplaceText(), and remove the xub_Unicode variant
2009-08-27 Michael Stahl rename SwTxtNode::Erase() to EraseText()
2009-08-27 Michael Stahl rename SwTxtNode::Insert() to InsertText(), and remove the xub_Unicode variant
2009-08-27 Michael Stahl clean up SwTxtNode::Update()
2009-08-27 Michael Stahl remove SwTxtAttr::RemoveFromPool() and make destructor non-public,
to be invoked by new method SwTxtAttr::Destroy()
2009-08-27 Michael Stahl ensure that SwDoc::Insert() for item (set) returns success indicator:
replace SwRegHistory constructor with method InsertItems(), returning bool.
refactor InsAttr() so that it checks if InsertItems() succeeds.
2009-08-27 Michael Stahl move SwXTextPortionEnumeration from unoobj.hxx to unoport.hxx
2009-08-27 Michael Stahl add missing SolarMutex in SwXTextPortion methods
2009-08-27 Michael Stahl SwXTextPortion: new member m_xTextField (so the TextField property need not
be returned indirectly via SwUnoCursorHelper).
factor out function CreateSwXTextField().
2009-08-27 Michael Stahl SwXTextPortion: remove PORTION_CONTROL_CHAR and implementation of XTextField
2009-08-27 Michael Stahl remove obsolete hint SwTxtHardBlank and formats SwFmtHardBlank/SwFmtSoftHyph
2009-08-27 Michael Stahl clean up SwTxtAttr and friends:
remove many accessor methods for obsolete (due to autofmt) char format items.
remove unused flag SwTxtAttr::m_bDontMergeAttr.
MakeRedlineTxtAttr() now dedicated function, no longer calls MakeTxtAttr().
2009-08-27 Michael Stahl remove obsolete attribute SwTxt2Lines
2009-08-27 Michael Stahl SwXTextPortionEnumeration: finish refactoring CreatePortions
change ExportHints so it always returns a text portion for hint w/ CH_TXTATR.
remove special case for handling end of paragraph.
unfortunately had to refactor the fieldmarks export as well (got in the way).
2009-08-27 Michael Stahl SwXTextPortionEnumeration: refactor CreatePortions: frames export
extract function ExportFrames() from CreatePortions().
remove (un)dead code that calls evil MovePara(fnParaCurr, fnParaEnd)
2009-08-27 Michael Stahl clean up SwXParaFrameEnumeration
2009-08-27 Michael Stahl CollectFrameAtNode: replace SwDependArr with STL based FrameDependList_t
2009-08-27 Michael Stahl SwXTextPortionEnumeration: tweak refmark/toxmark export
so ExportHints returns the portion for point marks
2009-08-27 Michael Stahl clean up SwXTextPortionEnumeration:
prefix members, remove casts, replace SvWeirdArray with STL, etc.
make CreatePortions() method a function, and remove lots of members.
extract fieldmarks function from CreatePortions.
2009-08-27 Michael Stahl remove FOREACHUNOPAM_START/END macros
2009-08-27 Michael Stahl clean up SwXTextPortion:
prefix members, remove casts, etc.
remove SwXRubyPortion: replace it with another SwXTextPortion constructor
2009-08-27 Michael Stahl #i102541# SwXReferenceMark::InsertRefMark(): use flag SETATTR_DONTEXPAND
2009-08-27 Michael Stahl rename SwTxtNode::Insert to SwTxtNode::InsertHint, and
fix constness in SwTxtNode::InsertItem
2009-08-27 Michael Stahl turn SwTxtNode::MakeTxtAttr() methods into global functions in ndhints.hxx
2009-08-27 Michael Stahl remove obsolete sw/inc/bookmrk.hxx
2009-08-27 Michael Stahl pam.cxx: fix ComparePosition functions (returned wrong result in one case)
2009-08-27 Michael Stahl #i103613# only import RDF metadata on normal open of a document
2009-09-11 kz CWS-TOOLING: integrate CWS impress176
2009-09-08 20:18:24 +0200 sj r275957 : fixed warning (shadowed variable)
2009-09-08 18:02:05 +0200 cl r275948 : #i104315# added missing tab pages
2009-09-08 17:35:18 +0200 cl r275947 : #i104866# fixed angle import
2009-09-08 17:32:53 +0200 cl r275946 : #i104841# fixed angle import
2009-09-08 17:01:25 +0200 cl r275943 : #i103935# fixed the SID_EVENTCONFIG mess
2009-09-08 14:32:57 +0200 sj r275928 : #i104685# only comments
2009-09-07 12:37:36 +0200 sj r275886 : #i104683# fixed import of bold/italic attributes for normal text shapes
2009-09-04 15:07:46 +0200 sj r275808 : #104689# fixed bullet color problem
2009-09-03 15:25:07 +0200 sj r275753 : #160200# added vertical alignment of table cells
2009-09-11 kz CWS-TOOLING: integrate CWS dv14
2009-09-10 15:16:32 +0200 sg r276035 : #160513# updated wfs scheme to accept ports
2009-09-10 07:41:47 +0200 dv r276019 : #i104942# Better renaming algorithmen
2009-08-31 13:41:11 +0200 dv r275604 : #160505# Setting APP1PRODUCTNAME must not overwrite APP1PRODUCTDEF
2009-09-11 kz CWS-TOOLING: integrate CWS jl131
2009-09-02 16:42:40 +0200 jl r275720 : #i97896#
2009-08-31 13:01:53 +0200 jl r275599 : CWS-TOOLING: rebase CWS jl131 to trunk@275331 (milestone: DEV300:m56)
2009-07-31 14:35:30 +0200 jl r274531 : CWS-TOOLING: rebase CWS jl131 to trunk@274203 (milestone: DEV300:m53)
2009-07-23 14:20:32 +0200 jl r274272 : #i79839# better error text when trying to modify shared layer without having write permission, eg. unopkg add --shared, unopkg remove --shared, unopkg reinstall --shared
2009-07-22 16:38:02 +0200 jl r274252 : #i97896# localize error message for lock file
2009-07-22 16:37:22 +0200 jl r274251 : #i80462# unprecise wording in updatedialog
2009-07-22 16:36:06 +0200 jl r274250 : #i97896# localize error message for lock file
2009-07-22 16:35:20 +0200 jl r274249 : #i97896# localize error message for lock file
2009-07-22 15:07:30 +0200 jl r274242 : #i98873# minimum java version is 1.5 since OOo 3.0
2009-09-11 kz CWS-TOOLING: integrate CWS changehc
2009-08-31 19:38:50 +0200 pl r275633 : remove dbug printf
2009-08-31 17:41:50 +0200 pl r275623 : CWS-TOOLING: rebase CWS changehc to trunk@275331 (milestone: DEV300:m56)
2009-07-15 19:45:46 +0200 pl r274028 : #i35482# use HC flag to decide high contrast mode
2009-07-15 17:40:52 +0200 pl r274020 : #i35482# use HC flag to decide high contrast mode
2009-07-15 17:39:50 +0200 pl r274019 : #i35482# update autohc correctly in MergeSystemSettings
2009-07-15 17:38:57 +0200 pl r274018 : #i35482# update autohc correctly in MergeSystemSettings
2009-09-11 kz CWS-TOOLING: integrate CWS notes10
2009-08-24 07:25:57 +0200 mod r275287 : 2009-07-26 02:38:32 +0200 mod r274343 : #i#i103645#
2009-07-26 02:01:53 +0200 mod r274342 : #i103645#
2009-07-26 01:52:42 +0200 mod r274341 : #i103490#
2009-07-22 08:31:48 +0200 mod r274215 : #i103373#
2009-07-15 00:55:11 +0200 mod r273987 : #i101419#
2009-07-14 07:07:55 +0200 mod r273956 : #i101419#
2009-07-14 07:07:43 +0200 mod r273955 : #i101419#
2009-07-14 07:02:10 +0200 mod r273954 : changes from notes9
2009-07-14 06:14:25 +0200 mod r273953 : #i103476#
2009-09-11 kz CWS-TOOLING: integrate CWS ab70
2009-09-10 15:12:54 +0200 jsk r276034 : #i85434# - mandatory automatic update test
2009-09-10 15:11:06 +0200 jsk r276033 : #i85434# - mandatory automatic update test
2009-09-02 09:49:24 +0200 ab r275698 : #i85434# Dialog Import
2009-09-11 kz CWS-TOOLING: integrate CWS hb32bugs02
2009-09-02 Henning Brinkmann #i102420# revert changes
2009-08-26 Henning Brinkmann merged DEV300_m56
2009-08-19 Henning Brinkmann merged DEV300_m55
2009-08-14 Henning Brinkmann merged changes from wntmsci12
2009-08-12 Henning Brinkmann Implemented NoSpaceEdit constructor and destructor in .cxx to allow compile with debug on wntmsci12.
2009-08-12 Henning Brinkmann Added some SW_DLLPUBLIC to make compilable on wntmsci12.
2009-08-11 Henning Brinkmann #i102420# dbg_out: surround output for SwNodes with <nodes-array>.
2009-08-10 Henning Brinkmann #i102420# rewritten debug output for SwNodes.
2009-08-07 Henning Brinkmann #i102420# debug _MoveNodes: output the destination, too. Break after two iterations.
2009-08-07 Henning Brinkmann #i102420# _MoveNodes: Additionally check if destination index is inside source => false
Check if current range was already handled => loop
Debug output current range
2009-08-06 Henning Brinkmann merged DEV300_m54
2009-08-06 Henning Brinkmann added master fix
2009-08-06 Henning Brinkmann debug output for SwNodeRange
2009-08-04 Henning Brinkmann #i102844# robustness: check for NULL pointer to prevent crash
2009-08-03 Henning Brinkmann #i103475# applied patch and verified
2009-08-03 Henning Brinkmann Removed code preventing build of sw with DEBUG.
2009-09-11 convert-repo update tags
2009-09-10 kz CWS-TOOLING: integrate CWS os2port06dev300
2009-09-05 22:49:00 +0200 ydario r275858 : #i99588# applied os2port06 diff to DEV300 tree.
2009-09-10 kz CWS-TOOLING: integrate CWS mingwport23
2009-08-29 07:07:53 +0200 tono r275555 : i#104522: mingw port graphite
2009-08-29 07:07:26 +0200 tono r275554 : i#104522: mingw port printf format fix
2009-09-10 kz CWS-TOOLING: integrate CWS mh232
2009-08-26 03:52:57 +0200 mh r275385 : #i102182# FreeBSD patch
2009-08-26 03:43:20 +0200 mh r275384 : #i101333# patch for FreeBSD
2009-08-26 03:11:20 +0200 mh r275383 : #i39230
2009-08-26 03:07:51 +0200 mh r275382 : #i39230# more space for initials field
2009-08-26 02:41:19 +0200 mh r275380 : #i39230# use vos::osecurity for reading the user name
2009-08-18 22:06:00 +0200 mh r275130 : #i104243#, line ending problem with newer perl
2009-08-18 21:53:21 +0200 mh r275129 : #i39230# read initials via getpwnam
2009-08-18 21:34:05 +0200 mh r275128 : enable CAIROCANVAS for Linux and Mac, #i88613#
2009-08-17 18:02:59 +0200 mh r275067 : #i95498# make compile with gcc3
2009-09-10 kz CWS-TOOLING: integrate CWS tkr24
2009-09-07 14:31:06 +0200 is r275898 : #160081# adding NO_LICENSE_INTO_COPYRIGHT
2009-09-10 releng #i10000# change KeyMapping to SingletonRef<framework::KeyMapping>
2009-09-11 convert-repo update tags
2009-09-10 kz CWS-TOOLING: integrate CWS os2port06dev300
2009-09-05 22:49:00 +0200 ydario r275858 : #i99588# applied os2port06 diff to DEV300 tree.
2009-09-10 kz CWS-TOOLING: integrate CWS mingwport23
2009-08-29 07:07:53 +0200 tono r275555 : i#104522: mingw port graphite
2009-08-29 07:07:26 +0200 tono r275554 : i#104522: mingw port printf format fix
2009-09-10 kz CWS-TOOLING: integrate CWS mh232
2009-08-26 03:52:57 +0200 mh r275385 : #i102182# FreeBSD patch
2009-08-26 03:43:20 +0200 mh r275384 : #i101333# patch for FreeBSD
2009-08-26 03:11:20 +0200 mh r275383 : #i39230
2009-08-26 03:07:51 +0200 mh r275382 : #i39230# more space for initials field
2009-08-26 02:41:19 +0200 mh r275380 : #i39230# use vos::osecurity for reading the user name
2009-08-18 22:06:00 +0200 mh r275130 : #i104243#, line ending problem with newer perl
2009-08-18 21:53:21 +0200 mh r275129 : #i39230# read initials via getpwnam
2009-08-18 21:34:05 +0200 mh r275128 : enable CAIROCANVAS for Linux and Mac, #i88613#
2009-08-17 18:02:59 +0200 mh r275067 : #i95498# make compile with gcc3
2009-09-10 kz CWS-TOOLING: integrate CWS tkr24
2009-09-07 14:31:06 +0200 is r275898 : #160081# adding NO_LICENSE_INTO_COPYRIGHT
2009-09-10 releng #i10000# change KeyMapping to SingletonRef<framework::KeyMapping>
2009-09-11 14:29:45 +00:00
m_pDoc - > DeleteTOXMark ( m_pTOXMark ) ;
2009-06-03 11:26:39 +00:00
m_pTOXMark = 0 ;
2000-09-18 23:08:29 +00:00
2002-02-05 13:57:52 +00:00
SwTxtAttr * pTxtAttr = 0 ;
2000-09-18 23:08:29 +00:00
sal_Bool bInsAtPos = aMark . IsAlternativeText ( ) ;
const SwPosition * pStt = aPam . Start ( ) ,
* pEnd = aPam . End ( ) ;
if ( bInsAtPos )
{
SwPaM aTmp ( * pStt ) ;
CWS-TOOLING: integrate CWS odfmetadata3
2009-09-11 Michael Stahl merge DEV300_m58
2009-09-07 Michael Stahl SwFmtFld::Modify(): do nothing on RES_OBJECTDYING
2009-08-27 Michael Stahl #i91565#, #i91566#: TextPortionEnumerationTest.java: add test document
2009-08-27 Michael Stahl #i91565#, #i91566#: add complex test: TextPortionEnumerationTest.java
2009-08-27 Michael Stahl CLiteral::initialize(): zero-length literals probably not an error
2009-08-27 Michael Stahl #i91565#, #i91566#: offapi: new InContentMetadata and MetadataField services
adapt TextPortion for InContentMetadata
2009-08-27 Michael Stahl #i91564#: xmloff: load/store xml:id and RDFa for text:bookmark(-start).
2009-08-27 Michael Stahl #i91564#: sw core: add support for xml:id at bookmarks:
sw::mark::Bookmark: derive from Metadatable.
SwHistoryBookmark, SaveBookmark: store a MetadatableUndo.
ndcopy.cxx: lcl_CopyBookmarks(): copy the xml:id.
SwXBookmark: derive from MetadatableMixin.
2009-08-27 Michael Stahl #i91565#, #i91566#: xmloff: refactor ruby import so nested meta(-field) works:
remove XMLRubyHint_Impl.
XMLImpRubyContext_Impl::~XMLImpRubyContext_Impl(): insert ruby directly.
2009-08-27 Michael Stahl #i91565#, #i91566#: xmloff: fix text:meta(-field) import/export:
new XMLTextParagraphExport::exportTextField() overload for XTextField.
CreateAndInsertMark(): set xml:id after insertion.
fix meta(-field) service names, bugs etc.
2009-08-27 Michael Stahl #i91565#, #i91566#: sw text formatting: paint background of meta(-field) body:
SwFont: add member m_nMetaCount.
txttypes.hxx: add POR_META.
atrstck.cxx: handle RES_TXTATR_META(FIELD).
itrform2.cxx: SwTxtFormatter::WhichTxtPor(): create new class SwMetaPortion.
2009-08-27 Michael Stahl #i91566#: sw text formatting: display meta-field prefix and suffix:
SwAttrIter::GetAttr(): replace with call to GetTxtAttrForCharAt().
SwTxtFormatter::NewExtraPortion(): handle meta-field prefix.
SwTxtFormatter: new member m_nHintEndIndex.
SwTxtFormatter::WhichFirstPortion(): call TryNewNoLengthPortion().
SwTxtFormatter::TryNewNoLengthPortion(): new; handle suffix of meta-field.
SwTxtFormatter::UnderFlow(): UGLY HACK: decrement m_nHintEndIndex.
SwFldPortion: add flag m_bNoLength: portion has zero length (for suffix).
2009-08-27 Michael Stahl #i91565#, #i91566#: extend text:meta(-field) uno wrapper with XText interface:
unoobj.hxx: new CursorType CURSOR_META.
unoobj2.cxx: refactor SwXText implementation to ensure that when the SwXText
belongs to a SwXMeta, content is always inserted inside the meta(-field).
unoobj.cxx: new SwXTextCursor::ForceIntoMeta(): cursor stays in meta(-field).
unometa.hxx: SwXMeta implements XText, forwarding to a member SwXMetaText.
DocInsertStringSplitCR(), SwX*::attachToRange(), SwX*::DeleteAndInsert():
use FORCEHINTEXPAND hack to ensure insert into the meta(-field) at the end.
2009-08-27 Michael Stahl #i91565#, #i91566#: add text:meta(-field) uno wrapper to sw:
fmtmeta.hxx, fmtatr2.cxx: new class sw::MetaField, new sw::MetaFieldManager.
doc.hxx, docnew.cxx: new SwDoc::GetMetaFieldManager().
unocoll.hxx,.cxx: new SW_SERVICE_FIELDTYPE_METAFIELD, SW_SERVICE_TYPE_META.
unomap.hxx,.cxx: new PROPERTY_MAP_METAFIELD.
unoprnms.hxx: new UNO_NAME_META.
unoport.hxx: new PORTION_META; add "InContentMetadata" prop to SwXTextPortion.
new unometa.hxx: new class SwXMeta and SwXMetaField.
unofield.cxx: SwXFieldEnumeration: include meta-fields.
unoportenum.cxx: handle RES_TXTATR_META(FIELD) by using a portion list stack.
unotext.cxx: SwXText::insertTextContent(): handle meta(-field) as attribute.
2009-08-27 Michael Stahl #i91565#, #i91566#: ndhints.cxx: remove sort number from SwTxtAttrNesting
2009-08-27 Michael Stahl #i91565#, #i91566#: add support for hints with end and CH_TXTATR to sw core:
doc.hxx, docedt.cxx: replace SwDoc::Delete(), DeleteAndJoin(), ReplaceRange()
with wrappers that split at left-overlapped end+CH_TXTATR hints.
txatbase.hxx: new member SwTxtAttr::m_bHasDummyChar.
ndtxt.hxx: rename SwTxtNode::GetTxtAttr() to GetTxtAttrForCharAt().
ndtxt.cxx: SwTxtNode::CopyText(): copy end+CH_TXTATR hints iff copy CH_TXTATR.
txtatr2.cxx, thints.cxx: SwTxtMeta gets a CH_TXTATR.
2009-08-27 Michael Stahl #i91565#, #i91566#: add text:meta(-field) to sw core:
txatbase.hxx: new member SwTxtAttr::m_bNesting.
hintids.hxx: new ids RES_TXTATR_META, RES_TXTATR_METAFIELD.
txtatr.hxx: new base class SwTxtAttrNesting.
new hint SwTxtMeta.
SwTxtRuby derives from SwTxtAttrNesting.
txtinet.hxx: SwTxtINetFmt derives from SwTxtAttrNesting.
new header fmtmeta.hxx: new pool item SwFmtMeta. new class sw::Meta.
ndhints.hxx, thints.cxx: new method SwpHints::TryInsertNesting().
thints.cxx: refactoring: BuildPortions() no longer handles Ruby/Hyperlink,
but TryInsertNesting(), which also handles meta(-field).
SwTxtNode::InsertItem(): check if the hint is actually inserted.
ndhints.cxx: sort nesting hints based on sort number.
ndtxt.cxx: lcl_CopyHint(): handle copy of meta/meta-field.
2009-08-27 Michael Stahl enable expanding hints with m_bLockExpandFlag set:
add new InsertFlag: INS_FORCEHINTEXPAND.
add new SetAttrMode: SETATTR_FORCEHINTEXPAND.
rename SwEditShell::Insert() to Insert2() because changed signature fails
to compile when SwWrtShell tries to overwrite these non-virtual members...
SwWrtShell::Insert() sets FOCEHINTEXPAND if range was selected/deleted.
adapt SwUndoInsert to store flags.
2009-08-27 Michael Stahl change formal parameters of item insertion methods to type SetAttrMode
2009-08-27 Michael Stahl fix incorrect resetting of text attributes in SwUndoInsSection, SwUndoInserts
2009-08-27 Michael Stahl clean up SwTxtNode::CutImpl() and lcl_CopyHint()
2009-08-27 Michael Stahl rename SwDoc::Copy() to CopyRange(), and _Copy() to CopyImpl()
2009-08-27 Michael Stahl rename SwNodes::Move() to MoveRange(), and remove unused parameter
2009-08-27 Michael Stahl rename SwDoc::Move() to MoveRange()/MoveNodeRange()
2009-08-27 Michael Stahl rename SwDoc::Insert() to InsertString(), and remove sal_Unicode variant
2009-08-27 Michael Stahl rename SwDoc::Insert() to InsertPoolItem()/InsertItemSet()/InsertSwSection()
2009-08-27 Michael Stahl rename SwDoc::Replace() to ReplaceRange()
2009-08-27 Michael Stahl remove SwDoc::Overwrite() sal_Unicode variant
2009-08-27 Michael Stahl split up SwDoc::DeleteAndJoin(): factor out DeleteAndJoinWithRedline()
2009-08-27 Michael Stahl rename overloaded SwDoc::Delete() to DeleteRange()/DeleteTOXMark()
2009-08-27 Michael Stahl rename SwTxtNode::Copy() to CopyText()
2009-08-27 Michael Stahl rename SwTxtNode::Cut() to CutText(), and _Cut() to CutImpl()
2009-08-27 Michael Stahl rename SwTxtNode::Delete() to DeleteAttribute()/DeleteAttributes()
2009-08-27 Michael Stahl rename SwTxtNode::Replace() to ReplaceText(), and remove the xub_Unicode variant
2009-08-27 Michael Stahl rename SwTxtNode::Erase() to EraseText()
2009-08-27 Michael Stahl rename SwTxtNode::Insert() to InsertText(), and remove the xub_Unicode variant
2009-08-27 Michael Stahl clean up SwTxtNode::Update()
2009-08-27 Michael Stahl remove SwTxtAttr::RemoveFromPool() and make destructor non-public,
to be invoked by new method SwTxtAttr::Destroy()
2009-08-27 Michael Stahl ensure that SwDoc::Insert() for item (set) returns success indicator:
replace SwRegHistory constructor with method InsertItems(), returning bool.
refactor InsAttr() so that it checks if InsertItems() succeeds.
2009-08-27 Michael Stahl move SwXTextPortionEnumeration from unoobj.hxx to unoport.hxx
2009-08-27 Michael Stahl add missing SolarMutex in SwXTextPortion methods
2009-08-27 Michael Stahl SwXTextPortion: new member m_xTextField (so the TextField property need not
be returned indirectly via SwUnoCursorHelper).
factor out function CreateSwXTextField().
2009-08-27 Michael Stahl SwXTextPortion: remove PORTION_CONTROL_CHAR and implementation of XTextField
2009-08-27 Michael Stahl remove obsolete hint SwTxtHardBlank and formats SwFmtHardBlank/SwFmtSoftHyph
2009-08-27 Michael Stahl clean up SwTxtAttr and friends:
remove many accessor methods for obsolete (due to autofmt) char format items.
remove unused flag SwTxtAttr::m_bDontMergeAttr.
MakeRedlineTxtAttr() now dedicated function, no longer calls MakeTxtAttr().
2009-08-27 Michael Stahl remove obsolete attribute SwTxt2Lines
2009-08-27 Michael Stahl SwXTextPortionEnumeration: finish refactoring CreatePortions
change ExportHints so it always returns a text portion for hint w/ CH_TXTATR.
remove special case for handling end of paragraph.
unfortunately had to refactor the fieldmarks export as well (got in the way).
2009-08-27 Michael Stahl SwXTextPortionEnumeration: refactor CreatePortions: frames export
extract function ExportFrames() from CreatePortions().
remove (un)dead code that calls evil MovePara(fnParaCurr, fnParaEnd)
2009-08-27 Michael Stahl clean up SwXParaFrameEnumeration
2009-08-27 Michael Stahl CollectFrameAtNode: replace SwDependArr with STL based FrameDependList_t
2009-08-27 Michael Stahl SwXTextPortionEnumeration: tweak refmark/toxmark export
so ExportHints returns the portion for point marks
2009-08-27 Michael Stahl clean up SwXTextPortionEnumeration:
prefix members, remove casts, replace SvWeirdArray with STL, etc.
make CreatePortions() method a function, and remove lots of members.
extract fieldmarks function from CreatePortions.
2009-08-27 Michael Stahl remove FOREACHUNOPAM_START/END macros
2009-08-27 Michael Stahl clean up SwXTextPortion:
prefix members, remove casts, etc.
remove SwXRubyPortion: replace it with another SwXTextPortion constructor
2009-08-27 Michael Stahl #i102541# SwXReferenceMark::InsertRefMark(): use flag SETATTR_DONTEXPAND
2009-08-27 Michael Stahl rename SwTxtNode::Insert to SwTxtNode::InsertHint, and
fix constness in SwTxtNode::InsertItem
2009-08-27 Michael Stahl turn SwTxtNode::MakeTxtAttr() methods into global functions in ndhints.hxx
2009-08-27 Michael Stahl remove obsolete sw/inc/bookmrk.hxx
2009-08-27 Michael Stahl pam.cxx: fix ComparePosition functions (returned wrong result in one case)
2009-08-27 Michael Stahl #i103613# only import RDF metadata on normal open of a document
2009-09-11 kz CWS-TOOLING: integrate CWS impress176
2009-09-08 20:18:24 +0200 sj r275957 : fixed warning (shadowed variable)
2009-09-08 18:02:05 +0200 cl r275948 : #i104315# added missing tab pages
2009-09-08 17:35:18 +0200 cl r275947 : #i104866# fixed angle import
2009-09-08 17:32:53 +0200 cl r275946 : #i104841# fixed angle import
2009-09-08 17:01:25 +0200 cl r275943 : #i103935# fixed the SID_EVENTCONFIG mess
2009-09-08 14:32:57 +0200 sj r275928 : #i104685# only comments
2009-09-07 12:37:36 +0200 sj r275886 : #i104683# fixed import of bold/italic attributes for normal text shapes
2009-09-04 15:07:46 +0200 sj r275808 : #104689# fixed bullet color problem
2009-09-03 15:25:07 +0200 sj r275753 : #160200# added vertical alignment of table cells
2009-09-11 kz CWS-TOOLING: integrate CWS dv14
2009-09-10 15:16:32 +0200 sg r276035 : #160513# updated wfs scheme to accept ports
2009-09-10 07:41:47 +0200 dv r276019 : #i104942# Better renaming algorithmen
2009-08-31 13:41:11 +0200 dv r275604 : #160505# Setting APP1PRODUCTNAME must not overwrite APP1PRODUCTDEF
2009-09-11 kz CWS-TOOLING: integrate CWS jl131
2009-09-02 16:42:40 +0200 jl r275720 : #i97896#
2009-08-31 13:01:53 +0200 jl r275599 : CWS-TOOLING: rebase CWS jl131 to trunk@275331 (milestone: DEV300:m56)
2009-07-31 14:35:30 +0200 jl r274531 : CWS-TOOLING: rebase CWS jl131 to trunk@274203 (milestone: DEV300:m53)
2009-07-23 14:20:32 +0200 jl r274272 : #i79839# better error text when trying to modify shared layer without having write permission, eg. unopkg add --shared, unopkg remove --shared, unopkg reinstall --shared
2009-07-22 16:38:02 +0200 jl r274252 : #i97896# localize error message for lock file
2009-07-22 16:37:22 +0200 jl r274251 : #i80462# unprecise wording in updatedialog
2009-07-22 16:36:06 +0200 jl r274250 : #i97896# localize error message for lock file
2009-07-22 16:35:20 +0200 jl r274249 : #i97896# localize error message for lock file
2009-07-22 15:07:30 +0200 jl r274242 : #i98873# minimum java version is 1.5 since OOo 3.0
2009-09-11 kz CWS-TOOLING: integrate CWS changehc
2009-08-31 19:38:50 +0200 pl r275633 : remove dbug printf
2009-08-31 17:41:50 +0200 pl r275623 : CWS-TOOLING: rebase CWS changehc to trunk@275331 (milestone: DEV300:m56)
2009-07-15 19:45:46 +0200 pl r274028 : #i35482# use HC flag to decide high contrast mode
2009-07-15 17:40:52 +0200 pl r274020 : #i35482# use HC flag to decide high contrast mode
2009-07-15 17:39:50 +0200 pl r274019 : #i35482# update autohc correctly in MergeSystemSettings
2009-07-15 17:38:57 +0200 pl r274018 : #i35482# update autohc correctly in MergeSystemSettings
2009-09-11 kz CWS-TOOLING: integrate CWS notes10
2009-08-24 07:25:57 +0200 mod r275287 : 2009-07-26 02:38:32 +0200 mod r274343 : #i#i103645#
2009-07-26 02:01:53 +0200 mod r274342 : #i103645#
2009-07-26 01:52:42 +0200 mod r274341 : #i103490#
2009-07-22 08:31:48 +0200 mod r274215 : #i103373#
2009-07-15 00:55:11 +0200 mod r273987 : #i101419#
2009-07-14 07:07:55 +0200 mod r273956 : #i101419#
2009-07-14 07:07:43 +0200 mod r273955 : #i101419#
2009-07-14 07:02:10 +0200 mod r273954 : changes from notes9
2009-07-14 06:14:25 +0200 mod r273953 : #i103476#
2009-09-11 kz CWS-TOOLING: integrate CWS ab70
2009-09-10 15:12:54 +0200 jsk r276034 : #i85434# - mandatory automatic update test
2009-09-10 15:11:06 +0200 jsk r276033 : #i85434# - mandatory automatic update test
2009-09-02 09:49:24 +0200 ab r275698 : #i85434# Dialog Import
2009-09-11 kz CWS-TOOLING: integrate CWS hb32bugs02
2009-09-02 Henning Brinkmann #i102420# revert changes
2009-08-26 Henning Brinkmann merged DEV300_m56
2009-08-19 Henning Brinkmann merged DEV300_m55
2009-08-14 Henning Brinkmann merged changes from wntmsci12
2009-08-12 Henning Brinkmann Implemented NoSpaceEdit constructor and destructor in .cxx to allow compile with debug on wntmsci12.
2009-08-12 Henning Brinkmann Added some SW_DLLPUBLIC to make compilable on wntmsci12.
2009-08-11 Henning Brinkmann #i102420# dbg_out: surround output for SwNodes with <nodes-array>.
2009-08-10 Henning Brinkmann #i102420# rewritten debug output for SwNodes.
2009-08-07 Henning Brinkmann #i102420# debug _MoveNodes: output the destination, too. Break after two iterations.
2009-08-07 Henning Brinkmann #i102420# _MoveNodes: Additionally check if destination index is inside source => false
Check if current range was already handled => loop
Debug output current range
2009-08-06 Henning Brinkmann merged DEV300_m54
2009-08-06 Henning Brinkmann added master fix
2009-08-06 Henning Brinkmann debug output for SwNodeRange
2009-08-04 Henning Brinkmann #i102844# robustness: check for NULL pointer to prevent crash
2009-08-03 Henning Brinkmann #i103475# applied patch and verified
2009-08-03 Henning Brinkmann Removed code preventing build of sw with DEBUG.
2009-09-11 convert-repo update tags
2009-09-10 kz CWS-TOOLING: integrate CWS os2port06dev300
2009-09-05 22:49:00 +0200 ydario r275858 : #i99588# applied os2port06 diff to DEV300 tree.
2009-09-10 kz CWS-TOOLING: integrate CWS mingwport23
2009-08-29 07:07:53 +0200 tono r275555 : i#104522: mingw port graphite
2009-08-29 07:07:26 +0200 tono r275554 : i#104522: mingw port printf format fix
2009-09-10 kz CWS-TOOLING: integrate CWS mh232
2009-08-26 03:52:57 +0200 mh r275385 : #i102182# FreeBSD patch
2009-08-26 03:43:20 +0200 mh r275384 : #i101333# patch for FreeBSD
2009-08-26 03:11:20 +0200 mh r275383 : #i39230
2009-08-26 03:07:51 +0200 mh r275382 : #i39230# more space for initials field
2009-08-26 02:41:19 +0200 mh r275380 : #i39230# use vos::osecurity for reading the user name
2009-08-18 22:06:00 +0200 mh r275130 : #i104243#, line ending problem with newer perl
2009-08-18 21:53:21 +0200 mh r275129 : #i39230# read initials via getpwnam
2009-08-18 21:34:05 +0200 mh r275128 : enable CAIROCANVAS for Linux and Mac, #i88613#
2009-08-17 18:02:59 +0200 mh r275067 : #i95498# make compile with gcc3
2009-09-10 kz CWS-TOOLING: integrate CWS tkr24
2009-09-07 14:31:06 +0200 is r275898 : #160081# adding NO_LICENSE_INTO_COPYRIGHT
2009-09-10 releng #i10000# change KeyMapping to SingletonRef<framework::KeyMapping>
2009-09-11 convert-repo update tags
2009-09-10 kz CWS-TOOLING: integrate CWS os2port06dev300
2009-09-05 22:49:00 +0200 ydario r275858 : #i99588# applied os2port06 diff to DEV300 tree.
2009-09-10 kz CWS-TOOLING: integrate CWS mingwport23
2009-08-29 07:07:53 +0200 tono r275555 : i#104522: mingw port graphite
2009-08-29 07:07:26 +0200 tono r275554 : i#104522: mingw port printf format fix
2009-09-10 kz CWS-TOOLING: integrate CWS mh232
2009-08-26 03:52:57 +0200 mh r275385 : #i102182# FreeBSD patch
2009-08-26 03:43:20 +0200 mh r275384 : #i101333# patch for FreeBSD
2009-08-26 03:11:20 +0200 mh r275383 : #i39230
2009-08-26 03:07:51 +0200 mh r275382 : #i39230# more space for initials field
2009-08-26 02:41:19 +0200 mh r275380 : #i39230# use vos::osecurity for reading the user name
2009-08-18 22:06:00 +0200 mh r275130 : #i104243#, line ending problem with newer perl
2009-08-18 21:53:21 +0200 mh r275129 : #i39230# read initials via getpwnam
2009-08-18 21:34:05 +0200 mh r275128 : enable CAIROCANVAS for Linux and Mac, #i88613#
2009-08-17 18:02:59 +0200 mh r275067 : #i95498# make compile with gcc3
2009-09-10 kz CWS-TOOLING: integrate CWS tkr24
2009-09-07 14:31:06 +0200 is r275898 : #160081# adding NO_LICENSE_INTO_COPYRIGHT
2009-09-10 releng #i10000# change KeyMapping to SingletonRef<framework::KeyMapping>
2009-09-11 14:29:45 +00:00
m_pDoc - > InsertPoolItem ( aTmp , aMark , 0 ) ;
pTxtAttr = pStt - > nNode . GetNode ( ) . GetTxtNode ( ) - > GetTxtAttrForCharAt (
2002-02-05 13:57:52 +00:00
pStt - > nContent . GetIndex ( ) - 1 , RES_TXTATR_TOXMARK ) ;
2000-09-18 23:08:29 +00:00
}
else if ( * pEnd ! = * pStt )
{
CWS-TOOLING: integrate CWS odfmetadata3
2009-09-11 Michael Stahl merge DEV300_m58
2009-09-07 Michael Stahl SwFmtFld::Modify(): do nothing on RES_OBJECTDYING
2009-08-27 Michael Stahl #i91565#, #i91566#: TextPortionEnumerationTest.java: add test document
2009-08-27 Michael Stahl #i91565#, #i91566#: add complex test: TextPortionEnumerationTest.java
2009-08-27 Michael Stahl CLiteral::initialize(): zero-length literals probably not an error
2009-08-27 Michael Stahl #i91565#, #i91566#: offapi: new InContentMetadata and MetadataField services
adapt TextPortion for InContentMetadata
2009-08-27 Michael Stahl #i91564#: xmloff: load/store xml:id and RDFa for text:bookmark(-start).
2009-08-27 Michael Stahl #i91564#: sw core: add support for xml:id at bookmarks:
sw::mark::Bookmark: derive from Metadatable.
SwHistoryBookmark, SaveBookmark: store a MetadatableUndo.
ndcopy.cxx: lcl_CopyBookmarks(): copy the xml:id.
SwXBookmark: derive from MetadatableMixin.
2009-08-27 Michael Stahl #i91565#, #i91566#: xmloff: refactor ruby import so nested meta(-field) works:
remove XMLRubyHint_Impl.
XMLImpRubyContext_Impl::~XMLImpRubyContext_Impl(): insert ruby directly.
2009-08-27 Michael Stahl #i91565#, #i91566#: xmloff: fix text:meta(-field) import/export:
new XMLTextParagraphExport::exportTextField() overload for XTextField.
CreateAndInsertMark(): set xml:id after insertion.
fix meta(-field) service names, bugs etc.
2009-08-27 Michael Stahl #i91565#, #i91566#: sw text formatting: paint background of meta(-field) body:
SwFont: add member m_nMetaCount.
txttypes.hxx: add POR_META.
atrstck.cxx: handle RES_TXTATR_META(FIELD).
itrform2.cxx: SwTxtFormatter::WhichTxtPor(): create new class SwMetaPortion.
2009-08-27 Michael Stahl #i91566#: sw text formatting: display meta-field prefix and suffix:
SwAttrIter::GetAttr(): replace with call to GetTxtAttrForCharAt().
SwTxtFormatter::NewExtraPortion(): handle meta-field prefix.
SwTxtFormatter: new member m_nHintEndIndex.
SwTxtFormatter::WhichFirstPortion(): call TryNewNoLengthPortion().
SwTxtFormatter::TryNewNoLengthPortion(): new; handle suffix of meta-field.
SwTxtFormatter::UnderFlow(): UGLY HACK: decrement m_nHintEndIndex.
SwFldPortion: add flag m_bNoLength: portion has zero length (for suffix).
2009-08-27 Michael Stahl #i91565#, #i91566#: extend text:meta(-field) uno wrapper with XText interface:
unoobj.hxx: new CursorType CURSOR_META.
unoobj2.cxx: refactor SwXText implementation to ensure that when the SwXText
belongs to a SwXMeta, content is always inserted inside the meta(-field).
unoobj.cxx: new SwXTextCursor::ForceIntoMeta(): cursor stays in meta(-field).
unometa.hxx: SwXMeta implements XText, forwarding to a member SwXMetaText.
DocInsertStringSplitCR(), SwX*::attachToRange(), SwX*::DeleteAndInsert():
use FORCEHINTEXPAND hack to ensure insert into the meta(-field) at the end.
2009-08-27 Michael Stahl #i91565#, #i91566#: add text:meta(-field) uno wrapper to sw:
fmtmeta.hxx, fmtatr2.cxx: new class sw::MetaField, new sw::MetaFieldManager.
doc.hxx, docnew.cxx: new SwDoc::GetMetaFieldManager().
unocoll.hxx,.cxx: new SW_SERVICE_FIELDTYPE_METAFIELD, SW_SERVICE_TYPE_META.
unomap.hxx,.cxx: new PROPERTY_MAP_METAFIELD.
unoprnms.hxx: new UNO_NAME_META.
unoport.hxx: new PORTION_META; add "InContentMetadata" prop to SwXTextPortion.
new unometa.hxx: new class SwXMeta and SwXMetaField.
unofield.cxx: SwXFieldEnumeration: include meta-fields.
unoportenum.cxx: handle RES_TXTATR_META(FIELD) by using a portion list stack.
unotext.cxx: SwXText::insertTextContent(): handle meta(-field) as attribute.
2009-08-27 Michael Stahl #i91565#, #i91566#: ndhints.cxx: remove sort number from SwTxtAttrNesting
2009-08-27 Michael Stahl #i91565#, #i91566#: add support for hints with end and CH_TXTATR to sw core:
doc.hxx, docedt.cxx: replace SwDoc::Delete(), DeleteAndJoin(), ReplaceRange()
with wrappers that split at left-overlapped end+CH_TXTATR hints.
txatbase.hxx: new member SwTxtAttr::m_bHasDummyChar.
ndtxt.hxx: rename SwTxtNode::GetTxtAttr() to GetTxtAttrForCharAt().
ndtxt.cxx: SwTxtNode::CopyText(): copy end+CH_TXTATR hints iff copy CH_TXTATR.
txtatr2.cxx, thints.cxx: SwTxtMeta gets a CH_TXTATR.
2009-08-27 Michael Stahl #i91565#, #i91566#: add text:meta(-field) to sw core:
txatbase.hxx: new member SwTxtAttr::m_bNesting.
hintids.hxx: new ids RES_TXTATR_META, RES_TXTATR_METAFIELD.
txtatr.hxx: new base class SwTxtAttrNesting.
new hint SwTxtMeta.
SwTxtRuby derives from SwTxtAttrNesting.
txtinet.hxx: SwTxtINetFmt derives from SwTxtAttrNesting.
new header fmtmeta.hxx: new pool item SwFmtMeta. new class sw::Meta.
ndhints.hxx, thints.cxx: new method SwpHints::TryInsertNesting().
thints.cxx: refactoring: BuildPortions() no longer handles Ruby/Hyperlink,
but TryInsertNesting(), which also handles meta(-field).
SwTxtNode::InsertItem(): check if the hint is actually inserted.
ndhints.cxx: sort nesting hints based on sort number.
ndtxt.cxx: lcl_CopyHint(): handle copy of meta/meta-field.
2009-08-27 Michael Stahl enable expanding hints with m_bLockExpandFlag set:
add new InsertFlag: INS_FORCEHINTEXPAND.
add new SetAttrMode: SETATTR_FORCEHINTEXPAND.
rename SwEditShell::Insert() to Insert2() because changed signature fails
to compile when SwWrtShell tries to overwrite these non-virtual members...
SwWrtShell::Insert() sets FOCEHINTEXPAND if range was selected/deleted.
adapt SwUndoInsert to store flags.
2009-08-27 Michael Stahl change formal parameters of item insertion methods to type SetAttrMode
2009-08-27 Michael Stahl fix incorrect resetting of text attributes in SwUndoInsSection, SwUndoInserts
2009-08-27 Michael Stahl clean up SwTxtNode::CutImpl() and lcl_CopyHint()
2009-08-27 Michael Stahl rename SwDoc::Copy() to CopyRange(), and _Copy() to CopyImpl()
2009-08-27 Michael Stahl rename SwNodes::Move() to MoveRange(), and remove unused parameter
2009-08-27 Michael Stahl rename SwDoc::Move() to MoveRange()/MoveNodeRange()
2009-08-27 Michael Stahl rename SwDoc::Insert() to InsertString(), and remove sal_Unicode variant
2009-08-27 Michael Stahl rename SwDoc::Insert() to InsertPoolItem()/InsertItemSet()/InsertSwSection()
2009-08-27 Michael Stahl rename SwDoc::Replace() to ReplaceRange()
2009-08-27 Michael Stahl remove SwDoc::Overwrite() sal_Unicode variant
2009-08-27 Michael Stahl split up SwDoc::DeleteAndJoin(): factor out DeleteAndJoinWithRedline()
2009-08-27 Michael Stahl rename overloaded SwDoc::Delete() to DeleteRange()/DeleteTOXMark()
2009-08-27 Michael Stahl rename SwTxtNode::Copy() to CopyText()
2009-08-27 Michael Stahl rename SwTxtNode::Cut() to CutText(), and _Cut() to CutImpl()
2009-08-27 Michael Stahl rename SwTxtNode::Delete() to DeleteAttribute()/DeleteAttributes()
2009-08-27 Michael Stahl rename SwTxtNode::Replace() to ReplaceText(), and remove the xub_Unicode variant
2009-08-27 Michael Stahl rename SwTxtNode::Erase() to EraseText()
2009-08-27 Michael Stahl rename SwTxtNode::Insert() to InsertText(), and remove the xub_Unicode variant
2009-08-27 Michael Stahl clean up SwTxtNode::Update()
2009-08-27 Michael Stahl remove SwTxtAttr::RemoveFromPool() and make destructor non-public,
to be invoked by new method SwTxtAttr::Destroy()
2009-08-27 Michael Stahl ensure that SwDoc::Insert() for item (set) returns success indicator:
replace SwRegHistory constructor with method InsertItems(), returning bool.
refactor InsAttr() so that it checks if InsertItems() succeeds.
2009-08-27 Michael Stahl move SwXTextPortionEnumeration from unoobj.hxx to unoport.hxx
2009-08-27 Michael Stahl add missing SolarMutex in SwXTextPortion methods
2009-08-27 Michael Stahl SwXTextPortion: new member m_xTextField (so the TextField property need not
be returned indirectly via SwUnoCursorHelper).
factor out function CreateSwXTextField().
2009-08-27 Michael Stahl SwXTextPortion: remove PORTION_CONTROL_CHAR and implementation of XTextField
2009-08-27 Michael Stahl remove obsolete hint SwTxtHardBlank and formats SwFmtHardBlank/SwFmtSoftHyph
2009-08-27 Michael Stahl clean up SwTxtAttr and friends:
remove many accessor methods for obsolete (due to autofmt) char format items.
remove unused flag SwTxtAttr::m_bDontMergeAttr.
MakeRedlineTxtAttr() now dedicated function, no longer calls MakeTxtAttr().
2009-08-27 Michael Stahl remove obsolete attribute SwTxt2Lines
2009-08-27 Michael Stahl SwXTextPortionEnumeration: finish refactoring CreatePortions
change ExportHints so it always returns a text portion for hint w/ CH_TXTATR.
remove special case for handling end of paragraph.
unfortunately had to refactor the fieldmarks export as well (got in the way).
2009-08-27 Michael Stahl SwXTextPortionEnumeration: refactor CreatePortions: frames export
extract function ExportFrames() from CreatePortions().
remove (un)dead code that calls evil MovePara(fnParaCurr, fnParaEnd)
2009-08-27 Michael Stahl clean up SwXParaFrameEnumeration
2009-08-27 Michael Stahl CollectFrameAtNode: replace SwDependArr with STL based FrameDependList_t
2009-08-27 Michael Stahl SwXTextPortionEnumeration: tweak refmark/toxmark export
so ExportHints returns the portion for point marks
2009-08-27 Michael Stahl clean up SwXTextPortionEnumeration:
prefix members, remove casts, replace SvWeirdArray with STL, etc.
make CreatePortions() method a function, and remove lots of members.
extract fieldmarks function from CreatePortions.
2009-08-27 Michael Stahl remove FOREACHUNOPAM_START/END macros
2009-08-27 Michael Stahl clean up SwXTextPortion:
prefix members, remove casts, etc.
remove SwXRubyPortion: replace it with another SwXTextPortion constructor
2009-08-27 Michael Stahl #i102541# SwXReferenceMark::InsertRefMark(): use flag SETATTR_DONTEXPAND
2009-08-27 Michael Stahl rename SwTxtNode::Insert to SwTxtNode::InsertHint, and
fix constness in SwTxtNode::InsertItem
2009-08-27 Michael Stahl turn SwTxtNode::MakeTxtAttr() methods into global functions in ndhints.hxx
2009-08-27 Michael Stahl remove obsolete sw/inc/bookmrk.hxx
2009-08-27 Michael Stahl pam.cxx: fix ComparePosition functions (returned wrong result in one case)
2009-08-27 Michael Stahl #i103613# only import RDF metadata on normal open of a document
2009-09-11 kz CWS-TOOLING: integrate CWS impress176
2009-09-08 20:18:24 +0200 sj r275957 : fixed warning (shadowed variable)
2009-09-08 18:02:05 +0200 cl r275948 : #i104315# added missing tab pages
2009-09-08 17:35:18 +0200 cl r275947 : #i104866# fixed angle import
2009-09-08 17:32:53 +0200 cl r275946 : #i104841# fixed angle import
2009-09-08 17:01:25 +0200 cl r275943 : #i103935# fixed the SID_EVENTCONFIG mess
2009-09-08 14:32:57 +0200 sj r275928 : #i104685# only comments
2009-09-07 12:37:36 +0200 sj r275886 : #i104683# fixed import of bold/italic attributes for normal text shapes
2009-09-04 15:07:46 +0200 sj r275808 : #104689# fixed bullet color problem
2009-09-03 15:25:07 +0200 sj r275753 : #160200# added vertical alignment of table cells
2009-09-11 kz CWS-TOOLING: integrate CWS dv14
2009-09-10 15:16:32 +0200 sg r276035 : #160513# updated wfs scheme to accept ports
2009-09-10 07:41:47 +0200 dv r276019 : #i104942# Better renaming algorithmen
2009-08-31 13:41:11 +0200 dv r275604 : #160505# Setting APP1PRODUCTNAME must not overwrite APP1PRODUCTDEF
2009-09-11 kz CWS-TOOLING: integrate CWS jl131
2009-09-02 16:42:40 +0200 jl r275720 : #i97896#
2009-08-31 13:01:53 +0200 jl r275599 : CWS-TOOLING: rebase CWS jl131 to trunk@275331 (milestone: DEV300:m56)
2009-07-31 14:35:30 +0200 jl r274531 : CWS-TOOLING: rebase CWS jl131 to trunk@274203 (milestone: DEV300:m53)
2009-07-23 14:20:32 +0200 jl r274272 : #i79839# better error text when trying to modify shared layer without having write permission, eg. unopkg add --shared, unopkg remove --shared, unopkg reinstall --shared
2009-07-22 16:38:02 +0200 jl r274252 : #i97896# localize error message for lock file
2009-07-22 16:37:22 +0200 jl r274251 : #i80462# unprecise wording in updatedialog
2009-07-22 16:36:06 +0200 jl r274250 : #i97896# localize error message for lock file
2009-07-22 16:35:20 +0200 jl r274249 : #i97896# localize error message for lock file
2009-07-22 15:07:30 +0200 jl r274242 : #i98873# minimum java version is 1.5 since OOo 3.0
2009-09-11 kz CWS-TOOLING: integrate CWS changehc
2009-08-31 19:38:50 +0200 pl r275633 : remove dbug printf
2009-08-31 17:41:50 +0200 pl r275623 : CWS-TOOLING: rebase CWS changehc to trunk@275331 (milestone: DEV300:m56)
2009-07-15 19:45:46 +0200 pl r274028 : #i35482# use HC flag to decide high contrast mode
2009-07-15 17:40:52 +0200 pl r274020 : #i35482# use HC flag to decide high contrast mode
2009-07-15 17:39:50 +0200 pl r274019 : #i35482# update autohc correctly in MergeSystemSettings
2009-07-15 17:38:57 +0200 pl r274018 : #i35482# update autohc correctly in MergeSystemSettings
2009-09-11 kz CWS-TOOLING: integrate CWS notes10
2009-08-24 07:25:57 +0200 mod r275287 : 2009-07-26 02:38:32 +0200 mod r274343 : #i#i103645#
2009-07-26 02:01:53 +0200 mod r274342 : #i103645#
2009-07-26 01:52:42 +0200 mod r274341 : #i103490#
2009-07-22 08:31:48 +0200 mod r274215 : #i103373#
2009-07-15 00:55:11 +0200 mod r273987 : #i101419#
2009-07-14 07:07:55 +0200 mod r273956 : #i101419#
2009-07-14 07:07:43 +0200 mod r273955 : #i101419#
2009-07-14 07:02:10 +0200 mod r273954 : changes from notes9
2009-07-14 06:14:25 +0200 mod r273953 : #i103476#
2009-09-11 kz CWS-TOOLING: integrate CWS ab70
2009-09-10 15:12:54 +0200 jsk r276034 : #i85434# - mandatory automatic update test
2009-09-10 15:11:06 +0200 jsk r276033 : #i85434# - mandatory automatic update test
2009-09-02 09:49:24 +0200 ab r275698 : #i85434# Dialog Import
2009-09-11 kz CWS-TOOLING: integrate CWS hb32bugs02
2009-09-02 Henning Brinkmann #i102420# revert changes
2009-08-26 Henning Brinkmann merged DEV300_m56
2009-08-19 Henning Brinkmann merged DEV300_m55
2009-08-14 Henning Brinkmann merged changes from wntmsci12
2009-08-12 Henning Brinkmann Implemented NoSpaceEdit constructor and destructor in .cxx to allow compile with debug on wntmsci12.
2009-08-12 Henning Brinkmann Added some SW_DLLPUBLIC to make compilable on wntmsci12.
2009-08-11 Henning Brinkmann #i102420# dbg_out: surround output for SwNodes with <nodes-array>.
2009-08-10 Henning Brinkmann #i102420# rewritten debug output for SwNodes.
2009-08-07 Henning Brinkmann #i102420# debug _MoveNodes: output the destination, too. Break after two iterations.
2009-08-07 Henning Brinkmann #i102420# _MoveNodes: Additionally check if destination index is inside source => false
Check if current range was already handled => loop
Debug output current range
2009-08-06 Henning Brinkmann merged DEV300_m54
2009-08-06 Henning Brinkmann added master fix
2009-08-06 Henning Brinkmann debug output for SwNodeRange
2009-08-04 Henning Brinkmann #i102844# robustness: check for NULL pointer to prevent crash
2009-08-03 Henning Brinkmann #i103475# applied patch and verified
2009-08-03 Henning Brinkmann Removed code preventing build of sw with DEBUG.
2009-09-11 convert-repo update tags
2009-09-10 kz CWS-TOOLING: integrate CWS os2port06dev300
2009-09-05 22:49:00 +0200 ydario r275858 : #i99588# applied os2port06 diff to DEV300 tree.
2009-09-10 kz CWS-TOOLING: integrate CWS mingwport23
2009-08-29 07:07:53 +0200 tono r275555 : i#104522: mingw port graphite
2009-08-29 07:07:26 +0200 tono r275554 : i#104522: mingw port printf format fix
2009-09-10 kz CWS-TOOLING: integrate CWS mh232
2009-08-26 03:52:57 +0200 mh r275385 : #i102182# FreeBSD patch
2009-08-26 03:43:20 +0200 mh r275384 : #i101333# patch for FreeBSD
2009-08-26 03:11:20 +0200 mh r275383 : #i39230
2009-08-26 03:07:51 +0200 mh r275382 : #i39230# more space for initials field
2009-08-26 02:41:19 +0200 mh r275380 : #i39230# use vos::osecurity for reading the user name
2009-08-18 22:06:00 +0200 mh r275130 : #i104243#, line ending problem with newer perl
2009-08-18 21:53:21 +0200 mh r275129 : #i39230# read initials via getpwnam
2009-08-18 21:34:05 +0200 mh r275128 : enable CAIROCANVAS for Linux and Mac, #i88613#
2009-08-17 18:02:59 +0200 mh r275067 : #i95498# make compile with gcc3
2009-09-10 kz CWS-TOOLING: integrate CWS tkr24
2009-09-07 14:31:06 +0200 is r275898 : #160081# adding NO_LICENSE_INTO_COPYRIGHT
2009-09-10 releng #i10000# change KeyMapping to SingletonRef<framework::KeyMapping>
2009-09-11 convert-repo update tags
2009-09-10 kz CWS-TOOLING: integrate CWS os2port06dev300
2009-09-05 22:49:00 +0200 ydario r275858 : #i99588# applied os2port06 diff to DEV300 tree.
2009-09-10 kz CWS-TOOLING: integrate CWS mingwport23
2009-08-29 07:07:53 +0200 tono r275555 : i#104522: mingw port graphite
2009-08-29 07:07:26 +0200 tono r275554 : i#104522: mingw port printf format fix
2009-09-10 kz CWS-TOOLING: integrate CWS mh232
2009-08-26 03:52:57 +0200 mh r275385 : #i102182# FreeBSD patch
2009-08-26 03:43:20 +0200 mh r275384 : #i101333# patch for FreeBSD
2009-08-26 03:11:20 +0200 mh r275383 : #i39230
2009-08-26 03:07:51 +0200 mh r275382 : #i39230# more space for initials field
2009-08-26 02:41:19 +0200 mh r275380 : #i39230# use vos::osecurity for reading the user name
2009-08-18 22:06:00 +0200 mh r275130 : #i104243#, line ending problem with newer perl
2009-08-18 21:53:21 +0200 mh r275129 : #i39230# read initials via getpwnam
2009-08-18 21:34:05 +0200 mh r275128 : enable CAIROCANVAS for Linux and Mac, #i88613#
2009-08-17 18:02:59 +0200 mh r275067 : #i95498# make compile with gcc3
2009-09-10 kz CWS-TOOLING: integrate CWS tkr24
2009-09-07 14:31:06 +0200 is r275898 : #160081# adding NO_LICENSE_INTO_COPYRIGHT
2009-09-10 releng #i10000# change KeyMapping to SingletonRef<framework::KeyMapping>
2009-09-11 14:29:45 +00:00
m_pDoc - > InsertPoolItem ( aPam , aMark ,
nsSetAttrMode : : SETATTR_DONTEXPAND ) ;
2002-02-05 13:57:52 +00:00
pTxtAttr = pStt - > nNode . GetNode ( ) . GetTxtNode ( ) - > GetTxtAttr (
pStt - > nContent , RES_TXTATR_TOXMARK ) ;
2000-09-18 23:08:29 +00:00
}
//und sonst - Marke geloescht?
2002-02-05 13:57:52 +00:00
if ( pTxtAttr )
m_pTOXMark = & pTxtAttr - > GetTOXMark ( ) ;
2000-09-18 23:08:29 +00:00
}
else if ( bIsDescriptor )
{
sAltText = rIndexEntry ;
}
else
2007-06-05 16:33:55 +00:00
throw uno : : RuntimeException ( ) ;
2000-09-18 23:08:29 +00:00
}
/* -----------------18.02.99 13:40-------------------
*
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
2007-06-05 16:33:55 +00:00
void SwXDocumentIndexMark : : attachToRange ( const uno : : Reference < text : : XTextRange > & xTextRange )
throw ( lang : : IllegalArgumentException , uno : : RuntimeException )
2000-09-18 23:08:29 +00:00
{
vos : : OGuard aGuard ( Application : : GetSolarMutex ( ) ) ;
if ( ! bIsDescriptor )
2007-06-05 16:33:55 +00:00
throw uno : : RuntimeException ( ) ;
2000-09-18 23:08:29 +00:00
2007-06-05 16:33:55 +00:00
uno : : Reference < XUnoTunnel > xRangeTunnel ( xTextRange , uno : : UNO_QUERY ) ;
2000-09-18 23:08:29 +00:00
SwXTextRange * pRange = 0 ;
2003-04-01 14:34:33 +00:00
OTextCursorHelper * pCursor = 0 ;
2000-09-18 23:08:29 +00:00
if ( xRangeTunnel . is ( ) )
{
2007-09-27 08:37:21 +00:00
pRange = reinterpret_cast < SwXTextRange * > (
sal : : static_int_cast < sal_IntPtr > ( xRangeTunnel - > getSomething ( SwXTextRange : : getUnoTunnelId ( ) ) ) ) ;
pCursor = reinterpret_cast < OTextCursorHelper * > (
sal : : static_int_cast < sal_IntPtr > ( xRangeTunnel - > getSomething ( OTextCursorHelper : : getUnoTunnelId ( ) ) ) ) ;
2000-09-18 23:08:29 +00:00
}
SwDoc * pDoc = pRange ? ( SwDoc * ) pRange - > GetDoc ( ) : pCursor ? ( SwDoc * ) pCursor - > GetDoc ( ) : 0 ;
if ( pDoc )
{
const SwTOXType * pTOXType = 0 ;
switch ( eType )
{
case TOX_INDEX :
case TOX_CONTENT :
pTOXType = pDoc - > GetTOXType ( eType , 0 ) ;
break ;
case TOX_USER :
{
if ( ! sUserIndexName . Len ( ) )
pTOXType = pDoc - > GetTOXType ( eType , 0 ) ;
else
{
sal_uInt16 nCount = pDoc - > GetTOXTypeCount ( eType ) ;
for ( sal_uInt16 i = 0 ; i < nCount ; i + + )
{
const SwTOXType * pTemp = pDoc - > GetTOXType ( eType , i ) ;
if ( sUserIndexName = = pTemp - > GetTypeName ( ) )
{
pTOXType = pTemp ;
break ;
}
}
2001-03-20 09:56:03 +00:00
if ( ! pTOXType )
{
SwTOXType aUserType ( TOX_USER , sUserIndexName ) ;
pTOXType = pDoc - > InsertTOXType ( aUserType ) ;
}
2000-09-18 23:08:29 +00:00
}
}
break ;
2007-09-27 08:37:21 +00:00
default :
;
2000-09-18 23:08:29 +00:00
}
if ( ! pTOXType )
2007-06-05 16:33:55 +00:00
throw lang : : IllegalArgumentException ( ) ;
2000-10-16 09:31:56 +00:00
pDoc - > GetUnoCallBack ( ) - > Add ( this ) ;
( ( SwTOXType * ) pTOXType ) - > Add ( & aTypeDepend ) ;
2000-09-18 23:08:29 +00:00
SwUnoInternalPaM aPam ( * pDoc ) ;
//das muss jetzt sal_True liefern
SwXTextRange : : XTextRangeToSwPaM ( aPam , xTextRange ) ;
2001-03-02 10:24:50 +00:00
SwTOXMark aMark ( pTOXType ) ;
2000-09-18 23:08:29 +00:00
if ( sAltText . Len ( ) )
2001-03-02 10:24:50 +00:00
aMark . SetAlternativeText ( sAltText ) ;
2000-09-18 23:08:29 +00:00
switch ( eType )
{
case TOX_INDEX :
if ( sPrimaryKey . Len ( ) )
2001-03-02 10:24:50 +00:00
aMark . SetPrimaryKey ( sPrimaryKey ) ;
2000-09-18 23:08:29 +00:00
if ( sSecondaryKey . Len ( ) )
2001-03-02 10:24:50 +00:00
aMark . SetSecondaryKey ( sSecondaryKey ) ;
2002-06-24 10:24:22 +00:00
if ( sTextReading . Len ( ) )
aMark . SetTextReading ( sTextReading ) ;
if ( sPrimaryKeyReading . Len ( ) )
aMark . SetPrimaryKeyReading ( sPrimaryKeyReading ) ;
if ( sSecondaryKeyReading . Len ( ) )
aMark . SetSecondaryKeyReading ( sSecondaryKeyReading ) ;
2003-03-27 14:45:43 +00:00
aMark . SetMainEntry ( bMainEntry ) ;
2000-09-18 23:08:29 +00:00
break ;
2001-06-15 09:01:58 +00:00
case TOX_USER :
2000-09-18 23:08:29 +00:00
case TOX_CONTENT :
if ( USHRT_MAX ! = nLevel )
2004-06-28 12:01:28 +00:00
aMark . SetLevel ( nLevel + 1 ) ;
2000-09-18 23:08:29 +00:00
break ;
2007-09-27 08:37:21 +00:00
default :
;
2000-09-18 23:08:29 +00:00
}
UnoActionContext aAction ( pDoc ) ;
sal_Bool bMark = * aPam . GetPoint ( ) ! = * aPam . GetMark ( ) ;
// Marks ohne Alternativtext ohne selektierten Text koennen nicht eingefuegt werden,
// deshalb hier ein Leerzeichen - ob das die ideale Loesung ist?
2001-03-02 10:24:50 +00:00
if ( ! bMark & & ! aMark . GetAlternativeText ( ) . Len ( ) )
2002-02-05 13:57:52 +00:00
aMark . SetAlternativeText ( String ( ' ' ) ) ;
CWS-TOOLING: integrate CWS odfmetadata3
2009-09-11 Michael Stahl merge DEV300_m58
2009-09-07 Michael Stahl SwFmtFld::Modify(): do nothing on RES_OBJECTDYING
2009-08-27 Michael Stahl #i91565#, #i91566#: TextPortionEnumerationTest.java: add test document
2009-08-27 Michael Stahl #i91565#, #i91566#: add complex test: TextPortionEnumerationTest.java
2009-08-27 Michael Stahl CLiteral::initialize(): zero-length literals probably not an error
2009-08-27 Michael Stahl #i91565#, #i91566#: offapi: new InContentMetadata and MetadataField services
adapt TextPortion for InContentMetadata
2009-08-27 Michael Stahl #i91564#: xmloff: load/store xml:id and RDFa for text:bookmark(-start).
2009-08-27 Michael Stahl #i91564#: sw core: add support for xml:id at bookmarks:
sw::mark::Bookmark: derive from Metadatable.
SwHistoryBookmark, SaveBookmark: store a MetadatableUndo.
ndcopy.cxx: lcl_CopyBookmarks(): copy the xml:id.
SwXBookmark: derive from MetadatableMixin.
2009-08-27 Michael Stahl #i91565#, #i91566#: xmloff: refactor ruby import so nested meta(-field) works:
remove XMLRubyHint_Impl.
XMLImpRubyContext_Impl::~XMLImpRubyContext_Impl(): insert ruby directly.
2009-08-27 Michael Stahl #i91565#, #i91566#: xmloff: fix text:meta(-field) import/export:
new XMLTextParagraphExport::exportTextField() overload for XTextField.
CreateAndInsertMark(): set xml:id after insertion.
fix meta(-field) service names, bugs etc.
2009-08-27 Michael Stahl #i91565#, #i91566#: sw text formatting: paint background of meta(-field) body:
SwFont: add member m_nMetaCount.
txttypes.hxx: add POR_META.
atrstck.cxx: handle RES_TXTATR_META(FIELD).
itrform2.cxx: SwTxtFormatter::WhichTxtPor(): create new class SwMetaPortion.
2009-08-27 Michael Stahl #i91566#: sw text formatting: display meta-field prefix and suffix:
SwAttrIter::GetAttr(): replace with call to GetTxtAttrForCharAt().
SwTxtFormatter::NewExtraPortion(): handle meta-field prefix.
SwTxtFormatter: new member m_nHintEndIndex.
SwTxtFormatter::WhichFirstPortion(): call TryNewNoLengthPortion().
SwTxtFormatter::TryNewNoLengthPortion(): new; handle suffix of meta-field.
SwTxtFormatter::UnderFlow(): UGLY HACK: decrement m_nHintEndIndex.
SwFldPortion: add flag m_bNoLength: portion has zero length (for suffix).
2009-08-27 Michael Stahl #i91565#, #i91566#: extend text:meta(-field) uno wrapper with XText interface:
unoobj.hxx: new CursorType CURSOR_META.
unoobj2.cxx: refactor SwXText implementation to ensure that when the SwXText
belongs to a SwXMeta, content is always inserted inside the meta(-field).
unoobj.cxx: new SwXTextCursor::ForceIntoMeta(): cursor stays in meta(-field).
unometa.hxx: SwXMeta implements XText, forwarding to a member SwXMetaText.
DocInsertStringSplitCR(), SwX*::attachToRange(), SwX*::DeleteAndInsert():
use FORCEHINTEXPAND hack to ensure insert into the meta(-field) at the end.
2009-08-27 Michael Stahl #i91565#, #i91566#: add text:meta(-field) uno wrapper to sw:
fmtmeta.hxx, fmtatr2.cxx: new class sw::MetaField, new sw::MetaFieldManager.
doc.hxx, docnew.cxx: new SwDoc::GetMetaFieldManager().
unocoll.hxx,.cxx: new SW_SERVICE_FIELDTYPE_METAFIELD, SW_SERVICE_TYPE_META.
unomap.hxx,.cxx: new PROPERTY_MAP_METAFIELD.
unoprnms.hxx: new UNO_NAME_META.
unoport.hxx: new PORTION_META; add "InContentMetadata" prop to SwXTextPortion.
new unometa.hxx: new class SwXMeta and SwXMetaField.
unofield.cxx: SwXFieldEnumeration: include meta-fields.
unoportenum.cxx: handle RES_TXTATR_META(FIELD) by using a portion list stack.
unotext.cxx: SwXText::insertTextContent(): handle meta(-field) as attribute.
2009-08-27 Michael Stahl #i91565#, #i91566#: ndhints.cxx: remove sort number from SwTxtAttrNesting
2009-08-27 Michael Stahl #i91565#, #i91566#: add support for hints with end and CH_TXTATR to sw core:
doc.hxx, docedt.cxx: replace SwDoc::Delete(), DeleteAndJoin(), ReplaceRange()
with wrappers that split at left-overlapped end+CH_TXTATR hints.
txatbase.hxx: new member SwTxtAttr::m_bHasDummyChar.
ndtxt.hxx: rename SwTxtNode::GetTxtAttr() to GetTxtAttrForCharAt().
ndtxt.cxx: SwTxtNode::CopyText(): copy end+CH_TXTATR hints iff copy CH_TXTATR.
txtatr2.cxx, thints.cxx: SwTxtMeta gets a CH_TXTATR.
2009-08-27 Michael Stahl #i91565#, #i91566#: add text:meta(-field) to sw core:
txatbase.hxx: new member SwTxtAttr::m_bNesting.
hintids.hxx: new ids RES_TXTATR_META, RES_TXTATR_METAFIELD.
txtatr.hxx: new base class SwTxtAttrNesting.
new hint SwTxtMeta.
SwTxtRuby derives from SwTxtAttrNesting.
txtinet.hxx: SwTxtINetFmt derives from SwTxtAttrNesting.
new header fmtmeta.hxx: new pool item SwFmtMeta. new class sw::Meta.
ndhints.hxx, thints.cxx: new method SwpHints::TryInsertNesting().
thints.cxx: refactoring: BuildPortions() no longer handles Ruby/Hyperlink,
but TryInsertNesting(), which also handles meta(-field).
SwTxtNode::InsertItem(): check if the hint is actually inserted.
ndhints.cxx: sort nesting hints based on sort number.
ndtxt.cxx: lcl_CopyHint(): handle copy of meta/meta-field.
2009-08-27 Michael Stahl enable expanding hints with m_bLockExpandFlag set:
add new InsertFlag: INS_FORCEHINTEXPAND.
add new SetAttrMode: SETATTR_FORCEHINTEXPAND.
rename SwEditShell::Insert() to Insert2() because changed signature fails
to compile when SwWrtShell tries to overwrite these non-virtual members...
SwWrtShell::Insert() sets FOCEHINTEXPAND if range was selected/deleted.
adapt SwUndoInsert to store flags.
2009-08-27 Michael Stahl change formal parameters of item insertion methods to type SetAttrMode
2009-08-27 Michael Stahl fix incorrect resetting of text attributes in SwUndoInsSection, SwUndoInserts
2009-08-27 Michael Stahl clean up SwTxtNode::CutImpl() and lcl_CopyHint()
2009-08-27 Michael Stahl rename SwDoc::Copy() to CopyRange(), and _Copy() to CopyImpl()
2009-08-27 Michael Stahl rename SwNodes::Move() to MoveRange(), and remove unused parameter
2009-08-27 Michael Stahl rename SwDoc::Move() to MoveRange()/MoveNodeRange()
2009-08-27 Michael Stahl rename SwDoc::Insert() to InsertString(), and remove sal_Unicode variant
2009-08-27 Michael Stahl rename SwDoc::Insert() to InsertPoolItem()/InsertItemSet()/InsertSwSection()
2009-08-27 Michael Stahl rename SwDoc::Replace() to ReplaceRange()
2009-08-27 Michael Stahl remove SwDoc::Overwrite() sal_Unicode variant
2009-08-27 Michael Stahl split up SwDoc::DeleteAndJoin(): factor out DeleteAndJoinWithRedline()
2009-08-27 Michael Stahl rename overloaded SwDoc::Delete() to DeleteRange()/DeleteTOXMark()
2009-08-27 Michael Stahl rename SwTxtNode::Copy() to CopyText()
2009-08-27 Michael Stahl rename SwTxtNode::Cut() to CutText(), and _Cut() to CutImpl()
2009-08-27 Michael Stahl rename SwTxtNode::Delete() to DeleteAttribute()/DeleteAttributes()
2009-08-27 Michael Stahl rename SwTxtNode::Replace() to ReplaceText(), and remove the xub_Unicode variant
2009-08-27 Michael Stahl rename SwTxtNode::Erase() to EraseText()
2009-08-27 Michael Stahl rename SwTxtNode::Insert() to InsertText(), and remove the xub_Unicode variant
2009-08-27 Michael Stahl clean up SwTxtNode::Update()
2009-08-27 Michael Stahl remove SwTxtAttr::RemoveFromPool() and make destructor non-public,
to be invoked by new method SwTxtAttr::Destroy()
2009-08-27 Michael Stahl ensure that SwDoc::Insert() for item (set) returns success indicator:
replace SwRegHistory constructor with method InsertItems(), returning bool.
refactor InsAttr() so that it checks if InsertItems() succeeds.
2009-08-27 Michael Stahl move SwXTextPortionEnumeration from unoobj.hxx to unoport.hxx
2009-08-27 Michael Stahl add missing SolarMutex in SwXTextPortion methods
2009-08-27 Michael Stahl SwXTextPortion: new member m_xTextField (so the TextField property need not
be returned indirectly via SwUnoCursorHelper).
factor out function CreateSwXTextField().
2009-08-27 Michael Stahl SwXTextPortion: remove PORTION_CONTROL_CHAR and implementation of XTextField
2009-08-27 Michael Stahl remove obsolete hint SwTxtHardBlank and formats SwFmtHardBlank/SwFmtSoftHyph
2009-08-27 Michael Stahl clean up SwTxtAttr and friends:
remove many accessor methods for obsolete (due to autofmt) char format items.
remove unused flag SwTxtAttr::m_bDontMergeAttr.
MakeRedlineTxtAttr() now dedicated function, no longer calls MakeTxtAttr().
2009-08-27 Michael Stahl remove obsolete attribute SwTxt2Lines
2009-08-27 Michael Stahl SwXTextPortionEnumeration: finish refactoring CreatePortions
change ExportHints so it always returns a text portion for hint w/ CH_TXTATR.
remove special case for handling end of paragraph.
unfortunately had to refactor the fieldmarks export as well (got in the way).
2009-08-27 Michael Stahl SwXTextPortionEnumeration: refactor CreatePortions: frames export
extract function ExportFrames() from CreatePortions().
remove (un)dead code that calls evil MovePara(fnParaCurr, fnParaEnd)
2009-08-27 Michael Stahl clean up SwXParaFrameEnumeration
2009-08-27 Michael Stahl CollectFrameAtNode: replace SwDependArr with STL based FrameDependList_t
2009-08-27 Michael Stahl SwXTextPortionEnumeration: tweak refmark/toxmark export
so ExportHints returns the portion for point marks
2009-08-27 Michael Stahl clean up SwXTextPortionEnumeration:
prefix members, remove casts, replace SvWeirdArray with STL, etc.
make CreatePortions() method a function, and remove lots of members.
extract fieldmarks function from CreatePortions.
2009-08-27 Michael Stahl remove FOREACHUNOPAM_START/END macros
2009-08-27 Michael Stahl clean up SwXTextPortion:
prefix members, remove casts, etc.
remove SwXRubyPortion: replace it with another SwXTextPortion constructor
2009-08-27 Michael Stahl #i102541# SwXReferenceMark::InsertRefMark(): use flag SETATTR_DONTEXPAND
2009-08-27 Michael Stahl rename SwTxtNode::Insert to SwTxtNode::InsertHint, and
fix constness in SwTxtNode::InsertItem
2009-08-27 Michael Stahl turn SwTxtNode::MakeTxtAttr() methods into global functions in ndhints.hxx
2009-08-27 Michael Stahl remove obsolete sw/inc/bookmrk.hxx
2009-08-27 Michael Stahl pam.cxx: fix ComparePosition functions (returned wrong result in one case)
2009-08-27 Michael Stahl #i103613# only import RDF metadata on normal open of a document
2009-09-11 kz CWS-TOOLING: integrate CWS impress176
2009-09-08 20:18:24 +0200 sj r275957 : fixed warning (shadowed variable)
2009-09-08 18:02:05 +0200 cl r275948 : #i104315# added missing tab pages
2009-09-08 17:35:18 +0200 cl r275947 : #i104866# fixed angle import
2009-09-08 17:32:53 +0200 cl r275946 : #i104841# fixed angle import
2009-09-08 17:01:25 +0200 cl r275943 : #i103935# fixed the SID_EVENTCONFIG mess
2009-09-08 14:32:57 +0200 sj r275928 : #i104685# only comments
2009-09-07 12:37:36 +0200 sj r275886 : #i104683# fixed import of bold/italic attributes for normal text shapes
2009-09-04 15:07:46 +0200 sj r275808 : #104689# fixed bullet color problem
2009-09-03 15:25:07 +0200 sj r275753 : #160200# added vertical alignment of table cells
2009-09-11 kz CWS-TOOLING: integrate CWS dv14
2009-09-10 15:16:32 +0200 sg r276035 : #160513# updated wfs scheme to accept ports
2009-09-10 07:41:47 +0200 dv r276019 : #i104942# Better renaming algorithmen
2009-08-31 13:41:11 +0200 dv r275604 : #160505# Setting APP1PRODUCTNAME must not overwrite APP1PRODUCTDEF
2009-09-11 kz CWS-TOOLING: integrate CWS jl131
2009-09-02 16:42:40 +0200 jl r275720 : #i97896#
2009-08-31 13:01:53 +0200 jl r275599 : CWS-TOOLING: rebase CWS jl131 to trunk@275331 (milestone: DEV300:m56)
2009-07-31 14:35:30 +0200 jl r274531 : CWS-TOOLING: rebase CWS jl131 to trunk@274203 (milestone: DEV300:m53)
2009-07-23 14:20:32 +0200 jl r274272 : #i79839# better error text when trying to modify shared layer without having write permission, eg. unopkg add --shared, unopkg remove --shared, unopkg reinstall --shared
2009-07-22 16:38:02 +0200 jl r274252 : #i97896# localize error message for lock file
2009-07-22 16:37:22 +0200 jl r274251 : #i80462# unprecise wording in updatedialog
2009-07-22 16:36:06 +0200 jl r274250 : #i97896# localize error message for lock file
2009-07-22 16:35:20 +0200 jl r274249 : #i97896# localize error message for lock file
2009-07-22 15:07:30 +0200 jl r274242 : #i98873# minimum java version is 1.5 since OOo 3.0
2009-09-11 kz CWS-TOOLING: integrate CWS changehc
2009-08-31 19:38:50 +0200 pl r275633 : remove dbug printf
2009-08-31 17:41:50 +0200 pl r275623 : CWS-TOOLING: rebase CWS changehc to trunk@275331 (milestone: DEV300:m56)
2009-07-15 19:45:46 +0200 pl r274028 : #i35482# use HC flag to decide high contrast mode
2009-07-15 17:40:52 +0200 pl r274020 : #i35482# use HC flag to decide high contrast mode
2009-07-15 17:39:50 +0200 pl r274019 : #i35482# update autohc correctly in MergeSystemSettings
2009-07-15 17:38:57 +0200 pl r274018 : #i35482# update autohc correctly in MergeSystemSettings
2009-09-11 kz CWS-TOOLING: integrate CWS notes10
2009-08-24 07:25:57 +0200 mod r275287 : 2009-07-26 02:38:32 +0200 mod r274343 : #i#i103645#
2009-07-26 02:01:53 +0200 mod r274342 : #i103645#
2009-07-26 01:52:42 +0200 mod r274341 : #i103490#
2009-07-22 08:31:48 +0200 mod r274215 : #i103373#
2009-07-15 00:55:11 +0200 mod r273987 : #i101419#
2009-07-14 07:07:55 +0200 mod r273956 : #i101419#
2009-07-14 07:07:43 +0200 mod r273955 : #i101419#
2009-07-14 07:02:10 +0200 mod r273954 : changes from notes9
2009-07-14 06:14:25 +0200 mod r273953 : #i103476#
2009-09-11 kz CWS-TOOLING: integrate CWS ab70
2009-09-10 15:12:54 +0200 jsk r276034 : #i85434# - mandatory automatic update test
2009-09-10 15:11:06 +0200 jsk r276033 : #i85434# - mandatory automatic update test
2009-09-02 09:49:24 +0200 ab r275698 : #i85434# Dialog Import
2009-09-11 kz CWS-TOOLING: integrate CWS hb32bugs02
2009-09-02 Henning Brinkmann #i102420# revert changes
2009-08-26 Henning Brinkmann merged DEV300_m56
2009-08-19 Henning Brinkmann merged DEV300_m55
2009-08-14 Henning Brinkmann merged changes from wntmsci12
2009-08-12 Henning Brinkmann Implemented NoSpaceEdit constructor and destructor in .cxx to allow compile with debug on wntmsci12.
2009-08-12 Henning Brinkmann Added some SW_DLLPUBLIC to make compilable on wntmsci12.
2009-08-11 Henning Brinkmann #i102420# dbg_out: surround output for SwNodes with <nodes-array>.
2009-08-10 Henning Brinkmann #i102420# rewritten debug output for SwNodes.
2009-08-07 Henning Brinkmann #i102420# debug _MoveNodes: output the destination, too. Break after two iterations.
2009-08-07 Henning Brinkmann #i102420# _MoveNodes: Additionally check if destination index is inside source => false
Check if current range was already handled => loop
Debug output current range
2009-08-06 Henning Brinkmann merged DEV300_m54
2009-08-06 Henning Brinkmann added master fix
2009-08-06 Henning Brinkmann debug output for SwNodeRange
2009-08-04 Henning Brinkmann #i102844# robustness: check for NULL pointer to prevent crash
2009-08-03 Henning Brinkmann #i103475# applied patch and verified
2009-08-03 Henning Brinkmann Removed code preventing build of sw with DEBUG.
2009-09-11 convert-repo update tags
2009-09-10 kz CWS-TOOLING: integrate CWS os2port06dev300
2009-09-05 22:49:00 +0200 ydario r275858 : #i99588# applied os2port06 diff to DEV300 tree.
2009-09-10 kz CWS-TOOLING: integrate CWS mingwport23
2009-08-29 07:07:53 +0200 tono r275555 : i#104522: mingw port graphite
2009-08-29 07:07:26 +0200 tono r275554 : i#104522: mingw port printf format fix
2009-09-10 kz CWS-TOOLING: integrate CWS mh232
2009-08-26 03:52:57 +0200 mh r275385 : #i102182# FreeBSD patch
2009-08-26 03:43:20 +0200 mh r275384 : #i101333# patch for FreeBSD
2009-08-26 03:11:20 +0200 mh r275383 : #i39230
2009-08-26 03:07:51 +0200 mh r275382 : #i39230# more space for initials field
2009-08-26 02:41:19 +0200 mh r275380 : #i39230# use vos::osecurity for reading the user name
2009-08-18 22:06:00 +0200 mh r275130 : #i104243#, line ending problem with newer perl
2009-08-18 21:53:21 +0200 mh r275129 : #i39230# read initials via getpwnam
2009-08-18 21:34:05 +0200 mh r275128 : enable CAIROCANVAS for Linux and Mac, #i88613#
2009-08-17 18:02:59 +0200 mh r275067 : #i95498# make compile with gcc3
2009-09-10 kz CWS-TOOLING: integrate CWS tkr24
2009-09-07 14:31:06 +0200 is r275898 : #160081# adding NO_LICENSE_INTO_COPYRIGHT
2009-09-10 releng #i10000# change KeyMapping to SingletonRef<framework::KeyMapping>
2009-09-11 convert-repo update tags
2009-09-10 kz CWS-TOOLING: integrate CWS os2port06dev300
2009-09-05 22:49:00 +0200 ydario r275858 : #i99588# applied os2port06 diff to DEV300 tree.
2009-09-10 kz CWS-TOOLING: integrate CWS mingwport23
2009-08-29 07:07:53 +0200 tono r275555 : i#104522: mingw port graphite
2009-08-29 07:07:26 +0200 tono r275554 : i#104522: mingw port printf format fix
2009-09-10 kz CWS-TOOLING: integrate CWS mh232
2009-08-26 03:52:57 +0200 mh r275385 : #i102182# FreeBSD patch
2009-08-26 03:43:20 +0200 mh r275384 : #i101333# patch for FreeBSD
2009-08-26 03:11:20 +0200 mh r275383 : #i39230
2009-08-26 03:07:51 +0200 mh r275382 : #i39230# more space for initials field
2009-08-26 02:41:19 +0200 mh r275380 : #i39230# use vos::osecurity for reading the user name
2009-08-18 22:06:00 +0200 mh r275130 : #i104243#, line ending problem with newer perl
2009-08-18 21:53:21 +0200 mh r275129 : #i39230# read initials via getpwnam
2009-08-18 21:34:05 +0200 mh r275128 : enable CAIROCANVAS for Linux and Mac, #i88613#
2009-08-17 18:02:59 +0200 mh r275067 : #i95498# make compile with gcc3
2009-09-10 kz CWS-TOOLING: integrate CWS tkr24
2009-09-07 14:31:06 +0200 is r275898 : #160081# adding NO_LICENSE_INTO_COPYRIGHT
2009-09-10 releng #i10000# change KeyMapping to SingletonRef<framework::KeyMapping>
2009-09-11 14:29:45 +00:00
SwXTextCursor const * const pTextCursor (
dynamic_cast < SwXTextCursor * > ( pCursor ) ) ;
const bool bForceExpandHints ( ( ! bMark & & pTextCursor )
? pTextCursor - > IsAtEndOfMeta ( ) : false ) ;
const SetAttrMode nInsertFlags = ( bForceExpandHints )
? ( nsSetAttrMode : : SETATTR_FORCEHINTEXPAND
| nsSetAttrMode : : SETATTR_DONTEXPAND )
: nsSetAttrMode : : SETATTR_DONTEXPAND ;
pDoc - > InsertPoolItem ( aPam , aMark , nInsertFlags ) ;
2002-02-05 13:57:52 +00:00
if ( bMark & & * aPam . GetPoint ( ) > * aPam . GetMark ( ) )
2000-09-18 23:08:29 +00:00
aPam . Exchange ( ) ;
2002-02-05 13:57:52 +00:00
SwTxtAttr * pTxtAttr = 0 ;
if ( bMark )
pTxtAttr = aPam . GetNode ( ) - > GetTxtNode ( ) - > GetTxtAttr (
aPam . GetPoint ( ) - > nContent , RES_TXTATR_TOXMARK ) ;
else
CWS-TOOLING: integrate CWS odfmetadata3
2009-09-11 Michael Stahl merge DEV300_m58
2009-09-07 Michael Stahl SwFmtFld::Modify(): do nothing on RES_OBJECTDYING
2009-08-27 Michael Stahl #i91565#, #i91566#: TextPortionEnumerationTest.java: add test document
2009-08-27 Michael Stahl #i91565#, #i91566#: add complex test: TextPortionEnumerationTest.java
2009-08-27 Michael Stahl CLiteral::initialize(): zero-length literals probably not an error
2009-08-27 Michael Stahl #i91565#, #i91566#: offapi: new InContentMetadata and MetadataField services
adapt TextPortion for InContentMetadata
2009-08-27 Michael Stahl #i91564#: xmloff: load/store xml:id and RDFa for text:bookmark(-start).
2009-08-27 Michael Stahl #i91564#: sw core: add support for xml:id at bookmarks:
sw::mark::Bookmark: derive from Metadatable.
SwHistoryBookmark, SaveBookmark: store a MetadatableUndo.
ndcopy.cxx: lcl_CopyBookmarks(): copy the xml:id.
SwXBookmark: derive from MetadatableMixin.
2009-08-27 Michael Stahl #i91565#, #i91566#: xmloff: refactor ruby import so nested meta(-field) works:
remove XMLRubyHint_Impl.
XMLImpRubyContext_Impl::~XMLImpRubyContext_Impl(): insert ruby directly.
2009-08-27 Michael Stahl #i91565#, #i91566#: xmloff: fix text:meta(-field) import/export:
new XMLTextParagraphExport::exportTextField() overload for XTextField.
CreateAndInsertMark(): set xml:id after insertion.
fix meta(-field) service names, bugs etc.
2009-08-27 Michael Stahl #i91565#, #i91566#: sw text formatting: paint background of meta(-field) body:
SwFont: add member m_nMetaCount.
txttypes.hxx: add POR_META.
atrstck.cxx: handle RES_TXTATR_META(FIELD).
itrform2.cxx: SwTxtFormatter::WhichTxtPor(): create new class SwMetaPortion.
2009-08-27 Michael Stahl #i91566#: sw text formatting: display meta-field prefix and suffix:
SwAttrIter::GetAttr(): replace with call to GetTxtAttrForCharAt().
SwTxtFormatter::NewExtraPortion(): handle meta-field prefix.
SwTxtFormatter: new member m_nHintEndIndex.
SwTxtFormatter::WhichFirstPortion(): call TryNewNoLengthPortion().
SwTxtFormatter::TryNewNoLengthPortion(): new; handle suffix of meta-field.
SwTxtFormatter::UnderFlow(): UGLY HACK: decrement m_nHintEndIndex.
SwFldPortion: add flag m_bNoLength: portion has zero length (for suffix).
2009-08-27 Michael Stahl #i91565#, #i91566#: extend text:meta(-field) uno wrapper with XText interface:
unoobj.hxx: new CursorType CURSOR_META.
unoobj2.cxx: refactor SwXText implementation to ensure that when the SwXText
belongs to a SwXMeta, content is always inserted inside the meta(-field).
unoobj.cxx: new SwXTextCursor::ForceIntoMeta(): cursor stays in meta(-field).
unometa.hxx: SwXMeta implements XText, forwarding to a member SwXMetaText.
DocInsertStringSplitCR(), SwX*::attachToRange(), SwX*::DeleteAndInsert():
use FORCEHINTEXPAND hack to ensure insert into the meta(-field) at the end.
2009-08-27 Michael Stahl #i91565#, #i91566#: add text:meta(-field) uno wrapper to sw:
fmtmeta.hxx, fmtatr2.cxx: new class sw::MetaField, new sw::MetaFieldManager.
doc.hxx, docnew.cxx: new SwDoc::GetMetaFieldManager().
unocoll.hxx,.cxx: new SW_SERVICE_FIELDTYPE_METAFIELD, SW_SERVICE_TYPE_META.
unomap.hxx,.cxx: new PROPERTY_MAP_METAFIELD.
unoprnms.hxx: new UNO_NAME_META.
unoport.hxx: new PORTION_META; add "InContentMetadata" prop to SwXTextPortion.
new unometa.hxx: new class SwXMeta and SwXMetaField.
unofield.cxx: SwXFieldEnumeration: include meta-fields.
unoportenum.cxx: handle RES_TXTATR_META(FIELD) by using a portion list stack.
unotext.cxx: SwXText::insertTextContent(): handle meta(-field) as attribute.
2009-08-27 Michael Stahl #i91565#, #i91566#: ndhints.cxx: remove sort number from SwTxtAttrNesting
2009-08-27 Michael Stahl #i91565#, #i91566#: add support for hints with end and CH_TXTATR to sw core:
doc.hxx, docedt.cxx: replace SwDoc::Delete(), DeleteAndJoin(), ReplaceRange()
with wrappers that split at left-overlapped end+CH_TXTATR hints.
txatbase.hxx: new member SwTxtAttr::m_bHasDummyChar.
ndtxt.hxx: rename SwTxtNode::GetTxtAttr() to GetTxtAttrForCharAt().
ndtxt.cxx: SwTxtNode::CopyText(): copy end+CH_TXTATR hints iff copy CH_TXTATR.
txtatr2.cxx, thints.cxx: SwTxtMeta gets a CH_TXTATR.
2009-08-27 Michael Stahl #i91565#, #i91566#: add text:meta(-field) to sw core:
txatbase.hxx: new member SwTxtAttr::m_bNesting.
hintids.hxx: new ids RES_TXTATR_META, RES_TXTATR_METAFIELD.
txtatr.hxx: new base class SwTxtAttrNesting.
new hint SwTxtMeta.
SwTxtRuby derives from SwTxtAttrNesting.
txtinet.hxx: SwTxtINetFmt derives from SwTxtAttrNesting.
new header fmtmeta.hxx: new pool item SwFmtMeta. new class sw::Meta.
ndhints.hxx, thints.cxx: new method SwpHints::TryInsertNesting().
thints.cxx: refactoring: BuildPortions() no longer handles Ruby/Hyperlink,
but TryInsertNesting(), which also handles meta(-field).
SwTxtNode::InsertItem(): check if the hint is actually inserted.
ndhints.cxx: sort nesting hints based on sort number.
ndtxt.cxx: lcl_CopyHint(): handle copy of meta/meta-field.
2009-08-27 Michael Stahl enable expanding hints with m_bLockExpandFlag set:
add new InsertFlag: INS_FORCEHINTEXPAND.
add new SetAttrMode: SETATTR_FORCEHINTEXPAND.
rename SwEditShell::Insert() to Insert2() because changed signature fails
to compile when SwWrtShell tries to overwrite these non-virtual members...
SwWrtShell::Insert() sets FOCEHINTEXPAND if range was selected/deleted.
adapt SwUndoInsert to store flags.
2009-08-27 Michael Stahl change formal parameters of item insertion methods to type SetAttrMode
2009-08-27 Michael Stahl fix incorrect resetting of text attributes in SwUndoInsSection, SwUndoInserts
2009-08-27 Michael Stahl clean up SwTxtNode::CutImpl() and lcl_CopyHint()
2009-08-27 Michael Stahl rename SwDoc::Copy() to CopyRange(), and _Copy() to CopyImpl()
2009-08-27 Michael Stahl rename SwNodes::Move() to MoveRange(), and remove unused parameter
2009-08-27 Michael Stahl rename SwDoc::Move() to MoveRange()/MoveNodeRange()
2009-08-27 Michael Stahl rename SwDoc::Insert() to InsertString(), and remove sal_Unicode variant
2009-08-27 Michael Stahl rename SwDoc::Insert() to InsertPoolItem()/InsertItemSet()/InsertSwSection()
2009-08-27 Michael Stahl rename SwDoc::Replace() to ReplaceRange()
2009-08-27 Michael Stahl remove SwDoc::Overwrite() sal_Unicode variant
2009-08-27 Michael Stahl split up SwDoc::DeleteAndJoin(): factor out DeleteAndJoinWithRedline()
2009-08-27 Michael Stahl rename overloaded SwDoc::Delete() to DeleteRange()/DeleteTOXMark()
2009-08-27 Michael Stahl rename SwTxtNode::Copy() to CopyText()
2009-08-27 Michael Stahl rename SwTxtNode::Cut() to CutText(), and _Cut() to CutImpl()
2009-08-27 Michael Stahl rename SwTxtNode::Delete() to DeleteAttribute()/DeleteAttributes()
2009-08-27 Michael Stahl rename SwTxtNode::Replace() to ReplaceText(), and remove the xub_Unicode variant
2009-08-27 Michael Stahl rename SwTxtNode::Erase() to EraseText()
2009-08-27 Michael Stahl rename SwTxtNode::Insert() to InsertText(), and remove the xub_Unicode variant
2009-08-27 Michael Stahl clean up SwTxtNode::Update()
2009-08-27 Michael Stahl remove SwTxtAttr::RemoveFromPool() and make destructor non-public,
to be invoked by new method SwTxtAttr::Destroy()
2009-08-27 Michael Stahl ensure that SwDoc::Insert() for item (set) returns success indicator:
replace SwRegHistory constructor with method InsertItems(), returning bool.
refactor InsAttr() so that it checks if InsertItems() succeeds.
2009-08-27 Michael Stahl move SwXTextPortionEnumeration from unoobj.hxx to unoport.hxx
2009-08-27 Michael Stahl add missing SolarMutex in SwXTextPortion methods
2009-08-27 Michael Stahl SwXTextPortion: new member m_xTextField (so the TextField property need not
be returned indirectly via SwUnoCursorHelper).
factor out function CreateSwXTextField().
2009-08-27 Michael Stahl SwXTextPortion: remove PORTION_CONTROL_CHAR and implementation of XTextField
2009-08-27 Michael Stahl remove obsolete hint SwTxtHardBlank and formats SwFmtHardBlank/SwFmtSoftHyph
2009-08-27 Michael Stahl clean up SwTxtAttr and friends:
remove many accessor methods for obsolete (due to autofmt) char format items.
remove unused flag SwTxtAttr::m_bDontMergeAttr.
MakeRedlineTxtAttr() now dedicated function, no longer calls MakeTxtAttr().
2009-08-27 Michael Stahl remove obsolete attribute SwTxt2Lines
2009-08-27 Michael Stahl SwXTextPortionEnumeration: finish refactoring CreatePortions
change ExportHints so it always returns a text portion for hint w/ CH_TXTATR.
remove special case for handling end of paragraph.
unfortunately had to refactor the fieldmarks export as well (got in the way).
2009-08-27 Michael Stahl SwXTextPortionEnumeration: refactor CreatePortions: frames export
extract function ExportFrames() from CreatePortions().
remove (un)dead code that calls evil MovePara(fnParaCurr, fnParaEnd)
2009-08-27 Michael Stahl clean up SwXParaFrameEnumeration
2009-08-27 Michael Stahl CollectFrameAtNode: replace SwDependArr with STL based FrameDependList_t
2009-08-27 Michael Stahl SwXTextPortionEnumeration: tweak refmark/toxmark export
so ExportHints returns the portion for point marks
2009-08-27 Michael Stahl clean up SwXTextPortionEnumeration:
prefix members, remove casts, replace SvWeirdArray with STL, etc.
make CreatePortions() method a function, and remove lots of members.
extract fieldmarks function from CreatePortions.
2009-08-27 Michael Stahl remove FOREACHUNOPAM_START/END macros
2009-08-27 Michael Stahl clean up SwXTextPortion:
prefix members, remove casts, etc.
remove SwXRubyPortion: replace it with another SwXTextPortion constructor
2009-08-27 Michael Stahl #i102541# SwXReferenceMark::InsertRefMark(): use flag SETATTR_DONTEXPAND
2009-08-27 Michael Stahl rename SwTxtNode::Insert to SwTxtNode::InsertHint, and
fix constness in SwTxtNode::InsertItem
2009-08-27 Michael Stahl turn SwTxtNode::MakeTxtAttr() methods into global functions in ndhints.hxx
2009-08-27 Michael Stahl remove obsolete sw/inc/bookmrk.hxx
2009-08-27 Michael Stahl pam.cxx: fix ComparePosition functions (returned wrong result in one case)
2009-08-27 Michael Stahl #i103613# only import RDF metadata on normal open of a document
2009-09-11 kz CWS-TOOLING: integrate CWS impress176
2009-09-08 20:18:24 +0200 sj r275957 : fixed warning (shadowed variable)
2009-09-08 18:02:05 +0200 cl r275948 : #i104315# added missing tab pages
2009-09-08 17:35:18 +0200 cl r275947 : #i104866# fixed angle import
2009-09-08 17:32:53 +0200 cl r275946 : #i104841# fixed angle import
2009-09-08 17:01:25 +0200 cl r275943 : #i103935# fixed the SID_EVENTCONFIG mess
2009-09-08 14:32:57 +0200 sj r275928 : #i104685# only comments
2009-09-07 12:37:36 +0200 sj r275886 : #i104683# fixed import of bold/italic attributes for normal text shapes
2009-09-04 15:07:46 +0200 sj r275808 : #104689# fixed bullet color problem
2009-09-03 15:25:07 +0200 sj r275753 : #160200# added vertical alignment of table cells
2009-09-11 kz CWS-TOOLING: integrate CWS dv14
2009-09-10 15:16:32 +0200 sg r276035 : #160513# updated wfs scheme to accept ports
2009-09-10 07:41:47 +0200 dv r276019 : #i104942# Better renaming algorithmen
2009-08-31 13:41:11 +0200 dv r275604 : #160505# Setting APP1PRODUCTNAME must not overwrite APP1PRODUCTDEF
2009-09-11 kz CWS-TOOLING: integrate CWS jl131
2009-09-02 16:42:40 +0200 jl r275720 : #i97896#
2009-08-31 13:01:53 +0200 jl r275599 : CWS-TOOLING: rebase CWS jl131 to trunk@275331 (milestone: DEV300:m56)
2009-07-31 14:35:30 +0200 jl r274531 : CWS-TOOLING: rebase CWS jl131 to trunk@274203 (milestone: DEV300:m53)
2009-07-23 14:20:32 +0200 jl r274272 : #i79839# better error text when trying to modify shared layer without having write permission, eg. unopkg add --shared, unopkg remove --shared, unopkg reinstall --shared
2009-07-22 16:38:02 +0200 jl r274252 : #i97896# localize error message for lock file
2009-07-22 16:37:22 +0200 jl r274251 : #i80462# unprecise wording in updatedialog
2009-07-22 16:36:06 +0200 jl r274250 : #i97896# localize error message for lock file
2009-07-22 16:35:20 +0200 jl r274249 : #i97896# localize error message for lock file
2009-07-22 15:07:30 +0200 jl r274242 : #i98873# minimum java version is 1.5 since OOo 3.0
2009-09-11 kz CWS-TOOLING: integrate CWS changehc
2009-08-31 19:38:50 +0200 pl r275633 : remove dbug printf
2009-08-31 17:41:50 +0200 pl r275623 : CWS-TOOLING: rebase CWS changehc to trunk@275331 (milestone: DEV300:m56)
2009-07-15 19:45:46 +0200 pl r274028 : #i35482# use HC flag to decide high contrast mode
2009-07-15 17:40:52 +0200 pl r274020 : #i35482# use HC flag to decide high contrast mode
2009-07-15 17:39:50 +0200 pl r274019 : #i35482# update autohc correctly in MergeSystemSettings
2009-07-15 17:38:57 +0200 pl r274018 : #i35482# update autohc correctly in MergeSystemSettings
2009-09-11 kz CWS-TOOLING: integrate CWS notes10
2009-08-24 07:25:57 +0200 mod r275287 : 2009-07-26 02:38:32 +0200 mod r274343 : #i#i103645#
2009-07-26 02:01:53 +0200 mod r274342 : #i103645#
2009-07-26 01:52:42 +0200 mod r274341 : #i103490#
2009-07-22 08:31:48 +0200 mod r274215 : #i103373#
2009-07-15 00:55:11 +0200 mod r273987 : #i101419#
2009-07-14 07:07:55 +0200 mod r273956 : #i101419#
2009-07-14 07:07:43 +0200 mod r273955 : #i101419#
2009-07-14 07:02:10 +0200 mod r273954 : changes from notes9
2009-07-14 06:14:25 +0200 mod r273953 : #i103476#
2009-09-11 kz CWS-TOOLING: integrate CWS ab70
2009-09-10 15:12:54 +0200 jsk r276034 : #i85434# - mandatory automatic update test
2009-09-10 15:11:06 +0200 jsk r276033 : #i85434# - mandatory automatic update test
2009-09-02 09:49:24 +0200 ab r275698 : #i85434# Dialog Import
2009-09-11 kz CWS-TOOLING: integrate CWS hb32bugs02
2009-09-02 Henning Brinkmann #i102420# revert changes
2009-08-26 Henning Brinkmann merged DEV300_m56
2009-08-19 Henning Brinkmann merged DEV300_m55
2009-08-14 Henning Brinkmann merged changes from wntmsci12
2009-08-12 Henning Brinkmann Implemented NoSpaceEdit constructor and destructor in .cxx to allow compile with debug on wntmsci12.
2009-08-12 Henning Brinkmann Added some SW_DLLPUBLIC to make compilable on wntmsci12.
2009-08-11 Henning Brinkmann #i102420# dbg_out: surround output for SwNodes with <nodes-array>.
2009-08-10 Henning Brinkmann #i102420# rewritten debug output for SwNodes.
2009-08-07 Henning Brinkmann #i102420# debug _MoveNodes: output the destination, too. Break after two iterations.
2009-08-07 Henning Brinkmann #i102420# _MoveNodes: Additionally check if destination index is inside source => false
Check if current range was already handled => loop
Debug output current range
2009-08-06 Henning Brinkmann merged DEV300_m54
2009-08-06 Henning Brinkmann added master fix
2009-08-06 Henning Brinkmann debug output for SwNodeRange
2009-08-04 Henning Brinkmann #i102844# robustness: check for NULL pointer to prevent crash
2009-08-03 Henning Brinkmann #i103475# applied patch and verified
2009-08-03 Henning Brinkmann Removed code preventing build of sw with DEBUG.
2009-09-11 convert-repo update tags
2009-09-10 kz CWS-TOOLING: integrate CWS os2port06dev300
2009-09-05 22:49:00 +0200 ydario r275858 : #i99588# applied os2port06 diff to DEV300 tree.
2009-09-10 kz CWS-TOOLING: integrate CWS mingwport23
2009-08-29 07:07:53 +0200 tono r275555 : i#104522: mingw port graphite
2009-08-29 07:07:26 +0200 tono r275554 : i#104522: mingw port printf format fix
2009-09-10 kz CWS-TOOLING: integrate CWS mh232
2009-08-26 03:52:57 +0200 mh r275385 : #i102182# FreeBSD patch
2009-08-26 03:43:20 +0200 mh r275384 : #i101333# patch for FreeBSD
2009-08-26 03:11:20 +0200 mh r275383 : #i39230
2009-08-26 03:07:51 +0200 mh r275382 : #i39230# more space for initials field
2009-08-26 02:41:19 +0200 mh r275380 : #i39230# use vos::osecurity for reading the user name
2009-08-18 22:06:00 +0200 mh r275130 : #i104243#, line ending problem with newer perl
2009-08-18 21:53:21 +0200 mh r275129 : #i39230# read initials via getpwnam
2009-08-18 21:34:05 +0200 mh r275128 : enable CAIROCANVAS for Linux and Mac, #i88613#
2009-08-17 18:02:59 +0200 mh r275067 : #i95498# make compile with gcc3
2009-09-10 kz CWS-TOOLING: integrate CWS tkr24
2009-09-07 14:31:06 +0200 is r275898 : #160081# adding NO_LICENSE_INTO_COPYRIGHT
2009-09-10 releng #i10000# change KeyMapping to SingletonRef<framework::KeyMapping>
2009-09-11 convert-repo update tags
2009-09-10 kz CWS-TOOLING: integrate CWS os2port06dev300
2009-09-05 22:49:00 +0200 ydario r275858 : #i99588# applied os2port06 diff to DEV300 tree.
2009-09-10 kz CWS-TOOLING: integrate CWS mingwport23
2009-08-29 07:07:53 +0200 tono r275555 : i#104522: mingw port graphite
2009-08-29 07:07:26 +0200 tono r275554 : i#104522: mingw port printf format fix
2009-09-10 kz CWS-TOOLING: integrate CWS mh232
2009-08-26 03:52:57 +0200 mh r275385 : #i102182# FreeBSD patch
2009-08-26 03:43:20 +0200 mh r275384 : #i101333# patch for FreeBSD
2009-08-26 03:11:20 +0200 mh r275383 : #i39230
2009-08-26 03:07:51 +0200 mh r275382 : #i39230# more space for initials field
2009-08-26 02:41:19 +0200 mh r275380 : #i39230# use vos::osecurity for reading the user name
2009-08-18 22:06:00 +0200 mh r275130 : #i104243#, line ending problem with newer perl
2009-08-18 21:53:21 +0200 mh r275129 : #i39230# read initials via getpwnam
2009-08-18 21:34:05 +0200 mh r275128 : enable CAIROCANVAS for Linux and Mac, #i88613#
2009-08-17 18:02:59 +0200 mh r275067 : #i95498# make compile with gcc3
2009-09-10 kz CWS-TOOLING: integrate CWS tkr24
2009-09-07 14:31:06 +0200 is r275898 : #160081# adding NO_LICENSE_INTO_COPYRIGHT
2009-09-10 releng #i10000# change KeyMapping to SingletonRef<framework::KeyMapping>
2009-09-11 14:29:45 +00:00
{
pTxtAttr = aPam . GetNode ( ) - > GetTxtNode ( ) - > GetTxtAttrForCharAt (
2002-02-05 13:57:52 +00:00
aPam . GetPoint ( ) - > nContent . GetIndex ( ) - 1 , RES_TXTATR_TOXMARK ) ;
CWS-TOOLING: integrate CWS odfmetadata3
2009-09-11 Michael Stahl merge DEV300_m58
2009-09-07 Michael Stahl SwFmtFld::Modify(): do nothing on RES_OBJECTDYING
2009-08-27 Michael Stahl #i91565#, #i91566#: TextPortionEnumerationTest.java: add test document
2009-08-27 Michael Stahl #i91565#, #i91566#: add complex test: TextPortionEnumerationTest.java
2009-08-27 Michael Stahl CLiteral::initialize(): zero-length literals probably not an error
2009-08-27 Michael Stahl #i91565#, #i91566#: offapi: new InContentMetadata and MetadataField services
adapt TextPortion for InContentMetadata
2009-08-27 Michael Stahl #i91564#: xmloff: load/store xml:id and RDFa for text:bookmark(-start).
2009-08-27 Michael Stahl #i91564#: sw core: add support for xml:id at bookmarks:
sw::mark::Bookmark: derive from Metadatable.
SwHistoryBookmark, SaveBookmark: store a MetadatableUndo.
ndcopy.cxx: lcl_CopyBookmarks(): copy the xml:id.
SwXBookmark: derive from MetadatableMixin.
2009-08-27 Michael Stahl #i91565#, #i91566#: xmloff: refactor ruby import so nested meta(-field) works:
remove XMLRubyHint_Impl.
XMLImpRubyContext_Impl::~XMLImpRubyContext_Impl(): insert ruby directly.
2009-08-27 Michael Stahl #i91565#, #i91566#: xmloff: fix text:meta(-field) import/export:
new XMLTextParagraphExport::exportTextField() overload for XTextField.
CreateAndInsertMark(): set xml:id after insertion.
fix meta(-field) service names, bugs etc.
2009-08-27 Michael Stahl #i91565#, #i91566#: sw text formatting: paint background of meta(-field) body:
SwFont: add member m_nMetaCount.
txttypes.hxx: add POR_META.
atrstck.cxx: handle RES_TXTATR_META(FIELD).
itrform2.cxx: SwTxtFormatter::WhichTxtPor(): create new class SwMetaPortion.
2009-08-27 Michael Stahl #i91566#: sw text formatting: display meta-field prefix and suffix:
SwAttrIter::GetAttr(): replace with call to GetTxtAttrForCharAt().
SwTxtFormatter::NewExtraPortion(): handle meta-field prefix.
SwTxtFormatter: new member m_nHintEndIndex.
SwTxtFormatter::WhichFirstPortion(): call TryNewNoLengthPortion().
SwTxtFormatter::TryNewNoLengthPortion(): new; handle suffix of meta-field.
SwTxtFormatter::UnderFlow(): UGLY HACK: decrement m_nHintEndIndex.
SwFldPortion: add flag m_bNoLength: portion has zero length (for suffix).
2009-08-27 Michael Stahl #i91565#, #i91566#: extend text:meta(-field) uno wrapper with XText interface:
unoobj.hxx: new CursorType CURSOR_META.
unoobj2.cxx: refactor SwXText implementation to ensure that when the SwXText
belongs to a SwXMeta, content is always inserted inside the meta(-field).
unoobj.cxx: new SwXTextCursor::ForceIntoMeta(): cursor stays in meta(-field).
unometa.hxx: SwXMeta implements XText, forwarding to a member SwXMetaText.
DocInsertStringSplitCR(), SwX*::attachToRange(), SwX*::DeleteAndInsert():
use FORCEHINTEXPAND hack to ensure insert into the meta(-field) at the end.
2009-08-27 Michael Stahl #i91565#, #i91566#: add text:meta(-field) uno wrapper to sw:
fmtmeta.hxx, fmtatr2.cxx: new class sw::MetaField, new sw::MetaFieldManager.
doc.hxx, docnew.cxx: new SwDoc::GetMetaFieldManager().
unocoll.hxx,.cxx: new SW_SERVICE_FIELDTYPE_METAFIELD, SW_SERVICE_TYPE_META.
unomap.hxx,.cxx: new PROPERTY_MAP_METAFIELD.
unoprnms.hxx: new UNO_NAME_META.
unoport.hxx: new PORTION_META; add "InContentMetadata" prop to SwXTextPortion.
new unometa.hxx: new class SwXMeta and SwXMetaField.
unofield.cxx: SwXFieldEnumeration: include meta-fields.
unoportenum.cxx: handle RES_TXTATR_META(FIELD) by using a portion list stack.
unotext.cxx: SwXText::insertTextContent(): handle meta(-field) as attribute.
2009-08-27 Michael Stahl #i91565#, #i91566#: ndhints.cxx: remove sort number from SwTxtAttrNesting
2009-08-27 Michael Stahl #i91565#, #i91566#: add support for hints with end and CH_TXTATR to sw core:
doc.hxx, docedt.cxx: replace SwDoc::Delete(), DeleteAndJoin(), ReplaceRange()
with wrappers that split at left-overlapped end+CH_TXTATR hints.
txatbase.hxx: new member SwTxtAttr::m_bHasDummyChar.
ndtxt.hxx: rename SwTxtNode::GetTxtAttr() to GetTxtAttrForCharAt().
ndtxt.cxx: SwTxtNode::CopyText(): copy end+CH_TXTATR hints iff copy CH_TXTATR.
txtatr2.cxx, thints.cxx: SwTxtMeta gets a CH_TXTATR.
2009-08-27 Michael Stahl #i91565#, #i91566#: add text:meta(-field) to sw core:
txatbase.hxx: new member SwTxtAttr::m_bNesting.
hintids.hxx: new ids RES_TXTATR_META, RES_TXTATR_METAFIELD.
txtatr.hxx: new base class SwTxtAttrNesting.
new hint SwTxtMeta.
SwTxtRuby derives from SwTxtAttrNesting.
txtinet.hxx: SwTxtINetFmt derives from SwTxtAttrNesting.
new header fmtmeta.hxx: new pool item SwFmtMeta. new class sw::Meta.
ndhints.hxx, thints.cxx: new method SwpHints::TryInsertNesting().
thints.cxx: refactoring: BuildPortions() no longer handles Ruby/Hyperlink,
but TryInsertNesting(), which also handles meta(-field).
SwTxtNode::InsertItem(): check if the hint is actually inserted.
ndhints.cxx: sort nesting hints based on sort number.
ndtxt.cxx: lcl_CopyHint(): handle copy of meta/meta-field.
2009-08-27 Michael Stahl enable expanding hints with m_bLockExpandFlag set:
add new InsertFlag: INS_FORCEHINTEXPAND.
add new SetAttrMode: SETATTR_FORCEHINTEXPAND.
rename SwEditShell::Insert() to Insert2() because changed signature fails
to compile when SwWrtShell tries to overwrite these non-virtual members...
SwWrtShell::Insert() sets FOCEHINTEXPAND if range was selected/deleted.
adapt SwUndoInsert to store flags.
2009-08-27 Michael Stahl change formal parameters of item insertion methods to type SetAttrMode
2009-08-27 Michael Stahl fix incorrect resetting of text attributes in SwUndoInsSection, SwUndoInserts
2009-08-27 Michael Stahl clean up SwTxtNode::CutImpl() and lcl_CopyHint()
2009-08-27 Michael Stahl rename SwDoc::Copy() to CopyRange(), and _Copy() to CopyImpl()
2009-08-27 Michael Stahl rename SwNodes::Move() to MoveRange(), and remove unused parameter
2009-08-27 Michael Stahl rename SwDoc::Move() to MoveRange()/MoveNodeRange()
2009-08-27 Michael Stahl rename SwDoc::Insert() to InsertString(), and remove sal_Unicode variant
2009-08-27 Michael Stahl rename SwDoc::Insert() to InsertPoolItem()/InsertItemSet()/InsertSwSection()
2009-08-27 Michael Stahl rename SwDoc::Replace() to ReplaceRange()
2009-08-27 Michael Stahl remove SwDoc::Overwrite() sal_Unicode variant
2009-08-27 Michael Stahl split up SwDoc::DeleteAndJoin(): factor out DeleteAndJoinWithRedline()
2009-08-27 Michael Stahl rename overloaded SwDoc::Delete() to DeleteRange()/DeleteTOXMark()
2009-08-27 Michael Stahl rename SwTxtNode::Copy() to CopyText()
2009-08-27 Michael Stahl rename SwTxtNode::Cut() to CutText(), and _Cut() to CutImpl()
2009-08-27 Michael Stahl rename SwTxtNode::Delete() to DeleteAttribute()/DeleteAttributes()
2009-08-27 Michael Stahl rename SwTxtNode::Replace() to ReplaceText(), and remove the xub_Unicode variant
2009-08-27 Michael Stahl rename SwTxtNode::Erase() to EraseText()
2009-08-27 Michael Stahl rename SwTxtNode::Insert() to InsertText(), and remove the xub_Unicode variant
2009-08-27 Michael Stahl clean up SwTxtNode::Update()
2009-08-27 Michael Stahl remove SwTxtAttr::RemoveFromPool() and make destructor non-public,
to be invoked by new method SwTxtAttr::Destroy()
2009-08-27 Michael Stahl ensure that SwDoc::Insert() for item (set) returns success indicator:
replace SwRegHistory constructor with method InsertItems(), returning bool.
refactor InsAttr() so that it checks if InsertItems() succeeds.
2009-08-27 Michael Stahl move SwXTextPortionEnumeration from unoobj.hxx to unoport.hxx
2009-08-27 Michael Stahl add missing SolarMutex in SwXTextPortion methods
2009-08-27 Michael Stahl SwXTextPortion: new member m_xTextField (so the TextField property need not
be returned indirectly via SwUnoCursorHelper).
factor out function CreateSwXTextField().
2009-08-27 Michael Stahl SwXTextPortion: remove PORTION_CONTROL_CHAR and implementation of XTextField
2009-08-27 Michael Stahl remove obsolete hint SwTxtHardBlank and formats SwFmtHardBlank/SwFmtSoftHyph
2009-08-27 Michael Stahl clean up SwTxtAttr and friends:
remove many accessor methods for obsolete (due to autofmt) char format items.
remove unused flag SwTxtAttr::m_bDontMergeAttr.
MakeRedlineTxtAttr() now dedicated function, no longer calls MakeTxtAttr().
2009-08-27 Michael Stahl remove obsolete attribute SwTxt2Lines
2009-08-27 Michael Stahl SwXTextPortionEnumeration: finish refactoring CreatePortions
change ExportHints so it always returns a text portion for hint w/ CH_TXTATR.
remove special case for handling end of paragraph.
unfortunately had to refactor the fieldmarks export as well (got in the way).
2009-08-27 Michael Stahl SwXTextPortionEnumeration: refactor CreatePortions: frames export
extract function ExportFrames() from CreatePortions().
remove (un)dead code that calls evil MovePara(fnParaCurr, fnParaEnd)
2009-08-27 Michael Stahl clean up SwXParaFrameEnumeration
2009-08-27 Michael Stahl CollectFrameAtNode: replace SwDependArr with STL based FrameDependList_t
2009-08-27 Michael Stahl SwXTextPortionEnumeration: tweak refmark/toxmark export
so ExportHints returns the portion for point marks
2009-08-27 Michael Stahl clean up SwXTextPortionEnumeration:
prefix members, remove casts, replace SvWeirdArray with STL, etc.
make CreatePortions() method a function, and remove lots of members.
extract fieldmarks function from CreatePortions.
2009-08-27 Michael Stahl remove FOREACHUNOPAM_START/END macros
2009-08-27 Michael Stahl clean up SwXTextPortion:
prefix members, remove casts, etc.
remove SwXRubyPortion: replace it with another SwXTextPortion constructor
2009-08-27 Michael Stahl #i102541# SwXReferenceMark::InsertRefMark(): use flag SETATTR_DONTEXPAND
2009-08-27 Michael Stahl rename SwTxtNode::Insert to SwTxtNode::InsertHint, and
fix constness in SwTxtNode::InsertItem
2009-08-27 Michael Stahl turn SwTxtNode::MakeTxtAttr() methods into global functions in ndhints.hxx
2009-08-27 Michael Stahl remove obsolete sw/inc/bookmrk.hxx
2009-08-27 Michael Stahl pam.cxx: fix ComparePosition functions (returned wrong result in one case)
2009-08-27 Michael Stahl #i103613# only import RDF metadata on normal open of a document
2009-09-11 kz CWS-TOOLING: integrate CWS impress176
2009-09-08 20:18:24 +0200 sj r275957 : fixed warning (shadowed variable)
2009-09-08 18:02:05 +0200 cl r275948 : #i104315# added missing tab pages
2009-09-08 17:35:18 +0200 cl r275947 : #i104866# fixed angle import
2009-09-08 17:32:53 +0200 cl r275946 : #i104841# fixed angle import
2009-09-08 17:01:25 +0200 cl r275943 : #i103935# fixed the SID_EVENTCONFIG mess
2009-09-08 14:32:57 +0200 sj r275928 : #i104685# only comments
2009-09-07 12:37:36 +0200 sj r275886 : #i104683# fixed import of bold/italic attributes for normal text shapes
2009-09-04 15:07:46 +0200 sj r275808 : #104689# fixed bullet color problem
2009-09-03 15:25:07 +0200 sj r275753 : #160200# added vertical alignment of table cells
2009-09-11 kz CWS-TOOLING: integrate CWS dv14
2009-09-10 15:16:32 +0200 sg r276035 : #160513# updated wfs scheme to accept ports
2009-09-10 07:41:47 +0200 dv r276019 : #i104942# Better renaming algorithmen
2009-08-31 13:41:11 +0200 dv r275604 : #160505# Setting APP1PRODUCTNAME must not overwrite APP1PRODUCTDEF
2009-09-11 kz CWS-TOOLING: integrate CWS jl131
2009-09-02 16:42:40 +0200 jl r275720 : #i97896#
2009-08-31 13:01:53 +0200 jl r275599 : CWS-TOOLING: rebase CWS jl131 to trunk@275331 (milestone: DEV300:m56)
2009-07-31 14:35:30 +0200 jl r274531 : CWS-TOOLING: rebase CWS jl131 to trunk@274203 (milestone: DEV300:m53)
2009-07-23 14:20:32 +0200 jl r274272 : #i79839# better error text when trying to modify shared layer without having write permission, eg. unopkg add --shared, unopkg remove --shared, unopkg reinstall --shared
2009-07-22 16:38:02 +0200 jl r274252 : #i97896# localize error message for lock file
2009-07-22 16:37:22 +0200 jl r274251 : #i80462# unprecise wording in updatedialog
2009-07-22 16:36:06 +0200 jl r274250 : #i97896# localize error message for lock file
2009-07-22 16:35:20 +0200 jl r274249 : #i97896# localize error message for lock file
2009-07-22 15:07:30 +0200 jl r274242 : #i98873# minimum java version is 1.5 since OOo 3.0
2009-09-11 kz CWS-TOOLING: integrate CWS changehc
2009-08-31 19:38:50 +0200 pl r275633 : remove dbug printf
2009-08-31 17:41:50 +0200 pl r275623 : CWS-TOOLING: rebase CWS changehc to trunk@275331 (milestone: DEV300:m56)
2009-07-15 19:45:46 +0200 pl r274028 : #i35482# use HC flag to decide high contrast mode
2009-07-15 17:40:52 +0200 pl r274020 : #i35482# use HC flag to decide high contrast mode
2009-07-15 17:39:50 +0200 pl r274019 : #i35482# update autohc correctly in MergeSystemSettings
2009-07-15 17:38:57 +0200 pl r274018 : #i35482# update autohc correctly in MergeSystemSettings
2009-09-11 kz CWS-TOOLING: integrate CWS notes10
2009-08-24 07:25:57 +0200 mod r275287 : 2009-07-26 02:38:32 +0200 mod r274343 : #i#i103645#
2009-07-26 02:01:53 +0200 mod r274342 : #i103645#
2009-07-26 01:52:42 +0200 mod r274341 : #i103490#
2009-07-22 08:31:48 +0200 mod r274215 : #i103373#
2009-07-15 00:55:11 +0200 mod r273987 : #i101419#
2009-07-14 07:07:55 +0200 mod r273956 : #i101419#
2009-07-14 07:07:43 +0200 mod r273955 : #i101419#
2009-07-14 07:02:10 +0200 mod r273954 : changes from notes9
2009-07-14 06:14:25 +0200 mod r273953 : #i103476#
2009-09-11 kz CWS-TOOLING: integrate CWS ab70
2009-09-10 15:12:54 +0200 jsk r276034 : #i85434# - mandatory automatic update test
2009-09-10 15:11:06 +0200 jsk r276033 : #i85434# - mandatory automatic update test
2009-09-02 09:49:24 +0200 ab r275698 : #i85434# Dialog Import
2009-09-11 kz CWS-TOOLING: integrate CWS hb32bugs02
2009-09-02 Henning Brinkmann #i102420# revert changes
2009-08-26 Henning Brinkmann merged DEV300_m56
2009-08-19 Henning Brinkmann merged DEV300_m55
2009-08-14 Henning Brinkmann merged changes from wntmsci12
2009-08-12 Henning Brinkmann Implemented NoSpaceEdit constructor and destructor in .cxx to allow compile with debug on wntmsci12.
2009-08-12 Henning Brinkmann Added some SW_DLLPUBLIC to make compilable on wntmsci12.
2009-08-11 Henning Brinkmann #i102420# dbg_out: surround output for SwNodes with <nodes-array>.
2009-08-10 Henning Brinkmann #i102420# rewritten debug output for SwNodes.
2009-08-07 Henning Brinkmann #i102420# debug _MoveNodes: output the destination, too. Break after two iterations.
2009-08-07 Henning Brinkmann #i102420# _MoveNodes: Additionally check if destination index is inside source => false
Check if current range was already handled => loop
Debug output current range
2009-08-06 Henning Brinkmann merged DEV300_m54
2009-08-06 Henning Brinkmann added master fix
2009-08-06 Henning Brinkmann debug output for SwNodeRange
2009-08-04 Henning Brinkmann #i102844# robustness: check for NULL pointer to prevent crash
2009-08-03 Henning Brinkmann #i103475# applied patch and verified
2009-08-03 Henning Brinkmann Removed code preventing build of sw with DEBUG.
2009-09-11 convert-repo update tags
2009-09-10 kz CWS-TOOLING: integrate CWS os2port06dev300
2009-09-05 22:49:00 +0200 ydario r275858 : #i99588# applied os2port06 diff to DEV300 tree.
2009-09-10 kz CWS-TOOLING: integrate CWS mingwport23
2009-08-29 07:07:53 +0200 tono r275555 : i#104522: mingw port graphite
2009-08-29 07:07:26 +0200 tono r275554 : i#104522: mingw port printf format fix
2009-09-10 kz CWS-TOOLING: integrate CWS mh232
2009-08-26 03:52:57 +0200 mh r275385 : #i102182# FreeBSD patch
2009-08-26 03:43:20 +0200 mh r275384 : #i101333# patch for FreeBSD
2009-08-26 03:11:20 +0200 mh r275383 : #i39230
2009-08-26 03:07:51 +0200 mh r275382 : #i39230# more space for initials field
2009-08-26 02:41:19 +0200 mh r275380 : #i39230# use vos::osecurity for reading the user name
2009-08-18 22:06:00 +0200 mh r275130 : #i104243#, line ending problem with newer perl
2009-08-18 21:53:21 +0200 mh r275129 : #i39230# read initials via getpwnam
2009-08-18 21:34:05 +0200 mh r275128 : enable CAIROCANVAS for Linux and Mac, #i88613#
2009-08-17 18:02:59 +0200 mh r275067 : #i95498# make compile with gcc3
2009-09-10 kz CWS-TOOLING: integrate CWS tkr24
2009-09-07 14:31:06 +0200 is r275898 : #160081# adding NO_LICENSE_INTO_COPYRIGHT
2009-09-10 releng #i10000# change KeyMapping to SingletonRef<framework::KeyMapping>
2009-09-11 convert-repo update tags
2009-09-10 kz CWS-TOOLING: integrate CWS os2port06dev300
2009-09-05 22:49:00 +0200 ydario r275858 : #i99588# applied os2port06 diff to DEV300 tree.
2009-09-10 kz CWS-TOOLING: integrate CWS mingwport23
2009-08-29 07:07:53 +0200 tono r275555 : i#104522: mingw port graphite
2009-08-29 07:07:26 +0200 tono r275554 : i#104522: mingw port printf format fix
2009-09-10 kz CWS-TOOLING: integrate CWS mh232
2009-08-26 03:52:57 +0200 mh r275385 : #i102182# FreeBSD patch
2009-08-26 03:43:20 +0200 mh r275384 : #i101333# patch for FreeBSD
2009-08-26 03:11:20 +0200 mh r275383 : #i39230
2009-08-26 03:07:51 +0200 mh r275382 : #i39230# more space for initials field
2009-08-26 02:41:19 +0200 mh r275380 : #i39230# use vos::osecurity for reading the user name
2009-08-18 22:06:00 +0200 mh r275130 : #i104243#, line ending problem with newer perl
2009-08-18 21:53:21 +0200 mh r275129 : #i39230# read initials via getpwnam
2009-08-18 21:34:05 +0200 mh r275128 : enable CAIROCANVAS for Linux and Mac, #i88613#
2009-08-17 18:02:59 +0200 mh r275067 : #i95498# make compile with gcc3
2009-09-10 kz CWS-TOOLING: integrate CWS tkr24
2009-09-07 14:31:06 +0200 is r275898 : #160081# adding NO_LICENSE_INTO_COPYRIGHT
2009-09-10 releng #i10000# change KeyMapping to SingletonRef<framework::KeyMapping>
2009-09-11 14:29:45 +00:00
}
2002-02-05 13:57:52 +00:00
2000-09-18 23:08:29 +00:00
if ( pTxtAttr )
{
m_pTOXMark = & pTxtAttr - > GetTOXMark ( ) ;
m_pDoc = pDoc ;
bIsDescriptor = sal_False ;
}
else
2007-06-05 16:33:55 +00:00
throw uno : : RuntimeException ( ) ;
2000-09-18 23:08:29 +00:00
}
}
/*-- 14.12.98 10:25:45---------------------------------------------------
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
2007-06-05 16:33:55 +00:00
void SwXDocumentIndexMark : : attach ( const uno : : Reference < text : : XTextRange > & xTextRange )
throw ( lang : : IllegalArgumentException , uno : : RuntimeException )
2000-09-18 23:08:29 +00:00
{
2002-09-12 12:12:13 +00:00
vos : : OGuard aGuard ( Application : : GetSolarMutex ( ) ) ;
attachToRange ( xTextRange ) ;
2000-09-18 23:08:29 +00:00
}
/*-- 14.12.98 10:25:45---------------------------------------------------
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
2007-06-05 16:33:55 +00:00
uno : : Reference < text : : XTextRange > SwXDocumentIndexMark : : getAnchor ( void ) throw ( uno : : RuntimeException )
2000-09-18 23:08:29 +00:00
{
vos : : OGuard aGuard ( Application : : GetSolarMutex ( ) ) ;
2007-06-05 16:33:55 +00:00
uno : : Reference < text : : XTextRange > aRet ;
2000-09-18 23:08:29 +00:00
SwTOXType * pType = ( ( SwXDocumentIndexMark * ) this ) - > GetTOXType ( ) ;
2009-06-03 11:26:39 +00:00
if ( pType & & m_pTOXMark )
2000-09-18 23:08:29 +00:00
{
2009-06-03 11:26:39 +00:00
if ( m_pTOXMark - > GetTxtTOXMark ( ) )
2000-09-18 23:08:29 +00:00
{
2009-06-03 11:26:39 +00:00
const SwTxtTOXMark * pTxtMark = m_pTOXMark - > GetTxtTOXMark ( ) ;
2000-09-18 23:08:29 +00:00
SwPaM aPam ( pTxtMark - > GetTxtNode ( ) , * pTxtMark - > GetStart ( ) ) ;
aPam . SetMark ( ) ;
if ( pTxtMark - > GetEnd ( ) )
{
aPam . GetPoint ( ) - > nContent = * pTxtMark - > GetEnd ( ) ;
}
else
aPam . GetPoint ( ) - > nContent + + ;
2007-06-05 16:33:55 +00:00
uno : : Reference < frame : : XModel > xModel = m_pDoc - > GetDocShell ( ) - > GetBaseModel ( ) ;
uno : : Reference < text : : XTextDocument > xTDoc ( xModel , uno : : UNO_QUERY ) ;
2000-09-18 23:08:29 +00:00
aRet = new SwXTextRange ( aPam , xTDoc - > getText ( ) ) ;
}
}
if ( ! aRet . is ( ) )
2007-06-05 16:33:55 +00:00
throw uno : : RuntimeException ( ) ;
2000-09-18 23:08:29 +00:00
return aRet ;
}
/*-- 14.12.98 10:25:45---------------------------------------------------
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
2007-06-05 16:33:55 +00:00
void SwXDocumentIndexMark : : dispose ( void ) throw ( uno : : RuntimeException )
2000-09-18 23:08:29 +00:00
{
vos : : OGuard aGuard ( Application : : GetSolarMutex ( ) ) ;
SwTOXType * pType = ( ( SwXDocumentIndexMark * ) this ) - > GetTOXType ( ) ;
2009-06-03 11:26:39 +00:00
if ( pType & & m_pTOXMark )
2000-09-18 23:08:29 +00:00
{
CWS-TOOLING: integrate CWS odfmetadata3
2009-09-11 Michael Stahl merge DEV300_m58
2009-09-07 Michael Stahl SwFmtFld::Modify(): do nothing on RES_OBJECTDYING
2009-08-27 Michael Stahl #i91565#, #i91566#: TextPortionEnumerationTest.java: add test document
2009-08-27 Michael Stahl #i91565#, #i91566#: add complex test: TextPortionEnumerationTest.java
2009-08-27 Michael Stahl CLiteral::initialize(): zero-length literals probably not an error
2009-08-27 Michael Stahl #i91565#, #i91566#: offapi: new InContentMetadata and MetadataField services
adapt TextPortion for InContentMetadata
2009-08-27 Michael Stahl #i91564#: xmloff: load/store xml:id and RDFa for text:bookmark(-start).
2009-08-27 Michael Stahl #i91564#: sw core: add support for xml:id at bookmarks:
sw::mark::Bookmark: derive from Metadatable.
SwHistoryBookmark, SaveBookmark: store a MetadatableUndo.
ndcopy.cxx: lcl_CopyBookmarks(): copy the xml:id.
SwXBookmark: derive from MetadatableMixin.
2009-08-27 Michael Stahl #i91565#, #i91566#: xmloff: refactor ruby import so nested meta(-field) works:
remove XMLRubyHint_Impl.
XMLImpRubyContext_Impl::~XMLImpRubyContext_Impl(): insert ruby directly.
2009-08-27 Michael Stahl #i91565#, #i91566#: xmloff: fix text:meta(-field) import/export:
new XMLTextParagraphExport::exportTextField() overload for XTextField.
CreateAndInsertMark(): set xml:id after insertion.
fix meta(-field) service names, bugs etc.
2009-08-27 Michael Stahl #i91565#, #i91566#: sw text formatting: paint background of meta(-field) body:
SwFont: add member m_nMetaCount.
txttypes.hxx: add POR_META.
atrstck.cxx: handle RES_TXTATR_META(FIELD).
itrform2.cxx: SwTxtFormatter::WhichTxtPor(): create new class SwMetaPortion.
2009-08-27 Michael Stahl #i91566#: sw text formatting: display meta-field prefix and suffix:
SwAttrIter::GetAttr(): replace with call to GetTxtAttrForCharAt().
SwTxtFormatter::NewExtraPortion(): handle meta-field prefix.
SwTxtFormatter: new member m_nHintEndIndex.
SwTxtFormatter::WhichFirstPortion(): call TryNewNoLengthPortion().
SwTxtFormatter::TryNewNoLengthPortion(): new; handle suffix of meta-field.
SwTxtFormatter::UnderFlow(): UGLY HACK: decrement m_nHintEndIndex.
SwFldPortion: add flag m_bNoLength: portion has zero length (for suffix).
2009-08-27 Michael Stahl #i91565#, #i91566#: extend text:meta(-field) uno wrapper with XText interface:
unoobj.hxx: new CursorType CURSOR_META.
unoobj2.cxx: refactor SwXText implementation to ensure that when the SwXText
belongs to a SwXMeta, content is always inserted inside the meta(-field).
unoobj.cxx: new SwXTextCursor::ForceIntoMeta(): cursor stays in meta(-field).
unometa.hxx: SwXMeta implements XText, forwarding to a member SwXMetaText.
DocInsertStringSplitCR(), SwX*::attachToRange(), SwX*::DeleteAndInsert():
use FORCEHINTEXPAND hack to ensure insert into the meta(-field) at the end.
2009-08-27 Michael Stahl #i91565#, #i91566#: add text:meta(-field) uno wrapper to sw:
fmtmeta.hxx, fmtatr2.cxx: new class sw::MetaField, new sw::MetaFieldManager.
doc.hxx, docnew.cxx: new SwDoc::GetMetaFieldManager().
unocoll.hxx,.cxx: new SW_SERVICE_FIELDTYPE_METAFIELD, SW_SERVICE_TYPE_META.
unomap.hxx,.cxx: new PROPERTY_MAP_METAFIELD.
unoprnms.hxx: new UNO_NAME_META.
unoport.hxx: new PORTION_META; add "InContentMetadata" prop to SwXTextPortion.
new unometa.hxx: new class SwXMeta and SwXMetaField.
unofield.cxx: SwXFieldEnumeration: include meta-fields.
unoportenum.cxx: handle RES_TXTATR_META(FIELD) by using a portion list stack.
unotext.cxx: SwXText::insertTextContent(): handle meta(-field) as attribute.
2009-08-27 Michael Stahl #i91565#, #i91566#: ndhints.cxx: remove sort number from SwTxtAttrNesting
2009-08-27 Michael Stahl #i91565#, #i91566#: add support for hints with end and CH_TXTATR to sw core:
doc.hxx, docedt.cxx: replace SwDoc::Delete(), DeleteAndJoin(), ReplaceRange()
with wrappers that split at left-overlapped end+CH_TXTATR hints.
txatbase.hxx: new member SwTxtAttr::m_bHasDummyChar.
ndtxt.hxx: rename SwTxtNode::GetTxtAttr() to GetTxtAttrForCharAt().
ndtxt.cxx: SwTxtNode::CopyText(): copy end+CH_TXTATR hints iff copy CH_TXTATR.
txtatr2.cxx, thints.cxx: SwTxtMeta gets a CH_TXTATR.
2009-08-27 Michael Stahl #i91565#, #i91566#: add text:meta(-field) to sw core:
txatbase.hxx: new member SwTxtAttr::m_bNesting.
hintids.hxx: new ids RES_TXTATR_META, RES_TXTATR_METAFIELD.
txtatr.hxx: new base class SwTxtAttrNesting.
new hint SwTxtMeta.
SwTxtRuby derives from SwTxtAttrNesting.
txtinet.hxx: SwTxtINetFmt derives from SwTxtAttrNesting.
new header fmtmeta.hxx: new pool item SwFmtMeta. new class sw::Meta.
ndhints.hxx, thints.cxx: new method SwpHints::TryInsertNesting().
thints.cxx: refactoring: BuildPortions() no longer handles Ruby/Hyperlink,
but TryInsertNesting(), which also handles meta(-field).
SwTxtNode::InsertItem(): check if the hint is actually inserted.
ndhints.cxx: sort nesting hints based on sort number.
ndtxt.cxx: lcl_CopyHint(): handle copy of meta/meta-field.
2009-08-27 Michael Stahl enable expanding hints with m_bLockExpandFlag set:
add new InsertFlag: INS_FORCEHINTEXPAND.
add new SetAttrMode: SETATTR_FORCEHINTEXPAND.
rename SwEditShell::Insert() to Insert2() because changed signature fails
to compile when SwWrtShell tries to overwrite these non-virtual members...
SwWrtShell::Insert() sets FOCEHINTEXPAND if range was selected/deleted.
adapt SwUndoInsert to store flags.
2009-08-27 Michael Stahl change formal parameters of item insertion methods to type SetAttrMode
2009-08-27 Michael Stahl fix incorrect resetting of text attributes in SwUndoInsSection, SwUndoInserts
2009-08-27 Michael Stahl clean up SwTxtNode::CutImpl() and lcl_CopyHint()
2009-08-27 Michael Stahl rename SwDoc::Copy() to CopyRange(), and _Copy() to CopyImpl()
2009-08-27 Michael Stahl rename SwNodes::Move() to MoveRange(), and remove unused parameter
2009-08-27 Michael Stahl rename SwDoc::Move() to MoveRange()/MoveNodeRange()
2009-08-27 Michael Stahl rename SwDoc::Insert() to InsertString(), and remove sal_Unicode variant
2009-08-27 Michael Stahl rename SwDoc::Insert() to InsertPoolItem()/InsertItemSet()/InsertSwSection()
2009-08-27 Michael Stahl rename SwDoc::Replace() to ReplaceRange()
2009-08-27 Michael Stahl remove SwDoc::Overwrite() sal_Unicode variant
2009-08-27 Michael Stahl split up SwDoc::DeleteAndJoin(): factor out DeleteAndJoinWithRedline()
2009-08-27 Michael Stahl rename overloaded SwDoc::Delete() to DeleteRange()/DeleteTOXMark()
2009-08-27 Michael Stahl rename SwTxtNode::Copy() to CopyText()
2009-08-27 Michael Stahl rename SwTxtNode::Cut() to CutText(), and _Cut() to CutImpl()
2009-08-27 Michael Stahl rename SwTxtNode::Delete() to DeleteAttribute()/DeleteAttributes()
2009-08-27 Michael Stahl rename SwTxtNode::Replace() to ReplaceText(), and remove the xub_Unicode variant
2009-08-27 Michael Stahl rename SwTxtNode::Erase() to EraseText()
2009-08-27 Michael Stahl rename SwTxtNode::Insert() to InsertText(), and remove the xub_Unicode variant
2009-08-27 Michael Stahl clean up SwTxtNode::Update()
2009-08-27 Michael Stahl remove SwTxtAttr::RemoveFromPool() and make destructor non-public,
to be invoked by new method SwTxtAttr::Destroy()
2009-08-27 Michael Stahl ensure that SwDoc::Insert() for item (set) returns success indicator:
replace SwRegHistory constructor with method InsertItems(), returning bool.
refactor InsAttr() so that it checks if InsertItems() succeeds.
2009-08-27 Michael Stahl move SwXTextPortionEnumeration from unoobj.hxx to unoport.hxx
2009-08-27 Michael Stahl add missing SolarMutex in SwXTextPortion methods
2009-08-27 Michael Stahl SwXTextPortion: new member m_xTextField (so the TextField property need not
be returned indirectly via SwUnoCursorHelper).
factor out function CreateSwXTextField().
2009-08-27 Michael Stahl SwXTextPortion: remove PORTION_CONTROL_CHAR and implementation of XTextField
2009-08-27 Michael Stahl remove obsolete hint SwTxtHardBlank and formats SwFmtHardBlank/SwFmtSoftHyph
2009-08-27 Michael Stahl clean up SwTxtAttr and friends:
remove many accessor methods for obsolete (due to autofmt) char format items.
remove unused flag SwTxtAttr::m_bDontMergeAttr.
MakeRedlineTxtAttr() now dedicated function, no longer calls MakeTxtAttr().
2009-08-27 Michael Stahl remove obsolete attribute SwTxt2Lines
2009-08-27 Michael Stahl SwXTextPortionEnumeration: finish refactoring CreatePortions
change ExportHints so it always returns a text portion for hint w/ CH_TXTATR.
remove special case for handling end of paragraph.
unfortunately had to refactor the fieldmarks export as well (got in the way).
2009-08-27 Michael Stahl SwXTextPortionEnumeration: refactor CreatePortions: frames export
extract function ExportFrames() from CreatePortions().
remove (un)dead code that calls evil MovePara(fnParaCurr, fnParaEnd)
2009-08-27 Michael Stahl clean up SwXParaFrameEnumeration
2009-08-27 Michael Stahl CollectFrameAtNode: replace SwDependArr with STL based FrameDependList_t
2009-08-27 Michael Stahl SwXTextPortionEnumeration: tweak refmark/toxmark export
so ExportHints returns the portion for point marks
2009-08-27 Michael Stahl clean up SwXTextPortionEnumeration:
prefix members, remove casts, replace SvWeirdArray with STL, etc.
make CreatePortions() method a function, and remove lots of members.
extract fieldmarks function from CreatePortions.
2009-08-27 Michael Stahl remove FOREACHUNOPAM_START/END macros
2009-08-27 Michael Stahl clean up SwXTextPortion:
prefix members, remove casts, etc.
remove SwXRubyPortion: replace it with another SwXTextPortion constructor
2009-08-27 Michael Stahl #i102541# SwXReferenceMark::InsertRefMark(): use flag SETATTR_DONTEXPAND
2009-08-27 Michael Stahl rename SwTxtNode::Insert to SwTxtNode::InsertHint, and
fix constness in SwTxtNode::InsertItem
2009-08-27 Michael Stahl turn SwTxtNode::MakeTxtAttr() methods into global functions in ndhints.hxx
2009-08-27 Michael Stahl remove obsolete sw/inc/bookmrk.hxx
2009-08-27 Michael Stahl pam.cxx: fix ComparePosition functions (returned wrong result in one case)
2009-08-27 Michael Stahl #i103613# only import RDF metadata on normal open of a document
2009-09-11 kz CWS-TOOLING: integrate CWS impress176
2009-09-08 20:18:24 +0200 sj r275957 : fixed warning (shadowed variable)
2009-09-08 18:02:05 +0200 cl r275948 : #i104315# added missing tab pages
2009-09-08 17:35:18 +0200 cl r275947 : #i104866# fixed angle import
2009-09-08 17:32:53 +0200 cl r275946 : #i104841# fixed angle import
2009-09-08 17:01:25 +0200 cl r275943 : #i103935# fixed the SID_EVENTCONFIG mess
2009-09-08 14:32:57 +0200 sj r275928 : #i104685# only comments
2009-09-07 12:37:36 +0200 sj r275886 : #i104683# fixed import of bold/italic attributes for normal text shapes
2009-09-04 15:07:46 +0200 sj r275808 : #104689# fixed bullet color problem
2009-09-03 15:25:07 +0200 sj r275753 : #160200# added vertical alignment of table cells
2009-09-11 kz CWS-TOOLING: integrate CWS dv14
2009-09-10 15:16:32 +0200 sg r276035 : #160513# updated wfs scheme to accept ports
2009-09-10 07:41:47 +0200 dv r276019 : #i104942# Better renaming algorithmen
2009-08-31 13:41:11 +0200 dv r275604 : #160505# Setting APP1PRODUCTNAME must not overwrite APP1PRODUCTDEF
2009-09-11 kz CWS-TOOLING: integrate CWS jl131
2009-09-02 16:42:40 +0200 jl r275720 : #i97896#
2009-08-31 13:01:53 +0200 jl r275599 : CWS-TOOLING: rebase CWS jl131 to trunk@275331 (milestone: DEV300:m56)
2009-07-31 14:35:30 +0200 jl r274531 : CWS-TOOLING: rebase CWS jl131 to trunk@274203 (milestone: DEV300:m53)
2009-07-23 14:20:32 +0200 jl r274272 : #i79839# better error text when trying to modify shared layer without having write permission, eg. unopkg add --shared, unopkg remove --shared, unopkg reinstall --shared
2009-07-22 16:38:02 +0200 jl r274252 : #i97896# localize error message for lock file
2009-07-22 16:37:22 +0200 jl r274251 : #i80462# unprecise wording in updatedialog
2009-07-22 16:36:06 +0200 jl r274250 : #i97896# localize error message for lock file
2009-07-22 16:35:20 +0200 jl r274249 : #i97896# localize error message for lock file
2009-07-22 15:07:30 +0200 jl r274242 : #i98873# minimum java version is 1.5 since OOo 3.0
2009-09-11 kz CWS-TOOLING: integrate CWS changehc
2009-08-31 19:38:50 +0200 pl r275633 : remove dbug printf
2009-08-31 17:41:50 +0200 pl r275623 : CWS-TOOLING: rebase CWS changehc to trunk@275331 (milestone: DEV300:m56)
2009-07-15 19:45:46 +0200 pl r274028 : #i35482# use HC flag to decide high contrast mode
2009-07-15 17:40:52 +0200 pl r274020 : #i35482# use HC flag to decide high contrast mode
2009-07-15 17:39:50 +0200 pl r274019 : #i35482# update autohc correctly in MergeSystemSettings
2009-07-15 17:38:57 +0200 pl r274018 : #i35482# update autohc correctly in MergeSystemSettings
2009-09-11 kz CWS-TOOLING: integrate CWS notes10
2009-08-24 07:25:57 +0200 mod r275287 : 2009-07-26 02:38:32 +0200 mod r274343 : #i#i103645#
2009-07-26 02:01:53 +0200 mod r274342 : #i103645#
2009-07-26 01:52:42 +0200 mod r274341 : #i103490#
2009-07-22 08:31:48 +0200 mod r274215 : #i103373#
2009-07-15 00:55:11 +0200 mod r273987 : #i101419#
2009-07-14 07:07:55 +0200 mod r273956 : #i101419#
2009-07-14 07:07:43 +0200 mod r273955 : #i101419#
2009-07-14 07:02:10 +0200 mod r273954 : changes from notes9
2009-07-14 06:14:25 +0200 mod r273953 : #i103476#
2009-09-11 kz CWS-TOOLING: integrate CWS ab70
2009-09-10 15:12:54 +0200 jsk r276034 : #i85434# - mandatory automatic update test
2009-09-10 15:11:06 +0200 jsk r276033 : #i85434# - mandatory automatic update test
2009-09-02 09:49:24 +0200 ab r275698 : #i85434# Dialog Import
2009-09-11 kz CWS-TOOLING: integrate CWS hb32bugs02
2009-09-02 Henning Brinkmann #i102420# revert changes
2009-08-26 Henning Brinkmann merged DEV300_m56
2009-08-19 Henning Brinkmann merged DEV300_m55
2009-08-14 Henning Brinkmann merged changes from wntmsci12
2009-08-12 Henning Brinkmann Implemented NoSpaceEdit constructor and destructor in .cxx to allow compile with debug on wntmsci12.
2009-08-12 Henning Brinkmann Added some SW_DLLPUBLIC to make compilable on wntmsci12.
2009-08-11 Henning Brinkmann #i102420# dbg_out: surround output for SwNodes with <nodes-array>.
2009-08-10 Henning Brinkmann #i102420# rewritten debug output for SwNodes.
2009-08-07 Henning Brinkmann #i102420# debug _MoveNodes: output the destination, too. Break after two iterations.
2009-08-07 Henning Brinkmann #i102420# _MoveNodes: Additionally check if destination index is inside source => false
Check if current range was already handled => loop
Debug output current range
2009-08-06 Henning Brinkmann merged DEV300_m54
2009-08-06 Henning Brinkmann added master fix
2009-08-06 Henning Brinkmann debug output for SwNodeRange
2009-08-04 Henning Brinkmann #i102844# robustness: check for NULL pointer to prevent crash
2009-08-03 Henning Brinkmann #i103475# applied patch and verified
2009-08-03 Henning Brinkmann Removed code preventing build of sw with DEBUG.
2009-09-11 convert-repo update tags
2009-09-10 kz CWS-TOOLING: integrate CWS os2port06dev300
2009-09-05 22:49:00 +0200 ydario r275858 : #i99588# applied os2port06 diff to DEV300 tree.
2009-09-10 kz CWS-TOOLING: integrate CWS mingwport23
2009-08-29 07:07:53 +0200 tono r275555 : i#104522: mingw port graphite
2009-08-29 07:07:26 +0200 tono r275554 : i#104522: mingw port printf format fix
2009-09-10 kz CWS-TOOLING: integrate CWS mh232
2009-08-26 03:52:57 +0200 mh r275385 : #i102182# FreeBSD patch
2009-08-26 03:43:20 +0200 mh r275384 : #i101333# patch for FreeBSD
2009-08-26 03:11:20 +0200 mh r275383 : #i39230
2009-08-26 03:07:51 +0200 mh r275382 : #i39230# more space for initials field
2009-08-26 02:41:19 +0200 mh r275380 : #i39230# use vos::osecurity for reading the user name
2009-08-18 22:06:00 +0200 mh r275130 : #i104243#, line ending problem with newer perl
2009-08-18 21:53:21 +0200 mh r275129 : #i39230# read initials via getpwnam
2009-08-18 21:34:05 +0200 mh r275128 : enable CAIROCANVAS for Linux and Mac, #i88613#
2009-08-17 18:02:59 +0200 mh r275067 : #i95498# make compile with gcc3
2009-09-10 kz CWS-TOOLING: integrate CWS tkr24
2009-09-07 14:31:06 +0200 is r275898 : #160081# adding NO_LICENSE_INTO_COPYRIGHT
2009-09-10 releng #i10000# change KeyMapping to SingletonRef<framework::KeyMapping>
2009-09-11 convert-repo update tags
2009-09-10 kz CWS-TOOLING: integrate CWS os2port06dev300
2009-09-05 22:49:00 +0200 ydario r275858 : #i99588# applied os2port06 diff to DEV300 tree.
2009-09-10 kz CWS-TOOLING: integrate CWS mingwport23
2009-08-29 07:07:53 +0200 tono r275555 : i#104522: mingw port graphite
2009-08-29 07:07:26 +0200 tono r275554 : i#104522: mingw port printf format fix
2009-09-10 kz CWS-TOOLING: integrate CWS mh232
2009-08-26 03:52:57 +0200 mh r275385 : #i102182# FreeBSD patch
2009-08-26 03:43:20 +0200 mh r275384 : #i101333# patch for FreeBSD
2009-08-26 03:11:20 +0200 mh r275383 : #i39230
2009-08-26 03:07:51 +0200 mh r275382 : #i39230# more space for initials field
2009-08-26 02:41:19 +0200 mh r275380 : #i39230# use vos::osecurity for reading the user name
2009-08-18 22:06:00 +0200 mh r275130 : #i104243#, line ending problem with newer perl
2009-08-18 21:53:21 +0200 mh r275129 : #i39230# read initials via getpwnam
2009-08-18 21:34:05 +0200 mh r275128 : enable CAIROCANVAS for Linux and Mac, #i88613#
2009-08-17 18:02:59 +0200 mh r275067 : #i95498# make compile with gcc3
2009-09-10 kz CWS-TOOLING: integrate CWS tkr24
2009-09-07 14:31:06 +0200 is r275898 : #160081# adding NO_LICENSE_INTO_COPYRIGHT
2009-09-10 releng #i10000# change KeyMapping to SingletonRef<framework::KeyMapping>
2009-09-11 14:29:45 +00:00
m_pDoc - > DeleteTOXMark ( m_pTOXMark ) ;
2000-09-18 23:08:29 +00:00
}
else
2007-06-05 16:33:55 +00:00
throw uno : : RuntimeException ( ) ;
2000-09-18 23:08:29 +00:00
}
/*-- 14.12.98 10:25:45---------------------------------------------------
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
2007-06-05 16:33:55 +00:00
void SwXDocumentIndexMark : : addEventListener ( const uno : : Reference < lang : : XEventListener > & aListener )
throw ( uno : : RuntimeException )
2000-09-18 23:08:29 +00:00
{
if ( ! GetRegisteredIn ( ) )
2007-06-05 16:33:55 +00:00
throw uno : : RuntimeException ( ) ;
2000-09-18 23:08:29 +00:00
aLstnrCntnr . AddListener ( aListener ) ;
}
/*-- 14.12.98 10:25:46---------------------------------------------------
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
2007-06-05 16:33:55 +00:00
void SwXDocumentIndexMark : : removeEventListener ( const uno : : Reference < lang : : XEventListener > & aListener )
throw ( uno : : RuntimeException )
2000-09-18 23:08:29 +00:00
{
if ( ! GetRegisteredIn ( ) | | ! aLstnrCntnr . RemoveListener ( aListener ) )
2007-06-05 16:33:55 +00:00
throw uno : : RuntimeException ( ) ;
2000-09-18 23:08:29 +00:00
}
/*-- 14.12.98 10:25:46---------------------------------------------------
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
2007-06-05 16:33:55 +00:00
uno : : Reference < beans : : XPropertySetInfo > SwXDocumentIndexMark : : getPropertySetInfo ( void )
throw ( uno : : RuntimeException )
2000-09-18 23:08:29 +00:00
{
2001-05-09 11:28:57 +00:00
static uno : : Reference < beans : : XPropertySetInfo > xInfos [ 3 ] ;
int nPos = 0 ;
switch ( eType )
{
case TOX_INDEX : nPos = 0 ; break ;
case TOX_CONTENT : nPos = 1 ; break ;
case TOX_USER : nPos = 2 ; break ;
2007-09-27 08:37:21 +00:00
default :
;
2001-05-09 11:28:57 +00:00
}
if ( ! xInfos [ nPos ] . is ( ) )
{
2009-06-03 11:26:39 +00:00
uno : : Reference < beans : : XPropertySetInfo > xInfo = m_pPropSet - > getPropertySetInfo ( ) ;
2001-05-09 11:28:57 +00:00
// extend PropertySetInfo!
2001-05-16 06:52:43 +00:00
const uno : : Sequence < beans : : Property > aPropSeq = xInfo - > getProperties ( ) ;
2001-05-09 11:28:57 +00:00
xInfos [ nPos ] = new SfxExtItemPropertySetInfo (
2009-06-03 11:26:39 +00:00
aSwMapProvider . GetPropertyMapEntries ( PROPERTY_MAP_PARAGRAPH_EXTENSIONS ) ,
2001-05-09 11:28:57 +00:00
aPropSeq ) ;
}
return xInfos [ nPos ] ;
2000-09-18 23:08:29 +00:00
}
/*-- 14.12.98 10:25:46---------------------------------------------------
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
void SwXDocumentIndexMark : : setPropertyValue ( const OUString & rPropertyName ,
const uno : : Any & aValue )
2007-06-05 16:33:55 +00:00
throw ( beans : : UnknownPropertyException , beans : : PropertyVetoException ,
lang : : IllegalArgumentException , lang : : WrappedTargetException , uno : : RuntimeException )
2000-09-18 23:08:29 +00:00
{
vos : : OGuard aGuard ( Application : : GetSolarMutex ( ) ) ;
SwTOXType * pType = ( ( SwXDocumentIndexMark * ) this ) - > GetTOXType ( ) ;
2009-06-03 11:26:39 +00:00
const SfxItemPropertySimpleEntry * pEntry = m_pPropSet - > getPropertyMap ( ) - > getByName ( rPropertyName ) ;
if ( ! pEntry )
2007-06-05 16:33:55 +00:00
throw beans : : UnknownPropertyException ( OUString ( RTL_CONSTASCII_USTRINGPARAM ( " Unknown property: " ) ) + rPropertyName , static_cast < cppu : : OWeakObject * > ( this ) ) ;
2009-06-03 11:26:39 +00:00
if ( pEntry - > nFlags & beans : : PropertyAttribute : : READONLY )
2007-06-05 16:33:55 +00:00
throw beans : : PropertyVetoException ( OUString ( RTL_CONSTASCII_USTRINGPARAM ( " Property is read-only: " ) ) + rPropertyName , static_cast < cppu : : OWeakObject * > ( this ) ) ;
2009-06-03 11:26:39 +00:00
if ( pType & & m_pTOXMark )
2000-09-18 23:08:29 +00:00
{
2001-01-19 13:35:52 +00:00
SwDoc * pLocalDoc = m_pDoc ;
2000-09-18 23:08:29 +00:00
2009-06-03 11:26:39 +00:00
SwTOXMark aMark ( * m_pTOXMark ) ;
switch ( pEntry - > nWID )
{
case WID_ALT_TEXT :
aMark . SetAlternativeText ( lcl_AnyToString ( aValue ) ) ;
break ;
case WID_LEVEL :
aMark . SetLevel ( Min ( ( sal_Int8 ) ( MAXLEVEL ) ,
( sal_Int8 ) ( lcl_AnyToInt16 ( aValue ) + 1 ) ) ) ;
break ;
case WID_PRIMARY_KEY :
aMark . SetPrimaryKey ( lcl_AnyToString ( aValue ) ) ;
break ;
case WID_SECONDARY_KEY :
aMark . SetSecondaryKey ( lcl_AnyToString ( aValue ) ) ;
break ;
case WID_MAIN_ENTRY :
aMark . SetMainEntry ( lcl_AnyToBool ( aValue ) ) ;
break ;
case WID_TEXT_READING :
aMark . SetTextReading ( lcl_AnyToString ( aValue ) ) ;
break ;
case WID_PRIMARY_KEY_READING :
aMark . SetPrimaryKeyReading ( lcl_AnyToString ( aValue ) ) ;
break ;
case WID_SECONDARY_KEY_READING :
aMark . SetSecondaryKeyReading ( lcl_AnyToString ( aValue ) ) ;
break ;
}
const SwTxtTOXMark * pTxtMark = m_pTOXMark - > GetTxtTOXMark ( ) ;
SwPaM aPam ( pTxtMark - > GetTxtNode ( ) , * pTxtMark - > GetStart ( ) ) ;
aPam . SetMark ( ) ;
if ( pTxtMark - > GetEnd ( ) )
{
aPam . GetPoint ( ) - > nContent = * pTxtMark - > GetEnd ( ) ;
}
else
aPam . GetPoint ( ) - > nContent + + ;
2000-09-18 23:08:29 +00:00
2009-06-03 11:26:39 +00:00
//delete the old mark
CWS-TOOLING: integrate CWS odfmetadata3
2009-09-11 Michael Stahl merge DEV300_m58
2009-09-07 Michael Stahl SwFmtFld::Modify(): do nothing on RES_OBJECTDYING
2009-08-27 Michael Stahl #i91565#, #i91566#: TextPortionEnumerationTest.java: add test document
2009-08-27 Michael Stahl #i91565#, #i91566#: add complex test: TextPortionEnumerationTest.java
2009-08-27 Michael Stahl CLiteral::initialize(): zero-length literals probably not an error
2009-08-27 Michael Stahl #i91565#, #i91566#: offapi: new InContentMetadata and MetadataField services
adapt TextPortion for InContentMetadata
2009-08-27 Michael Stahl #i91564#: xmloff: load/store xml:id and RDFa for text:bookmark(-start).
2009-08-27 Michael Stahl #i91564#: sw core: add support for xml:id at bookmarks:
sw::mark::Bookmark: derive from Metadatable.
SwHistoryBookmark, SaveBookmark: store a MetadatableUndo.
ndcopy.cxx: lcl_CopyBookmarks(): copy the xml:id.
SwXBookmark: derive from MetadatableMixin.
2009-08-27 Michael Stahl #i91565#, #i91566#: xmloff: refactor ruby import so nested meta(-field) works:
remove XMLRubyHint_Impl.
XMLImpRubyContext_Impl::~XMLImpRubyContext_Impl(): insert ruby directly.
2009-08-27 Michael Stahl #i91565#, #i91566#: xmloff: fix text:meta(-field) import/export:
new XMLTextParagraphExport::exportTextField() overload for XTextField.
CreateAndInsertMark(): set xml:id after insertion.
fix meta(-field) service names, bugs etc.
2009-08-27 Michael Stahl #i91565#, #i91566#: sw text formatting: paint background of meta(-field) body:
SwFont: add member m_nMetaCount.
txttypes.hxx: add POR_META.
atrstck.cxx: handle RES_TXTATR_META(FIELD).
itrform2.cxx: SwTxtFormatter::WhichTxtPor(): create new class SwMetaPortion.
2009-08-27 Michael Stahl #i91566#: sw text formatting: display meta-field prefix and suffix:
SwAttrIter::GetAttr(): replace with call to GetTxtAttrForCharAt().
SwTxtFormatter::NewExtraPortion(): handle meta-field prefix.
SwTxtFormatter: new member m_nHintEndIndex.
SwTxtFormatter::WhichFirstPortion(): call TryNewNoLengthPortion().
SwTxtFormatter::TryNewNoLengthPortion(): new; handle suffix of meta-field.
SwTxtFormatter::UnderFlow(): UGLY HACK: decrement m_nHintEndIndex.
SwFldPortion: add flag m_bNoLength: portion has zero length (for suffix).
2009-08-27 Michael Stahl #i91565#, #i91566#: extend text:meta(-field) uno wrapper with XText interface:
unoobj.hxx: new CursorType CURSOR_META.
unoobj2.cxx: refactor SwXText implementation to ensure that when the SwXText
belongs to a SwXMeta, content is always inserted inside the meta(-field).
unoobj.cxx: new SwXTextCursor::ForceIntoMeta(): cursor stays in meta(-field).
unometa.hxx: SwXMeta implements XText, forwarding to a member SwXMetaText.
DocInsertStringSplitCR(), SwX*::attachToRange(), SwX*::DeleteAndInsert():
use FORCEHINTEXPAND hack to ensure insert into the meta(-field) at the end.
2009-08-27 Michael Stahl #i91565#, #i91566#: add text:meta(-field) uno wrapper to sw:
fmtmeta.hxx, fmtatr2.cxx: new class sw::MetaField, new sw::MetaFieldManager.
doc.hxx, docnew.cxx: new SwDoc::GetMetaFieldManager().
unocoll.hxx,.cxx: new SW_SERVICE_FIELDTYPE_METAFIELD, SW_SERVICE_TYPE_META.
unomap.hxx,.cxx: new PROPERTY_MAP_METAFIELD.
unoprnms.hxx: new UNO_NAME_META.
unoport.hxx: new PORTION_META; add "InContentMetadata" prop to SwXTextPortion.
new unometa.hxx: new class SwXMeta and SwXMetaField.
unofield.cxx: SwXFieldEnumeration: include meta-fields.
unoportenum.cxx: handle RES_TXTATR_META(FIELD) by using a portion list stack.
unotext.cxx: SwXText::insertTextContent(): handle meta(-field) as attribute.
2009-08-27 Michael Stahl #i91565#, #i91566#: ndhints.cxx: remove sort number from SwTxtAttrNesting
2009-08-27 Michael Stahl #i91565#, #i91566#: add support for hints with end and CH_TXTATR to sw core:
doc.hxx, docedt.cxx: replace SwDoc::Delete(), DeleteAndJoin(), ReplaceRange()
with wrappers that split at left-overlapped end+CH_TXTATR hints.
txatbase.hxx: new member SwTxtAttr::m_bHasDummyChar.
ndtxt.hxx: rename SwTxtNode::GetTxtAttr() to GetTxtAttrForCharAt().
ndtxt.cxx: SwTxtNode::CopyText(): copy end+CH_TXTATR hints iff copy CH_TXTATR.
txtatr2.cxx, thints.cxx: SwTxtMeta gets a CH_TXTATR.
2009-08-27 Michael Stahl #i91565#, #i91566#: add text:meta(-field) to sw core:
txatbase.hxx: new member SwTxtAttr::m_bNesting.
hintids.hxx: new ids RES_TXTATR_META, RES_TXTATR_METAFIELD.
txtatr.hxx: new base class SwTxtAttrNesting.
new hint SwTxtMeta.
SwTxtRuby derives from SwTxtAttrNesting.
txtinet.hxx: SwTxtINetFmt derives from SwTxtAttrNesting.
new header fmtmeta.hxx: new pool item SwFmtMeta. new class sw::Meta.
ndhints.hxx, thints.cxx: new method SwpHints::TryInsertNesting().
thints.cxx: refactoring: BuildPortions() no longer handles Ruby/Hyperlink,
but TryInsertNesting(), which also handles meta(-field).
SwTxtNode::InsertItem(): check if the hint is actually inserted.
ndhints.cxx: sort nesting hints based on sort number.
ndtxt.cxx: lcl_CopyHint(): handle copy of meta/meta-field.
2009-08-27 Michael Stahl enable expanding hints with m_bLockExpandFlag set:
add new InsertFlag: INS_FORCEHINTEXPAND.
add new SetAttrMode: SETATTR_FORCEHINTEXPAND.
rename SwEditShell::Insert() to Insert2() because changed signature fails
to compile when SwWrtShell tries to overwrite these non-virtual members...
SwWrtShell::Insert() sets FOCEHINTEXPAND if range was selected/deleted.
adapt SwUndoInsert to store flags.
2009-08-27 Michael Stahl change formal parameters of item insertion methods to type SetAttrMode
2009-08-27 Michael Stahl fix incorrect resetting of text attributes in SwUndoInsSection, SwUndoInserts
2009-08-27 Michael Stahl clean up SwTxtNode::CutImpl() and lcl_CopyHint()
2009-08-27 Michael Stahl rename SwDoc::Copy() to CopyRange(), and _Copy() to CopyImpl()
2009-08-27 Michael Stahl rename SwNodes::Move() to MoveRange(), and remove unused parameter
2009-08-27 Michael Stahl rename SwDoc::Move() to MoveRange()/MoveNodeRange()
2009-08-27 Michael Stahl rename SwDoc::Insert() to InsertString(), and remove sal_Unicode variant
2009-08-27 Michael Stahl rename SwDoc::Insert() to InsertPoolItem()/InsertItemSet()/InsertSwSection()
2009-08-27 Michael Stahl rename SwDoc::Replace() to ReplaceRange()
2009-08-27 Michael Stahl remove SwDoc::Overwrite() sal_Unicode variant
2009-08-27 Michael Stahl split up SwDoc::DeleteAndJoin(): factor out DeleteAndJoinWithRedline()
2009-08-27 Michael Stahl rename overloaded SwDoc::Delete() to DeleteRange()/DeleteTOXMark()
2009-08-27 Michael Stahl rename SwTxtNode::Copy() to CopyText()
2009-08-27 Michael Stahl rename SwTxtNode::Cut() to CutText(), and _Cut() to CutImpl()
2009-08-27 Michael Stahl rename SwTxtNode::Delete() to DeleteAttribute()/DeleteAttributes()
2009-08-27 Michael Stahl rename SwTxtNode::Replace() to ReplaceText(), and remove the xub_Unicode variant
2009-08-27 Michael Stahl rename SwTxtNode::Erase() to EraseText()
2009-08-27 Michael Stahl rename SwTxtNode::Insert() to InsertText(), and remove the xub_Unicode variant
2009-08-27 Michael Stahl clean up SwTxtNode::Update()
2009-08-27 Michael Stahl remove SwTxtAttr::RemoveFromPool() and make destructor non-public,
to be invoked by new method SwTxtAttr::Destroy()
2009-08-27 Michael Stahl ensure that SwDoc::Insert() for item (set) returns success indicator:
replace SwRegHistory constructor with method InsertItems(), returning bool.
refactor InsAttr() so that it checks if InsertItems() succeeds.
2009-08-27 Michael Stahl move SwXTextPortionEnumeration from unoobj.hxx to unoport.hxx
2009-08-27 Michael Stahl add missing SolarMutex in SwXTextPortion methods
2009-08-27 Michael Stahl SwXTextPortion: new member m_xTextField (so the TextField property need not
be returned indirectly via SwUnoCursorHelper).
factor out function CreateSwXTextField().
2009-08-27 Michael Stahl SwXTextPortion: remove PORTION_CONTROL_CHAR and implementation of XTextField
2009-08-27 Michael Stahl remove obsolete hint SwTxtHardBlank and formats SwFmtHardBlank/SwFmtSoftHyph
2009-08-27 Michael Stahl clean up SwTxtAttr and friends:
remove many accessor methods for obsolete (due to autofmt) char format items.
remove unused flag SwTxtAttr::m_bDontMergeAttr.
MakeRedlineTxtAttr() now dedicated function, no longer calls MakeTxtAttr().
2009-08-27 Michael Stahl remove obsolete attribute SwTxt2Lines
2009-08-27 Michael Stahl SwXTextPortionEnumeration: finish refactoring CreatePortions
change ExportHints so it always returns a text portion for hint w/ CH_TXTATR.
remove special case for handling end of paragraph.
unfortunately had to refactor the fieldmarks export as well (got in the way).
2009-08-27 Michael Stahl SwXTextPortionEnumeration: refactor CreatePortions: frames export
extract function ExportFrames() from CreatePortions().
remove (un)dead code that calls evil MovePara(fnParaCurr, fnParaEnd)
2009-08-27 Michael Stahl clean up SwXParaFrameEnumeration
2009-08-27 Michael Stahl CollectFrameAtNode: replace SwDependArr with STL based FrameDependList_t
2009-08-27 Michael Stahl SwXTextPortionEnumeration: tweak refmark/toxmark export
so ExportHints returns the portion for point marks
2009-08-27 Michael Stahl clean up SwXTextPortionEnumeration:
prefix members, remove casts, replace SvWeirdArray with STL, etc.
make CreatePortions() method a function, and remove lots of members.
extract fieldmarks function from CreatePortions.
2009-08-27 Michael Stahl remove FOREACHUNOPAM_START/END macros
2009-08-27 Michael Stahl clean up SwXTextPortion:
prefix members, remove casts, etc.
remove SwXRubyPortion: replace it with another SwXTextPortion constructor
2009-08-27 Michael Stahl #i102541# SwXReferenceMark::InsertRefMark(): use flag SETATTR_DONTEXPAND
2009-08-27 Michael Stahl rename SwTxtNode::Insert to SwTxtNode::InsertHint, and
fix constness in SwTxtNode::InsertItem
2009-08-27 Michael Stahl turn SwTxtNode::MakeTxtAttr() methods into global functions in ndhints.hxx
2009-08-27 Michael Stahl remove obsolete sw/inc/bookmrk.hxx
2009-08-27 Michael Stahl pam.cxx: fix ComparePosition functions (returned wrong result in one case)
2009-08-27 Michael Stahl #i103613# only import RDF metadata on normal open of a document
2009-09-11 kz CWS-TOOLING: integrate CWS impress176
2009-09-08 20:18:24 +0200 sj r275957 : fixed warning (shadowed variable)
2009-09-08 18:02:05 +0200 cl r275948 : #i104315# added missing tab pages
2009-09-08 17:35:18 +0200 cl r275947 : #i104866# fixed angle import
2009-09-08 17:32:53 +0200 cl r275946 : #i104841# fixed angle import
2009-09-08 17:01:25 +0200 cl r275943 : #i103935# fixed the SID_EVENTCONFIG mess
2009-09-08 14:32:57 +0200 sj r275928 : #i104685# only comments
2009-09-07 12:37:36 +0200 sj r275886 : #i104683# fixed import of bold/italic attributes for normal text shapes
2009-09-04 15:07:46 +0200 sj r275808 : #104689# fixed bullet color problem
2009-09-03 15:25:07 +0200 sj r275753 : #160200# added vertical alignment of table cells
2009-09-11 kz CWS-TOOLING: integrate CWS dv14
2009-09-10 15:16:32 +0200 sg r276035 : #160513# updated wfs scheme to accept ports
2009-09-10 07:41:47 +0200 dv r276019 : #i104942# Better renaming algorithmen
2009-08-31 13:41:11 +0200 dv r275604 : #160505# Setting APP1PRODUCTNAME must not overwrite APP1PRODUCTDEF
2009-09-11 kz CWS-TOOLING: integrate CWS jl131
2009-09-02 16:42:40 +0200 jl r275720 : #i97896#
2009-08-31 13:01:53 +0200 jl r275599 : CWS-TOOLING: rebase CWS jl131 to trunk@275331 (milestone: DEV300:m56)
2009-07-31 14:35:30 +0200 jl r274531 : CWS-TOOLING: rebase CWS jl131 to trunk@274203 (milestone: DEV300:m53)
2009-07-23 14:20:32 +0200 jl r274272 : #i79839# better error text when trying to modify shared layer without having write permission, eg. unopkg add --shared, unopkg remove --shared, unopkg reinstall --shared
2009-07-22 16:38:02 +0200 jl r274252 : #i97896# localize error message for lock file
2009-07-22 16:37:22 +0200 jl r274251 : #i80462# unprecise wording in updatedialog
2009-07-22 16:36:06 +0200 jl r274250 : #i97896# localize error message for lock file
2009-07-22 16:35:20 +0200 jl r274249 : #i97896# localize error message for lock file
2009-07-22 15:07:30 +0200 jl r274242 : #i98873# minimum java version is 1.5 since OOo 3.0
2009-09-11 kz CWS-TOOLING: integrate CWS changehc
2009-08-31 19:38:50 +0200 pl r275633 : remove dbug printf
2009-08-31 17:41:50 +0200 pl r275623 : CWS-TOOLING: rebase CWS changehc to trunk@275331 (milestone: DEV300:m56)
2009-07-15 19:45:46 +0200 pl r274028 : #i35482# use HC flag to decide high contrast mode
2009-07-15 17:40:52 +0200 pl r274020 : #i35482# use HC flag to decide high contrast mode
2009-07-15 17:39:50 +0200 pl r274019 : #i35482# update autohc correctly in MergeSystemSettings
2009-07-15 17:38:57 +0200 pl r274018 : #i35482# update autohc correctly in MergeSystemSettings
2009-09-11 kz CWS-TOOLING: integrate CWS notes10
2009-08-24 07:25:57 +0200 mod r275287 : 2009-07-26 02:38:32 +0200 mod r274343 : #i#i103645#
2009-07-26 02:01:53 +0200 mod r274342 : #i103645#
2009-07-26 01:52:42 +0200 mod r274341 : #i103490#
2009-07-22 08:31:48 +0200 mod r274215 : #i103373#
2009-07-15 00:55:11 +0200 mod r273987 : #i101419#
2009-07-14 07:07:55 +0200 mod r273956 : #i101419#
2009-07-14 07:07:43 +0200 mod r273955 : #i101419#
2009-07-14 07:02:10 +0200 mod r273954 : changes from notes9
2009-07-14 06:14:25 +0200 mod r273953 : #i103476#
2009-09-11 kz CWS-TOOLING: integrate CWS ab70
2009-09-10 15:12:54 +0200 jsk r276034 : #i85434# - mandatory automatic update test
2009-09-10 15:11:06 +0200 jsk r276033 : #i85434# - mandatory automatic update test
2009-09-02 09:49:24 +0200 ab r275698 : #i85434# Dialog Import
2009-09-11 kz CWS-TOOLING: integrate CWS hb32bugs02
2009-09-02 Henning Brinkmann #i102420# revert changes
2009-08-26 Henning Brinkmann merged DEV300_m56
2009-08-19 Henning Brinkmann merged DEV300_m55
2009-08-14 Henning Brinkmann merged changes from wntmsci12
2009-08-12 Henning Brinkmann Implemented NoSpaceEdit constructor and destructor in .cxx to allow compile with debug on wntmsci12.
2009-08-12 Henning Brinkmann Added some SW_DLLPUBLIC to make compilable on wntmsci12.
2009-08-11 Henning Brinkmann #i102420# dbg_out: surround output for SwNodes with <nodes-array>.
2009-08-10 Henning Brinkmann #i102420# rewritten debug output for SwNodes.
2009-08-07 Henning Brinkmann #i102420# debug _MoveNodes: output the destination, too. Break after two iterations.
2009-08-07 Henning Brinkmann #i102420# _MoveNodes: Additionally check if destination index is inside source => false
Check if current range was already handled => loop
Debug output current range
2009-08-06 Henning Brinkmann merged DEV300_m54
2009-08-06 Henning Brinkmann added master fix
2009-08-06 Henning Brinkmann debug output for SwNodeRange
2009-08-04 Henning Brinkmann #i102844# robustness: check for NULL pointer to prevent crash
2009-08-03 Henning Brinkmann #i103475# applied patch and verified
2009-08-03 Henning Brinkmann Removed code preventing build of sw with DEBUG.
2009-09-11 convert-repo update tags
2009-09-10 kz CWS-TOOLING: integrate CWS os2port06dev300
2009-09-05 22:49:00 +0200 ydario r275858 : #i99588# applied os2port06 diff to DEV300 tree.
2009-09-10 kz CWS-TOOLING: integrate CWS mingwport23
2009-08-29 07:07:53 +0200 tono r275555 : i#104522: mingw port graphite
2009-08-29 07:07:26 +0200 tono r275554 : i#104522: mingw port printf format fix
2009-09-10 kz CWS-TOOLING: integrate CWS mh232
2009-08-26 03:52:57 +0200 mh r275385 : #i102182# FreeBSD patch
2009-08-26 03:43:20 +0200 mh r275384 : #i101333# patch for FreeBSD
2009-08-26 03:11:20 +0200 mh r275383 : #i39230
2009-08-26 03:07:51 +0200 mh r275382 : #i39230# more space for initials field
2009-08-26 02:41:19 +0200 mh r275380 : #i39230# use vos::osecurity for reading the user name
2009-08-18 22:06:00 +0200 mh r275130 : #i104243#, line ending problem with newer perl
2009-08-18 21:53:21 +0200 mh r275129 : #i39230# read initials via getpwnam
2009-08-18 21:34:05 +0200 mh r275128 : enable CAIROCANVAS for Linux and Mac, #i88613#
2009-08-17 18:02:59 +0200 mh r275067 : #i95498# make compile with gcc3
2009-09-10 kz CWS-TOOLING: integrate CWS tkr24
2009-09-07 14:31:06 +0200 is r275898 : #160081# adding NO_LICENSE_INTO_COPYRIGHT
2009-09-10 releng #i10000# change KeyMapping to SingletonRef<framework::KeyMapping>
2009-09-11 convert-repo update tags
2009-09-10 kz CWS-TOOLING: integrate CWS os2port06dev300
2009-09-05 22:49:00 +0200 ydario r275858 : #i99588# applied os2port06 diff to DEV300 tree.
2009-09-10 kz CWS-TOOLING: integrate CWS mingwport23
2009-08-29 07:07:53 +0200 tono r275555 : i#104522: mingw port graphite
2009-08-29 07:07:26 +0200 tono r275554 : i#104522: mingw port printf format fix
2009-09-10 kz CWS-TOOLING: integrate CWS mh232
2009-08-26 03:52:57 +0200 mh r275385 : #i102182# FreeBSD patch
2009-08-26 03:43:20 +0200 mh r275384 : #i101333# patch for FreeBSD
2009-08-26 03:11:20 +0200 mh r275383 : #i39230
2009-08-26 03:07:51 +0200 mh r275382 : #i39230# more space for initials field
2009-08-26 02:41:19 +0200 mh r275380 : #i39230# use vos::osecurity for reading the user name
2009-08-18 22:06:00 +0200 mh r275130 : #i104243#, line ending problem with newer perl
2009-08-18 21:53:21 +0200 mh r275129 : #i39230# read initials via getpwnam
2009-08-18 21:34:05 +0200 mh r275128 : enable CAIROCANVAS for Linux and Mac, #i88613#
2009-08-17 18:02:59 +0200 mh r275067 : #i95498# make compile with gcc3
2009-09-10 kz CWS-TOOLING: integrate CWS tkr24
2009-09-07 14:31:06 +0200 is r275898 : #160081# adding NO_LICENSE_INTO_COPYRIGHT
2009-09-10 releng #i10000# change KeyMapping to SingletonRef<framework::KeyMapping>
2009-09-11 14:29:45 +00:00
pLocalDoc - > DeleteTOXMark ( m_pTOXMark ) ;
2009-06-03 11:26:39 +00:00
m_pTOXMark = 0 ;
2000-09-18 23:08:29 +00:00
2009-06-03 11:26:39 +00:00
sal_Bool bInsAtPos = aMark . IsAlternativeText ( ) ;
const SwPosition * pStt = aPam . Start ( ) ,
* pEnd = aPam . End ( ) ;
2002-02-05 13:57:52 +00:00
2009-06-03 11:26:39 +00:00
SwTxtAttr * pTxtAttr = 0 ;
if ( bInsAtPos )
{
SwPaM aTmp ( * pStt ) ;
CWS-TOOLING: integrate CWS odfmetadata3
2009-09-11 Michael Stahl merge DEV300_m58
2009-09-07 Michael Stahl SwFmtFld::Modify(): do nothing on RES_OBJECTDYING
2009-08-27 Michael Stahl #i91565#, #i91566#: TextPortionEnumerationTest.java: add test document
2009-08-27 Michael Stahl #i91565#, #i91566#: add complex test: TextPortionEnumerationTest.java
2009-08-27 Michael Stahl CLiteral::initialize(): zero-length literals probably not an error
2009-08-27 Michael Stahl #i91565#, #i91566#: offapi: new InContentMetadata and MetadataField services
adapt TextPortion for InContentMetadata
2009-08-27 Michael Stahl #i91564#: xmloff: load/store xml:id and RDFa for text:bookmark(-start).
2009-08-27 Michael Stahl #i91564#: sw core: add support for xml:id at bookmarks:
sw::mark::Bookmark: derive from Metadatable.
SwHistoryBookmark, SaveBookmark: store a MetadatableUndo.
ndcopy.cxx: lcl_CopyBookmarks(): copy the xml:id.
SwXBookmark: derive from MetadatableMixin.
2009-08-27 Michael Stahl #i91565#, #i91566#: xmloff: refactor ruby import so nested meta(-field) works:
remove XMLRubyHint_Impl.
XMLImpRubyContext_Impl::~XMLImpRubyContext_Impl(): insert ruby directly.
2009-08-27 Michael Stahl #i91565#, #i91566#: xmloff: fix text:meta(-field) import/export:
new XMLTextParagraphExport::exportTextField() overload for XTextField.
CreateAndInsertMark(): set xml:id after insertion.
fix meta(-field) service names, bugs etc.
2009-08-27 Michael Stahl #i91565#, #i91566#: sw text formatting: paint background of meta(-field) body:
SwFont: add member m_nMetaCount.
txttypes.hxx: add POR_META.
atrstck.cxx: handle RES_TXTATR_META(FIELD).
itrform2.cxx: SwTxtFormatter::WhichTxtPor(): create new class SwMetaPortion.
2009-08-27 Michael Stahl #i91566#: sw text formatting: display meta-field prefix and suffix:
SwAttrIter::GetAttr(): replace with call to GetTxtAttrForCharAt().
SwTxtFormatter::NewExtraPortion(): handle meta-field prefix.
SwTxtFormatter: new member m_nHintEndIndex.
SwTxtFormatter::WhichFirstPortion(): call TryNewNoLengthPortion().
SwTxtFormatter::TryNewNoLengthPortion(): new; handle suffix of meta-field.
SwTxtFormatter::UnderFlow(): UGLY HACK: decrement m_nHintEndIndex.
SwFldPortion: add flag m_bNoLength: portion has zero length (for suffix).
2009-08-27 Michael Stahl #i91565#, #i91566#: extend text:meta(-field) uno wrapper with XText interface:
unoobj.hxx: new CursorType CURSOR_META.
unoobj2.cxx: refactor SwXText implementation to ensure that when the SwXText
belongs to a SwXMeta, content is always inserted inside the meta(-field).
unoobj.cxx: new SwXTextCursor::ForceIntoMeta(): cursor stays in meta(-field).
unometa.hxx: SwXMeta implements XText, forwarding to a member SwXMetaText.
DocInsertStringSplitCR(), SwX*::attachToRange(), SwX*::DeleteAndInsert():
use FORCEHINTEXPAND hack to ensure insert into the meta(-field) at the end.
2009-08-27 Michael Stahl #i91565#, #i91566#: add text:meta(-field) uno wrapper to sw:
fmtmeta.hxx, fmtatr2.cxx: new class sw::MetaField, new sw::MetaFieldManager.
doc.hxx, docnew.cxx: new SwDoc::GetMetaFieldManager().
unocoll.hxx,.cxx: new SW_SERVICE_FIELDTYPE_METAFIELD, SW_SERVICE_TYPE_META.
unomap.hxx,.cxx: new PROPERTY_MAP_METAFIELD.
unoprnms.hxx: new UNO_NAME_META.
unoport.hxx: new PORTION_META; add "InContentMetadata" prop to SwXTextPortion.
new unometa.hxx: new class SwXMeta and SwXMetaField.
unofield.cxx: SwXFieldEnumeration: include meta-fields.
unoportenum.cxx: handle RES_TXTATR_META(FIELD) by using a portion list stack.
unotext.cxx: SwXText::insertTextContent(): handle meta(-field) as attribute.
2009-08-27 Michael Stahl #i91565#, #i91566#: ndhints.cxx: remove sort number from SwTxtAttrNesting
2009-08-27 Michael Stahl #i91565#, #i91566#: add support for hints with end and CH_TXTATR to sw core:
doc.hxx, docedt.cxx: replace SwDoc::Delete(), DeleteAndJoin(), ReplaceRange()
with wrappers that split at left-overlapped end+CH_TXTATR hints.
txatbase.hxx: new member SwTxtAttr::m_bHasDummyChar.
ndtxt.hxx: rename SwTxtNode::GetTxtAttr() to GetTxtAttrForCharAt().
ndtxt.cxx: SwTxtNode::CopyText(): copy end+CH_TXTATR hints iff copy CH_TXTATR.
txtatr2.cxx, thints.cxx: SwTxtMeta gets a CH_TXTATR.
2009-08-27 Michael Stahl #i91565#, #i91566#: add text:meta(-field) to sw core:
txatbase.hxx: new member SwTxtAttr::m_bNesting.
hintids.hxx: new ids RES_TXTATR_META, RES_TXTATR_METAFIELD.
txtatr.hxx: new base class SwTxtAttrNesting.
new hint SwTxtMeta.
SwTxtRuby derives from SwTxtAttrNesting.
txtinet.hxx: SwTxtINetFmt derives from SwTxtAttrNesting.
new header fmtmeta.hxx: new pool item SwFmtMeta. new class sw::Meta.
ndhints.hxx, thints.cxx: new method SwpHints::TryInsertNesting().
thints.cxx: refactoring: BuildPortions() no longer handles Ruby/Hyperlink,
but TryInsertNesting(), which also handles meta(-field).
SwTxtNode::InsertItem(): check if the hint is actually inserted.
ndhints.cxx: sort nesting hints based on sort number.
ndtxt.cxx: lcl_CopyHint(): handle copy of meta/meta-field.
2009-08-27 Michael Stahl enable expanding hints with m_bLockExpandFlag set:
add new InsertFlag: INS_FORCEHINTEXPAND.
add new SetAttrMode: SETATTR_FORCEHINTEXPAND.
rename SwEditShell::Insert() to Insert2() because changed signature fails
to compile when SwWrtShell tries to overwrite these non-virtual members...
SwWrtShell::Insert() sets FOCEHINTEXPAND if range was selected/deleted.
adapt SwUndoInsert to store flags.
2009-08-27 Michael Stahl change formal parameters of item insertion methods to type SetAttrMode
2009-08-27 Michael Stahl fix incorrect resetting of text attributes in SwUndoInsSection, SwUndoInserts
2009-08-27 Michael Stahl clean up SwTxtNode::CutImpl() and lcl_CopyHint()
2009-08-27 Michael Stahl rename SwDoc::Copy() to CopyRange(), and _Copy() to CopyImpl()
2009-08-27 Michael Stahl rename SwNodes::Move() to MoveRange(), and remove unused parameter
2009-08-27 Michael Stahl rename SwDoc::Move() to MoveRange()/MoveNodeRange()
2009-08-27 Michael Stahl rename SwDoc::Insert() to InsertString(), and remove sal_Unicode variant
2009-08-27 Michael Stahl rename SwDoc::Insert() to InsertPoolItem()/InsertItemSet()/InsertSwSection()
2009-08-27 Michael Stahl rename SwDoc::Replace() to ReplaceRange()
2009-08-27 Michael Stahl remove SwDoc::Overwrite() sal_Unicode variant
2009-08-27 Michael Stahl split up SwDoc::DeleteAndJoin(): factor out DeleteAndJoinWithRedline()
2009-08-27 Michael Stahl rename overloaded SwDoc::Delete() to DeleteRange()/DeleteTOXMark()
2009-08-27 Michael Stahl rename SwTxtNode::Copy() to CopyText()
2009-08-27 Michael Stahl rename SwTxtNode::Cut() to CutText(), and _Cut() to CutImpl()
2009-08-27 Michael Stahl rename SwTxtNode::Delete() to DeleteAttribute()/DeleteAttributes()
2009-08-27 Michael Stahl rename SwTxtNode::Replace() to ReplaceText(), and remove the xub_Unicode variant
2009-08-27 Michael Stahl rename SwTxtNode::Erase() to EraseText()
2009-08-27 Michael Stahl rename SwTxtNode::Insert() to InsertText(), and remove the xub_Unicode variant
2009-08-27 Michael Stahl clean up SwTxtNode::Update()
2009-08-27 Michael Stahl remove SwTxtAttr::RemoveFromPool() and make destructor non-public,
to be invoked by new method SwTxtAttr::Destroy()
2009-08-27 Michael Stahl ensure that SwDoc::Insert() for item (set) returns success indicator:
replace SwRegHistory constructor with method InsertItems(), returning bool.
refactor InsAttr() so that it checks if InsertItems() succeeds.
2009-08-27 Michael Stahl move SwXTextPortionEnumeration from unoobj.hxx to unoport.hxx
2009-08-27 Michael Stahl add missing SolarMutex in SwXTextPortion methods
2009-08-27 Michael Stahl SwXTextPortion: new member m_xTextField (so the TextField property need not
be returned indirectly via SwUnoCursorHelper).
factor out function CreateSwXTextField().
2009-08-27 Michael Stahl SwXTextPortion: remove PORTION_CONTROL_CHAR and implementation of XTextField
2009-08-27 Michael Stahl remove obsolete hint SwTxtHardBlank and formats SwFmtHardBlank/SwFmtSoftHyph
2009-08-27 Michael Stahl clean up SwTxtAttr and friends:
remove many accessor methods for obsolete (due to autofmt) char format items.
remove unused flag SwTxtAttr::m_bDontMergeAttr.
MakeRedlineTxtAttr() now dedicated function, no longer calls MakeTxtAttr().
2009-08-27 Michael Stahl remove obsolete attribute SwTxt2Lines
2009-08-27 Michael Stahl SwXTextPortionEnumeration: finish refactoring CreatePortions
change ExportHints so it always returns a text portion for hint w/ CH_TXTATR.
remove special case for handling end of paragraph.
unfortunately had to refactor the fieldmarks export as well (got in the way).
2009-08-27 Michael Stahl SwXTextPortionEnumeration: refactor CreatePortions: frames export
extract function ExportFrames() from CreatePortions().
remove (un)dead code that calls evil MovePara(fnParaCurr, fnParaEnd)
2009-08-27 Michael Stahl clean up SwXParaFrameEnumeration
2009-08-27 Michael Stahl CollectFrameAtNode: replace SwDependArr with STL based FrameDependList_t
2009-08-27 Michael Stahl SwXTextPortionEnumeration: tweak refmark/toxmark export
so ExportHints returns the portion for point marks
2009-08-27 Michael Stahl clean up SwXTextPortionEnumeration:
prefix members, remove casts, replace SvWeirdArray with STL, etc.
make CreatePortions() method a function, and remove lots of members.
extract fieldmarks function from CreatePortions.
2009-08-27 Michael Stahl remove FOREACHUNOPAM_START/END macros
2009-08-27 Michael Stahl clean up SwXTextPortion:
prefix members, remove casts, etc.
remove SwXRubyPortion: replace it with another SwXTextPortion constructor
2009-08-27 Michael Stahl #i102541# SwXReferenceMark::InsertRefMark(): use flag SETATTR_DONTEXPAND
2009-08-27 Michael Stahl rename SwTxtNode::Insert to SwTxtNode::InsertHint, and
fix constness in SwTxtNode::InsertItem
2009-08-27 Michael Stahl turn SwTxtNode::MakeTxtAttr() methods into global functions in ndhints.hxx
2009-08-27 Michael Stahl remove obsolete sw/inc/bookmrk.hxx
2009-08-27 Michael Stahl pam.cxx: fix ComparePosition functions (returned wrong result in one case)
2009-08-27 Michael Stahl #i103613# only import RDF metadata on normal open of a document
2009-09-11 kz CWS-TOOLING: integrate CWS impress176
2009-09-08 20:18:24 +0200 sj r275957 : fixed warning (shadowed variable)
2009-09-08 18:02:05 +0200 cl r275948 : #i104315# added missing tab pages
2009-09-08 17:35:18 +0200 cl r275947 : #i104866# fixed angle import
2009-09-08 17:32:53 +0200 cl r275946 : #i104841# fixed angle import
2009-09-08 17:01:25 +0200 cl r275943 : #i103935# fixed the SID_EVENTCONFIG mess
2009-09-08 14:32:57 +0200 sj r275928 : #i104685# only comments
2009-09-07 12:37:36 +0200 sj r275886 : #i104683# fixed import of bold/italic attributes for normal text shapes
2009-09-04 15:07:46 +0200 sj r275808 : #104689# fixed bullet color problem
2009-09-03 15:25:07 +0200 sj r275753 : #160200# added vertical alignment of table cells
2009-09-11 kz CWS-TOOLING: integrate CWS dv14
2009-09-10 15:16:32 +0200 sg r276035 : #160513# updated wfs scheme to accept ports
2009-09-10 07:41:47 +0200 dv r276019 : #i104942# Better renaming algorithmen
2009-08-31 13:41:11 +0200 dv r275604 : #160505# Setting APP1PRODUCTNAME must not overwrite APP1PRODUCTDEF
2009-09-11 kz CWS-TOOLING: integrate CWS jl131
2009-09-02 16:42:40 +0200 jl r275720 : #i97896#
2009-08-31 13:01:53 +0200 jl r275599 : CWS-TOOLING: rebase CWS jl131 to trunk@275331 (milestone: DEV300:m56)
2009-07-31 14:35:30 +0200 jl r274531 : CWS-TOOLING: rebase CWS jl131 to trunk@274203 (milestone: DEV300:m53)
2009-07-23 14:20:32 +0200 jl r274272 : #i79839# better error text when trying to modify shared layer without having write permission, eg. unopkg add --shared, unopkg remove --shared, unopkg reinstall --shared
2009-07-22 16:38:02 +0200 jl r274252 : #i97896# localize error message for lock file
2009-07-22 16:37:22 +0200 jl r274251 : #i80462# unprecise wording in updatedialog
2009-07-22 16:36:06 +0200 jl r274250 : #i97896# localize error message for lock file
2009-07-22 16:35:20 +0200 jl r274249 : #i97896# localize error message for lock file
2009-07-22 15:07:30 +0200 jl r274242 : #i98873# minimum java version is 1.5 since OOo 3.0
2009-09-11 kz CWS-TOOLING: integrate CWS changehc
2009-08-31 19:38:50 +0200 pl r275633 : remove dbug printf
2009-08-31 17:41:50 +0200 pl r275623 : CWS-TOOLING: rebase CWS changehc to trunk@275331 (milestone: DEV300:m56)
2009-07-15 19:45:46 +0200 pl r274028 : #i35482# use HC flag to decide high contrast mode
2009-07-15 17:40:52 +0200 pl r274020 : #i35482# use HC flag to decide high contrast mode
2009-07-15 17:39:50 +0200 pl r274019 : #i35482# update autohc correctly in MergeSystemSettings
2009-07-15 17:38:57 +0200 pl r274018 : #i35482# update autohc correctly in MergeSystemSettings
2009-09-11 kz CWS-TOOLING: integrate CWS notes10
2009-08-24 07:25:57 +0200 mod r275287 : 2009-07-26 02:38:32 +0200 mod r274343 : #i#i103645#
2009-07-26 02:01:53 +0200 mod r274342 : #i103645#
2009-07-26 01:52:42 +0200 mod r274341 : #i103490#
2009-07-22 08:31:48 +0200 mod r274215 : #i103373#
2009-07-15 00:55:11 +0200 mod r273987 : #i101419#
2009-07-14 07:07:55 +0200 mod r273956 : #i101419#
2009-07-14 07:07:43 +0200 mod r273955 : #i101419#
2009-07-14 07:02:10 +0200 mod r273954 : changes from notes9
2009-07-14 06:14:25 +0200 mod r273953 : #i103476#
2009-09-11 kz CWS-TOOLING: integrate CWS ab70
2009-09-10 15:12:54 +0200 jsk r276034 : #i85434# - mandatory automatic update test
2009-09-10 15:11:06 +0200 jsk r276033 : #i85434# - mandatory automatic update test
2009-09-02 09:49:24 +0200 ab r275698 : #i85434# Dialog Import
2009-09-11 kz CWS-TOOLING: integrate CWS hb32bugs02
2009-09-02 Henning Brinkmann #i102420# revert changes
2009-08-26 Henning Brinkmann merged DEV300_m56
2009-08-19 Henning Brinkmann merged DEV300_m55
2009-08-14 Henning Brinkmann merged changes from wntmsci12
2009-08-12 Henning Brinkmann Implemented NoSpaceEdit constructor and destructor in .cxx to allow compile with debug on wntmsci12.
2009-08-12 Henning Brinkmann Added some SW_DLLPUBLIC to make compilable on wntmsci12.
2009-08-11 Henning Brinkmann #i102420# dbg_out: surround output for SwNodes with <nodes-array>.
2009-08-10 Henning Brinkmann #i102420# rewritten debug output for SwNodes.
2009-08-07 Henning Brinkmann #i102420# debug _MoveNodes: output the destination, too. Break after two iterations.
2009-08-07 Henning Brinkmann #i102420# _MoveNodes: Additionally check if destination index is inside source => false
Check if current range was already handled => loop
Debug output current range
2009-08-06 Henning Brinkmann merged DEV300_m54
2009-08-06 Henning Brinkmann added master fix
2009-08-06 Henning Brinkmann debug output for SwNodeRange
2009-08-04 Henning Brinkmann #i102844# robustness: check for NULL pointer to prevent crash
2009-08-03 Henning Brinkmann #i103475# applied patch and verified
2009-08-03 Henning Brinkmann Removed code preventing build of sw with DEBUG.
2009-09-11 convert-repo update tags
2009-09-10 kz CWS-TOOLING: integrate CWS os2port06dev300
2009-09-05 22:49:00 +0200 ydario r275858 : #i99588# applied os2port06 diff to DEV300 tree.
2009-09-10 kz CWS-TOOLING: integrate CWS mingwport23
2009-08-29 07:07:53 +0200 tono r275555 : i#104522: mingw port graphite
2009-08-29 07:07:26 +0200 tono r275554 : i#104522: mingw port printf format fix
2009-09-10 kz CWS-TOOLING: integrate CWS mh232
2009-08-26 03:52:57 +0200 mh r275385 : #i102182# FreeBSD patch
2009-08-26 03:43:20 +0200 mh r275384 : #i101333# patch for FreeBSD
2009-08-26 03:11:20 +0200 mh r275383 : #i39230
2009-08-26 03:07:51 +0200 mh r275382 : #i39230# more space for initials field
2009-08-26 02:41:19 +0200 mh r275380 : #i39230# use vos::osecurity for reading the user name
2009-08-18 22:06:00 +0200 mh r275130 : #i104243#, line ending problem with newer perl
2009-08-18 21:53:21 +0200 mh r275129 : #i39230# read initials via getpwnam
2009-08-18 21:34:05 +0200 mh r275128 : enable CAIROCANVAS for Linux and Mac, #i88613#
2009-08-17 18:02:59 +0200 mh r275067 : #i95498# make compile with gcc3
2009-09-10 kz CWS-TOOLING: integrate CWS tkr24
2009-09-07 14:31:06 +0200 is r275898 : #160081# adding NO_LICENSE_INTO_COPYRIGHT
2009-09-10 releng #i10000# change KeyMapping to SingletonRef<framework::KeyMapping>
2009-09-11 convert-repo update tags
2009-09-10 kz CWS-TOOLING: integrate CWS os2port06dev300
2009-09-05 22:49:00 +0200 ydario r275858 : #i99588# applied os2port06 diff to DEV300 tree.
2009-09-10 kz CWS-TOOLING: integrate CWS mingwport23
2009-08-29 07:07:53 +0200 tono r275555 : i#104522: mingw port graphite
2009-08-29 07:07:26 +0200 tono r275554 : i#104522: mingw port printf format fix
2009-09-10 kz CWS-TOOLING: integrate CWS mh232
2009-08-26 03:52:57 +0200 mh r275385 : #i102182# FreeBSD patch
2009-08-26 03:43:20 +0200 mh r275384 : #i101333# patch for FreeBSD
2009-08-26 03:11:20 +0200 mh r275383 : #i39230
2009-08-26 03:07:51 +0200 mh r275382 : #i39230# more space for initials field
2009-08-26 02:41:19 +0200 mh r275380 : #i39230# use vos::osecurity for reading the user name
2009-08-18 22:06:00 +0200 mh r275130 : #i104243#, line ending problem with newer perl
2009-08-18 21:53:21 +0200 mh r275129 : #i39230# read initials via getpwnam
2009-08-18 21:34:05 +0200 mh r275128 : enable CAIROCANVAS for Linux and Mac, #i88613#
2009-08-17 18:02:59 +0200 mh r275067 : #i95498# make compile with gcc3
2009-09-10 kz CWS-TOOLING: integrate CWS tkr24
2009-09-07 14:31:06 +0200 is r275898 : #160081# adding NO_LICENSE_INTO_COPYRIGHT
2009-09-10 releng #i10000# change KeyMapping to SingletonRef<framework::KeyMapping>
2009-09-11 14:29:45 +00:00
pLocalDoc - > InsertPoolItem ( aTmp , aMark , 0 ) ;
pTxtAttr = pStt - > nNode . GetNode ( ) . GetTxtNode ( ) - > GetTxtAttrForCharAt (
2009-06-03 11:26:39 +00:00
pStt - > nContent . GetIndex ( ) - 1 , RES_TXTATR_TOXMARK ) ;
}
else if ( * pEnd ! = * pStt )
{
CWS-TOOLING: integrate CWS odfmetadata3
2009-09-11 Michael Stahl merge DEV300_m58
2009-09-07 Michael Stahl SwFmtFld::Modify(): do nothing on RES_OBJECTDYING
2009-08-27 Michael Stahl #i91565#, #i91566#: TextPortionEnumerationTest.java: add test document
2009-08-27 Michael Stahl #i91565#, #i91566#: add complex test: TextPortionEnumerationTest.java
2009-08-27 Michael Stahl CLiteral::initialize(): zero-length literals probably not an error
2009-08-27 Michael Stahl #i91565#, #i91566#: offapi: new InContentMetadata and MetadataField services
adapt TextPortion for InContentMetadata
2009-08-27 Michael Stahl #i91564#: xmloff: load/store xml:id and RDFa for text:bookmark(-start).
2009-08-27 Michael Stahl #i91564#: sw core: add support for xml:id at bookmarks:
sw::mark::Bookmark: derive from Metadatable.
SwHistoryBookmark, SaveBookmark: store a MetadatableUndo.
ndcopy.cxx: lcl_CopyBookmarks(): copy the xml:id.
SwXBookmark: derive from MetadatableMixin.
2009-08-27 Michael Stahl #i91565#, #i91566#: xmloff: refactor ruby import so nested meta(-field) works:
remove XMLRubyHint_Impl.
XMLImpRubyContext_Impl::~XMLImpRubyContext_Impl(): insert ruby directly.
2009-08-27 Michael Stahl #i91565#, #i91566#: xmloff: fix text:meta(-field) import/export:
new XMLTextParagraphExport::exportTextField() overload for XTextField.
CreateAndInsertMark(): set xml:id after insertion.
fix meta(-field) service names, bugs etc.
2009-08-27 Michael Stahl #i91565#, #i91566#: sw text formatting: paint background of meta(-field) body:
SwFont: add member m_nMetaCount.
txttypes.hxx: add POR_META.
atrstck.cxx: handle RES_TXTATR_META(FIELD).
itrform2.cxx: SwTxtFormatter::WhichTxtPor(): create new class SwMetaPortion.
2009-08-27 Michael Stahl #i91566#: sw text formatting: display meta-field prefix and suffix:
SwAttrIter::GetAttr(): replace with call to GetTxtAttrForCharAt().
SwTxtFormatter::NewExtraPortion(): handle meta-field prefix.
SwTxtFormatter: new member m_nHintEndIndex.
SwTxtFormatter::WhichFirstPortion(): call TryNewNoLengthPortion().
SwTxtFormatter::TryNewNoLengthPortion(): new; handle suffix of meta-field.
SwTxtFormatter::UnderFlow(): UGLY HACK: decrement m_nHintEndIndex.
SwFldPortion: add flag m_bNoLength: portion has zero length (for suffix).
2009-08-27 Michael Stahl #i91565#, #i91566#: extend text:meta(-field) uno wrapper with XText interface:
unoobj.hxx: new CursorType CURSOR_META.
unoobj2.cxx: refactor SwXText implementation to ensure that when the SwXText
belongs to a SwXMeta, content is always inserted inside the meta(-field).
unoobj.cxx: new SwXTextCursor::ForceIntoMeta(): cursor stays in meta(-field).
unometa.hxx: SwXMeta implements XText, forwarding to a member SwXMetaText.
DocInsertStringSplitCR(), SwX*::attachToRange(), SwX*::DeleteAndInsert():
use FORCEHINTEXPAND hack to ensure insert into the meta(-field) at the end.
2009-08-27 Michael Stahl #i91565#, #i91566#: add text:meta(-field) uno wrapper to sw:
fmtmeta.hxx, fmtatr2.cxx: new class sw::MetaField, new sw::MetaFieldManager.
doc.hxx, docnew.cxx: new SwDoc::GetMetaFieldManager().
unocoll.hxx,.cxx: new SW_SERVICE_FIELDTYPE_METAFIELD, SW_SERVICE_TYPE_META.
unomap.hxx,.cxx: new PROPERTY_MAP_METAFIELD.
unoprnms.hxx: new UNO_NAME_META.
unoport.hxx: new PORTION_META; add "InContentMetadata" prop to SwXTextPortion.
new unometa.hxx: new class SwXMeta and SwXMetaField.
unofield.cxx: SwXFieldEnumeration: include meta-fields.
unoportenum.cxx: handle RES_TXTATR_META(FIELD) by using a portion list stack.
unotext.cxx: SwXText::insertTextContent(): handle meta(-field) as attribute.
2009-08-27 Michael Stahl #i91565#, #i91566#: ndhints.cxx: remove sort number from SwTxtAttrNesting
2009-08-27 Michael Stahl #i91565#, #i91566#: add support for hints with end and CH_TXTATR to sw core:
doc.hxx, docedt.cxx: replace SwDoc::Delete(), DeleteAndJoin(), ReplaceRange()
with wrappers that split at left-overlapped end+CH_TXTATR hints.
txatbase.hxx: new member SwTxtAttr::m_bHasDummyChar.
ndtxt.hxx: rename SwTxtNode::GetTxtAttr() to GetTxtAttrForCharAt().
ndtxt.cxx: SwTxtNode::CopyText(): copy end+CH_TXTATR hints iff copy CH_TXTATR.
txtatr2.cxx, thints.cxx: SwTxtMeta gets a CH_TXTATR.
2009-08-27 Michael Stahl #i91565#, #i91566#: add text:meta(-field) to sw core:
txatbase.hxx: new member SwTxtAttr::m_bNesting.
hintids.hxx: new ids RES_TXTATR_META, RES_TXTATR_METAFIELD.
txtatr.hxx: new base class SwTxtAttrNesting.
new hint SwTxtMeta.
SwTxtRuby derives from SwTxtAttrNesting.
txtinet.hxx: SwTxtINetFmt derives from SwTxtAttrNesting.
new header fmtmeta.hxx: new pool item SwFmtMeta. new class sw::Meta.
ndhints.hxx, thints.cxx: new method SwpHints::TryInsertNesting().
thints.cxx: refactoring: BuildPortions() no longer handles Ruby/Hyperlink,
but TryInsertNesting(), which also handles meta(-field).
SwTxtNode::InsertItem(): check if the hint is actually inserted.
ndhints.cxx: sort nesting hints based on sort number.
ndtxt.cxx: lcl_CopyHint(): handle copy of meta/meta-field.
2009-08-27 Michael Stahl enable expanding hints with m_bLockExpandFlag set:
add new InsertFlag: INS_FORCEHINTEXPAND.
add new SetAttrMode: SETATTR_FORCEHINTEXPAND.
rename SwEditShell::Insert() to Insert2() because changed signature fails
to compile when SwWrtShell tries to overwrite these non-virtual members...
SwWrtShell::Insert() sets FOCEHINTEXPAND if range was selected/deleted.
adapt SwUndoInsert to store flags.
2009-08-27 Michael Stahl change formal parameters of item insertion methods to type SetAttrMode
2009-08-27 Michael Stahl fix incorrect resetting of text attributes in SwUndoInsSection, SwUndoInserts
2009-08-27 Michael Stahl clean up SwTxtNode::CutImpl() and lcl_CopyHint()
2009-08-27 Michael Stahl rename SwDoc::Copy() to CopyRange(), and _Copy() to CopyImpl()
2009-08-27 Michael Stahl rename SwNodes::Move() to MoveRange(), and remove unused parameter
2009-08-27 Michael Stahl rename SwDoc::Move() to MoveRange()/MoveNodeRange()
2009-08-27 Michael Stahl rename SwDoc::Insert() to InsertString(), and remove sal_Unicode variant
2009-08-27 Michael Stahl rename SwDoc::Insert() to InsertPoolItem()/InsertItemSet()/InsertSwSection()
2009-08-27 Michael Stahl rename SwDoc::Replace() to ReplaceRange()
2009-08-27 Michael Stahl remove SwDoc::Overwrite() sal_Unicode variant
2009-08-27 Michael Stahl split up SwDoc::DeleteAndJoin(): factor out DeleteAndJoinWithRedline()
2009-08-27 Michael Stahl rename overloaded SwDoc::Delete() to DeleteRange()/DeleteTOXMark()
2009-08-27 Michael Stahl rename SwTxtNode::Copy() to CopyText()
2009-08-27 Michael Stahl rename SwTxtNode::Cut() to CutText(), and _Cut() to CutImpl()
2009-08-27 Michael Stahl rename SwTxtNode::Delete() to DeleteAttribute()/DeleteAttributes()
2009-08-27 Michael Stahl rename SwTxtNode::Replace() to ReplaceText(), and remove the xub_Unicode variant
2009-08-27 Michael Stahl rename SwTxtNode::Erase() to EraseText()
2009-08-27 Michael Stahl rename SwTxtNode::Insert() to InsertText(), and remove the xub_Unicode variant
2009-08-27 Michael Stahl clean up SwTxtNode::Update()
2009-08-27 Michael Stahl remove SwTxtAttr::RemoveFromPool() and make destructor non-public,
to be invoked by new method SwTxtAttr::Destroy()
2009-08-27 Michael Stahl ensure that SwDoc::Insert() for item (set) returns success indicator:
replace SwRegHistory constructor with method InsertItems(), returning bool.
refactor InsAttr() so that it checks if InsertItems() succeeds.
2009-08-27 Michael Stahl move SwXTextPortionEnumeration from unoobj.hxx to unoport.hxx
2009-08-27 Michael Stahl add missing SolarMutex in SwXTextPortion methods
2009-08-27 Michael Stahl SwXTextPortion: new member m_xTextField (so the TextField property need not
be returned indirectly via SwUnoCursorHelper).
factor out function CreateSwXTextField().
2009-08-27 Michael Stahl SwXTextPortion: remove PORTION_CONTROL_CHAR and implementation of XTextField
2009-08-27 Michael Stahl remove obsolete hint SwTxtHardBlank and formats SwFmtHardBlank/SwFmtSoftHyph
2009-08-27 Michael Stahl clean up SwTxtAttr and friends:
remove many accessor methods for obsolete (due to autofmt) char format items.
remove unused flag SwTxtAttr::m_bDontMergeAttr.
MakeRedlineTxtAttr() now dedicated function, no longer calls MakeTxtAttr().
2009-08-27 Michael Stahl remove obsolete attribute SwTxt2Lines
2009-08-27 Michael Stahl SwXTextPortionEnumeration: finish refactoring CreatePortions
change ExportHints so it always returns a text portion for hint w/ CH_TXTATR.
remove special case for handling end of paragraph.
unfortunately had to refactor the fieldmarks export as well (got in the way).
2009-08-27 Michael Stahl SwXTextPortionEnumeration: refactor CreatePortions: frames export
extract function ExportFrames() from CreatePortions().
remove (un)dead code that calls evil MovePara(fnParaCurr, fnParaEnd)
2009-08-27 Michael Stahl clean up SwXParaFrameEnumeration
2009-08-27 Michael Stahl CollectFrameAtNode: replace SwDependArr with STL based FrameDependList_t
2009-08-27 Michael Stahl SwXTextPortionEnumeration: tweak refmark/toxmark export
so ExportHints returns the portion for point marks
2009-08-27 Michael Stahl clean up SwXTextPortionEnumeration:
prefix members, remove casts, replace SvWeirdArray with STL, etc.
make CreatePortions() method a function, and remove lots of members.
extract fieldmarks function from CreatePortions.
2009-08-27 Michael Stahl remove FOREACHUNOPAM_START/END macros
2009-08-27 Michael Stahl clean up SwXTextPortion:
prefix members, remove casts, etc.
remove SwXRubyPortion: replace it with another SwXTextPortion constructor
2009-08-27 Michael Stahl #i102541# SwXReferenceMark::InsertRefMark(): use flag SETATTR_DONTEXPAND
2009-08-27 Michael Stahl rename SwTxtNode::Insert to SwTxtNode::InsertHint, and
fix constness in SwTxtNode::InsertItem
2009-08-27 Michael Stahl turn SwTxtNode::MakeTxtAttr() methods into global functions in ndhints.hxx
2009-08-27 Michael Stahl remove obsolete sw/inc/bookmrk.hxx
2009-08-27 Michael Stahl pam.cxx: fix ComparePosition functions (returned wrong result in one case)
2009-08-27 Michael Stahl #i103613# only import RDF metadata on normal open of a document
2009-09-11 kz CWS-TOOLING: integrate CWS impress176
2009-09-08 20:18:24 +0200 sj r275957 : fixed warning (shadowed variable)
2009-09-08 18:02:05 +0200 cl r275948 : #i104315# added missing tab pages
2009-09-08 17:35:18 +0200 cl r275947 : #i104866# fixed angle import
2009-09-08 17:32:53 +0200 cl r275946 : #i104841# fixed angle import
2009-09-08 17:01:25 +0200 cl r275943 : #i103935# fixed the SID_EVENTCONFIG mess
2009-09-08 14:32:57 +0200 sj r275928 : #i104685# only comments
2009-09-07 12:37:36 +0200 sj r275886 : #i104683# fixed import of bold/italic attributes for normal text shapes
2009-09-04 15:07:46 +0200 sj r275808 : #104689# fixed bullet color problem
2009-09-03 15:25:07 +0200 sj r275753 : #160200# added vertical alignment of table cells
2009-09-11 kz CWS-TOOLING: integrate CWS dv14
2009-09-10 15:16:32 +0200 sg r276035 : #160513# updated wfs scheme to accept ports
2009-09-10 07:41:47 +0200 dv r276019 : #i104942# Better renaming algorithmen
2009-08-31 13:41:11 +0200 dv r275604 : #160505# Setting APP1PRODUCTNAME must not overwrite APP1PRODUCTDEF
2009-09-11 kz CWS-TOOLING: integrate CWS jl131
2009-09-02 16:42:40 +0200 jl r275720 : #i97896#
2009-08-31 13:01:53 +0200 jl r275599 : CWS-TOOLING: rebase CWS jl131 to trunk@275331 (milestone: DEV300:m56)
2009-07-31 14:35:30 +0200 jl r274531 : CWS-TOOLING: rebase CWS jl131 to trunk@274203 (milestone: DEV300:m53)
2009-07-23 14:20:32 +0200 jl r274272 : #i79839# better error text when trying to modify shared layer without having write permission, eg. unopkg add --shared, unopkg remove --shared, unopkg reinstall --shared
2009-07-22 16:38:02 +0200 jl r274252 : #i97896# localize error message for lock file
2009-07-22 16:37:22 +0200 jl r274251 : #i80462# unprecise wording in updatedialog
2009-07-22 16:36:06 +0200 jl r274250 : #i97896# localize error message for lock file
2009-07-22 16:35:20 +0200 jl r274249 : #i97896# localize error message for lock file
2009-07-22 15:07:30 +0200 jl r274242 : #i98873# minimum java version is 1.5 since OOo 3.0
2009-09-11 kz CWS-TOOLING: integrate CWS changehc
2009-08-31 19:38:50 +0200 pl r275633 : remove dbug printf
2009-08-31 17:41:50 +0200 pl r275623 : CWS-TOOLING: rebase CWS changehc to trunk@275331 (milestone: DEV300:m56)
2009-07-15 19:45:46 +0200 pl r274028 : #i35482# use HC flag to decide high contrast mode
2009-07-15 17:40:52 +0200 pl r274020 : #i35482# use HC flag to decide high contrast mode
2009-07-15 17:39:50 +0200 pl r274019 : #i35482# update autohc correctly in MergeSystemSettings
2009-07-15 17:38:57 +0200 pl r274018 : #i35482# update autohc correctly in MergeSystemSettings
2009-09-11 kz CWS-TOOLING: integrate CWS notes10
2009-08-24 07:25:57 +0200 mod r275287 : 2009-07-26 02:38:32 +0200 mod r274343 : #i#i103645#
2009-07-26 02:01:53 +0200 mod r274342 : #i103645#
2009-07-26 01:52:42 +0200 mod r274341 : #i103490#
2009-07-22 08:31:48 +0200 mod r274215 : #i103373#
2009-07-15 00:55:11 +0200 mod r273987 : #i101419#
2009-07-14 07:07:55 +0200 mod r273956 : #i101419#
2009-07-14 07:07:43 +0200 mod r273955 : #i101419#
2009-07-14 07:02:10 +0200 mod r273954 : changes from notes9
2009-07-14 06:14:25 +0200 mod r273953 : #i103476#
2009-09-11 kz CWS-TOOLING: integrate CWS ab70
2009-09-10 15:12:54 +0200 jsk r276034 : #i85434# - mandatory automatic update test
2009-09-10 15:11:06 +0200 jsk r276033 : #i85434# - mandatory automatic update test
2009-09-02 09:49:24 +0200 ab r275698 : #i85434# Dialog Import
2009-09-11 kz CWS-TOOLING: integrate CWS hb32bugs02
2009-09-02 Henning Brinkmann #i102420# revert changes
2009-08-26 Henning Brinkmann merged DEV300_m56
2009-08-19 Henning Brinkmann merged DEV300_m55
2009-08-14 Henning Brinkmann merged changes from wntmsci12
2009-08-12 Henning Brinkmann Implemented NoSpaceEdit constructor and destructor in .cxx to allow compile with debug on wntmsci12.
2009-08-12 Henning Brinkmann Added some SW_DLLPUBLIC to make compilable on wntmsci12.
2009-08-11 Henning Brinkmann #i102420# dbg_out: surround output for SwNodes with <nodes-array>.
2009-08-10 Henning Brinkmann #i102420# rewritten debug output for SwNodes.
2009-08-07 Henning Brinkmann #i102420# debug _MoveNodes: output the destination, too. Break after two iterations.
2009-08-07 Henning Brinkmann #i102420# _MoveNodes: Additionally check if destination index is inside source => false
Check if current range was already handled => loop
Debug output current range
2009-08-06 Henning Brinkmann merged DEV300_m54
2009-08-06 Henning Brinkmann added master fix
2009-08-06 Henning Brinkmann debug output for SwNodeRange
2009-08-04 Henning Brinkmann #i102844# robustness: check for NULL pointer to prevent crash
2009-08-03 Henning Brinkmann #i103475# applied patch and verified
2009-08-03 Henning Brinkmann Removed code preventing build of sw with DEBUG.
2009-09-11 convert-repo update tags
2009-09-10 kz CWS-TOOLING: integrate CWS os2port06dev300
2009-09-05 22:49:00 +0200 ydario r275858 : #i99588# applied os2port06 diff to DEV300 tree.
2009-09-10 kz CWS-TOOLING: integrate CWS mingwport23
2009-08-29 07:07:53 +0200 tono r275555 : i#104522: mingw port graphite
2009-08-29 07:07:26 +0200 tono r275554 : i#104522: mingw port printf format fix
2009-09-10 kz CWS-TOOLING: integrate CWS mh232
2009-08-26 03:52:57 +0200 mh r275385 : #i102182# FreeBSD patch
2009-08-26 03:43:20 +0200 mh r275384 : #i101333# patch for FreeBSD
2009-08-26 03:11:20 +0200 mh r275383 : #i39230
2009-08-26 03:07:51 +0200 mh r275382 : #i39230# more space for initials field
2009-08-26 02:41:19 +0200 mh r275380 : #i39230# use vos::osecurity for reading the user name
2009-08-18 22:06:00 +0200 mh r275130 : #i104243#, line ending problem with newer perl
2009-08-18 21:53:21 +0200 mh r275129 : #i39230# read initials via getpwnam
2009-08-18 21:34:05 +0200 mh r275128 : enable CAIROCANVAS for Linux and Mac, #i88613#
2009-08-17 18:02:59 +0200 mh r275067 : #i95498# make compile with gcc3
2009-09-10 kz CWS-TOOLING: integrate CWS tkr24
2009-09-07 14:31:06 +0200 is r275898 : #160081# adding NO_LICENSE_INTO_COPYRIGHT
2009-09-10 releng #i10000# change KeyMapping to SingletonRef<framework::KeyMapping>
2009-09-11 convert-repo update tags
2009-09-10 kz CWS-TOOLING: integrate CWS os2port06dev300
2009-09-05 22:49:00 +0200 ydario r275858 : #i99588# applied os2port06 diff to DEV300 tree.
2009-09-10 kz CWS-TOOLING: integrate CWS mingwport23
2009-08-29 07:07:53 +0200 tono r275555 : i#104522: mingw port graphite
2009-08-29 07:07:26 +0200 tono r275554 : i#104522: mingw port printf format fix
2009-09-10 kz CWS-TOOLING: integrate CWS mh232
2009-08-26 03:52:57 +0200 mh r275385 : #i102182# FreeBSD patch
2009-08-26 03:43:20 +0200 mh r275384 : #i101333# patch for FreeBSD
2009-08-26 03:11:20 +0200 mh r275383 : #i39230
2009-08-26 03:07:51 +0200 mh r275382 : #i39230# more space for initials field
2009-08-26 02:41:19 +0200 mh r275380 : #i39230# use vos::osecurity for reading the user name
2009-08-18 22:06:00 +0200 mh r275130 : #i104243#, line ending problem with newer perl
2009-08-18 21:53:21 +0200 mh r275129 : #i39230# read initials via getpwnam
2009-08-18 21:34:05 +0200 mh r275128 : enable CAIROCANVAS for Linux and Mac, #i88613#
2009-08-17 18:02:59 +0200 mh r275067 : #i95498# make compile with gcc3
2009-09-10 kz CWS-TOOLING: integrate CWS tkr24
2009-09-07 14:31:06 +0200 is r275898 : #160081# adding NO_LICENSE_INTO_COPYRIGHT
2009-09-10 releng #i10000# change KeyMapping to SingletonRef<framework::KeyMapping>
2009-09-11 14:29:45 +00:00
pLocalDoc - > InsertPoolItem ( aPam , aMark ,
nsSetAttrMode : : SETATTR_DONTEXPAND ) ;
2009-06-03 11:26:39 +00:00
pTxtAttr = pStt - > nNode . GetNode ( ) . GetTxtNode ( ) - > GetTxtAttr (
pStt - > nContent , RES_TXTATR_TOXMARK ) ;
}
m_pDoc = pLocalDoc ;
2000-09-18 23:08:29 +00:00
2009-06-03 11:26:39 +00:00
if ( pTxtAttr )
{
m_pTOXMark = & pTxtAttr - > GetTOXMark ( ) ;
m_pDoc - > GetUnoCallBack ( ) - > Add ( this ) ;
pType - > Add ( & aTypeDepend ) ;
2000-09-18 23:08:29 +00:00
}
}
else if ( bIsDescriptor )
{
2009-06-03 11:26:39 +00:00
switch ( pEntry - > nWID )
2000-09-18 23:08:29 +00:00
{
case WID_ALT_TEXT :
sAltText = lcl_AnyToString ( aValue ) ;
break ;
case WID_LEVEL :
{
2007-09-27 08:37:21 +00:00
sal_Int16 nVal = lcl_AnyToInt16 ( aValue ) ;
2000-09-18 23:08:29 +00:00
if ( nVal > = 0 & & nVal < MAXLEVEL )
nLevel = nVal ;
else
2007-06-05 16:33:55 +00:00
throw lang : : IllegalArgumentException ( ) ;
2000-09-18 23:08:29 +00:00
}
break ;
case WID_PRIMARY_KEY :
sPrimaryKey = lcl_AnyToString ( aValue ) ;
break ;
case WID_SECONDARY_KEY :
sSecondaryKey = lcl_AnyToString ( aValue ) ;
break ;
2002-06-24 10:24:22 +00:00
case WID_TEXT_READING :
sTextReading = lcl_AnyToString ( aValue ) ;
break ;
case WID_PRIMARY_KEY_READING :
sPrimaryKeyReading = lcl_AnyToString ( aValue ) ;
break ;
case WID_SECONDARY_KEY_READING :
sSecondaryKeyReading = lcl_AnyToString ( aValue ) ;
break ;
2000-09-18 23:08:29 +00:00
case WID_USER_IDX_NAME :
2002-01-10 12:40:48 +00:00
{
OUString sTmp ( lcl_AnyToString ( aValue ) ) ;
lcl_ConvertTOUNameToUserName ( sTmp ) ;
sUserIndexName = sTmp ;
}
2000-09-18 23:08:29 +00:00
break ;
2000-12-09 13:04:51 +00:00
case WID_MAIN_ENTRY :
2001-07-12 09:24:14 +00:00
bMainEntry = lcl_AnyToBool ( aValue ) ;
2000-12-09 13:04:51 +00:00
break ;
2000-09-18 23:08:29 +00:00
}
}
else
2007-06-05 16:33:55 +00:00
throw uno : : RuntimeException ( ) ;
2000-09-18 23:08:29 +00:00
}
/*-- 14.12.98 10:25:46---------------------------------------------------
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
uno : : Any SwXDocumentIndexMark : : getPropertyValue ( const OUString & rPropertyName )
2007-06-05 16:33:55 +00:00
throw ( beans : : UnknownPropertyException , lang : : WrappedTargetException , uno : : RuntimeException )
2000-09-18 23:08:29 +00:00
{
vos : : OGuard aGuard ( Application : : GetSolarMutex ( ) ) ;
uno : : Any aRet ;
SwTOXType * pType = ( ( SwXDocumentIndexMark * ) this ) - > GetTOXType ( ) ;
2009-06-03 11:26:39 +00:00
const SfxItemPropertySimpleEntry * pEntry = m_pPropSet - > getPropertyMap ( ) - > getByName ( rPropertyName ) ;
if ( ! pEntry )
2007-06-05 16:33:55 +00:00
throw beans : : UnknownPropertyException ( OUString ( RTL_CONSTASCII_USTRINGPARAM ( " Unknown property: " ) ) + rPropertyName , static_cast < cppu : : OWeakObject * > ( this ) ) ;
2009-06-03 11:26:39 +00:00
if ( SwXParagraph : : getDefaultTextContentValue ( aRet , rPropertyName , pEntry - > nWID ) )
2000-09-18 23:08:29 +00:00
return aRet ;
2009-06-03 11:26:39 +00:00
if ( pType & & m_pTOXMark )
2000-09-18 23:08:29 +00:00
{
2009-06-03 11:26:39 +00:00
switch ( pEntry - > nWID )
2000-09-18 23:08:29 +00:00
{
2009-06-03 11:26:39 +00:00
case WID_ALT_TEXT :
aRet < < = OUString ( m_pTOXMark - > GetAlternativeText ( ) ) ;
break ;
case WID_LEVEL :
aRet < < = ( sal_Int16 ) ( m_pTOXMark - > GetLevel ( ) - 1 ) ;
break ;
case WID_PRIMARY_KEY :
aRet < < = OUString ( m_pTOXMark - > GetPrimaryKey ( ) ) ;
break ;
case WID_SECONDARY_KEY :
aRet < < = OUString ( m_pTOXMark - > GetSecondaryKey ( ) ) ;
break ;
case WID_TEXT_READING :
aRet < < = OUString ( m_pTOXMark - > GetTextReading ( ) ) ;
break ;
case WID_PRIMARY_KEY_READING :
aRet < < = OUString ( m_pTOXMark - > GetPrimaryKeyReading ( ) ) ;
break ;
case WID_SECONDARY_KEY_READING :
aRet < < = OUString ( m_pTOXMark - > GetSecondaryKeyReading ( ) ) ;
break ;
case WID_USER_IDX_NAME :
2000-09-18 23:08:29 +00:00
{
2009-06-03 11:26:39 +00:00
OUString sTmp ( pType - > GetTypeName ( ) ) ;
lcl_ConvertTOUNameToProgrammaticName ( sTmp ) ;
aRet < < = sTmp ;
}
break ;
case WID_MAIN_ENTRY :
{
sal_Bool bTemp = m_pTOXMark - > IsMainEntry ( ) ;
aRet . setValue ( & bTemp , : : getBooleanCppuType ( ) ) ;
2000-09-18 23:08:29 +00:00
}
2009-06-03 11:26:39 +00:00
break ;
2000-09-18 23:08:29 +00:00
}
}
else if ( bIsDescriptor )
{
2009-06-03 11:26:39 +00:00
switch ( pEntry - > nWID )
2000-09-18 23:08:29 +00:00
{
case WID_ALT_TEXT :
aRet < < = OUString ( sAltText ) ;
break ;
case WID_LEVEL :
aRet < < = ( sal_Int16 ) nLevel ;
break ;
case WID_PRIMARY_KEY :
aRet < < = OUString ( sPrimaryKey ) ;
break ;
case WID_SECONDARY_KEY :
aRet < < = OUString ( sSecondaryKey ) ;
break ;
2002-06-24 10:24:22 +00:00
case WID_TEXT_READING :
aRet < < = OUString ( sTextReading ) ;
break ;
case WID_PRIMARY_KEY_READING :
aRet < < = OUString ( sPrimaryKeyReading ) ;
break ;
case WID_SECONDARY_KEY_READING :
aRet < < = OUString ( sSecondaryKeyReading ) ;
break ;
2000-09-18 23:08:29 +00:00
case WID_USER_IDX_NAME :
aRet < < = OUString ( sUserIndexName ) ;
break ;
2000-12-09 13:04:51 +00:00
case WID_MAIN_ENTRY :
{
aRet . setValue ( & bMainEntry , : : getBooleanCppuType ( ) ) ;
}
break ;
2000-09-18 23:08:29 +00:00
}
}
else
2007-06-05 16:33:55 +00:00
throw uno : : RuntimeException ( ) ;
2000-09-18 23:08:29 +00:00
return aRet ;
}
/*-- 14.12.98 10:25:46---------------------------------------------------
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
2007-09-27 08:37:21 +00:00
void SwXDocumentIndexMark : : addPropertyChangeListener ( const OUString & /*PropertyName*/ , const uno : : Reference < beans : : XPropertyChangeListener > & /*aListener*/ ) throw ( beans : : UnknownPropertyException , lang : : WrappedTargetException , uno : : RuntimeException )
2000-09-18 23:08:29 +00:00
{
2008-11-10 15:06:12 +00:00
DBG_WARNING ( " not implemented " ) ;
2000-09-18 23:08:29 +00:00
}
/*-- 14.12.98 10:25:46---------------------------------------------------
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
2007-09-27 08:37:21 +00:00
void SwXDocumentIndexMark : : removePropertyChangeListener ( const OUString & /*PropertyName*/ , const uno : : Reference < beans : : XPropertyChangeListener > & /*aListener*/ ) throw ( beans : : UnknownPropertyException , lang : : WrappedTargetException , uno : : RuntimeException )
2000-09-18 23:08:29 +00:00
{
2008-11-10 15:06:12 +00:00
DBG_WARNING ( " not implemented " ) ;
2000-09-18 23:08:29 +00:00
}
/*-- 14.12.98 10:25:47---------------------------------------------------
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
2007-09-27 08:37:21 +00:00
void SwXDocumentIndexMark : : addVetoableChangeListener ( const OUString & /*PropertyName*/ , const uno : : Reference < beans : : XVetoableChangeListener > & /*aListener*/ ) throw ( beans : : UnknownPropertyException , lang : : WrappedTargetException , uno : : RuntimeException )
2000-09-18 23:08:29 +00:00
{
2008-11-10 15:06:12 +00:00
DBG_WARNING ( " not implemented " ) ;
2000-09-18 23:08:29 +00:00
}
/*-- 14.12.98 10:25:47---------------------------------------------------
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
2007-09-27 08:37:21 +00:00
void SwXDocumentIndexMark : : removeVetoableChangeListener ( const OUString & /*PropertyName*/ , const uno : : Reference < beans : : XVetoableChangeListener > & /*aListener*/ ) throw ( beans : : UnknownPropertyException , lang : : WrappedTargetException , uno : : RuntimeException )
2000-09-18 23:08:29 +00:00
{
2008-11-10 15:06:12 +00:00
DBG_WARNING ( " not implemented " ) ;
2000-09-18 23:08:29 +00:00
}
/*-- 14.12.98 10:25:47---------------------------------------------------
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
SwXDocumentIndexMark * SwXDocumentIndexMark : : GetObject ( SwTOXType * pType ,
const SwTOXMark * pMark , SwDoc * pDoc )
{
SwClientIter aIter ( * pType ) ;
SwXDocumentIndexMark * pxMark = ( SwXDocumentIndexMark * )
aIter . First ( TYPE ( SwXDocumentIndexMark ) ) ;
while ( pxMark )
{
2009-06-03 11:26:39 +00:00
if ( pxMark - > m_pTOXMark = = pMark )
2000-09-18 23:08:29 +00:00
return pxMark ;
pxMark = ( SwXDocumentIndexMark * ) aIter . Next ( ) ;
}
return new SwXDocumentIndexMark ( pType , pMark , pDoc ) ;
}
/*-- 14.12.98 10:25:47---------------------------------------------------
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
void SwXDocumentIndexMark : : Modify ( SfxPoolItem * pOld , SfxPoolItem * pNew )
{
2001-11-06 07:37:32 +00:00
switch ( pOld ? pOld - > Which ( ) : 0 )
{
case RES_REMOVE_UNO_OBJECT :
case RES_OBJECTDYING :
if ( ( void * ) GetRegisteredIn ( ) = = ( ( SwPtrMsgPoolItem * ) pOld ) - > pObject )
Invalidate ( ) ;
break ;
case RES_FMT_CHG :
// wurden wir an das neue umgehaengt und wird das alte geloscht?
if ( ( ( SwFmtChg * ) pNew ) - > pChangedFmt = = GetRegisteredIn ( ) & &
( ( SwFmtChg * ) pOld ) - > pChangedFmt - > IsFmtInDTOR ( ) )
Invalidate ( ) ;
break ;
case RES_TOXMARK_DELETED :
if ( ( void * ) m_pTOXMark = = ( ( SwPtrMsgPoolItem * ) pOld ) - > pObject )
Invalidate ( ) ;
break ;
}
2000-09-18 23:08:29 +00:00
}
2000-10-16 09:31:56 +00:00
/* -----------------------------16.10.00 11:24--------------------------------
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
2001-11-06 07:37:32 +00:00
void SwXDocumentIndexMark : : Invalidate ( )
2000-10-16 09:31:56 +00:00
{
if ( GetRegisteredIn ( ) )
{
( ( SwModify * ) GetRegisteredIn ( ) ) - > Remove ( this ) ;
if ( aTypeDepend . GetRegisteredIn ( ) )
( ( SwModify * ) aTypeDepend . GetRegisteredIn ( ) ) - > Remove ( & aTypeDepend ) ;
aLstnrCntnr . Disposing ( ) ;
m_pTOXMark = 0 ;
m_pDoc = 0 ;
}
}
2000-09-18 23:08:29 +00:00
/* -----------------------------06.04.00 15:08--------------------------------
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
2007-06-05 16:33:55 +00:00
OUString SwXDocumentIndexes : : getImplementationName ( void ) throw ( uno : : RuntimeException )
2000-09-18 23:08:29 +00:00
{
return C2U ( " SwXDocumentIndexes " ) ;
}
/* -----------------------------06.04.00 15:08--------------------------------
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
2007-06-05 16:33:55 +00:00
BOOL SwXDocumentIndexes : : supportsService ( const OUString & rServiceName ) throw ( uno : : RuntimeException )
2000-09-18 23:08:29 +00:00
{
return C2U ( " com.sun.star.text.DocumentIndexes " ) = = rServiceName ;
}
/* -----------------------------06.04.00 15:08--------------------------------
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
2007-06-05 16:33:55 +00:00
uno : : Sequence < OUString > SwXDocumentIndexes : : getSupportedServiceNames ( void ) throw ( uno : : RuntimeException )
2000-09-18 23:08:29 +00:00
{
2007-06-05 16:33:55 +00:00
uno : : Sequence < OUString > aRet ( 1 ) ;
2000-09-18 23:08:29 +00:00
OUString * pArray = aRet . getArray ( ) ;
pArray [ 0 ] = C2U ( " com.sun.star.text.DocumentIndexes " ) ;
return aRet ;
}
/*-- 05.05.99 13:14:59---------------------------------------------------
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
2007-09-27 08:37:21 +00:00
SwXDocumentIndexes : : SwXDocumentIndexes ( SwDoc * _pDoc ) :
SwUnoCollection ( _pDoc )
2000-09-18 23:08:29 +00:00
{
}
/*-- 05.05.99 13:15:00---------------------------------------------------
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
SwXDocumentIndexes : : ~ SwXDocumentIndexes ( )
{
}
/*-- 05.05.99 13:15:01---------------------------------------------------
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
2007-06-05 16:33:55 +00:00
sal_Int32 SwXDocumentIndexes : : getCount ( void ) throw ( uno : : RuntimeException )
2000-09-18 23:08:29 +00:00
{
vos : : OGuard aGuard ( Application : : GetSolarMutex ( ) ) ;
if ( ! IsValid ( ) )
2007-06-05 16:33:55 +00:00
throw uno : : RuntimeException ( ) ;
2000-09-18 23:08:29 +00:00
sal_uInt32 nRet = 0 ;
const SwSectionFmts & rFmts = GetDoc ( ) - > GetSections ( ) ;
for ( sal_uInt16 n = 0 ; n < rFmts . Count ( ) ; + + n )
{
const SwSection * pSect = rFmts [ n ] - > GetSection ( ) ;
if ( TOX_CONTENT_SECTION = = pSect - > GetType ( ) & &
pSect - > GetFmt ( ) - > GetSectionNode ( ) )
+ + nRet ;
}
return nRet ;
}
/*-- 05.05.99 13:15:01---------------------------------------------------
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
uno : : Any SwXDocumentIndexes : : getByIndex ( sal_Int32 nIndex )
2007-06-05 16:33:55 +00:00
throw ( lang : : IndexOutOfBoundsException , lang : : WrappedTargetException , uno : : RuntimeException )
2000-09-18 23:08:29 +00:00
{
vos : : OGuard aGuard ( Application : : GetSolarMutex ( ) ) ;
if ( ! IsValid ( ) )
2007-06-05 16:33:55 +00:00
throw uno : : RuntimeException ( ) ;
2000-09-18 23:08:29 +00:00
uno : : Any aRet ;
2007-09-27 08:37:21 +00:00
sal_Int32 nIdx = 0 ;
2000-09-18 23:08:29 +00:00
const SwSectionFmts & rFmts = GetDoc ( ) - > GetSections ( ) ;
2007-09-27 08:37:21 +00:00
for ( sal_uInt16 n = 0 ; n < rFmts . Count ( ) ; + + n )
2000-09-18 23:08:29 +00:00
{
const SwSection * pSect = rFmts [ n ] - > GetSection ( ) ;
if ( TOX_CONTENT_SECTION = = pSect - > GetType ( ) & &
pSect - > GetFmt ( ) - > GetSectionNode ( ) & &
nIdx + + = = nIndex )
{
2007-06-05 16:33:55 +00:00
uno : : Reference < text : : XDocumentIndex > xTmp = new SwXDocumentIndex (
2000-09-18 23:08:29 +00:00
( SwTOXBaseSection * ) pSect , GetDoc ( ) ) ;
2007-06-05 16:33:55 +00:00
aRet . setValue ( & xTmp , : : getCppuType ( ( uno : : Reference < text : : XDocumentIndex > * ) 0 ) ) ;
2000-09-18 23:08:29 +00:00
return aRet ;
}
}
2007-06-05 16:33:55 +00:00
throw lang : : IndexOutOfBoundsException ( ) ;
2000-09-18 23:08:29 +00:00
}
/*-- 31.01.00 10:12:31---------------------------------------------------
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
uno : : Any SwXDocumentIndexes : : getByName ( const OUString & rName )
2007-06-05 16:33:55 +00:00
throw ( container : : NoSuchElementException , lang : : WrappedTargetException , uno : : RuntimeException )
2000-09-18 23:08:29 +00:00
{
vos : : OGuard aGuard ( Application : : GetSolarMutex ( ) ) ;
if ( ! IsValid ( ) )
2007-06-05 16:33:55 +00:00
throw uno : : RuntimeException ( ) ;
2000-09-18 23:08:29 +00:00
uno : : Any aRet ;
String sToFind ( rName ) ;
const SwSectionFmts & rFmts = GetDoc ( ) - > GetSections ( ) ;
2007-09-27 08:37:21 +00:00
for ( sal_uInt16 n = 0 ; n < rFmts . Count ( ) ; + + n )
2000-09-18 23:08:29 +00:00
{
const SwSection * pSect = rFmts [ n ] - > GetSection ( ) ;
if ( TOX_CONTENT_SECTION = = pSect - > GetType ( ) & &
pSect - > GetFmt ( ) - > GetSectionNode ( ) & &
( ( SwTOXBaseSection * ) pSect ) - > GetTOXName ( ) = = sToFind )
{
2007-06-05 16:33:55 +00:00
uno : : Reference < text : : XDocumentIndex > xTmp = new SwXDocumentIndex (
2000-09-18 23:08:29 +00:00
( SwTOXBaseSection * ) pSect , GetDoc ( ) ) ;
2007-06-05 16:33:55 +00:00
aRet . setValue ( & xTmp , : : getCppuType ( ( uno : : Reference < text : : XDocumentIndex > * ) 0 ) ) ;
2000-09-18 23:08:29 +00:00
return aRet ;
}
}
throw container : : NoSuchElementException ( ) ;
}
/*-- 31.01.00 10:12:31---------------------------------------------------
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
uno : : Sequence < OUString > SwXDocumentIndexes : : getElementNames ( void )
2007-06-05 16:33:55 +00:00
throw ( uno : : RuntimeException )
2000-09-18 23:08:29 +00:00
{
vos : : OGuard aGuard ( Application : : GetSolarMutex ( ) ) ;
if ( ! IsValid ( ) )
2007-06-05 16:33:55 +00:00
throw uno : : RuntimeException ( ) ;
2000-09-18 23:08:29 +00:00
const SwSectionFmts & rFmts = GetDoc ( ) - > GetSections ( ) ;
sal_Int32 nCount = 0 ;
sal_uInt16 n ;
for ( n = 0 ; n < rFmts . Count ( ) ; + + n )
{
const SwSection * pSect = rFmts [ n ] - > GetSection ( ) ;
if ( TOX_CONTENT_SECTION = = pSect - > GetType ( ) & &
pSect - > GetFmt ( ) - > GetSectionNode ( ) )
+ + nCount ;
}
uno : : Sequence < OUString > aRet ( nCount ) ;
OUString * pArray = aRet . getArray ( ) ;
sal_uInt16 nCnt ;
for ( n = 0 , nCnt = 0 ; n < rFmts . Count ( ) ; + + n )
{
const SwSection * pSect = rFmts [ n ] - > GetSection ( ) ;
if ( TOX_CONTENT_SECTION = = pSect - > GetType ( ) & &
pSect - > GetFmt ( ) - > GetSectionNode ( ) )
{
pArray [ nCnt + + ] = OUString ( ( ( SwTOXBaseSection * ) pSect ) - > GetTOXName ( ) ) ;
}
}
return aRet ;
}
/*-- 31.01.00 10:12:31---------------------------------------------------
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
sal_Bool SwXDocumentIndexes : : hasByName ( const OUString & rName )
2007-06-05 16:33:55 +00:00
throw ( uno : : RuntimeException )
2000-09-18 23:08:29 +00:00
{
vos : : OGuard aGuard ( Application : : GetSolarMutex ( ) ) ;
if ( ! IsValid ( ) )
2007-06-05 16:33:55 +00:00
throw uno : : RuntimeException ( ) ;
2000-09-18 23:08:29 +00:00
String sToFind ( rName ) ;
const SwSectionFmts & rFmts = GetDoc ( ) - > GetSections ( ) ;
2007-09-27 08:37:21 +00:00
for ( sal_uInt16 n = 0 ; n < rFmts . Count ( ) ; + + n )
2000-09-18 23:08:29 +00:00
{
const SwSection * pSect = rFmts [ n ] - > GetSection ( ) ;
if ( TOX_CONTENT_SECTION = = pSect - > GetType ( ) & &
pSect - > GetFmt ( ) - > GetSectionNode ( ) )
{
if ( ( ( SwTOXBaseSection * ) pSect ) - > GetTOXName ( ) = = sToFind )
return sal_True ;
}
}
return sal_False ;
}
/*-- 05.05.99 13:15:01---------------------------------------------------
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
2007-06-05 16:33:55 +00:00
uno : : Type SwXDocumentIndexes : : getElementType ( void ) throw ( uno : : RuntimeException )
2000-09-18 23:08:29 +00:00
{
2007-06-05 16:33:55 +00:00
return : : getCppuType ( ( uno : : Reference < text : : XDocumentIndex > * ) 0 ) ;
2000-09-18 23:08:29 +00:00
}
/*-- 05.05.99 13:15:02---------------------------------------------------
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
2007-06-05 16:33:55 +00:00
sal_Bool SwXDocumentIndexes : : hasElements ( void ) throw ( uno : : RuntimeException )
2000-09-18 23:08:29 +00:00
{
vos : : OGuard aGuard ( Application : : GetSolarMutex ( ) ) ;
if ( ! IsValid ( ) )
2007-06-05 16:33:55 +00:00
throw uno : : RuntimeException ( ) ;
2000-09-18 23:08:29 +00:00
return 0 ! = getCount ( ) ;
}
2000-11-30 10:30:49 +00:00
SwXDocumentIndex * SwXDocumentIndexes : : GetObject ( const SwTOXBaseSection * pTOX )
{
SwSectionFmt * pFmt = pTOX - > GetFmt ( ) ;
SwClientIter aIter ( * pFmt ) ;
SwXDocumentIndex * pxIdx = ( SwXDocumentIndex * ) aIter . First ( TYPE ( SwXDocumentIndex ) ) ;
if ( pxIdx )
return pxIdx ;
else
return new SwXDocumentIndex ( pTOX , pFmt - > GetDoc ( ) ) ;
}
2000-09-18 23:08:29 +00:00
/* -----------------------------06.04.00 15:08--------------------------------
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
2007-06-05 16:33:55 +00:00
OUString SwXIndexStyleAccess_Impl : : getImplementationName ( void ) throw ( uno : : RuntimeException )
2000-09-18 23:08:29 +00:00
{
return C2U ( " SwXIndexStyleAccess_Impl " ) ;
}
/* -----------------------------06.04.00 15:08--------------------------------
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
2007-06-05 16:33:55 +00:00
BOOL SwXIndexStyleAccess_Impl : : supportsService ( const OUString & rServiceName ) throw ( uno : : RuntimeException )
2000-09-18 23:08:29 +00:00
{
return C2U ( " com.sun.star.text.DocumentIndexParagraphStyles " ) = = rServiceName ;
}
/* -----------------------------06.04.00 15:08--------------------------------
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
2007-06-05 16:33:55 +00:00
uno : : Sequence < OUString > SwXIndexStyleAccess_Impl : : getSupportedServiceNames ( void ) throw ( uno : : RuntimeException )
2000-09-18 23:08:29 +00:00
{
2007-06-05 16:33:55 +00:00
uno : : Sequence < OUString > aRet ( 1 ) ;
2000-09-18 23:08:29 +00:00
OUString * pArray = aRet . getArray ( ) ;
pArray [ 0 ] = C2U ( " com.sun.star.text.DocumentIndexParagraphStyles " ) ;
return aRet ;
}
/*-- 13.09.99 16:52:28---------------------------------------------------
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
SwXIndexStyleAccess_Impl : : SwXIndexStyleAccess_Impl ( SwXDocumentIndex & rParentIdx ) :
rParent ( rParentIdx ) ,
xParent ( & rParentIdx )
{
vos : : OGuard aGuard ( Application : : GetSolarMutex ( ) ) ;
rParent . SetStyleAccess ( this ) ;
}
/*-- 13.09.99 16:52:29---------------------------------------------------
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
SwXIndexStyleAccess_Impl : : ~ SwXIndexStyleAccess_Impl ( )
{
vos : : OGuard aGuard ( Application : : GetSolarMutex ( ) ) ;
rParent . SetStyleAccess ( 0 ) ;
}
/*-- 13.09.99 16:52:29---------------------------------------------------
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
void SwXIndexStyleAccess_Impl : : replaceByIndex ( sal_Int32 nIndex , const uno : : Any & rElement )
2007-06-05 16:33:55 +00:00
throw ( lang : : IllegalArgumentException , lang : : IndexOutOfBoundsException ,
lang : : WrappedTargetException , uno : : RuntimeException )
2000-09-18 23:08:29 +00:00
{
vos : : OGuard aGuard ( Application : : GetSolarMutex ( ) ) ;
const sal_Bool bDescriptor = rParent . IsDescriptor ( ) ;
SwSectionFmt * pSectFmt = rParent . GetFmt ( ) ;
if ( ! pSectFmt & & ! bDescriptor )
2007-06-05 16:33:55 +00:00
throw uno : : RuntimeException ( ) ;
2000-09-18 23:08:29 +00:00
if ( nIndex < 0 | | nIndex > MAXLEVEL )
2007-06-05 16:33:55 +00:00
throw lang : : IndexOutOfBoundsException ( ) ;
2000-09-18 23:08:29 +00:00
SwTOXBase * pTOXBase = bDescriptor ? & rParent . GetProperties_Impl ( ) - > GetTOXBase ( ) :
( SwTOXBaseSection * ) pSectFmt - > GetSection ( ) ;
2001-07-12 09:24:14 +00:00
uno : : Sequence < OUString > aSeq ;
if ( ! ( rElement > > = aSeq ) )
2007-06-05 16:33:55 +00:00
throw lang : : IllegalArgumentException ( ) ;
2000-09-18 23:08:29 +00:00
2007-09-27 08:37:21 +00:00
sal_Int32 nStyles = aSeq . getLength ( ) ;
2001-07-12 09:24:14 +00:00
const OUString * pStyles = aSeq . getConstArray ( ) ;
2000-09-18 23:08:29 +00:00
String sSetStyles ;
2001-08-16 11:33:56 +00:00
String aString ;
2007-09-27 08:37:21 +00:00
for ( sal_Int32 i = 0 ; i < nStyles ; i + + )
2000-09-18 23:08:29 +00:00
{
if ( i )
sSetStyles + = TOX_STYLE_DELIMITER ;
2007-09-27 08:37:21 +00:00
SwStyleNameMapper : : FillUIName ( pStyles [ i ] , aString , nsSwGetPoolIdFromName : : GET_POOLID_TXTCOLL , sal_True ) ;
2001-08-16 11:33:56 +00:00
sSetStyles + = aString ;
2000-09-18 23:08:29 +00:00
}
pTOXBase - > SetStyleNames ( sSetStyles , ( sal_uInt16 ) nIndex ) ;
}
/*-- 13.09.99 16:52:29---------------------------------------------------
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
2007-06-05 16:33:55 +00:00
sal_Int32 SwXIndexStyleAccess_Impl : : getCount ( void ) throw ( uno : : RuntimeException )
2000-09-18 23:08:29 +00:00
{
return MAXLEVEL ;
}
/*-- 13.09.99 16:52:30---------------------------------------------------
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
uno : : Any SwXIndexStyleAccess_Impl : : getByIndex ( sal_Int32 nIndex )
2007-06-05 16:33:55 +00:00
throw ( lang : : IndexOutOfBoundsException , lang : : WrappedTargetException ,
uno : : RuntimeException )
2000-09-18 23:08:29 +00:00
{
vos : : OGuard aGuard ( Application : : GetSolarMutex ( ) ) ;
const sal_Bool bDescriptor = rParent . IsDescriptor ( ) ;
SwSectionFmt * pSectFmt = rParent . GetFmt ( ) ;
if ( ! pSectFmt & & ! bDescriptor )
2007-06-05 16:33:55 +00:00
throw uno : : RuntimeException ( ) ;
2000-09-18 23:08:29 +00:00
if ( nIndex < 0 | | nIndex > MAXLEVEL )
2007-06-05 16:33:55 +00:00
throw lang : : IndexOutOfBoundsException ( ) ;
2000-09-18 23:08:29 +00:00
SwTOXBase * pTOXBase = bDescriptor ? & rParent . GetProperties_Impl ( ) - > GetTOXBase ( ) :
( SwTOXBaseSection * ) pSectFmt - > GetSection ( ) ;
const String & rStyles = pTOXBase - > GetStyleNames ( ( sal_uInt16 ) nIndex ) ;
sal_uInt16 nStyles = rStyles . GetTokenCount ( TOX_STYLE_DELIMITER ) ;
uno : : Sequence < OUString > aStyles ( nStyles ) ;
OUString * pStyles = aStyles . getArray ( ) ;
2001-08-16 11:33:56 +00:00
String aString ;
2000-09-18 23:08:29 +00:00
for ( sal_uInt16 i = 0 ; i < nStyles ; i + + )
{
2001-08-16 11:33:56 +00:00
SwStyleNameMapper : : FillProgName (
rStyles . GetToken ( i , TOX_STYLE_DELIMITER ) ,
aString ,
2007-09-27 08:37:21 +00:00
nsSwGetPoolIdFromName : : GET_POOLID_TXTCOLL ,
2001-08-16 11:33:56 +00:00
sal_True ) ;
pStyles [ i ] = OUString ( aString ) ;
2000-09-18 23:08:29 +00:00
}
uno : : Any aRet ( & aStyles , : : getCppuType ( ( uno : : Sequence < OUString > * ) 0 ) ) ;
return aRet ;
}
/*-- 13.09.99 16:52:30---------------------------------------------------
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
uno : : Type SwXIndexStyleAccess_Impl : : getElementType ( void )
2007-06-05 16:33:55 +00:00
throw ( uno : : RuntimeException )
2000-09-18 23:08:29 +00:00
{
return : : getCppuType ( ( uno : : Sequence < OUString > * ) 0 ) ;
}
/*-- 13.09.99 16:52:30---------------------------------------------------
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
2007-06-05 16:33:55 +00:00
sal_Bool SwXIndexStyleAccess_Impl : : hasElements ( void ) throw ( uno : : RuntimeException )
2000-09-18 23:08:29 +00:00
{
return sal_True ;
}
/* -----------------13.09.99 16:51-------------------
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
/* -----------------------------06.04.00 15:08--------------------------------
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
2007-06-05 16:33:55 +00:00
OUString SwXIndexTokenAccess_Impl : : getImplementationName ( void ) throw ( uno : : RuntimeException )
2000-09-18 23:08:29 +00:00
{
return C2U ( " SwXIndexTokenAccess_Impl " ) ;
}
/* -----------------------------06.04.00 15:08--------------------------------
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
2007-06-05 16:33:55 +00:00
BOOL SwXIndexTokenAccess_Impl : : supportsService ( const OUString & rServiceName ) throw ( uno : : RuntimeException )
2000-09-18 23:08:29 +00:00
{
return C2U ( " com.sun.star.text.DocumentIndexLevelFormat " ) = = rServiceName ;
}
/* -----------------------------06.04.00 15:08--------------------------------
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
2007-06-05 16:33:55 +00:00
uno : : Sequence < OUString > SwXIndexTokenAccess_Impl : : getSupportedServiceNames ( void ) throw ( uno : : RuntimeException )
2000-09-18 23:08:29 +00:00
{
2007-06-05 16:33:55 +00:00
uno : : Sequence < OUString > aRet ( 1 ) ;
2000-09-18 23:08:29 +00:00
OUString * pArray = aRet . getArray ( ) ;
pArray [ 0 ] = C2U ( " com.sun.star.text.DocumentIndexLevelFormat " ) ;
return aRet ;
}
/*-- 13.09.99 16:52:28---------------------------------------------------
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
SwXIndexTokenAccess_Impl : : SwXIndexTokenAccess_Impl ( SwXDocumentIndex & rParentIdx ) :
rParent ( rParentIdx ) ,
xParent ( & rParentIdx ) ,
nCount ( SwForm : : GetFormMaxLevel ( rParent . GetTOXType ( ) ) )
{
vos : : OGuard aGuard ( Application : : GetSolarMutex ( ) ) ;
rParent . SetTokenAccess ( this ) ;
}
/*-- 13.09.99 16:52:29---------------------------------------------------
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
SwXIndexTokenAccess_Impl : : ~ SwXIndexTokenAccess_Impl ( )
{
vos : : OGuard aGuard ( Application : : GetSolarMutex ( ) ) ;
rParent . SetTokenAccess ( 0 ) ;
}
/*-- 13.09.99 16:52:29---------------------------------------------------
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
void SwXIndexTokenAccess_Impl : : replaceByIndex ( sal_Int32 nIndex , const uno : : Any & rElement )
2007-06-05 16:33:55 +00:00
throw ( lang : : IllegalArgumentException , lang : : IndexOutOfBoundsException ,
lang : : WrappedTargetException , uno : : RuntimeException )
2000-09-18 23:08:29 +00:00
{
vos : : OGuard aGuard ( Application : : GetSolarMutex ( ) ) ;
const sal_Bool bDescriptor = rParent . IsDescriptor ( ) ;
SwSectionFmt * pSectFmt = rParent . GetFmt ( ) ;
if ( ! pSectFmt & & ! bDescriptor )
2007-06-05 16:33:55 +00:00
throw uno : : RuntimeException ( ) ;
2000-09-18 23:08:29 +00:00
SwTOXBase * pTOXBase = bDescriptor ? & rParent . GetProperties_Impl ( ) - > GetTOXBase ( ) :
( SwTOXBaseSection * ) pSectFmt - > GetSection ( ) ;
if ( nIndex < 0 | |
( nIndex > pTOXBase - > GetTOXForm ( ) . GetFormMax ( ) ) )
2007-06-05 16:33:55 +00:00
throw lang : : IndexOutOfBoundsException ( ) ;
2001-07-12 09:24:14 +00:00
2007-06-05 16:33:55 +00:00
uno : : Sequence < beans : : PropertyValues > aSeq ;
2001-07-12 09:24:14 +00:00
if ( ! ( rElement > > = aSeq ) )
2007-06-05 16:33:55 +00:00
throw lang : : IllegalArgumentException ( ) ;
2000-09-18 23:08:29 +00:00
String sPattern ;
2007-09-27 08:37:21 +00:00
sal_Int32 nTokens = aSeq . getLength ( ) ;
2007-06-05 16:33:55 +00:00
const beans : : PropertyValues * pTokens = aSeq . getConstArray ( ) ;
2007-09-27 08:37:21 +00:00
for ( sal_Int32 i = 0 ; i < nTokens ; i + + )
2000-09-18 23:08:29 +00:00
{
2007-06-05 16:33:55 +00:00
const beans : : PropertyValue * pProperties = pTokens [ i ] . getConstArray ( ) ;
2007-09-27 08:37:21 +00:00
sal_Int32 nProperties = pTokens [ i ] . getLength ( ) ;
2000-09-18 23:08:29 +00:00
//create an invalid token
SwFormToken aToken ( TOKEN_END ) ;
2007-09-27 08:37:21 +00:00
for ( sal_Int32 j = 0 ; j < nProperties ; j + + )
2000-09-18 23:08:29 +00:00
{
if ( COMPARE_EQUAL = = pProperties [ j ] . Name . compareToAscii ( " TokenType " ) )
{
const String sTokenType =
lcl_AnyToString ( pProperties [ j ] . Value ) ;
2001-06-27 12:48:31 +00:00
if ( sTokenType . EqualsAscii ( " TokenEntryNumber " ) )
2000-09-18 23:08:29 +00:00
aToken . eTokenType = TOKEN_ENTRY_NO ;
2001-06-27 12:48:31 +00:00
else if ( sTokenType . EqualsAscii ( " TokenEntryText " ) )
2000-09-18 23:08:29 +00:00
aToken . eTokenType = TOKEN_ENTRY_TEXT ;
2001-06-27 12:48:31 +00:00
else if ( sTokenType . EqualsAscii ( " TokenTabStop " ) )
2000-09-18 23:08:29 +00:00
aToken . eTokenType = TOKEN_TAB_STOP ;
2001-06-27 12:48:31 +00:00
else if ( sTokenType . EqualsAscii ( " TokenText " ) )
2000-09-18 23:08:29 +00:00
aToken . eTokenType = TOKEN_TEXT ;
2001-06-27 12:48:31 +00:00
else if ( sTokenType . EqualsAscii ( " TokenPageNumber " ) )
2000-09-18 23:08:29 +00:00
aToken . eTokenType = TOKEN_PAGE_NUMS ;
2001-06-27 12:48:31 +00:00
else if ( sTokenType . EqualsAscii ( " TokenChapterInfo " ) )
2000-09-18 23:08:29 +00:00
aToken . eTokenType = TOKEN_CHAPTER_INFO ;
2001-06-27 12:48:31 +00:00
else if ( sTokenType . EqualsAscii ( " TokenHyperlinkStart " ) )
2000-09-18 23:08:29 +00:00
aToken . eTokenType = TOKEN_LINK_START ;
2001-06-27 12:48:31 +00:00
else if ( sTokenType . EqualsAscii ( " TokenHyperlinkEnd " ) )
2000-09-18 23:08:29 +00:00
aToken . eTokenType = TOKEN_LINK_END ;
2001-06-27 12:48:31 +00:00
else if ( sTokenType . EqualsAscii ( " TokenBibliographyDataField " ) )
2000-09-18 23:08:29 +00:00
aToken . eTokenType = TOKEN_AUTHORITY ;
}
2001-06-27 12:48:31 +00:00
else if ( pProperties [ j ] . Name . equalsAsciiL ( RTL_CONSTASCII_STRINGPARAM ( " CharacterStyleName " ) ) )
2000-09-18 23:08:29 +00:00
{
2001-08-16 11:33:56 +00:00
String sCharStyleName ;
SwStyleNameMapper : : FillUIName (
2000-11-01 10:03:32 +00:00
lcl_AnyToString ( pProperties [ j ] . Value ) ,
2001-08-16 11:33:56 +00:00
sCharStyleName ,
2007-09-27 08:37:21 +00:00
nsSwGetPoolIdFromName : : GET_POOLID_CHRFMT ,
2001-08-16 11:33:56 +00:00
sal_True ) ;
2000-09-18 23:08:29 +00:00
aToken . sCharStyleName = sCharStyleName ;
2001-07-20 09:22:01 +00:00
aToken . nPoolId = SwStyleNameMapper : : GetPoolIdFromUIName (
2007-09-27 08:37:21 +00:00
sCharStyleName , nsSwGetPoolIdFromName : : GET_POOLID_CHRFMT ) ;
2000-09-18 23:08:29 +00:00
}
2001-06-27 12:48:31 +00:00
else if ( pProperties [ j ] . Name . equalsAsciiL ( RTL_CONSTASCII_STRINGPARAM ( " TabStopRightAligned " ) ) )
2000-09-18 23:08:29 +00:00
{
sal_Bool bRight = lcl_AnyToBool ( pProperties [ j ] . Value ) ;
aToken . eTabAlign = bRight ?
SVX_TAB_ADJUST_END : SVX_TAB_ADJUST_LEFT ;
}
2001-06-27 12:48:31 +00:00
else if ( pProperties [ j ] . Name . equalsAsciiL ( RTL_CONSTASCII_STRINGPARAM ( " TabStopPosition " ) ) )
2000-09-18 23:08:29 +00:00
{
2007-11-12 15:27:16 +00:00
sal_Int32 nPosition = 0 ;
2000-09-18 23:08:29 +00:00
if ( pProperties [ j ] . Value . getValueType ( ) ! = : : getCppuType ( ( sal_Int32 * ) 0 ) )
2007-06-05 16:33:55 +00:00
throw lang : : IllegalArgumentException ( ) ;
2000-09-18 23:08:29 +00:00
pProperties [ j ] . Value > > = nPosition ;
nPosition = MM100_TO_TWIP ( nPosition ) ;
if ( nPosition < 0 )
2007-06-05 16:33:55 +00:00
throw lang : : IllegalArgumentException ( ) ;
2000-09-18 23:08:29 +00:00
aToken . nTabStopPosition = nPosition ;
}
2001-06-27 12:48:31 +00:00
else if ( pProperties [ j ] . Name . equalsAsciiL ( RTL_CONSTASCII_STRINGPARAM ( " TabStopFillCharacter " ) ) )
2000-09-18 23:08:29 +00:00
{
const String sFillChar =
lcl_AnyToString ( pProperties [ j ] . Value ) ;
if ( sFillChar . Len ( ) > 1 )
2007-06-05 16:33:55 +00:00
throw lang : : IllegalArgumentException ( ) ;
2000-09-18 23:08:29 +00:00
aToken . cTabFillChar = sFillChar . Len ( ) ?
sFillChar . GetChar ( 0 ) : ' ' ;
}
2001-06-27 12:48:31 +00:00
else if ( pProperties [ j ] . Name . equalsAsciiL ( RTL_CONSTASCII_STRINGPARAM ( " Text " ) ) )
2000-09-18 23:08:29 +00:00
{
const String sText =
lcl_AnyToString ( pProperties [ j ] . Value ) ;
aToken . sText = sText ;
}
2001-06-27 12:48:31 +00:00
else if ( pProperties [ j ] . Name . equalsAsciiL ( RTL_CONSTASCII_STRINGPARAM ( " ChapterFormat " ) ) )
2000-09-18 23:08:29 +00:00
{
sal_Int16 nFormat = lcl_AnyToInt16 ( pProperties [ j ] . Value ) ;
switch ( nFormat )
{
case text : : ChapterFormat : : NUMBER : nFormat = CF_NUMBER ;
break ;
case text : : ChapterFormat : : NAME : nFormat = CF_TITLE ;
break ;
case text : : ChapterFormat : : NAME_NUMBER : nFormat = CF_NUM_TITLE ;
break ;
case text : : ChapterFormat : : NO_PREFIX_SUFFIX : nFormat = CF_NUMBER_NOPREPST ;
break ;
case text : : ChapterFormat : : DIGIT : nFormat = CF_NUM_NOPREPST_TITLE ;
break ;
default :
2007-06-05 16:33:55 +00:00
throw lang : : IllegalArgumentException ( ) ;
2000-09-18 23:08:29 +00:00
}
aToken . nChapterFormat = nFormat ;
}
2008-03-07 11:00:59 +00:00
//--->i53420
else if ( pProperties [ j ] . Name . equalsAsciiL ( RTL_CONSTASCII_STRINGPARAM ( " ChapterLevel " ) ) )
{
const sal_Int16 nLevel = lcl_AnyToInt16 ( pProperties [ j ] . Value ) ;
if ( nLevel < 1 | | nLevel > MAXLEVEL )
throw lang : : IllegalArgumentException ( ) ;
aToken . nOutlineLevel = nLevel ;
}
//<---
2001-06-27 12:48:31 +00:00
else if ( pProperties [ j ] . Name . equalsAsciiL ( RTL_CONSTASCII_STRINGPARAM ( " BibliographyDataField " ) ) )
2000-10-27 11:59:47 +00:00
{
2007-11-12 15:27:16 +00:00
sal_Int16 nType = 0 ;
pProperties [ j ] . Value > > = nType ;
2007-06-05 16:33:55 +00:00
if ( nType < 0 | | nType > text : : BibliographyDataField : : ISBN )
2000-10-27 11:59:47 +00:00
{
2007-06-05 16:33:55 +00:00
lang : : IllegalArgumentException aExcept ;
2000-10-27 11:59:47 +00:00
aExcept . Message = C2U ( " BibliographyDataField - wrong value " ) ;
2007-09-27 08:37:21 +00:00
aExcept . ArgumentPosition = static_cast < sal_Int16 > ( j ) ;
2000-10-27 11:59:47 +00:00
throw aExcept ;
}
aToken . nAuthorityField = nType ;
}
2004-05-17 15:24:45 +00:00
// #i21237#
else if ( pProperties [ j ] . Name . equalsAsciiL ( RTL_CONSTASCII_STRINGPARAM ( " WithTab " ) ) )
{
aToken . bWithTab = lcl_AnyToBool ( pProperties [ j ] . Value ) ;
}
2000-10-27 11:59:47 +00:00
2000-09-18 23:08:29 +00:00
}
//exception if wrong TokenType
if ( TOKEN_END < = aToken . eTokenType )
2007-06-05 16:33:55 +00:00
throw lang : : IllegalArgumentException ( ) ;
2000-09-18 23:08:29 +00:00
// set TokenType from TOKEN_ENTRY_TEXT to TOKEN_ENTRY if it is
// not a content index
if ( TOKEN_ENTRY_TEXT = = aToken . eTokenType & &
2000-11-01 10:03:32 +00:00
TOX_CONTENT ! = pTOXBase - > GetType ( ) )
aToken . eTokenType = TOKEN_ENTRY ;
2008-03-07 11:00:59 +00:00
//---> i53420
// check for chapter format allowed values if it was TOKEN_ENTRY_NO type
// only allowed value are CF_NUMBER and CF_NUM_NOPREPST_TITLE
// reading from file
if ( TOKEN_ENTRY_NO = = aToken . eTokenType )
switch ( aToken . nChapterFormat )
{
case CF_NUMBER :
case CF_NUM_NOPREPST_TITLE :
break ;
default :
throw lang : : IllegalArgumentException ( ) ;
}
//<---
2000-11-01 10:03:32 +00:00
sPattern + = aToken . GetString ( ) ;
2000-09-18 23:08:29 +00:00
}
SwForm aForm ( pTOXBase - > GetTOXForm ( ) ) ;
aForm . SetPattern ( ( sal_uInt16 ) nIndex , sPattern ) ;
pTOXBase - > SetTOXForm ( aForm ) ;
}
/*-- 13.09.99 16:52:29---------------------------------------------------
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
2007-06-05 16:33:55 +00:00
sal_Int32 SwXIndexTokenAccess_Impl : : getCount ( void ) throw ( uno : : RuntimeException )
2000-09-18 23:08:29 +00:00
{
vos : : OGuard aGuard ( Application : : GetSolarMutex ( ) ) ;
const sal_Bool bDescriptor = rParent . IsDescriptor ( ) ;
SwSectionFmt * pSectFmt = rParent . GetFmt ( ) ;
if ( ! pSectFmt & & ! bDescriptor )
2007-06-05 16:33:55 +00:00
throw uno : : RuntimeException ( ) ;
2000-09-18 23:08:29 +00:00
sal_Int32 nRet = bDescriptor ?
nCount :
( ( SwTOXBaseSection * ) pSectFmt - > GetSection ( ) ) - >
GetTOXForm ( ) . GetFormMax ( ) ;
return nRet ;
}
/*-- 13.09.99 16:52:30---------------------------------------------------
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
uno : : Any SwXIndexTokenAccess_Impl : : getByIndex ( sal_Int32 nIndex )
2007-06-05 16:33:55 +00:00
throw ( lang : : IndexOutOfBoundsException , lang : : WrappedTargetException ,
uno : : RuntimeException )
2000-09-18 23:08:29 +00:00
{
vos : : OGuard aGuard ( Application : : GetSolarMutex ( ) ) ;
const sal_Bool bDescriptor = rParent . IsDescriptor ( ) ;
SwSectionFmt * pSectFmt = rParent . GetFmt ( ) ;
if ( ! pSectFmt & & ! bDescriptor )
2007-06-05 16:33:55 +00:00
throw uno : : RuntimeException ( ) ;
2000-09-18 23:08:29 +00:00
SwTOXBase * pTOXBase = bDescriptor ? & rParent . GetProperties_Impl ( ) - > GetTOXBase ( ) :
( SwTOXBaseSection * ) pSectFmt - > GetSection ( ) ;
if ( nIndex < 0 | |
( nIndex > pTOXBase - > GetTOXForm ( ) . GetFormMax ( ) ) )
2007-06-05 16:33:55 +00:00
throw lang : : IndexOutOfBoundsException ( ) ;
2000-09-18 23:08:29 +00:00
2004-05-17 15:24:45 +00:00
// #i21237#
SwFormTokens aPattern = pTOXBase - > GetTOXForm ( ) .
GetPattern ( ( sal_uInt16 ) nIndex ) ;
SwFormTokens : : iterator aIt = aPattern . begin ( ) ;
2000-09-18 23:08:29 +00:00
sal_uInt16 nTokenCount = 0 ;
2007-06-05 16:33:55 +00:00
uno : : Sequence < beans : : PropertyValues > aRetSeq ;
2001-08-16 11:33:56 +00:00
String aString ;
2004-05-17 15:24:45 +00:00
while ( aIt ! = aPattern . end ( ) ) // #i21237#
2000-09-18 23:08:29 +00:00
{
nTokenCount + + ;
aRetSeq . realloc ( nTokenCount ) ;
2007-06-05 16:33:55 +00:00
beans : : PropertyValues * pTokenProps = aRetSeq . getArray ( ) ;
2004-05-17 15:24:45 +00:00
SwFormToken aToken = * aIt ; // #i21237#
2000-10-27 08:23:18 +00:00
2007-06-05 16:33:55 +00:00
uno : : Sequence < beans : : PropertyValue > & rCurTokenSeq = pTokenProps [ nTokenCount - 1 ] ;
2001-08-16 11:33:56 +00:00
SwStyleNameMapper : : FillProgName (
aToken . sCharStyleName ,
aString ,
2007-09-27 08:37:21 +00:00
nsSwGetPoolIdFromName : : GET_POOLID_CHRFMT ,
2001-08-16 11:33:56 +00:00
sal_True ) ;
const OUString aProgCharStyle ( aString ) ;
2000-09-18 23:08:29 +00:00
switch ( aToken . eTokenType )
{
case TOKEN_ENTRY_NO :
{
2008-03-07 11:00:59 +00:00
//--->i53420
// writing to file (from doc to properties)
sal_Int32 nElements = 2 ;
sal_Int32 nCurrentElement = 0 ;
if ( aToken . nChapterFormat ! = CF_NUMBER ) //check for default value
nElements + + ; //we need the element
if ( aToken . nOutlineLevel ! = MAXLEVEL )
nElements + + ;
rCurTokenSeq . realloc ( nElements ) ;
2007-06-05 16:33:55 +00:00
beans : : PropertyValue * pArr = rCurTokenSeq . getArray ( ) ;
2000-09-18 23:08:29 +00:00
2008-03-07 11:00:59 +00:00
pArr [ nCurrentElement ] . Name = C2U ( " TokenType " ) ;
pArr [ nCurrentElement + + ] . Value < < = OUString : : createFromAscii ( " TokenEntryNumber " ) ;
2000-09-18 23:08:29 +00:00
// pArr[0].Value <<= C2U("TokenEntryNumber");
2008-03-07 11:00:59 +00:00
pArr [ nCurrentElement ] . Name = C2U ( " CharacterStyleName " ) ;
pArr [ nCurrentElement + + ] . Value < < = aProgCharStyle ;
if ( aToken . nChapterFormat ! = CF_NUMBER )
{
pArr [ nCurrentElement ] . Name = C2U ( " ChapterFormat " ) ;
sal_Int16 nVal ;
//! the allowed values for chapter format, when used as entry number, are CF_NUMBER and CF_NUM_NOPREPST_TITLE only, all else forced to
//CF_NUMBER
switch ( aToken . nChapterFormat )
{
default :
case CF_NUMBER : nVal = text : : ChapterFormat : : NUMBER ; break ;
case CF_NUM_NOPREPST_TITLE : nVal = text : : ChapterFormat : : DIGIT ; break ;
}
pArr [ nCurrentElement + + ] . Value < < = ( sal_Int16 ) nVal ;
}
if ( aToken . nOutlineLevel ! = MAXLEVEL ) //only a ChapterLevel != MAXLEVEL is registered
{
pArr [ nCurrentElement ] . Name = C2U ( " ChapterLevel " ) ;
pArr [ nCurrentElement ] . Value < < = aToken . nOutlineLevel ;
}
//<---
2000-09-18 23:08:29 +00:00
}
break ;
case TOKEN_ENTRY : // no difference between Entry and Entry Text
case TOKEN_ENTRY_TEXT :
{
2000-10-27 08:23:18 +00:00
rCurTokenSeq . realloc ( 2 ) ;
2007-06-05 16:33:55 +00:00
beans : : PropertyValue * pArr = rCurTokenSeq . getArray ( ) ;
2000-09-18 23:08:29 +00:00
pArr [ 0 ] . Name = C2U ( " TokenType " ) ;
pArr [ 0 ] . Value < < = OUString : : createFromAscii ( " TokenEntryText " ) ;
pArr [ 1 ] . Name = C2U ( " CharacterStyleName " ) ;
2001-06-27 12:48:31 +00:00
pArr [ 1 ] . Value < < = aProgCharStyle ;
2000-09-18 23:08:29 +00:00
}
break ;
case TOKEN_TAB_STOP :
{
2004-05-17 15:24:45 +00:00
rCurTokenSeq . realloc ( 5 ) ; // #i21237#
2007-06-05 16:33:55 +00:00
beans : : PropertyValue * pArr = rCurTokenSeq . getArray ( ) ;
2000-09-18 23:08:29 +00:00
pArr [ 0 ] . Name = C2U ( " TokenType " ) ;
pArr [ 0 ] . Value < < = OUString : : createFromAscii ( " TokenTabStop " ) ;
if ( SVX_TAB_ADJUST_END = = aToken . eTabAlign )
{
pArr [ 1 ] . Name = C2U ( " TabStopRightAligned " ) ;
BOOL bTemp = sal_True ;
pArr [ 1 ] . Value . setValue ( & bTemp , : : getCppuBooleanType ( ) ) ;
}
else
{
pArr [ 1 ] . Name = C2U ( " TabStopPosition " ) ;
2001-03-30 10:40:04 +00:00
sal_Int32 nPos = ( TWIP_TO_MM100 ( aToken . nTabStopPosition ) ) ;
if ( nPos < 0 )
nPos = 0 ;
pArr [ 1 ] . Value < < = ( sal_Int32 ) nPos ;
2000-09-18 23:08:29 +00:00
}
pArr [ 2 ] . Name = C2U ( " TabStopFillCharacter " ) ;
pArr [ 2 ] . Value < < = OUString ( aToken . cTabFillChar ) ;
2001-06-27 12:48:31 +00:00
pArr [ 3 ] . Name = C2U ( " CharacterStyleName " ) ;
pArr [ 3 ] . Value < < = aProgCharStyle ;
2004-05-17 15:24:45 +00:00
// #i21237#
pArr [ 4 ] . Name = C2U ( " WithTab " ) ;
pArr [ 4 ] . Value . setValue ( & aToken . bWithTab , : : getCppuBooleanType ( ) ) ;
2000-09-18 23:08:29 +00:00
}
break ;
case TOKEN_TEXT :
{
2000-10-27 08:23:18 +00:00
rCurTokenSeq . realloc ( 3 ) ;
2007-06-05 16:33:55 +00:00
beans : : PropertyValue * pArr = rCurTokenSeq . getArray ( ) ;
2000-09-18 23:08:29 +00:00
pArr [ 0 ] . Name = C2U ( " TokenType " ) ;
pArr [ 0 ] . Value < < = OUString : : createFromAscii ( " TokenText " ) ;
pArr [ 1 ] . Name = C2U ( " CharacterStyleName " ) ;
2001-06-27 12:48:31 +00:00
pArr [ 1 ] . Value < < = aProgCharStyle ;
2000-09-18 23:08:29 +00:00
pArr [ 2 ] . Name = C2U ( " Text " ) ;
pArr [ 2 ] . Value < < = OUString ( aToken . sText ) ;
}
break ;
case TOKEN_PAGE_NUMS :
{
2000-10-27 08:23:18 +00:00
rCurTokenSeq . realloc ( 2 ) ;
2007-06-05 16:33:55 +00:00
beans : : PropertyValue * pArr = rCurTokenSeq . getArray ( ) ;
2000-09-18 23:08:29 +00:00
pArr [ 0 ] . Name = C2U ( " TokenType " ) ;
pArr [ 0 ] . Value < < = OUString : : createFromAscii ( " TokenPageNumber " ) ;
pArr [ 1 ] . Name = C2U ( " CharacterStyleName " ) ;
2001-06-27 12:48:31 +00:00
pArr [ 1 ] . Value < < = aProgCharStyle ;
2000-09-18 23:08:29 +00:00
}
break ;
case TOKEN_CHAPTER_INFO :
{
2008-03-07 11:00:59 +00:00
rCurTokenSeq . realloc ( 4 ) ;
2007-06-05 16:33:55 +00:00
beans : : PropertyValue * pArr = rCurTokenSeq . getArray ( ) ;
2000-09-18 23:08:29 +00:00
pArr [ 0 ] . Name = C2U ( " TokenType " ) ;
pArr [ 0 ] . Value < < = OUString : : createFromAscii ( " TokenChapterInfo " ) ;
pArr [ 1 ] . Name = C2U ( " CharacterStyleName " ) ;
2001-06-27 12:48:31 +00:00
pArr [ 1 ] . Value < < = aProgCharStyle ;
2000-09-18 23:08:29 +00:00
pArr [ 2 ] . Name = C2U ( " ChapterFormat " ) ;
sal_Int16 nVal = text : : ChapterFormat : : NUMBER ;
switch ( aToken . nChapterFormat )
{
case CF_NUMBER : nVal = text : : ChapterFormat : : NUMBER ; break ;
case CF_TITLE : nVal = text : : ChapterFormat : : NAME ; break ;
case CF_NUM_TITLE : nVal = text : : ChapterFormat : : NAME_NUMBER ; break ;
case CF_NUMBER_NOPREPST : nVal = text : : ChapterFormat : : NO_PREFIX_SUFFIX ; break ;
case CF_NUM_NOPREPST_TITLE : nVal = text : : ChapterFormat : : DIGIT ; break ;
}
pArr [ 2 ] . Value < < = ( sal_Int16 ) nVal ;
2008-03-07 11:00:59 +00:00
//--->i53420
pArr [ 3 ] . Name = C2U ( " ChapterLevel " ) ;
//
pArr [ 3 ] . Value < < = aToken . nOutlineLevel ;
//<---
2000-09-18 23:08:29 +00:00
}
break ;
case TOKEN_LINK_START :
{
2004-01-05 14:57:38 +00:00
rCurTokenSeq . realloc ( 2 ) ;
2007-06-05 16:33:55 +00:00
beans : : PropertyValue * pArr = rCurTokenSeq . getArray ( ) ;
2000-09-18 23:08:29 +00:00
pArr [ 0 ] . Name = C2U ( " TokenType " ) ;
pArr [ 0 ] . Value < < = OUString : : createFromAscii ( " TokenHyperlinkStart " ) ;
2004-01-05 14:57:38 +00:00
pArr [ 1 ] . Name = C2U ( " CharacterStyleName " ) ;
pArr [ 1 ] . Value < < = aProgCharStyle ;
2000-09-18 23:08:29 +00:00
}
break ;
case TOKEN_LINK_END :
{
2000-10-27 08:23:18 +00:00
rCurTokenSeq . realloc ( 1 ) ;
2007-06-05 16:33:55 +00:00
beans : : PropertyValue * pArr = rCurTokenSeq . getArray ( ) ;
2000-09-18 23:08:29 +00:00
pArr [ 0 ] . Name = C2U ( " TokenType " ) ;
pArr [ 0 ] . Value < < = OUString : : createFromAscii ( " TokenHyperlinkEnd " ) ;
}
break ;
case TOKEN_AUTHORITY :
2007-09-27 08:37:21 +00:00
{
2001-06-15 09:01:58 +00:00
rCurTokenSeq . realloc ( 3 ) ;
2007-06-05 16:33:55 +00:00
beans : : PropertyValue * pArr = rCurTokenSeq . getArray ( ) ;
2000-09-18 23:08:29 +00:00
pArr [ 0 ] . Name = C2U ( " TokenType " ) ;
pArr [ 0 ] . Value < < = OUString : : createFromAscii ( " TokenBibliographyDataField " ) ;
2001-06-15 09:01:58 +00:00
pArr [ 1 ] . Name = C2U ( " CharacterStyleName " ) ;
2001-06-27 12:48:31 +00:00
pArr [ 1 ] . Value < < = aProgCharStyle ;
2001-06-15 09:01:58 +00:00
pArr [ 2 ] . Name = C2U ( " BibliographyDataField " ) ;
pArr [ 2 ] . Value < < = sal_Int16 ( aToken . nAuthorityField ) ;
2007-09-27 08:37:21 +00:00
}
2000-09-18 23:08:29 +00:00
break ;
2007-09-27 08:37:21 +00:00
default :
;
2000-09-18 23:08:29 +00:00
}
2004-05-17 15:24:45 +00:00
aIt + + ; // #i21237#
2000-09-18 23:08:29 +00:00
}
2007-06-05 16:33:55 +00:00
uno : : Any aRet ( & aRetSeq , : : getCppuType ( ( uno : : Sequence < beans : : PropertyValues > * ) 0 ) ) ;
2000-09-18 23:08:29 +00:00
return aRet ;
}
/*-- 13.09.99 16:52:30---------------------------------------------------
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
uno : : Type SwXIndexTokenAccess_Impl : : getElementType ( void )
2007-06-05 16:33:55 +00:00
throw ( uno : : RuntimeException )
2000-09-18 23:08:29 +00:00
{
2007-06-05 16:33:55 +00:00
return : : getCppuType ( ( uno : : Sequence < beans : : PropertyValues > * ) 0 ) ;
2000-09-18 23:08:29 +00:00
}
/*-- 13.09.99 16:52:30---------------------------------------------------
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
2007-06-05 16:33:55 +00:00
sal_Bool SwXIndexTokenAccess_Impl : : hasElements ( void ) throw ( uno : : RuntimeException )
2000-09-18 23:08:29 +00:00
{
return sal_True ;
}